.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:20px;margin:24px 0}.home-grid .card{margin:0}.home-grid a.card{display:block;text-decoration:none;color:inherit}.home-grid a.card:hover{border-color:#174c40;background:#f0f2e7}.home-grid h2{font-size:1.25rem;margin-top:0}.home-grid p{font-size:.95rem;line-height:1.6}.home-intro{max-width:780px}.home-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.home-button{display:inline-block;padding:12px 20px;border-radius:8px;background:#174c40;color:white;text-decoration:none}.home-button:visited{color:white}dt{font-size:.8rem;color:#627168;margin-top:16px}dd{margin:4px 0 0;overflow-wrap:anywhere}.condition{padding:12px 16px;margin:8px 0;border-radius:8px;line-height:1.5;background:#edf0e4;list-style:none}.condition.warning{background:#fff0cb}.condition.critical{background:#fbe0de}#issues{padding:0}.home-top{display:flex;gap:20px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #d6dacb;padding-bottom:16px}.home-top .brand{font-weight:700;margin-right:auto}.home-top a{color:#174c40}.private-title{margin-top:36px}[hidden]{display:none!important}


.home-top{justify-content:flex-end}

/* Device status visuals share the Studio page shell. */
.hardware-gauges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0 20px}.hardware-gauge{background:#fffdf7;border:1px solid #d9d7c7;border-radius:18px;padding:20px 16px;text-align:center;min-width:0}.hardware-gauge h2{font-size:1rem;margin:0 0 16px}.gauge-dial{--fill:0%;--tone:#174c40;position:relative;display:grid;place-items:center;width:142px;height:142px;max-width:100%;aspect-ratio:1;margin:0 auto 16px;border-radius:50%;background:conic-gradient(var(--tone) var(--fill),#e4e8dc 0)}.gauge-dial:before{content:'';position:absolute;inset:11px;border-radius:50%;background:#fffdf7}.gauge-value{position:relative;font-size:1.7rem;font-weight:650;letter-spacing:-.04em}.gauge-detail{font-size:.82rem;line-height:1.55;margin:0;color:#536054;overflow-wrap:anywhere}.gauge-caption{display:block;font-size:.72rem;line-height:1.5;margin-top:8px;color:#687368}.hardware-gauge.warning .gauge-dial{--tone:#ac7022}.hardware-gauge.critical .gauge-dial{--tone:#aa4435}.hardware-gauge.unavailable .gauge-value{font-size:1rem}.hardware-overview[data-stale=true]{opacity:.65}.hardware-trend{margin:20px 0 24px}.trend-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.trend-heading h2{margin:0;font-size:1.2rem}.trend-heading span{display:flex;align-items:center;gap:8px;font-size:.8rem}.trend-heading i{width:10px;height:10px;border-radius:50%;display:inline-block}.pi-key{background:#174c40}.hat-key{background:#b5792e}.hardware-trend svg{display:block;width:100%;height:auto;min-height:100px}.trend-grid path{stroke:#d9ddcf;fill:none}.trend-labels{font-size:12px;fill:#617267}.hardware-trend polyline{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.pi-line{stroke:#174c40}.hat-line{stroke:#b5792e;stroke-dasharray:7 4}@media(max-width:950px){.hardware-gauges{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.hardware-gauges{gap:10px}.hardware-gauge{padding:16px 10px}.gauge-dial{width:122px;height:122px}.gauge-value{font-size:1.45rem}.hardware-trend{padding:18px 12px}}

.reboot-controls h2{margin-top:0}.reboot-controls p{line-height:1.6}.reboot-button{background:#963f32}.reboot-button:hover{background:#793328}.reboot-controls #rebootStatus:empty{display:none}#rebootDialog{width:min(560px,calc(100% - 32px));border:1px solid #c9cfbe;border-radius:18px;padding:28px;background:#fffdf7;color:#163c36}#rebootDialog::backdrop{background:#132d2580}#rebootDialog h2{margin-top:0}#rebootDialog p{line-height:1.65}.reboot-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px}.reboot-actions button{margin-top:8px}@media(max-width:700px){.reboot-actions{flex-direction:column-reverse}.reboot-actions button{width:100%}}

.home-top .landing-home{display:inline-flex;align-items:center;justify-content:center;margin-right:auto;padding:10px;border:1px solid #c9cfbe;border-radius:24px}

/* Temperature sensors use thermometers; capacity remains a percentage dial. */
.thermometer-display{display:flex;align-items:center;justify-content:center;gap:4px;min-height:185px;margin:0 auto 10px}
.thermometer{width:120px;height:185px;flex-shrink:0;overflow:visible}
.thermometer text{font-size:11px;fill:#5a655e}
.thermal-normal{fill:#c3d7cd}.thermal-warning{fill:#e3aa39}.thermal-critical{fill:#be493a}
.thermal-tube{fill:#edf0e8;stroke:#a8b4ab;stroke-width:1.5}.thermal-tick{stroke:#7d8a81;stroke-width:1}
.hardware-thermometer{--thermal-tone:#174c40}
.hardware-thermometer.warning{--thermal-tone:#9a5c00}.hardware-thermometer.critical{--thermal-tone:#ad3028}
.thermal-fluid,.thermal-bulb{fill:var(--thermal-tone)}
.temperature-value{font-size:1.5rem;letter-spacing:-.04em;white-space:nowrap}
.temperature-status{font-weight:650;color:var(--thermal-tone);font-size:.85rem;margin:0 0 8px}
.hardware-thermometer.unavailable{--thermal-tone:#8e978f}.hardware-thermometer.unavailable .thermal-fluid{display:none}.hardware-thermometer.unavailable .temperature-value{font-size:.85rem;white-space:normal}
.hardware-thermometer.warning{border-color:#c08b30}.hardware-thermometer.critical{border-color:#b84437}
@media(max-width:500px){.thermometer-display{flex-direction:column;gap:0}.thermometer{height:160px;width:110px}.temperature-value{font-size:1.4rem}.thermometer-display{min-height:185px}}

.history-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 12px}.studio .history-controls label{margin:0;font-size:.85rem}.studio .history-controls select{width:auto;font-size:.85rem;padding:7px 10px}.history-navigation{display:flex;gap:7px;margin-left:auto}.studio .history-navigation button{margin:0;padding:8px 12px;font-size:.8rem;min-height:36px}.history-navigation [aria-pressed=true]{background:#174c40;color:white}.history-navigation button:disabled{opacity:.45;cursor:default}.history-explanation{font-size:.78rem;line-height:1.6;color:#617267}.history-band{stroke:none;opacity:.17}.pi-band,.pi-dot{fill:#174c40}.hat-band,.hat-dot{fill:#b5792e}.hardware-trend svg[data-stale=true]{opacity:.5}.history-dot{stroke:none}
@media(max-width:560px){.history-navigation{margin-left:0;flex-wrap:wrap}.hardware-trend #temperatureTrend{min-width:530px}.hardware-trend{overflow-x:auto}.history-explanation{max-width:100%}}

.history-range{stroke-width:1;opacity:.4}.pi-range{stroke:#174c40}.hat-range{stroke:#b5792e}
