
:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#060b14;color:#f8fafc}*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -15%,#17335b 0,#060b14 48%);padding:env(safe-area-inset-top) 18px env(safe-area-inset-bottom)}
main{max-width:500px;margin:auto;padding:24px 0 34px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}h1{font-size:1.2rem;margin:0}.debug{color:#94a3b8;text-decoration:none;font-size:.9rem;padding:8px}
.banner{display:none;border-radius:13px;padding:11px 14px;margin-bottom:13px;background:#7f1d1d;color:#fee2e2;font-weight:650}.banner.show{display:block}.banner.simulation,.banner.sensorbench{display:none;background:#713f12;color:#fef3c7}.banner.simulation.show,.banner.sensorbench.show{display:block}
.card{background:#111b2c;border:1px solid #26344b;border-radius:22px;padding:19px;margin:13px 0;box-shadow:0 12px 34px #0006}.hero{min-height:190px;display:flex;flex-direction:column;justify-content:center;text-align:center;background:linear-gradient(155deg,#152947,#0d192b)}.hero.heating{background:linear-gradient(155deg,#9a3412,#431b13);border-color:#ea580c}.hero.fan{background:linear-gradient(155deg,#0369a1,#102c43);border-color:#0ea5e9}.hero.cooldown{background:linear-gradient(155deg,#475569,#172033)}
.eyebrow{color:#9fb0c9;font-size:.76rem;text-transform:uppercase;letter-spacing:.12em}.state{font-size:2.25rem;font-weight:780;margin:10px 0 7px}.detail{color:#cbd5e1;line-height:1.4}.facts{display:grid;grid-template-columns:1fr 1fr;gap:11px}.fact{background:#0a1322;border-radius:14px;padding:13px}.fact b{display:block;margin-top:5px;font-size:1.05rem}.label{color:#94a3b8;font-size:.75rem;text-transform:uppercase;letter-spacing:.07em}
.buttons{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:15px}button{appearance:none;border:0;border-radius:16px;padding:15px 9px;min-height:56px;color:#fff;background:#334155;font:inherit;font-weight:750}button:disabled{opacity:.35}.heat{background:#c2410c}.fanbutton{background:#0369a1}.stop{background:#b91c1c;grid-column:1/-1;font-size:1.1rem}.wide{grid-column:1/-1}.primary{background:#2563eb}
.program{background:#0a1322;border-radius:16px;padding:14px;margin-top:14px}.program-title{font-weight:750;margin-bottom:11px}.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0;color:#cbd5e1}.setting label{font-size:.9rem}.setting select,.temperature{width:176px;height:48px;border:1px solid #475569;border-radius:14px;background:#08111f;color:#fff;font:inherit;font-weight:750}.setting select{padding:0 12px}.temperature{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px}.temperature button{min-height:38px;width:42px;padding:4px;border-radius:9px;font-size:1.2rem}.temperature output{min-width:58px;text-align:center;font-weight:750}.program>button{width:100%;margin-top:9px}
input.pin{width:100%;margin-top:14px;border:1px solid #475569;border-radius:14px;padding:14px;background:#08111f;color:#fff;font:inherit;font-size:1.05rem;letter-spacing:.16em}.check{display:flex;gap:10px;align-items:flex-start;margin-top:13px;color:#cbd5e1;font-size:.9rem;line-height:1.4}.check input{width:20px;height:20px;margin:0;accent-color:#2563eb;flex:0 0 auto}.message{min-height:1.35em;color:#cbd5e1;margin:13px 0 0;font-size:.9rem}.warning{color:#fbbf24}.safe{color:#86efac}.hidden{display:none}.timer{font-variant-numeric:tabular-nums}.foot{text-align:center;color:#64748b;font-size:.78rem;margin-top:18px}
#simulationBanner{display:none!important}.top{gap:8px}.top>div{display:flex;flex-wrap:wrap;justify-content:flex-end}.hero{min-height:120px}.session-text{color:#cbd5e1;font-size:.9rem;line-height:1.45;margin:14px 0;font-variant-numeric:tabular-nums}.session-logout{width:100%;margin-top:15px}#reload{grid-column:1;grid-row:1}#timeApply{grid-column:2;grid-row:1}#targetApply{grid-column:2;grid-row:2}
[hidden]{display:none!important}#detail:empty{display:none}
.debug.active{color:#f8fafc}
#remoteLogin label{display:block;color:#94a3b8;font-size:.9rem;margin:14px 0 6px}
#remoteLogin input{width:100%;min-width:0;padding:14px;border:1px solid #475569;border-radius:14px;background:#0b1324;color:#f8fafc;font:inherit}
#remoteLoginButton{width:100%;margin-top:15px;background:#2563eb}
#reload,#timeApply{font-size:.85rem;padding:12px 8px;min-width:0}
#targetApply{grid-column:1 / -1;grid-row:2}
.remote-note{color:#94a3b8;font-size:.85rem;line-height:1.5}
.version-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;margin-top:24px;padding:18px 8px 4px;border-top:1px solid #263449;color:#94a3b8;font-size:.75rem;line-height:1.5}
.version-row{display:flex;gap:8px;align-items:baseline;min-width:0}.version-label{color:#cbd5e1;font-weight:600;flex-shrink:0}.version-row>span:last-child{overflow-wrap:anywhere}
@media(max-width:600px){.version-footer{flex-direction:column;align-items:center;gap:6px}}

[data-ui-style="inline-0"]{color:inherit;text-decoration:none}