:root{color-scheme:dark;background:#0c1018;color:#edf2fa;font:15px system-ui,sans-serif;--panel:#141b27;--line:#283449;--muted:#a5b2c9;--accent:#70e6c4}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at top,#17253b 0,transparent 48rem)}
main{max-width:1360px;margin:auto;padding:0 clamp(1rem,4vw,3.5rem) 3rem}
.masthead,.intro,.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.masthead{height:76px;border-bottom:1px solid var(--line)}
.brand,.status,.legend{display:flex;align-items:center;gap:.65rem}
.brand{font-weight:700;letter-spacing:.025em}
.mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#214439;color:var(--accent);font-size:1.6rem;line-height:1}
.status{color:var(--muted);font-size:.84rem;white-space:nowrap}
.status:before{content:'';height:8px;width:8px;border-radius:50%;background:#f5bc74}
.status.live:before{background:var(--accent);box-shadow:0 0 12px #70e6c47a}
.intro{align-items:end;padding:2rem 0 1.45rem}
h1,h2,p{margin:0}
h1{font-size:clamp(1.8rem,5vw,3rem);letter-spacing:-.045em;line-height:1.1}
h2{font-size:1.08rem;letter-spacing:-.014em}
p,.summary span,.section-head label{color:var(--muted)}
.intro p{margin-top:.55rem}.timestamp{font-size:.84rem}
.metrics,.charts{display:grid;gap:1rem}
.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.charts{grid-template-columns:repeat(2,minmax(0,1fr))}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px}
.metric,.summary,.chart,.inventory{padding:1.15rem}
.metric h2,.metric p{color:var(--muted);font-size:.81rem}
.metric strong{display:block;margin:.45rem 0 .6rem;font-size:clamp(1.45rem,4vw,2.3rem);font-variant-numeric:tabular-nums}
.meter{height:5px;margin-bottom:.7rem;background:#303b50;border-radius:8px;overflow:hidden}
.meter div{height:100%;transition:width .45s}
.summary{margin:1rem 0 1.6rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.summary span,.summary strong{display:block}.summary span{font-size:.8rem;margin-bottom:.4rem}
.section-head{margin-bottom:.85rem}
.section-head h2{font-size:1.3rem}
select,button{font:inherit;color:inherit;background:#101722;border:1px solid #35435b;border-radius:8px;padding:.48rem .7rem}
select{margin-left:.4rem}
button{cursor:pointer}
button[aria-pressed=true]{background:#214439;color:#a6f7df;border-color:#3c7969}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.legend{flex-wrap:wrap;margin:.7rem 0;color:var(--muted);font-size:.8rem}
.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.35rem}
.chart svg{width:100%;display:block;overflow:visible}
.chart svg line{stroke:var(--line)}
.chart svg text{fill:var(--muted);font-size:11px}
.chart svg polyline{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.inventory{margin-top:1rem}
.tabs{display:flex;gap:.5rem;flex-wrap:wrap}
.table-wrap{overflow:auto;max-height:30rem;margin-top:.8rem}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.84rem}
td,th{padding:.58rem .65rem;border-bottom:1px solid var(--line)}
th{position:sticky;top:0;background:#1b2535;color:#ccd8ea;white-space:nowrap}
td{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
tr:hover td{background:#1b2332}
.state{background:#30364b;border-radius:6px;padding:.18rem .4rem}
.state.active{color:#9ef0d6;background:#214439}.state.failed{color:#ffb4b4;background:#4c2830}
.empty,.notice{padding:1rem 0}.notice{color:#f5bc74}
@media(max-width:850px){.charts{grid-template-columns:1fr}}
@media(max-width:620px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.summary{grid-template-columns:1fr 1fr}.intro{align-items:start;flex-direction:column}.timestamp{margin:0}.metric,.summary,.chart,.inventory{padding:.8rem}}
