/* Classic trading-terminal panels for the ASX dashboard */
.vv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; background: #1d1f21; padding: 10px; border-radius: 14px; border: 1px solid #2c2f31; }
.vv-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 960px) { .vv { grid-template-columns: 1fr; padding: 6px; } }
.vv-panel { background: #000; border: 1px solid #3a3d40; border-radius: 4px; overflow: hidden; font-family: "Segoe UI", Inter, "Noto Sans TC", sans-serif; }
.vv-panel > header { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 8px; background: linear-gradient(#3b3e41, #2a2c2e); border-bottom: 1px solid #4a4d50; font-size: 12px; color: #fff; font-weight: 600; }
.vv-panel > header > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-asof { font-weight: 500; font-size: 11.5px; color: #ddd; white-space: nowrap; }
.vv-btns { display: flex; gap: 3px; }
.vv-btns button { width: 20px; height: 18px; border: 1px solid #5b5f63; background: linear-gradient(#55595c, #3a3d40); color: #fff; font-size: 11px; line-height: 1; padding: 0; border-radius: 2px; cursor: pointer; }
.vv-btns button:hover { background: #19a37a; }
.vv-body { padding: 0; color: #fff; overflow-x: auto; }
.vv-panel.collapsed .vv-body, .vv-panel.collapsed .vv-help { display: none; }
.vv-help { display: none; padding: 10px 12px; font-size: 12.5px; background: #0d1a16; color: #cfe; border-bottom: 1px solid #234; line-height: 1.5; }
.vv-panel.show-help .vv-help { display: block; }
.vv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vv-table th { text-align: left; font-weight: 500; font-size: 16px; color: #fff; padding: 4px 8px; border: 1px solid #555; background: #000; white-space: nowrap; }
.vv-table td { font-size: 14px; padding: 2px 8px; border-bottom: 1px solid #111; white-space: nowrap; }
.vv-table tbody tr:nth-child(even) td { background: #262626; }
.vv-table tbody tr:nth-child(odd) td { background: #111; }
.vv-table .name { color: #f0b429; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.vv-table .sym { color: #fff; }
.vv-table .num { text-align: right; }
.vv-table .g { color: #36e33a; } .vv-table .r { color: #ff3b30; } .vv-table .w { color: #fff; }
.vv-table tbody tr { cursor: default; }
.vv-table tbody tr:hover td { background: #1b3a30; }
.vv-table .rate { font-weight: 700; text-align: center; }
.vv-table .rate.B { color: #36e33a; } .vv-table .rate.S { color: #ff3b30; } .vv-table .rate.H { color: #f0b429; }
.vv-x { color: #888; cursor: pointer; padding-left: 6px; }
.vv-x:hover { color: #ff3b30; }

/* gauge panel */
.vv-gauge { display: flex; align-items: center; gap: 0; padding: 16px 20px 10px; flex-wrap: wrap; }
.vv-gauge .gauge-svg { width: 150px; height: auto; flex: none; }
.vv-bubble { border: 2px solid #ddd; border-radius: 12px; padding: 8px 14px; margin-left: -18px; margin-bottom: 26px; background: #000; max-width: 260px; }
.vv-bubble b { display: block; font-size: 16px; }
.vv-bubble span { font-size: 12.5px; color: #ddd; }

/* glance */
.vv-glance { text-align: center; padding: 10px 10px 14px; }
.vv-glance .box { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 0 34px; border: 2px solid #ccc; border-radius: 8px; padding: 4px 18px; margin: 6px 0 10px; }
.vv-glance .box b { font-size: 15px; } .vv-glance .box span { font-size: 15px; }
.vv-glance .kv { display: grid; grid-template-columns: repeat(2, auto auto); gap: 2px 22px; justify-content: center; font-weight: 600; font-size: 14.5px; }
.vv-glance .kv span:nth-child(odd) { text-align: right; }

/* guard table */
.guard td { font-size: 12px; padding: 1px 6px; text-align: center; }
.guard th { font-size: 15px; text-align: center; }
.guard tbody tr td { background: #000 !important; }
.guard .d { color: #f0b429; text-align: left; }
.guard .cell { display: block; border-radius: 1px; color: #000; padding: 0 4px; border: 1px solid #666; position: relative; }
.guard .cell.Y { background: #e2df15; } .guard .cell.R { background: #ec1b1b; } .guard .cell.G { background: #16c016; }
.guard .star::after { content: "★"; position: absolute; right: 3px; color: #000; font-size: 10px; }
.guard .mti { color: #f0b429; } .guard .tr { color: #f0b429; } .guard .call { color: #ff3b30; }
.guard .call.up { color: #36e33a; }
.vv-input { background: #0b1216; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 14px var(--font); min-width: 200px; }
.vv-add { display: flex; gap: 6px; padding: 8px; background: #111; border-top: 1px solid #333; }
.vv-add input { flex: 1; background: #000; border: 1px solid #555; color: #fff; padding: 4px 8px; font-size: 13px; }
.vv-add button { background: #19a37a; color: #fff; border: 0; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.vv-add[hidden] { display: none; }
