:root{color-scheme:dark;font-family:Inter,"Noto Sans TC",system-ui,sans-serif;color:#e9f3f8;background:#0b131a}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 50% -15%,#244657,#101e28 46%,#0b131a 87%)}
button,select{font:inherit}button{cursor:pointer;touch-action:manipulation}
button:focus-visible,select:focus-visible{outline:3px solid #4bb9e6;outline-offset:3px}
.shell{width:min(100%,520px);margin:0 auto;padding:35px 19px 52px}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.overline{font-size:10px;letter-spacing:.19em;color:#86a6b8;font-weight:700;margin-bottom:7px}
h1{font-size:20px;letter-spacing:.025em;margin:0;font-weight:800}h1 span{font-size:12px;font-weight:500;color:#9cb8c8;margin-left:5px}
.status-pill{border:1px solid #37525e;border-radius:100px;display:flex;align-items:center;gap:6px;padding:9px 12px;white-space:nowrap;font-size:12px;color:#c4dce9;background:#13252e}
.status-dot{width:8px;height:8px;background:#70818b;border-radius:100%}
.status-pill.online .status-dot{background:#4ce0b2;box-shadow:0 0 12px #4ce0b266}
.remote{background:linear-gradient(160deg,#273947,#1b2a36 70%);border:1px solid #3a515d;border-radius:28px;padding:24px;box-shadow:0 26px 70px #02060a80,inset 0 2px 0 #ffffff12}
.remote-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.logo{font-weight:900;font-size:18px;letter-spacing:.17em;color:#e5f5fb}
.power{display:flex;align-items:center;gap:7px;border:1px solid #587180;background:#29404d;border-radius:12px;color:#e3eff5;font-size:21px;padding:9px 13px}
.power span{font-size:13px}.power.on{background:#1c674f;border-color:#48d7a4;color:#d3fff1}
.display{background:linear-gradient(150deg,#dbf1e8,#abcbbf);border:3px solid #647d78;border-radius:14px;color:#213f37;padding:15px 21px 17px;box-shadow:inset 0 5px 15px #456b631e;min-height:194px}
.display-top,.display-foot{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.12em;font-weight:750;min-height:18px}
.temp{display:flex;justify-content:center;align-items:baseline;line-height:1.15;font-weight:750;margin:4px 0}
.temp>span:first-child{font-size:85px;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.temp .unit{font-size:28px;margin-left:6px}
.display-foot{font-size:11px;color:#4a6960}
.temp-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:19px 0 22px}
.adjust{width:70px;height:65px;background:#435968;border:1px solid #617c8e;border-radius:15px;color:#f2f9ff;font-size:37px;line-height:1}
.adjust:active{background:#5e8197}
.center-label{color:#d7e9f3;text-align:center;font-size:15px;line-height:1.5}.center-label span{color:#829fae;font-size:12px}
.selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.selects label{font-size:12px;color:#a7c1cd;display:flex;flex-direction:column;gap:7px}
.selects select{width:100%;background:#142631;border:1px solid #3e5663;border-radius:10px;padding:12px;color:#e0eff5;font-size:14px}
.mini-title{margin-top:25px;margin-bottom:11px;letter-spacing:.1em;font-size:11px;font-weight:700;color:#9eb7c3}
.features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.features button{background:#2c4554;border:1px solid #486271;color:#d7e8f0;border-radius:11px;padding:13px 7px;font-size:21px;display:flex;gap:8px;align-items:center;justify-content:center}
.features span{font-size:13px}.features button.active{background:#194d60;border-color:#48b7d6;color:#b6efff}
.footer-actions{margin-top:21px}
.footer-actions button{background:transparent;border:1px solid #597381;border-radius:11px;color:#b7d7e6;width:100%;padding:13px}
button:disabled,select:disabled{opacity:.52;cursor:wait}
.telemetry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}
.telemetry div{background:#172731;border:1px solid #2c4553;border-radius:12px;padding:13px 9px;display:flex;flex-direction:column;gap:6px;min-width:0}
.telemetry span{color:#8faebd;font-size:11px}.telemetry strong{font-size:14px}
.hint{color:#b8ced9;text-align:center;font-size:13px;line-height:1.6;min-height:21px;margin-top:18px}.hint.error{color:#ffacac}
.footnote{color:#7291a0;text-align:center;font-size:11px;line-height:1.7;margin-top:16px}
@media(max-width:390px){.remote{padding:18px}.temp>span:first-child{font-size:71px}.adjust{width:58px}.shell{padding-inline:12px}h1{font-size:17px}}

/* Authenticated multi-device login */
.shell[hidden]{display:none!important}
.top .logout{margin-left:auto;background:transparent;color:#c7dce7;border:1px solid #3a5968;border-radius:10px;padding:8px 11px}
.auth-shell{min-height:100vh;display:grid;place-items:center}
.login-panel{width:100%;max-width:410px;background:linear-gradient(145deg,#263c49,#162731);padding:32px 28px;border:1px solid #3a5968;border-radius:25px;box-shadow:0 25px 80px #0006}
.login-panel p{color:#afc8d6;font-size:14px;line-height:1.8;margin:18px 0}
.login-panel form{display:flex;flex-direction:column;gap:15px;margin-top:22px}
.login-panel label{font-size:13px;color:#bdd6e3;display:flex;flex-direction:column;gap:7px}
.login-panel input{background:#091821;border:1px solid #4c6573;border-radius:10px;color:#eaf7ff;padding:13px 12px;font-size:16px;width:100%}
.login-panel input:focus{outline:2px solid #4bb9e6}
.login-panel button{border:0;border-radius:11px;background:#258bb3;color:white;font-weight:700;padding:13px}
.login-panel button:disabled{opacity:.6}
.auth-error{color:#ffb5b5!important;min-height:21px;margin:0!important}
.login-panel small{display:block;margin-top:17px;color:#89a5b4;font-size:11px;line-height:1.7}
