:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f4f6fb;background:#080d18;font-synthesis:none}*{box-sizing:border-box}body{margin:0;padding:28px}main{max-width:1160px;margin:auto;background:#0b1120;border:1px solid #1b263a;border-radius:28px;padding:30px}header,.brand,.intro,.toolbar,.section-title,footer,.actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{justify-content:flex-start}.logo{display:grid;place-items:center;background:#2563eb;border-radius:16px;width:52px;height:52px;font-size:40px;color:white}h1{font-size:27px;margin:0;font-weight:650;letter-spacing:-.7px}h2{margin:0;font-size:23px;font-weight:600;letter-spacing:-.4px}p{color:#94a3b8;margin:8px 0;font-size:14px;letter-spacing:.3px}.brand p{margin:4px 0;font-size:12px;letter-spacing:1.4px}header{padding-bottom:27px;border-bottom:1px solid #263245}.badge{font-size:13px;border-radius:30px;padding:7px 12px;color:#a9b9d0;background:#1d2c42;white-space:nowrap}.badge.online{color:#2bd89e;background:#0b322b}.badge.offline{color:#ffba80;background:#38271c}.intro{margin:30px 0 22px}button,select,input{font:inherit;color:inherit;background:#101a2b;border:1px solid #344057;border-radius:10px;padding:10px 14px}button{cursor:pointer;font-size:13px}button:hover{background:#26334a}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #38bdf8;outline-offset:3px}.select label{display:block;font-size:10px;letter-spacing:1.6px;color:#7e8da5;margin-bottom:9px}.select select{width:100%;border-radius:13px;height:46px}.toolbar{margin:20px 0 16px}.segmented{display:flex;background:#080f1d;padding:4px;border-radius:11px}.segmented button{border:0;background:transparent;color:#8c99ac;padding:8px 19px}.segmented .active{background:#263248;color:white}.cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.card{background:#151f30;border:1px solid #1b283b;border-radius:23px;text-align:center;padding:25px 20px 21px}.card h3{font-size:16px;font-weight:500;letter-spacing:.4px;margin:0 0 19px}.icon{color:var(--accent);margin-right:10px}.gauge{width:205px;height:205px;margin:0 auto 15px;position:relative}.gauge svg{width:100%;height:100%;transform:rotate(-90deg)}.gauge circle{fill:none;stroke-width:12}.track{stroke:#263449}.value-ring{stroke:var(--accent);stroke-linecap:round;transition:stroke-dasharray .4s}.number{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;font-weight:700;font-size:37px;letter-spacing:-1px}.number small{font-size:13px;color:#94a3b8;font-weight:400;letter-spacing:0;margin-top:3px}.card p{font-size:14px}.legend{color:#c0cada;font-size:13px}.legend:before{content:"";display:inline-block;width:8px;height:8px;border-radius:3px;background:var(--accent);margin-right:9px}.health,.history{background:#151f30;border:1px solid #1b283b;border-radius:22px;padding:23px;margin-top:16px}.section-title{margin-bottom:20px}.health h2,.history h2{font-size:19px}.bar-label{display:flex;justify-content:space-between;font-size:13px;color:#bcc7d8;margin:19px 0 12px}.bar{height:7px;border-radius:10px;background:#28364c;overflow:hidden}.fill{height:100%;background:var(--accent);border-radius:10px;transition:width .4s}footer{margin-top:20px;font-size:12px;color:#75849c}footer button{border:0;background:transparent;font-size:24px;padding:0 5px}.history svg{width:100%;height:160px}.history p{font-size:11px}.history select{font-size:12px}.pie .gauge{border-radius:50%;background:conic-gradient(var(--accent) calc(var(--value)*1%),#263449 0)}.pie .gauge svg{visibility:hidden}.pie .number{inset:49px;border-radius:50%;background:#151f30;font-size:25px}.pie .number small{font-size:11px}dialog{border:1px solid #344057;border-radius:20px;background:#151f30;color:white;padding:28px;width:min(440px,90vw)}dialog::backdrop{background:#000a}dialog label{display:block;margin:18px 0 8px;font-size:14px}dialog input{display:block;width:100%;margin-top:8px}.actions{justify-content:flex-end}#login-error{color:#ffb79a}@media(min-width:1050px){.gauge{width:220px;height:220px}.card{padding:28px}.intro h2{font-size:27px}}@media(max-width:600px){body{padding:10px}main{padding:19px;border-radius:20px}h1{font-size:22px}.logo{width:43px;height:43px}.intro{align-items:flex-start;flex-direction:column}.cards{grid-template-columns:1fr}.toolbar p{font-size:12px}.health,.history{padding:18px}.section-title{gap:8px}.history select{max-width:130px}}

.pie .number{inset:0;background:transparent;border-radius:0;text-shadow:0 1px 6px #000,0 0 14px #000;font-size:37px}.pie .number small{color:white}

/* Compact resource layout */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.select{margin-top:22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card{min-width:0}.gauge{max-width:100%;height:auto;aspect-ratio:1}.health{margin-top:20px}
@media(max-width:600px){body{padding:8px}main{padding:14px}header{flex-wrap:wrap;gap:14px;padding-bottom:16px}.brand{gap:9px}h1{font-size:21px}.brand p{font-size:9px}.header-actions{margin-left:auto;gap:8px}.header-actions button{font-size:12px;min-height:40px;padding:8px 10px}.badge{font-size:11px;padding:7px 9px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{padding:16px 8px 14px;border-radius:16px}.card h3{font-size:12px;margin-bottom:12px;letter-spacing:0}.icon{margin-right:5px}.gauge{width:150px;margin-bottom:10px}.number,.pie .number{font-size:clamp(21px,6vw,30px)}.number small,.pie .number small{font-size:10px}.card p,.legend{font-size:11px;letter-spacing:0}.health{padding:16px}.health .section-title{margin-bottom:12px}.bar-label{margin:12px 0 8px;font-size:12px}.toolbar{gap:8px}.toolbar p{font-size:11px}.segmented button{padding:9px 12px}.select{margin-top:18px}.history .section-title{flex-wrap:wrap}}
