:root{color-scheme:dark;--bg:#0b111b;--panel:#111c2a;--line:#243247;--muted:#9aabc0;--text:#eaf1fa;--accent:#56dfb4}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}main{max-width:1280px;margin:auto;padding:40px 32px}header,.panel-head,footer{display:flex;justify-content:space-between;align-items:center;gap:24px}header{margin-bottom:30px}h1{font-size:38px;letter-spacing:-1.6px;line-height:1.15;margin:6px 0 12px}h2{font-size:20px;letter-spacing:-.4px;margin:2px 0 0}p{margin:4px 0}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--muted)}.accent{color:var(--accent)}.muted,small{color:var(--muted)}.live{text-align:right;white-space:nowrap}.live small{display:block;font-size:11px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e8bc66;margin-right:8px}.dot.good{background:var(--accent)}.dot.bad{background:#ff818a}
.targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-bottom:24px}.target{border:1px solid var(--line);border-top:2px solid var(--target-color,#56dfb4);border-radius:8px;background:var(--panel);padding:18px 22px}.target h2{font-size:16px}.target .rtt{font-size:30px;letter-spacing:-1px;margin:8px 0 0;font-weight:650}.target small{font-size:12px}.target[data-index="0"]{border-top-color:#56dfb4}.target[data-index="1"]{border-top-color:#6eaeff}.target[data-index="2"]{border-top-color:#c49bff}.target[data-index="3"]{border-top-color:#ffbf69}.panel{padding:24px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:24px}.panel-head{margin-bottom:20px;align-items:flex-start}.controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--muted)}input,select,button,.button{font:inherit;color:var(--text);background:#192637;border:1px solid #34465d;border-radius:5px;padding:8px 10px}.button,button{font-size:12px;text-decoration:none;cursor:pointer;white-space:nowrap}button:hover,.button:hover{border-color:var(--accent)}.check{flex-direction:row;align-items:center;align-self:center;font-size:12px}.check input{accent-color:var(--accent)}#range{margin-bottom:18px}.legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin:8px 0 16px}.legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor;margin-right:7px}.chart-label{font-size:12px;margin:18px 0 8px}canvas{display:block;width:100%;height:255px}.short{height:135px}.readout{font-size:12px;min-height:22px;color:#c8d6e8;font-variant-numeric:tabular-nums;margin:12px 0}#range-info{font-size:11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;margin-top:18px;font-variant-numeric:tabular-nums}th{text-align:left;color:var(--muted);font-weight:500;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid var(--line)}td:first-child,th:first-child{padding-left:0}.host-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.host-stat{padding:12px;background:#0d1724;border-radius:6px}.host-stat strong{font-size:20px;display:block;font-variant-numeric:tabular-nums}.host-stat small{font-size:11px}.cpu{color:#56dfb4}.memory{color:#c49bff}.io{color:#ffbf69}footer{font-size:11px;color:var(--muted);padding-bottom:20px}#error{background:#45232c;border:1px solid #a34a59;border-radius:6px;padding:12px 18px;margin-bottom:20px}[hidden]{display:none!important}
.legend-0{color:#56dfb4}.legend-1{color:#6eaeff}.legend-2{color:#c49bff}.legend-3{color:#ffbf69}.legend-4{color:#f38ab2}.legend-5{color:#72dbe8}
.host-stats.stale{opacity:.5}
.login-page{max-width:500px;padding-top:12vh}.login-page h1{margin-bottom:28px}#login{display:grid;gap:18px;margin-top:24px}#login label{font-size:13px}#login input{font-size:16px}#login-error{color:#ff818a;margin-top:18px}button:disabled{opacity:.5;cursor:wait}#logout{margin-top:10px}
.badge{display:inline-block;font-size:11px;line-height:1.5;font-weight:600;padding:3px 8px;border:1px solid currentColor;border-radius:4px;white-space:nowrap;letter-spacing:0}.badge.good{color:#56dfb4;background:#56dfb40c}.badge.warning{color:#ffbf69;background:#ffbf690c}.badge.bad{color:#ff818a;background:#ff818a0c}.badge.unknown{color:#9aabc0;background:#9aabc00c}.target-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.target-head h2{min-width:0;overflow-wrap:anywhere}.probe-health{flex-shrink:0}.target[data-health="warning"] .rtt{color:#ffbf69}.target[data-health="bad"] .rtt{color:#ff818a}.target[data-health="unknown"] .rtt{color:#9aabc0}.window-note{font-size:11px;margin-top:12px}.window-signals .badge{margin:2px 6px 2px 0}.lag-health{margin-top:7px}
@media(max-width:760px){main{padding:22px 14px}header{margin-bottom:18px}h1{font-size:30px;margin:4px 0 6px}.tagline{display:none}header,.panel-head{align-items:flex-start;flex-direction:column;gap:14px}.live{text-align:left}.panel{padding:16px}.targets{gap:10px}.target{padding:12px}.target .rtt{font-size:23px}.controls{gap:9px}footer{align-items:flex-start;flex-direction:column;gap:6px}.chart-label .muted{display:block}canvas{height:210px}.short{height:130px}}
