@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2)format("woff2"),url(/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2)format("woff2"),url(/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2)format("woff2"),url(/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2)format("woff2"),url(/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2)format("woff2"),url(/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2)format("woff2"),url(/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2)format("woff2"),url(/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2)format("woff2"),url(/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2)format("woff2"),url(/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#0e1318;--surface:#141b22;--surface-2:#1a2430;--surface-hover:#1f2a36;--border:#243040;--border-strong:#2b3a4c;--grid-line:#1c2631;--text:#e6edf3;--text-muted:#a9b6c4;--accent:#7cc4ff;--accent-strong:#3e8fd6;--accent-bg:#16324a;--floor-on:#173a57;--floor-off:#1a232d;--wall:#2a3746;--wall-side:#22303e;--wall-top:#3a4a5c;--air-cool:#7cc4ff;--air-heat:#ff9a5c;--air-neutral:#c9d3dd;--heat-1:#1d3e63;--heat-2:#1c4a4e;--heat-3:#353d48;--heat-4:#5a3c1a;--heat-5:#6b2620;--ok:#3fb97a;--warn:#f5c98a;--warn-bg:#2a1e12;--warn-border:#6b4a22;--danger:#ff7b72;--danger-bg:#2d1414;--radius-sm:8px;--radius:12px;--radius-lg:14px;--font-sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--lightningcss-light: ;--lightningcss-dark:initial;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-size:16px;line-height:1.5}body{min-height:100vh}h1,h2,h3,h4,p{margin:0}h1{letter-spacing:-.01em;font-size:24px;font-weight:600}h2{font-size:18px;font-weight:600}button,input,select,textarea{font:inherit;color:inherit}:focus{outline:none}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-sm)}.ui-visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mono{font-family:var(--font-mono)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.ui-button{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);min-height:44px;color:var(--text);cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-weight:600;transition:background-color .2s,border-color .2s,color .2s;display:inline-flex}.ui-button:hover:not(:disabled){background:var(--surface-hover)}.ui-button:disabled{opacity:.5;cursor:not-allowed}.ui-button--primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.ui-button--primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}.ui-button--secondary{background:var(--surface-2);border-color:var(--border-strong);color:var(--text)}.ui-button--danger{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}.ui-spinner-wrap{align-items:center;display:inline-flex}.ui-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:16px;height:16px;animation:.8s linear infinite ui-spin;display:inline-block}@keyframes ui-spin{to{transform:rotate(360deg)}}.ui-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px 20px}.ui-card--active{background:var(--accent-bg);border-color:var(--accent)}.ui-kpi{flex-direction:column;gap:4px;display:flex}.ui-kpi__label{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:12px;font-weight:500}.ui-kpi__value{font-family:var(--font-mono);color:var(--text);font-size:28px;font-weight:600;line-height:1.2}.ui-kpi__hint{color:var(--text-muted);font-size:14px}.ui-kpi__hint--warn{color:var(--warn)}.ui-section-label{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:13px;font-weight:500}.ui-chip{font-family:var(--font-mono);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;border:1px solid;border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:12px;font-weight:600;display:inline-flex}.ui-chip--active{color:var(--ok);background:var(--surface-2)}.ui-chip--paused{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-border)}.ui-chip--error{color:var(--danger);background:var(--danger-bg)}.ui-chip--disabled{color:var(--text-muted);background:var(--surface-2);border-color:var(--border)}.ui-chip--neutral{color:var(--air-neutral);background:var(--surface-2);border-color:var(--border-strong)}.ui-segmented{border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);gap:3px;padding:3px;display:inline-flex}.ui-segmented__item{min-width:44px;min-height:38px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 14px;font-weight:600;transition:background-color .2s,color .2s}.ui-segmented__item:hover:not(:disabled){color:var(--text)}.ui-segmented__item.is-selected{background:var(--ok);color:var(--bg)}.ui-segmented__item:disabled{opacity:.5;cursor:not-allowed}.ui-toggle{cursor:pointer;background:0 0;border:0;width:52px;min-width:52px;height:44px;padding:0;position:relative}.ui-toggle:before{content:"";background:var(--surface-hover);border:1px solid var(--border-strong);border-radius:999px;height:26px;transition:background-color .2s,border-color .2s;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.ui-toggle.is-on:before{background:var(--accent-strong);border-color:var(--accent)}.ui-toggle__knob{background:var(--text-muted);border-radius:50%;width:18px;height:18px;margin-top:-9px;transition:transform .2s,background-color .2s;position:absolute;top:50%;left:4px}.ui-toggle.is-on .ui-toggle__knob{background:var(--text);transform:translate(26px)}.ui-toggle:disabled{opacity:.5;cursor:not-allowed}.ui-drawer{z-index:50;background:var(--surface);border-left:1px solid var(--border);flex-direction:column;width:420px;max-width:100%;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-12px 0 32px #00000059}.ui-drawer:focus{outline:none}.ui-drawer__header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.ui-drawer__title{font-size:18px;font-weight:600}.ui-drawer__body{flex:1;padding:20px;overflow-y:auto}@media (width<=767px){.ui-drawer{border-left:0;width:100%}}.ui-toast{border-radius:var(--radius);border:1px solid var(--border-strong);background:var(--surface-2);color:var(--text);justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 16px;display:flex}.ui-toast--success{border-color:var(--ok)}.ui-toast--danger{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}.ui-toast__message{flex:1}.ui-toast__dismiss{min-height:44px;color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0 8px;font-weight:600}.shell{grid-template-columns:220px minmax(0,1fr);min-height:100vh;display:grid}.shell-nav{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:20px;height:100vh;padding:20px 16px;display:flex;position:sticky;top:0}.shell-nav__close,.shell-topbar,.shell-scrim{display:none}.shell-brand{align-items:center;gap:10px;display:flex}.shell-brand__mark{flex:none}.shell-brand__wordmark{color:var(--accent);font-size:18px;font-weight:600}.shell-links{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.shell-link{border-radius:var(--radius-sm);min-height:44px;color:var(--text-muted);align-items:center;gap:10px;padding:0 12px;font-weight:500;text-decoration:none;transition:background-color .2s,color .2s;display:flex}.shell-link:hover{background:var(--surface-hover);color:var(--text)}.shell-link[aria-current=page]{background:var(--surface-hover);color:var(--text);font-weight:600}.shell-link__label{font-size:15px}.shell-presence{margin-top:auto}.shell-account{display:flex}.shell-account .ui-button{flex:1}.shell-presence:empty,.shell-banner:empty,.shell-account:empty{display:none}.shell-main{min-width:0;padding:24px}@media (width>=768px) and (width<=1023px){.shell{grid-template-columns:72px minmax(0,1fr)}.shell-nav{align-items:stretch;gap:16px;padding:16px 8px}.shell-brand{justify-content:center}.shell-brand__wordmark{display:none}.shell-link{text-align:center;flex-direction:column;justify-content:center;gap:2px;min-height:56px;padding:6px 4px}.shell-link__label{font-family:var(--font-mono);letter-spacing:.02em;font-size:11px}.shell-presence .ui-segmented{flex-direction:column;width:100%}.shell-presence .ui-segmented__item{min-width:0;padding:0 4px;font-size:12px}.shell-main{padding:20px}}@media (width<=959px){.shell-links__desktop-only{display:none}}@media (width<=767px){.shell{grid-template-columns:minmax(0,1fr);padding-top:56px}.shell-topbar{z-index:30;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:8px;height:56px;padding:0 8px;display:flex;position:fixed;top:0;left:0;right:0}.shell-topbar__menu{border-radius:var(--radius-sm);width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.shell-topbar__menu:hover{background:var(--surface-hover)}.shell-topbar__title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:16px;font-weight:600;overflow:hidden}.shell-nav{z-index:50;border-right:1px solid var(--border);visibility:hidden;width:min(300px,85vw);height:auto;padding:16px;transition:transform .2s,visibility .2s;position:fixed;top:0;bottom:0;left:0;overflow-y:auto;transform:translate(-100%)}.shell-nav:focus{outline:none}.shell-nav--open{visibility:visible;transform:none}.shell-nav__close{border-radius:var(--radius-sm);width:44px;height:44px;color:var(--text);cursor:pointer;background:0 0;border:0;justify-content:center;align-self:flex-end;align-items:center;padding:0;display:inline-flex}.shell-nav__close:hover{background:var(--surface-hover)}.shell-scrim{z-index:40;opacity:0;visibility:hidden;background:#00000073;border:0;padding:0;transition:opacity .2s,visibility .2s;display:block;position:fixed;inset:0}.shell-scrim--open{opacity:1;visibility:visible}.shell-main{padding:16px}@media (prefers-reduced-motion:reduce){.shell-nav,.shell-scrim{transition:none}}}.page-placeholder{flex-direction:column;gap:8px;max-width:560px;padding:24px 0;display:flex}.page-placeholder__text{color:var(--text-muted)}.page-placeholder a{color:var(--accent)}.ds-page{flex-direction:column;gap:28px;display:flex}.ds-page__header{flex-direction:column;gap:4px;display:flex}.ds-section{flex-direction:column;gap:12px;display:flex}.ds-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.ds-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;display:grid}.ds-stack{flex-direction:column;gap:12px;display:flex}.ds-muted{color:var(--text-muted);font-size:14px}@media (width<=767px){.ds-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.auth-page{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;padding:24px 16px;display:flex}.auth-card{text-align:center;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:380px;display:flex}.auth-card__wordmark{color:var(--accent);font-size:24px;font-weight:600}.auth-card__title{margin:8px 0 0;font-size:20px;font-weight:600}.auth-card__text{color:var(--text-muted);margin:0}.auth-card__action{width:100%;min-height:48px}.auth-card__error{border-radius:var(--radius-sm);background:var(--danger-bg);width:100%;color:var(--danger);margin:0;padding:10px 12px;font-size:14px}.auth-card__link{color:var(--accent);font-weight:500}.dash{flex-direction:column;gap:20px;min-width:0;display:flex}.dash__alert{border-radius:var(--radius-sm);border:1px solid var(--warn-border);background:var(--warn-bg);color:var(--warn);margin:0;padding:12px 16px}.dash__main{grid-template-columns:minmax(0,1fr);align-items:start;gap:20px;display:grid}.dash__plan,.dash__devices,.dash__today{flex-direction:column;gap:12px;min-width:0;display:flex}.dash__plan-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.dash__plan-head .ui-section-label{margin:0}.dash__empty{border-radius:var(--radius);border:1px dashed var(--border-strong);flex-direction:column;align-items:flex-start;gap:12px;padding:24px;display:flex}.dash__empty .muted,.muted{color:var(--text-muted);margin:0}.kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.kpis .ui-kpi__value{font-size:28px}.device-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.device-card{text-align:left;width:100%;min-height:44px;color:var(--text);font:inherit;cursor:pointer;flex-direction:column;gap:6px;padding:14px 16px;display:flex}.device-card:hover{background:var(--surface-hover)}.device-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-card--off{color:var(--text)}.device-card__top{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.device-card__name{font-weight:600}.device-card__state{color:var(--text-muted);white-space:nowrap;font-size:14px}.device-card.ui-card--active .device-card__state{color:var(--accent)}.device-card__status{color:var(--text-muted);font-size:14px}.device-card__name{overflow-wrap:anywhere;min-width:0}.device-row{flex-direction:column;gap:6px;display:flex}.device-row__main{align-items:stretch;gap:10px;min-width:0;display:flex}.device-row__main .device-card{flex:1 1 0;width:auto;min-width:0}.device-card__power{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-hover);min-width:88px;min-height:44px;color:var(--text);font:inherit;cursor:pointer;flex:none;padding:0 14px;font-weight:600}@media (width>=768px){.device-card__power{display:none}}.device-card__power--on{background:var(--accent);border-color:var(--accent);color:var(--bg)}.device-card__power:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-card__power:disabled{opacity:.55;cursor:not-allowed}.device-card__error{color:var(--danger);margin:0;font-size:13px}.today{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);padding:16px;overflow-x:auto}.today__inner{flex-direction:column;gap:10px;min-width:560px;display:flex}.today__scale{height:16px;color:var(--text-muted);margin-left:152px;font-size:12px;position:relative}.today__scale span{position:absolute;transform:translate(-50%)}.today__row{grid-template-columns:140px minmax(0,1fr);align-items:center;gap:12px;display:grid}.today__name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.today__track{background:var(--grid-line);border-radius:6px;height:12px;position:relative}.today__block{background:var(--accent);border-radius:6px;position:absolute;top:0;bottom:0}@media (width>=1024px){.dash__main{grid-template-columns:minmax(0,1fr) 320px}}@media (width<=959px){.dash__create-plan{display:none}}@media (width<=767px){.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis .ui-kpi__value{font-size:24px}.dash__devices{order:-1}}.presence{flex-direction:column;gap:8px;display:flex}.presence--home .ui-segmented__item.is-selected{background:var(--ok);color:var(--bg)}.presence__error{color:var(--danger);margin:0;font-size:13px}.integration-banner{border-radius:var(--radius-sm);border:1px solid var(--warn-border);background:var(--warn-bg);color:var(--warn);flex-direction:column;gap:4px;padding:10px 12px;font-size:13px;text-decoration:none;display:flex}.integration-banner--danger{border-color:var(--danger);background:var(--danger-bg);color:var(--danger)}.integration-banner:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dash__environment{flex-direction:column;gap:12px;min-width:0;display:flex}.env-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.env-card{flex-direction:column;gap:6px;min-width:0;padding:14px 16px;display:flex}.env-card--offline{color:var(--text-muted)}.env-card__top{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.env-card__name{overflow-wrap:anywhere;font-weight:600}.env-card__temp{font-size:28px;font-weight:600}.env-card__meta,.env-card__status{color:var(--text-muted);font-size:14px}.env-card__warn{color:var(--warn);align-items:center;gap:4px;font-size:13px;display:inline-flex}.env-card__sensors{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.env-card__sensor{font:inherit;border-radius:var(--radius-sm);border:1px solid var(--border-strong);color:var(--text);cursor:pointer;background:0 0;padding:2px 8px;font-size:13px}.env-card__sensor:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.iso{flex-direction:column;gap:12px;min-width:0;display:flex}.iso__viewport{touch-action:none;cursor:grab;border-radius:var(--radius);border:1px solid var(--border);background-color:var(--surface);background-image:linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);background-size:32px 32px;width:100%;height:clamp(320px,62vh,640px);position:relative;overflow:hidden}.iso__viewport:active{cursor:grabbing}.iso__stage{transform-origin:0 0;position:absolute;inset:0;container-type:size}.iso__content{width:min(100cqw, calc(100cqh * var(--iso-ratio)));height:min(100cqh, calc(100cqw / var(--iso-ratio)));margin:auto;position:absolute;inset:0}.iso__svg{width:100%;height:100%;position:absolute;inset:0;overflow:visible}.iso__floor{fill:var(--floor-off);stroke:var(--wall-top);stroke-width:1.2px;stroke-linejoin:round}.iso__floor--on{fill:var(--floor-on)}.iso__floor--heat-1{fill:var(--heat-1);background:var(--heat-1)}.iso__floor--heat-2{fill:var(--heat-2);background:var(--heat-2)}.iso__floor--heat-3{fill:var(--heat-3);background:var(--heat-3)}.iso__floor--heat-4{fill:var(--heat-4);background:var(--heat-4)}.iso__floor--heat-5{fill:var(--heat-5);background:var(--heat-5)}.iso__wall{fill:var(--wall);stroke:var(--wall-top);stroke-width:1px;stroke-linejoin:round}.iso__wall--front{fill:var(--wall-side)}.iso__wall-top{fill:none;stroke:var(--air-neutral);stroke-width:1.6px;stroke-linecap:round}.iso-device__top{fill:var(--border-strong);stroke:var(--wall-top);stroke-width:.8px}.iso-device__front{fill:var(--surface-hover);stroke:var(--border-strong);stroke-width:.8px}.iso-device--on .iso-device__top{fill:var(--text-muted)}.iso-device--on .iso-device__front{fill:var(--air-neutral);stroke:var(--text)}.iso-device--offline .iso-device__front{fill:var(--surface-2)}.iso-device.is-highlighted .iso-device__front{stroke:var(--accent);stroke-width:2px}.iso-device__led{fill:var(--ok);animation:2s ease-in-out infinite iso-led-pulse}.iso-device__airflow{fill:none;stroke-width:1.6px;stroke-linecap:round;stroke-dasharray:10 14;animation:1.4s linear infinite iso-airflow}.iso-device__airflow--cool{stroke:var(--air-cool)}.iso-device__airflow--heat{stroke:var(--air-heat)}.iso-device__airflow--neutral{stroke:var(--air-neutral)}@keyframes iso-airflow{0%{stroke-dashoffset:24px;opacity:.95}to{stroke-dashoffset:0;opacity:.35}}@keyframes iso-led-pulse{0%,to{opacity:1}50%{opacity:.35}}.iso__room{pointer-events:none;white-space:nowrap;flex-direction:column;align-items:center;gap:2px;display:flex;position:absolute;transform:translate(-50%,-50%)}.iso__room-name{letter-spacing:.06em;text-transform:uppercase;color:var(--text);font-size:12px}.iso__room-temp{color:var(--text);font-size:20px;font-weight:600}.iso__legend{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);pointer-events:none;flex-direction:column;gap:8px;margin:0;padding:10px 12px;display:flex;position:absolute;top:12px;left:12px}.iso__legend-title{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:12px}.iso__legend-list{gap:6px;margin:0;padding:0;list-style:none;display:flex}.iso__legend-item{color:var(--text-muted);flex-direction:column;align-items:center;gap:4px;font-size:11px;display:flex}.iso__swatch{border:1px solid var(--border-strong);border-radius:3px;width:40px;height:12px}.iso__tag{border-radius:var(--radius-sm);white-space:nowrap;pointer-events:none;border:1px solid #0000;padding:2px 8px;font-size:13px;line-height:1.4;position:absolute;transform:translate(-50%,calc(-100% - 8px))}.iso__tag--on{background:var(--accent);color:var(--bg);font-weight:600}.iso__tag--off{background:var(--surface-hover);border-color:var(--border-strong);color:var(--air-neutral)}.iso__tag--offline{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text-muted)}.iso__hit{cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:0;min-width:44px;min-height:44px;padding:0;position:absolute}.iso__hit:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.iso__hit.is-selected{box-shadow:0 0 0 2px var(--accent)}.iso__controls{flex-wrap:wrap;align-items:center;gap:8px 16px;display:flex}.iso__control-group{flex-wrap:wrap;gap:8px;display:flex}@media (width<=640px){.iso__legend{padding:8px;top:8px;left:8px}.iso__swatch{width:28px}}@media (prefers-reduced-motion:reduce){.iso__viewport{transition:none}.iso-device__led{animation:none}.iso-device__airflow{stroke-dasharray:none;opacity:.9;marker-end:url(#iso-arrow);animation:none}}.iso__room-source{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:11px}.iso-sensor__dot{fill:var(--surface);stroke:var(--accent);stroke-width:1.5px}.iso-sensor--offline .iso-sensor__dot{stroke:var(--text-muted)}.iso-sensor-tag{border-radius:var(--radius-sm);border:1px solid var(--border-strong);pointer-events:none;white-space:nowrap;min-width:56px;color:var(--text);background:var(--surface-hover);flex-direction:column;align-items:center;gap:2px;padding:4px 8px;display:flex;position:absolute;transform:translate(-50%,-100%)}.iso-sensor-tag--button{pointer-events:auto;cursor:pointer;font:inherit}.iso-sensor-tag--button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.iso-sensor-tag--heat-1{background:var(--heat-1)}.iso-sensor-tag--heat-2{background:var(--heat-2)}.iso-sensor-tag--heat-3{background:var(--heat-3)}.iso-sensor-tag--heat-4{background:var(--heat-4)}.iso-sensor-tag--heat-5{background:var(--heat-5)}.iso-sensor-tag--offline{color:var(--text-muted);background:var(--surface);border-style:dashed}.iso-sensor-tag__temp{font-size:15px;font-weight:600}.iso-sensor-tag__humidity,.iso-sensor-tag__battery{color:var(--text-muted);font-size:12px}.admin-page{flex-direction:column;gap:16px;max-width:880px;display:flex}.admin-card{flex-direction:column;gap:12px;display:flex}.admin-card--danger{border-color:var(--danger)}.admin-muted{color:var(--text-muted);margin:0}.admin-error{color:var(--danger);margin:0}.admin-scroll{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%}.admin-table th,.admin-table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:8px 12px 8px 0}.admin-table th{color:var(--text-muted);font-weight:500}.admin-form{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.admin-field{color:var(--text-muted);flex-direction:column;gap:4px;font-size:14px;display:flex}.admin-field input,.admin-power{background:var(--surface-2);min-height:44px;color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;padding:0 12px}.admin-power{width:96px}.admin-inline{align-items:center;gap:8px;display:flex}.admin-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.admin-preview{background:var(--surface-2);border-radius:var(--radius-sm);padding:12px}.admin-counts,.admin-facts{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:0;display:grid}.admin-counts dt,.admin-facts dt{color:var(--text-muted);font-size:13px}.admin-counts dd,.admin-facts dd{margin:2px 0 0}.admin-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.admin-list li{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.admin-sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.admin-name{background:var(--surface-2);width:180px;min-width:0;max-width:100%;min-height:44px;color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:inherit;padding:0 12px}.device-drawer{flex-direction:column;gap:24px;min-width:0;display:flex}.device-drawer section{flex-direction:column;gap:12px;min-width:0;display:flex}.device-drawer .ui-section-label{margin:0}.device-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.device-tag{border-radius:var(--radius-sm);border:1px solid var(--border-strong);color:var(--text-muted);cursor:help;margin-left:6px;padding:0 6px;font-size:12px;line-height:20px;display:inline-block}.device-header{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.device-header__meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.device-header__updated{margin:0;font-size:13px}.device-rename{flex-direction:column;gap:8px;width:100%;display:flex}.device-rename__field{flex-direction:column;gap:6px;display:flex}.device-rename__label{color:var(--text-muted);font-size:13px}.device-rename__input{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);min-height:44px;color:var(--text);font:inherit;padding:0 12px}.device-rename__input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-rename__actions{flex-wrap:wrap;gap:8px;display:flex}.device-rename__error{color:var(--danger);margin:0}.device-controls{flex-direction:column;gap:20px;display:flex}.device-dial{aspect-ratio:1;width:min(248px,100%);margin:4px auto 0;position:relative}.device-dial__ring{width:100%;height:100%}.device-dial__track,.device-dial__value{fill:none;stroke-width:14px;stroke-linecap:round}.device-dial__track{stroke:var(--surface-hover)}.device-dial__value{transition:stroke-dasharray .2s,stroke .2s}.device-dial__value--off{stroke:var(--wall-top)}.device-dial__value--cool{stroke:var(--air-cool)}.device-dial__value--heat{stroke:var(--air-heat)}.device-dial__value--neutral{stroke:var(--air-neutral)}.device-dial__center{flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex;position:absolute;inset:0}.device-dial__caption{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:12px}.device-dial__target{color:var(--text);font-size:60px;font-weight:600;line-height:1}.device-dial__ambient{color:var(--text-muted);font-size:14px}.device-dial__actions{justify-content:center;align-items:center;gap:16px;display:flex}.device-round.ui-button{border-radius:28px;width:56px;min-width:56px;height:56px;padding:0;font-size:24px}.device-power.ui-button{border-radius:28px;gap:8px;height:56px;padding:0 24px}.device-power.ui-button>span{align-items:center;gap:8px;display:inline-flex}.device-power--on{background:var(--accent);border-color:var(--accent);color:var(--bg)}.device-power--off{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.device-control{flex-direction:column;gap:10px;display:flex}.device-control__head{align-items:center;gap:8px;min-height:24px;display:flex}.device-tiles{gap:8px;display:grid}.device-tiles--5{grid-template-columns:repeat(5,minmax(0,1fr))}.device-tiles--4{grid-template-columns:repeat(4,minmax(0,1fr))}.device-tiles--fan-4{grid-template-columns:repeat(5,minmax(0,1fr))}.device-tiles--fan-5{grid-template-columns:repeat(6,minmax(0,1fr))}.device-tiles--fan-6{grid-template-columns:repeat(4,minmax(0,1fr))}.device-tile{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);min-height:64px;color:var(--text-muted);font:inherit;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:8px 4px;transition:background .2s,border-color .2s,color .2s;display:flex}.device-tile:hover:not(:disabled){background:var(--surface-hover)}.device-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-tile.is-selected{background:var(--accent-bg);border-color:var(--accent);color:var(--text)}.device-tile:disabled{cursor:not-allowed;opacity:.55}.device-tile__label{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;text-align:center;font-size:12px}.device-tile__dot{background:var(--air-neutral);border-radius:50%;width:10px;height:10px}.device-tile__dot--cool{background:var(--air-cool)}.device-tile__dot--heat{background:var(--air-heat)}.device-tile__dot--auto{background:var(--ok)}.device-tile__dot--dry{background:var(--text-muted)}.device-tile__bars{align-items:flex-end;gap:3px;height:16px;display:flex}.device-tile__bar{background:var(--border-strong);border-radius:2px;width:5px}.device-tile__bar.is-lit{background:currentColor}.device-tile__bar--auto{background:currentColor;width:18px;height:3px}.device-controls__origin{margin:0;font-size:13px}@media (prefers-reduced-motion:reduce){.device-dial__value,.device-tile{transition:none}}.device-toast__retry{margin-left:8px}.device-usage-scroll{width:100%;min-width:0;overflow-x:auto}.device-usage{border-collapse:collapse;width:100%;min-width:280px}.device-usage th,.device-usage td{border-bottom:1px solid var(--border);text-align:right;padding:8px 4px}.device-usage th:first-child,.device-usage td:first-child{text-align:left}.device-usage thead th{color:var(--text-muted);letter-spacing:.06em;text-transform:uppercase;font-size:12px;font-weight:500}.device-usage__energy{white-space:nowrap}.device-usage__hint{margin:0;font-size:13px}.device-chart{flex-direction:column;gap:8px;min-width:0;display:flex}.device-chart__legend{margin:0;font-size:12px}.device-activity{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.device-activity__item{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);grid-template-columns:auto minmax(0,1fr);gap:4px 12px;padding:10px 12px;display:grid}.device-activity__time{color:var(--text-muted);font-size:13px}.device-activity__text{color:var(--text)}.device-activity__origin{grid-column:2;font-size:13px}.device-swing{flex-direction:column;gap:8px;display:flex}.device-swing__button{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);min-height:48px;color:var(--text-muted);font:inherit;cursor:pointer;align-items:center;gap:10px;padding:8px 14px;transition:background .2s,border-color .2s,color .2s;display:flex}.device-swing__button:hover:not(:disabled){background:var(--surface-hover)}.device-swing__button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.device-swing__button.is-selected{background:var(--accent-bg);border-color:var(--accent);color:var(--text)}.device-swing__button:disabled{cursor:not-allowed;opacity:.55}.device-swing__help{margin:0;font-size:12px}@media (width<=380px){.device-tiles--5{grid-template-columns:repeat(3,minmax(0,1fr))}}.sensor-drawer{flex-direction:column;gap:16px;display:flex}.sensor-drawer__status{padding:16px}.sensor-drawer__kv{grid-template-columns:max-content 1fr;gap:8px 16px;margin:12px 0 0;display:grid}.sensor-drawer__kv dt{color:var(--text-muted)}.sensor-drawer__kv dd{margin:0}.sensor-drawer__warn{color:var(--warn,inherit)}.sensor-drawer__error{margin:12px 0 0}.editor-page{flex-direction:column;gap:20px;min-width:0;padding:24px 0;display:flex}.editor-page__header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.editor-page__header h1{margin-top:4px}.editor-page__actions{flex-wrap:wrap;gap:8px;display:flex}.editor-page__dirty{color:var(--warn);font-size:13px}.editor-page__blocked,.editor-page__hint{color:var(--text-muted)}.editor-confirm{background:var(--warn-bg);border:1px solid var(--warn-border);border-radius:var(--radius-lg);flex-direction:column;gap:10px;padding:16px 20px;display:flex}.editor-confirm__title{font-size:16px}.editor-confirm__actions{flex-wrap:wrap;gap:8px;display:flex}.floor-tabs{flex-direction:column;gap:12px;display:flex}.floor-tabs__list{flex-wrap:wrap;gap:8px;display:flex}.floor-tabs__tab{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:40px;color:var(--text-muted);cursor:pointer;padding:0 14px}.floor-tabs__tab[aria-pressed=true]{background:var(--accent-bg);border-color:var(--accent);color:var(--text)}.floor-tabs__tab:disabled{opacity:.6;cursor:default}.floor-tabs__empty{color:var(--text-muted)}.floor-tabs__create,.floor-tabs__manage{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.floor-tabs__field{min-width:0;color:var(--text-muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.floor-tabs__field input{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius-sm);min-width:200px;max-width:100%;min-height:40px;color:var(--text);padding:0 12px}.floor-tabs__actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.floor-tabs__warning{color:var(--warn);flex-basis:100%;font-size:14px}.editor-body{grid-template-columns:minmax(0,1fr);gap:20px;min-width:0;display:grid}@media (width>=960px){.editor-body{grid-template-columns:minmax(0,1fr) 320px;align-items:start}.editor-page--fill{height:calc(100dvh - 48px)}.editor-page--fill .editor-body{flex:auto;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 360px;align-items:stretch;min-height:360px}.editor-page--fill .editor-main{min-height:0}.editor-page--fill .floor-canvas{flex:1 1 0;height:auto;min-height:0}.editor-page--fill .editor-side{min-height:0}}.editor-main{flex-direction:column;gap:12px;min-width:0;display:flex}.editor-toolbar{flex-wrap:wrap;align-items:center;gap:12px 16px;display:flex}.editor-toolbar__hint{color:var(--text-muted);flex:280px;font-size:13px}.floor-canvas{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);touch-action:none;width:100%;min-width:0;height:520px;position:relative;overflow:hidden}.floor-canvas canvas{display:block}.floor-canvas__drop{z-index:1;background:var(--surface);border:1px solid var(--accent);border-radius:var(--radius-sm);max-width:calc(100% - 24px);color:var(--text);white-space:nowrap;text-overflow:ellipsis;pointer-events:none;margin:0;padding:6px 12px;font-size:14px;position:absolute;top:12px;left:50%;overflow:hidden;transform:translate(-50%)}.editor-side{flex-direction:column;gap:16px;min-width:0;display:flex}.editor-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;gap:10px;min-width:0;padding:16px 18px;display:flex}.editor-panel__hint{color:var(--text-muted);font-size:13px}.editor-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.editor-list__item{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px}.editor-list__item--draggable{cursor:grab}.editor-list__row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.editor-list__select{border-radius:var(--radius-sm);min-height:36px;color:var(--text);cursor:pointer;background:0 0;border:1px solid #0000;padding:0 10px}.editor-list__select[aria-pressed=true]{background:var(--accent-bg);border-color:var(--accent)}.editor-list__name{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);min-width:0;min-height:36px;color:var(--text);flex:120px;padding:0 10px}.editor-list__label{overflow-wrap:anywhere;flex:140px;min-width:0}.editor-list__meta{color:var(--text-muted);font-size:13px}.editor-list__issue{color:var(--danger);margin-top:6px;font-size:13px}.side-tabs{flex-direction:column;flex:auto;gap:10px;min-height:0;display:flex}.side-tabs__list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex:none;gap:4px;padding:4px;display:flex}.side-tabs__tab{border-radius:var(--radius-sm);min-height:40px;color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #0000;flex:1 1 0;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:14px;display:flex}.side-tabs__tab[aria-selected=true]{background:var(--accent-bg);border-color:var(--accent);color:var(--text);font-weight:600}.side-tabs__count{font-family:var(--font-mono);color:var(--warn);font-size:12px}.side-tabs__panel{flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.history-page{flex-direction:column;gap:20px;min-width:0;display:flex}.history-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.history-head__title{margin:0;font-size:24px;font-weight:600}.history-head__range{margin:4px 0 0;font-size:14px}.history-controls{flex-wrap:wrap;align-items:center;gap:12px;min-width:0;display:flex}.history-room-select{color:var(--text-muted);align-items:center;gap:8px;font-size:14px;display:flex}.history-room-select select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-2);min-width:0;max-width:260px;min-height:44px;color:var(--text);font:inherit;padding:0 12px}.history-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.history-kpis .ui-kpi__value{overflow-wrap:anywhere;font-size:24px}@media (width>=768px){.history-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.history-kpis .ui-kpi__value{font-size:28px}}.history-tabs{border-bottom:1px solid var(--border);scrollbar-width:none;gap:4px;display:flex;overflow-x:auto}.history-tabs::-webkit-scrollbar{display:none}.history-tabs__tab{min-height:44px;color:var(--text-muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:none;padding:0 14px;font-weight:600}.history-tabs__tab:hover{color:var(--text)}.history-tabs__tab.is-selected{color:var(--text);border-bottom-color:var(--accent)}.history-tabs__tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.history-panel{min-width:0}.history-block{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);flex-direction:column;gap:12px;min-width:0;padding:16px 20px;display:flex}.history-empty,.history-note{margin:0;font-size:14px}.history-skeleton{border:1px dashed var(--border);border-radius:var(--radius-lg);background:var(--surface);place-items:center;min-height:240px;display:grid}.history-error{border:1px solid var(--danger);border-radius:var(--radius-lg);background:var(--danger-bg);flex-direction:column;align-items:flex-start;gap:12px;padding:16px 20px;display:flex}.history-error p{margin:0}.history-usage{gap:16px;min-width:0;display:grid}.history-stack{min-width:0}.history-legend{color:var(--text-muted);flex-wrap:wrap;gap:8px 16px;margin:8px 0 0;padding:0;font-size:13px;list-style:none;display:flex}.history-legend__item{align-items:center;gap:6px;display:inline-flex}.history-legend__swatch{border-radius:3px;width:12px;height:12px}.history-ranking{gap:8px;margin:0;padding:0;list-style:none;display:grid}.history-ranking__item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);flex-direction:column;gap:6px;padding:12px 14px;display:flex}.history-ranking__head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.history-ranking__name{overflow-wrap:anywhere;font-weight:600}.history-ranking__kwh{color:var(--text);white-space:nowrap;font-size:16px}.history-ranking__meta{color:var(--text-muted);flex-wrap:wrap;gap:4px 14px;font-size:13px;display:flex}.history-ranking__bar{background:var(--grid-line);border-radius:3px;height:6px;overflow:hidden}.history-ranking__bar span{background:var(--accent);height:100%;display:block}@media (width>=1024px){.history-usage{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start}}.history-temps{flex-direction:column;gap:16px;display:flex}.history-days{align-self:flex-start;align-items:center;gap:8px;display:inline-flex}.history-days__button{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-2);width:44px;height:44px;color:var(--text);cursor:pointer;place-items:center;display:grid}.history-days__button:disabled{opacity:.4;cursor:default}.history-room{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);gap:12px;min-width:0;padding:16px 20px;display:grid}.history-room__name{margin:0;font-size:16px;font-weight:600}.history-room__range{margin:2px 0 0;font-size:14px}.history-room__chart{min-width:0}.history-room__empty{text-align:center;margin:0;padding:24px 0}.history-room__usage{gap:24px;margin:0;display:flex}.history-room__usage>div{flex-direction:column;gap:2px;display:flex}.history-room__usage dt{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:12px}.history-room__usage dd{margin:0;font-size:18px;font-weight:600}@media (width>=768px){.history-room{grid-template-columns:minmax(0,1fr) 120px;align-items:start;column-gap:20px}.history-room__head{grid-column:1/-1}.history-room__usage{flex-direction:column;gap:16px}}.history-power{flex-direction:column;gap:16px;display:flex}.history-strips{flex-direction:column;gap:10px;display:flex}.history-strip-row{grid-template-columns:minmax(0,120px) minmax(0,1fr);align-items:center;gap:12px;display:grid}.history-strip-row__name{overflow-wrap:anywhere;font-size:14px}.history-strip-scale{grid-template-columns:minmax(0,120px) minmax(0,1fr);gap:12px;margin-top:4px;display:grid}.history-strip-scale>.onoff-scale{grid-column:2}.onoff-strip__track{background:var(--grid-line);border-radius:4px;height:16px;position:relative;overflow:hidden}.onoff-strip__on{background:var(--accent);position:absolute;top:0;bottom:0}.onoff-scale{color:var(--text-muted);justify-content:space-between;font-size:12px;display:flex}.history-events{gap:0;margin:0;padding:0;list-style:none;display:grid}.history-events__item{border-bottom:1px solid var(--border);grid-template-columns:96px minmax(0,1fr);gap:2px 12px;padding:10px 0;font-size:14px;display:grid}.history-events__time{color:var(--text-muted);grid-row:span 2;font-size:13px}.history-events__device{overflow-wrap:anywhere;font-weight:600}.history-events__action{color:var(--text-muted)}.history-events__action.is-on{color:var(--accent)}.history-events__origin{font-size:13px}@media (width>=768px){.history-events__item{grid-template-columns:96px minmax(0,1fr) 96px minmax(0,200px);align-items:baseline}.history-events__time{grid-row:auto}}@media (width<=767px){.history-controls{width:100%}.history-controls .ui-segmented{grid-template-columns:repeat(4,minmax(0,1fr));width:100%;display:grid}.history-controls .ui-segmented__item{min-width:0;padding:0 6px;font-size:14px}.history-room-select{justify-content:space-between;width:100%}.history-room-select select{flex:1;max-width:none}}.routines-page{flex-direction:column;gap:20px;max-width:880px;padding:24px 0;display:flex}.routines-page__header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.routines-page__title{margin:0;font-size:24px}.routines-back{color:var(--accent);font-size:14px}.routines-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.routines-item-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;gap:12px;padding:16px 20px;display:flex}.routines-item-card__top{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.routines-item-card__name{margin:0;font-size:18px;font-weight:600}.routines-item-card__name a{color:var(--text);text-decoration:none}.routines-item-card__name a:hover{text-decoration:underline}.routines-item-card__summary{color:var(--text-muted);margin:4px 0 0;font-size:15px}.routines-item-card__meta{color:var(--text-muted);margin:0;font-size:13px}.routines-item-card__controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.routines-item-card__confirm{color:var(--text);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.routines-menu{flex-wrap:wrap;gap:8px;display:flex}.routines-choice-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.routines-choice{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-lg);width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;display:flex}.routines-choice:hover{background:var(--surface-hover)}.routines-choice__title{font-weight:600}.routines-choice__text{color:var(--text-muted);font-size:14px}.routines-detail{gap:16px;display:grid}.routines-kv{grid-template-columns:max-content 1fr;gap:8px 16px;margin:0;display:grid}.routines-kv dt{color:var(--text-muted)}.routines-kv dd{margin:0}.routines-log{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.routines-log__item{border-bottom:1px solid var(--border);grid-template-columns:max-content 1fr;gap:4px 16px;padding:10px 0;display:grid}.routines-log__time{font-family:var(--font-mono);color:var(--text-muted);font-size:13px}.routines-log__detail{color:var(--text-muted);grid-column:2;margin:0;font-size:13px}.routines-form{flex-direction:column;gap:16px;display:flex}.routines-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);flex-direction:column;gap:14px;padding:16px 20px;display:flex}.routines-section-title{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin:0;font-size:13px;font-weight:500}.routines-field{flex-direction:column;gap:6px;display:flex}.routines-field__label{color:var(--text);font-size:14px;font-weight:500}.routines-input{border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface-2);min-height:44px;color:var(--text);font:inherit;padding:0 12px}.routines-input:focus-visible,.routines-day:focus-visible,.routines-choice:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.routines-input[aria-invalid=true]{border-color:var(--danger)}.routines-hint{color:var(--text-muted);margin:0;font-size:13px}.routines-field__error{color:var(--danger);margin:0;font-size:13px}.routines-summary{border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-muted);margin:0;padding:12px 16px}.routines-actions{flex-wrap:wrap;gap:12px;display:flex}.routines-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.routines-checkbox{flex-direction:column;gap:4px;display:flex}.routines-checkbox__label{cursor:pointer;align-items:center;gap:10px;min-height:44px;display:flex}.routines-checkbox__label input{width:20px;height:20px;accent-color:var(--accent)}.routines-fieldset{border:0;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.routines-fieldset legend{margin-bottom:8px;padding:0}.routines-days{flex-wrap:wrap;gap:8px;display:flex}.routines-day{border:1px solid var(--border-strong);background:var(--surface-2);width:44px;height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:50%;font-weight:600}.routines-day.is-selected{background:var(--accent);border-color:var(--accent);color:var(--bg)}.routines-intervals{flex-direction:column;gap:12px;display:flex}.routines-interval{grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;display:grid}.routines-interval .ui-button{align-self:end}.routines-ruler{flex-direction:column;gap:8px;display:flex}.routines-ruler__track{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;height:14px;position:relative}.routines-ruler__band{opacity:.85;border-radius:999px;position:absolute;top:0;bottom:0}.routines-ruler__mark{background:var(--text);width:2px;position:absolute;top:-4px;bottom:-4px;transform:translate(-1px)}.routines-ruler__caption{font-family:var(--font-mono);color:var(--text-muted);margin:0;font-size:13px}.routines-notice{border-radius:var(--radius-sm);border:1px solid var(--warn-border);background:var(--warn-bg);color:var(--text);flex-direction:column;gap:6px;padding:12px 16px;display:flex}.routines-notice--danger{border-color:var(--danger);background:var(--danger-bg)}.routines-notice__title{margin:0;font-weight:600}.routines-notice p{margin:0}.routines-list-plain{margin:0;padding-left:20px}@media (width<=767px){.routines-grid-3{grid-template-columns:1fr}.routines-interval{grid-template-columns:minmax(0,1fr)}.routines-interval .ui-button{min-height:44px}.routines-kv{grid-template-columns:1fr}.routines-log__detail{grid-column:1}}
