.tq main { padding: 0 var(--pad) 48px; display: flex; flex-direction: column; gap: 14px; }
.tq .grow { flex: 1; }
.tq .bar form { margin: 0; }
.tq button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.accts { display: flex; gap: 10px; padding: 12px var(--pad) 4px; overflow-x: auto; }
.acct { flex: 0 0 auto; min-width: 190px; text-align: left; background: var(--surface); border-radius: 12px; padding: 10px 14px; border: 1px solid transparent !important; }
.acct.on { border-color: var(--line2) !important; background: var(--raise); }
.acct b { font-weight: 500; }
.acct .v { font: 500 17px/1.3 var(--mono); margin-top: 3px; }
.acct .s { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.pill { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; border-radius: 99px; padding: 1px 8px; border: 1px solid var(--line2); color: var(--fg2); white-space: nowrap; }
.pill::before { content: "●"; font-size: 8px; color: var(--faint); }
.pill.good::before { content: "✓"; font-size: 11px; color: var(--good); }
.pill.warn { border-color: var(--warn); } .pill.warn::before { content: "▲"; color: var(--warn); }
.pill.crit { border-color: var(--crit); color: var(--fg); } .pill.crit::before { content: "✕"; font-size: 11px; color: var(--crit); }
#alerts { padding: 8px var(--pad) 0; display: flex; flex-direction: column; gap: 6px; }
#alerts:empty { display: none; }
.al { border-radius: 10px; padding: 8px 14px; background: rgba(208, 59, 59, .16); border: 1px solid var(--crit); }
.al.w { background: rgba(250, 178, 25, .1); border-color: var(--warn); }
.tabs { display: flex; gap: 4px; padding: 10px var(--pad); overflow-x: auto; position: sticky; top: 0; z-index: 5; background: var(--page); }
.tabs button { padding: 5px 13px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--raise); color: var(--fg); }
.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.t { background: var(--surface); border-radius: 12px; padding: 11px 14px; min-width: 0; }
.t .k { color: var(--muted); font-size: 12px; }
.t .v { font: 500 19px/1.35 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .n { color: var(--muted); font: 400 11.5px/1.3 var(--mono); }
.panel h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--fg2); }
.panel h3 small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.sc { overflow-x: auto; }
table.g { border-collapse: collapse; width: 100%; font: 12px/1.45 var(--mono); }
table.g th { color: var(--muted); font-weight: 400; text-align: right; padding: 3px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; position: sticky; top: 0; }
table.g td { text-align: right; padding: 3px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.g th:first-child, table.g td:first-child, table.g .l { text-align: left; }
table.g tr.hl td { background: rgba(250, 178, 25, .08); }
.m { color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; font-size: 12.5px; }
.kv > :nth-child(odd) { color: var(--muted); }
.kv > :nth-child(even) { font-family: var(--mono); min-width: 0; overflow-wrap: anywhere; }
.bars { display: grid; grid-template-columns: max-content 1fr 58px; gap: 5px 10px; align-items: center; font-size: 12px; }
.bars .tr { position: relative; height: 10px; }
.bars .tr::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line2); }
.bars .tr i { position: absolute; top: 0; height: 100%; }
.bars .pos { background: var(--s1); border-radius: 0 3px 3px 0; left: 50%; }
.bars .neg { background: var(--s2); border-radius: 3px 0 0 3px; right: 50%; }
.bars .val { text-align: right; font-family: var(--mono); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .tip { position: absolute; display: none; opacity: 1; transform: none; transition: none; color: var(--fg); pointer-events: none; background: var(--raise); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 9px; font: 12px var(--mono); white-space: nowrap; z-index: 3; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; }
.ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ctl label { color: var(--muted); font-size: 12px; min-width: 76px; }
.ctl input, .ctl select, .modal input { background: var(--raise); color: var(--fg); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 9px; font: 13px var(--mono); width: 96px; }
.ctl select { width: auto; }
.b { padding: 6px 13px !important; border-radius: 8px; border: 1px solid var(--line2) !important; background: var(--raise) !important; }
.b.on { border-color: var(--fg2) !important; }
.b.danger { border-color: var(--crit) !important; background: rgba(208, 59, 59, .16) !important; }
.b.hard { background: var(--crit) !important; border-color: var(--crit) !important; color: #fff !important; font-weight: 500; }
.b:disabled { opacity: .4; cursor: default; }
.note { color: var(--muted); font-size: 12px; margin: 4px 0 12px; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.modal[hidden] { display: none; }
.dlg { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 18px 20px; width: min(430px, 100%); }
.dlg h4 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.dlg p { color: var(--fg2); margin: 0 0 12px; }
.dlg input { width: 100%; margin-bottom: 10px; font-size: 16px; }
.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; }
.dlg .res { color: var(--warn); min-height: 18px; margin-bottom: 8px; font-size: 12.5px; }
.tq main { min-width: 0; max-width: 100%; box-sizing: border-box; }
#rptv { min-width: 0; }
.rv { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv > * { min-width: 0; }
.rv .tl { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (max-width: 640px) { .rv .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv .t .v { font-size: 17px; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.rh { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rh select, .hx select { background: var(--raise); color: var(--fg); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 9px; font: 13px var(--mono); }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rowl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { .rowl { grid-template-columns: minmax(0, 1fr); } }
.panel h3 .hx { font-weight: 400; margin-left: 12px; display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); }
.panel > .note, .panel .note:last-child { margin: 10px 0 0; max-width: 110ch; }
.ch { display: flex; flex-direction: column; min-width: 0; }
.cv { flex: 1; min-height: 0; position: relative; }
.cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv canvas.ov { touch-action: pan-y; }
.cv .tip { position: absolute; display: none; opacity: 1; transform: none; transition: none; min-width: 0; color: var(--fg); pointer-events: none; background: var(--raise); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; font: 12px/1.5 var(--mono); white-space: nowrap; z-index: 3; }
.tip .th { color: var(--muted); margin-bottom: 3px; }
.tip .tr { display: flex; gap: 16px; justify-content: space-between; }
.tip .tr i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.tip .tr b, .tip > b { font-weight: 500; }
.tip .tf { margin-top: 3px; color: var(--fg2); }
.lg { display: flex; flex-wrap: wrap; gap: 3px 14px; justify-content: flex-end; font-size: 12px; color: var(--fg2); margin-bottom: 6px; }
.lg > * { display: inline-flex; align-items: center; gap: 6px; }
.lg i { display: inline-block; width: 14px; height: 3px; border-radius: 1px; }
.lg b { font-size: 10px; font-weight: 400; }
.lg button.off { color: var(--faint); text-decoration: line-through; }
.lg button.off i, .lg button.off b { opacity: .3; }
.tw { overflow: auto; max-height: 520px; }
.tw th { background: var(--surface); cursor: pointer; user-select: none; z-index: 1; }
.tw th:hover { color: var(--fg); }
.tw th.s::after { content: " ▾"; } .tw th.s.a::after { content: " ▴"; }
table.g td.tx { text-align: left; white-space: normal; min-width: 240px; font-family: inherit; }
table.g tbody tr:hover td { background: rgba(255, 255, 255, .03); }
table.g tr.click { cursor: pointer; }
table.g tr.sel td { background: rgba(240, 96, 42, .12); }
.alert { color: var(--warn); }
.lnk { border-bottom: 1px solid var(--line2) !important; font-family: var(--mono); }
.lnk:hover { border-color: var(--fg2) !important; }
.hb { display: grid; gap: 3px 10px; align-items: center; font: 12px/1.3 var(--mono); }
.hb .tr { position: relative; height: 13px; min-width: 60px; }
.hb .tr::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line2); }
.hb .tr i { position: absolute; }
.hb .val { text-align: right; font-size: 11.5px; }
.hb .click { cursor: pointer; }
.hb .k.click:hover { color: var(--accent); }
table.ht { border-collapse: separate; border-spacing: 2px; width: 100%; font: 11px/1.4 var(--mono); }
table.ht th { color: var(--muted); font-weight: 400; padding: 1px 4px; white-space: nowrap; text-align: left; }
table.ht thead th { text-align: center; }
table.ht td { text-align: center; padding: 3px 4px; border-radius: 3px; color: var(--fg); white-space: nowrap; }
table.ht td.e { background: transparent; }
.up { color: #ef6a5e; } .dn { color: #4ec27c; }
