:root{color-scheme:dark;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:#0b1119;color:#e9f0f6;font-size:14px}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 85% 0%,#152838 0,transparent 38%),#0b1119;min-height:100vh}
.shell{max-width:1360px;margin:auto;padding:34px 30px 50px}
.masthead{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid #263440;padding-bottom:26px;margin-bottom:24px}
.eyebrow{color:#69bac1;letter-spacing:.17em;font-size:10px;font-weight:700;margin:0 0 12px}
.masthead h1{font-size:30px;letter-spacing:-.04em;margin:0 0 5px;position:relative;z-index:1}
.subtitle,.hint,.sample-time,footer{color:#899ba9;font-size:12px}
.subtitle{margin:0}
.header-side{text-align:right;color:#8ba0ad;font-size:12px;display:flex;gap:16px;align-items:center}
button{cursor:pointer;background:#46b3ad;border:0;border-radius:6px;color:#061b20;padding:10px 16px;font-weight:700}
button:hover{background:#72d1c8}
#logout{background:#1b2935;color:#b7cbd4;padding:7px 12px;white-space:nowrap}
.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#263440;border:1px solid #263440;border-radius:8px;overflow:hidden;margin-bottom:24px}
.summary>div{background:#111c27;padding:17px 19px;display:flex;justify-content:space-between;align-items:center}
.summary span{color:#95a9b6;font-size:12px}
.summary strong{font-size:24px;font-variant-numeric:tabular-nums}
.summary>div:nth-child(3) strong{color:#efaa7d}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:13px}
.section-heading h2{font-size:17px;margin:0}
.section-heading .eyebrow{margin-bottom:4px}
.badge{border:1px solid #594438;background:#302119;color:#ffbc8b;border-radius:4px;padding:4px 8px;font-size:11px}
.attention{margin-bottom:30px}
.alert-row,.all-clear{display:flex;gap:14px;align-items:center;background:#201c1d;border:1px solid #66413a;border-radius:6px;padding:14px 16px;margin:7px 0}
.alert-identity{min-width:210px;display:flex;flex-direction:column;gap:3px}
.alert-identity strong{font-size:13px}
.alert-row>span:nth-child(3){color:#ffbd9a;flex:1}
.alert-row time{color:#9b9a9c;font-size:11px}
.status-dot{height:8px;width:8px;background:#ff806a;border-radius:50%;flex:none}
.all-clear{background:#11221f;border-color:#255348;color:#9fcec3}
.machine-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.machine-card{background:#111d28;border:1px solid #263846;border-radius:7px;padding:17px;min-width:0}
.machine-card.has-alert{border-color:#754b3a}
.card-top{display:flex;justify-content:space-between;align-items:center}
.group{color:#7993a3;font-size:11px}
.state{font-size:11px;padding:3px 7px;border-radius:4px}
.state.ok{background:#16352e;color:#76d1af}
.state.hot{background:#3e2922;color:#ffad82}
.state.stale{background:#37312a;color:#eac18d}
.machine-card h3{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:15px 0 4px}
.machine-ip{color:#a8c6d3;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.02em;overflow-wrap:anywhere}
.machine-card .machine-ip{margin:0 0 5px}
.alert-identity .machine-ip{margin:0}
.sample-time{margin:0 0 17px}
.metric{margin-top:12px}
.metric-head{display:flex;justify-content:space-between;gap:8px;color:#9fb0bc;font-size:11px}
.metric-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.metric-head b{color:#e1e9ed;font-variant-numeric:tabular-nums}
.track{height:5px;background:#263745;border-radius:4px;margin-top:6px;overflow:hidden}
.fill{height:100%;background:#56b9b2;border-radius:4px}
.fill.warning{background:#e5ac67}
.fill.critical{background:#f18467}
.login-card{max-width:440px;margin:70px auto 120px;background:#12202b;border:1px solid #36515b;border-radius:9px;padding:30px}
.lock-icon{color:#61c3b8}
.login-card h2{font-size:23px;margin:0 0 9px}
.login-card>p:not(.eyebrow){color:#9cb0bc}
.login-card form{margin-top:26px}
.login-card label{display:block;font-size:12px;margin-bottom:8px}
.login-row{display:flex;gap:8px}
.login-row input{flex:1;min-width:0;background:#0b1620;color:#fff;border:1px solid #44606b;border-radius:6px;padding:11px;font-size:16px;letter-spacing:.18em}
input:focus-visible,button:focus-visible{outline:2px solid #7bd6cc;outline-offset:2px}
#login-error{color:#ff9d80;min-height:18px;font-size:12px}
footer{border-top:1px solid #263440;margin-top:38px;padding-top:18px}
@media(max-width:1100px){.machine-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){.machine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.summary{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){.shell{padding:22px 16px}
.masthead h1{font-size:25px}
.header-side #clock{display:none}
.machine-grid{grid-template-columns:1fr}
.alert-row{flex-wrap:wrap;gap:8px}
.alert-identity{min-width:0;flex:1}
.alert-row>span:nth-child(3){flex-basis:100%}
.alert-row time{margin-left:auto}
.summary>div{padding:12px}
.summary strong{font-size:19px}
.summary>div:last-child{align-items:flex-start;flex-direction:column;gap:4px}
.summary>div:last-child strong{font-size:16px}
.login-row{flex-direction:column}
}
