:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eaf1ff;background:#09101f;font-synthesis:none;--bg:#09101f;--card:#111e32;--card2:#14243b;--line:#263851;--muted:#94aac8;--accent:#78d5ff;--good:#4fdeb7;--warn:#ffb973;--red:#ff868c}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 80% -15%,#173a65 0%,transparent 50%),linear-gradient(170deg,#09101f,#0b1424 65%,#0c182a);padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.layout{width:min(1100px,calc(100% - 32px));margin:0 auto;padding:28px 0 60px}.header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:30px}.identity{display:flex;align-items:center;gap:13px}.logo{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;font-size:25px;background:linear-gradient(145deg,#193e66,#1c6580);border:1px solid #38738b;box-shadow:0 8px 30px #00102060}.brand{font-size:21px;font-weight:780;letter-spacing:-.7px}.brand small{display:block;font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0;margin-top:3px}.header-actions{display:flex;align-items:center;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;color:var(--muted);background:#12263b;border:1px solid #2a405a;border-radius:999px;padding:7px 10px;font-size:12px;white-space:nowrap}.dot{width:8px;height:8px;background:var(--good);border-radius:50%;box-shadow:0 0 0 4px #4fdeb713;display:inline-block;flex:none}.dot.off{background:var(--red);box-shadow:none}.icon-btn{border:1px solid var(--line);width:39px;height:39px;background:#15263c;color:#d4edff;border-radius:13px;display:grid;place-items:center;font-size:19px}.icon-btn:hover,.btn-secondary:hover{background:#203750}.titleline{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 19px;gap:12px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:750;color:#82bdd9}.heading{font-size:clamp(27px,4vw,37px);font-weight:780;letter-spacing:-1.3px;line-height:1.1;margin:7px 0}.desc{font-size:13px;color:var(--muted)}.btn{border:none;background:#67cfff;color:#052037;border-radius:13px;padding:11px 15px;font-size:13px;font-weight:760;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}.btn:hover{background:#8bddff}.btn-secondary{background:#172a42;color:#cce5fd;border:1px solid #304762}.btn-danger{background:#4b2030;color:#ffc4c4;border:1px solid #84364e}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.sensor{background:linear-gradient(160deg,#16273f,#111c30);border:1px solid #304158;border-radius:23px;padding:22px;position:relative;min-width:0;box-shadow:0 9px 28px #00000016;overflow:hidden}.sensor::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#3e7799,#71d2e8);opacity:.7}.sensor.stale{opacity:.77}.sensor-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.room{font-size:16px;font-weight:750;letter-spacing:-.4px;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mini-btn{background:transparent;border:0;color:#a1bbd3;font-size:20px;padding:0 3px}.status{font-size:11px;margin-top:7px;display:flex;align-items:center;gap:7px;color:#acc3d8}.temp{font-weight:780;font-size:clamp(38px,4.5vw,55px);letter-spacing:-2.8px;line-height:1.12;margin:26px 0 6px;color:#f1faff;white-space:nowrap}.temp span{font-size:24px;letter-spacing:-1px;font-weight:570;color:#b6dcf0}.spark{display:block;width:100%;height:52px;margin:4px 0 14px}.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{border:1px solid #263a54;border-radius:13px;padding:11px;background:#0d1b2d}.metric-label{font-size:11px;color:var(--muted);margin-bottom:5px}.metric-value{font-size:19px;font-weight:740;letter-spacing:-.6px}.metric-unit{font-size:11px;color:var(--muted);font-weight:500;margin-left:3px}.sensor-footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;gap:6px;margin-top:17px}.link-btn{background:transparent;border:0;color:#88d6ff;padding:0;font-size:12px;font-weight:680}.empty{min-height:310px;border:1px dashed #2e4760;background:#0e1a2c85;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;color:#c0d3e9}.empty .circle{width:55px;height:55px;background:#1a344e;border-radius:50%;display:grid;place-items:center;font-size:29px}.empty strong{font-size:16px}.empty p{margin:0;color:var(--muted);line-height:1.5;padding:0 25px;font-size:13px}.summary{margin-top:24px;border:1px solid #2a4056;border-radius:17px;background:#102136a8;padding:17px 20px;display:flex;gap:12px;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;flex-wrap:wrap}.summary strong{color:#d7efff}.footer{margin-top:20px;font-size:11px;color:#657f9f;text-align:center}.boot{height:100vh;display:grid;place-content:center;color:#d9ecff;font-size:24px;font-weight:800;text-align:center}.boot span{color:var(--muted);font-size:14px;font-weight:400;margin-top:8px}.auth-wrap{min-height:85vh;display:grid;place-items:center;padding:24px}.auth{width:min(100%,420px);border:1px solid #31445c;background:linear-gradient(155deg,#17293f,#0d182c);padding:30px;border-radius:26px;box-shadow:0 25px 75px #0007}.auth h1{font-size:25px;margin:15px 0 6px}.auth p{color:var(--muted);line-height:1.55;font-size:14px}.auth label,.form label{display:block;color:#c2d7ea;font-size:13px;margin-top:17px;margin-bottom:8px;font-weight:650}.auth input,.form input{width:100%;background:#0b182b;color:#e8f3ff;border:1px solid #34516e;border-radius:12px;padding:13px 14px;outline:none}.auth .btn{width:100%;margin-top:22px}.error{font-size:12px;color:#ffd0d0;margin-top:12px;line-height:1.45}.hint{font-size:12px;color:var(--muted);line-height:1.6}.modal-backdrop{position:fixed;inset:0;background:#030915db;z-index:20;display:flex;justify-content:center;align-items:center;padding:14px}.modal{background:linear-gradient(155deg,#15283f,#0e192d);border:1px solid #36506b;border-radius:23px;width:min(100%,520px);max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 25px 100px #0009;padding:23px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.modal h2{margin:0;font-size:21px;letter-spacing:-.5px}.modal h3{margin:15px 0 5px;font-size:15px}.modal p{color:#afc6dc;font-size:13px;line-height:1.6}.modal .btn-row{display:flex;gap:10px;margin-top:23px;flex-wrap:wrap}.modal .btn-row .btn{flex:1}.code{margin:18px 0;border-radius:16px;background:#08243a;border:1px solid #2a6586;color:#a3e5ff;text-align:center;padding:17px 10px;font-size:clamp(29px,7vw,40px);letter-spacing:5px;font-weight:820;font-variant-numeric:tabular-nums}.steps{padding-left:20px;color:#c1d3e7;font-size:13px;line-height:1.75}.steps li{margin:9px 0}.url-line{background:#091b2d;border:1px solid #28405c;overflow-wrap:anywhere;padding:10px;border-radius:10px;font-size:12px;color:#b5e7ff;margin:6px 0}.hint strong{color:#d5f0ff}.tabbar{display:flex;gap:8px;margin:16px 0 0;flex-wrap:wrap}.tab{border:1px solid #32516b;background:#12243a;color:#c1d4ec;padding:8px 13px;border-radius:12px;font-size:12px}.tab.selected{background:#3a6d85;color:#fff;border-color:#65b9d9}.chart{background:#0d1d2f;border:1px solid #2b4460;border-radius:14px;padding:12px;margin-top:12px}.chart svg{width:100%;height:230px;display:block}.chart-stats{display:flex;justify-content:space-between;color:#a6c4dd;font-size:12px;gap:12px;margin-top:8px}.preview-tag{color:var(--warn);font-size:10px;letter-spacing:.6px}.notice{padding:11px;border-radius:11px;background:#5a431a36;color:#ffe4bd;border:1px solid #88672a;font-size:12px;line-height:1.5}.info-icon{font-size:14px}.section-label{font-weight:700;font-size:14px}.noscroll{overflow:hidden}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{padding-top:18px}}@media(max-width:570px){.layout{width:calc(100% - 24px)}.header{margin-bottom:23px}.brand{font-size:18px}.brand small{font-size:11px}.chip{padding:6px 7px}.grid{grid-template-columns:1fr}.sensor{padding:20px 21px}.temp{font-size:57px;margin-top:20px}.spark{height:48px}.heading{font-size:30px}.titleline{align-items:center}.titleline>.btn{padding:10px;font-size:12px}.summary{margin-top:17px}}
