:root { --bg:#f5f6f8; --card:#fff; --ink:#14171c; --mute:#667085; --line:#e4e7ec; --accent:#2f6fed; --ok:#138a4d; --warn:#b26a00; --bad:#c62f2f; }
@media (prefers-color-scheme: dark) { :root { --bg:#0e1116; --card:#171b22; --ink:#e8eaee; --mute:#98a2b3; --line:#272d37; --accent:#6c9bff; --ok:#4cc98a; --warn:#f0ae45; --bad:#ff7070; } }
* { box-sizing:border-box; margin:0; }
[hidden] { display:none !important; }
body { background:var(--bg); color:var(--ink); font:14px/1.45 system-ui, sans-serif; }
main { max-width:1180px; margin:0 auto; padding:20px; display:flex; flex-direction:column; gap:14px; }
h1 { font-size:20px; } h2 { font-size:14px; margin-bottom:10px; }
header { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
header > div { flex:1 1 260px; }
p, .mute { color:var(--mute); }
section:not(.tiles):not(#alerts), .tile { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; min-width:0; }
button, select, input { font:inherit; color:inherit; background:var(--card); border:1px solid var(--line); border-radius:7px; padding:7px 11px; }
button { cursor:pointer; }
#login { max-width:320px; margin:18vh auto; padding:24px; display:flex; flex-direction:column; gap:10px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
#login-error { color:var(--bad); }
.badge { padding:5px 12px; border-radius:99px; font-weight:600; border:1px solid currentColor; }
.ok { color:var(--ok); } .warning { color:var(--warn); } .critical, .unknown { color:var(--bad); } .info { color:var(--accent); }
#alerts { display:flex; flex-direction:column; gap:6px; }
#alerts div { background:var(--card); border:1px solid var(--line); border-left:4px solid currentColor; border-radius:7px; padding:9px 12px; }
#alerts span { color:var(--ink); }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; }
.tile b { display:block; font-size:28px; font-variant-numeric:tabular-nums; }
.bar { height:6px; background:var(--line); border-radius:9px; overflow:hidden; margin:7px 0; }
.bar i { display:block; height:100%; background:var(--accent); }
.head { display:flex; justify-content:space-between; align-items:start; }
.charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:18px; }
.chart svg { width:100%; height:110px; display:block; border-bottom:1px solid var(--line); }
.chart polyline { fill:none; stroke:var(--accent); stroke-width:1.6; vector-effect:non-scaling-stroke; }
.chart line { stroke:var(--line); stroke-dasharray:3 4; vector-effect:non-scaling-stroke; }
.chart div { display:flex; justify-content:space-between; margin-bottom:4px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr)); gap:14px; }
.wide { grid-column:1/-1; }
.scroll { max-height:320px; overflow:auto; }
div[id] { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
th, td { text-align:left; padding:5px 8px 5px 0; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--mute); font-weight:500; }
