:root{--bg:#f4f5f1;--surface:#fff;--surface-2:#f1f3ee;--border:#e3e8df;--text:#26372f;--muted:#68746c;--accent:#436b4f;--accent-soft:#e9f0e6;--accent-contrast:#fff;--danger:#ac4d42;--danger-soft:#f9eae7;--ok:#436b4f;--ok-soft:#e9f0e6;--warn:#986727;--warn-soft:#fbf2df;--radius:20px;--shadow:0 12px 34px #29392d06;--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#151c19;--surface:#1d2721;--surface-2:#27332b;--border:#334137;--text:#e4eae3;--muted:#9ca99e;--accent:#b2d8a6;--accent-soft:#2b4432;--accent-contrast:#1d2721;--danger:#efa699;--danger-soft:#432e29;--ok:#b2d8a6;--ok-soft:#2b4432;--warn:#e4bd77;--warn-soft:#3b3426;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior:none;font:15px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}button,input,select{font:inherit;color:inherit}.app{flex-direction:column;height:100%;display:flex}.page{padding:14px 14px calc(84px + var(--safe-bottom));-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.page-title{justify-content:space-between;align-items:center;gap:10px;margin:2px 2px 14px;display:flex}.page-title h1{margin:0;font-size:22px;font-weight:700}.tabs{z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border);padding-bottom:var(--safe-bottom);background:#0f1115f0;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .28s;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs.hidden{opacity:0;pointer-events:none;transform:translateY(100%)}.tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;align-items:center;gap:3px;padding:9px 0 8px;font-size:11px;display:flex}.tabs button svg{width:23px;height:23px}.tabs button.active{color:var(--accent)}.btn{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;white-space:nowrap;border-radius:11px;justify-content:center;align-items:center;gap:7px;padding:9px 14px;font-size:14px;font-weight:600;display:inline-flex}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.danger{background:var(--danger-soft);color:var(--danger);border-color:#0000}.btn.ok{background:var(--ok-soft);color:var(--ok);border-color:#0000}.btn.ghost{background:0 0}.btn.sm{border-radius:9px;padding:6px 10px;font-size:13px}.btn.block{width:100%}.btn svg{width:18px;height:18px}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.end{justify-content:flex-end}.grow{flex:1}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.card+.card{margin-top:12px}.card h2{margin:0 0 12px;font-size:16px}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--danger);font-size:14px}.field{flex-direction:column;gap:5px;margin-bottom:12px;display:flex}.field label{color:var(--muted);font-size:13px}.input,select.input{background:var(--bg);border:1px solid var(--border);border-radius:10px;outline:none;width:100%;padding:10px 12px}.input:focus{border-color:var(--accent)}.switch{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.switch+.switch{border-top:1px solid var(--border)}.switch input{display:none}.switch .track{background:var(--surface-2);border:1px solid var(--border);border-radius:14px;flex:none;width:46px;height:28px;transition:background .2s;position:relative}.switch .track:after{content:"";background:var(--muted);border-radius:50%;width:20px;height:20px;transition:transform .2s,background .2s;position:absolute;top:3px;left:3px}.switch input:checked+.track{background:var(--accent);border-color:var(--accent)}.switch input:checked+.track:after{background:#fff;transform:translate(18px)}.badge{white-space:nowrap;border-radius:20px;align-items:center;gap:5px;padding:3px 8px;font-size:12px;font-weight:600;display:inline-flex}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.off{background:var(--surface-2);color:var(--muted)}.badge.warn{background:var(--warn-soft);color:var(--warn)}.badge.danger{background:var(--danger-soft);color:var(--danger)}.badge.accent{background:var(--accent-soft);color:var(--accent)}.dot{background:currentColor;border-radius:50%;width:7px;height:7px}.subnav{padding:10px 14px 0}.subnav .segmented{margin-bottom:0}.sensor-grid{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=700px){.sensor-grid{grid-template-columns:1fr 1fr}}.comfort-grades{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.light-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.light-toggle{border:1px solid var(--border);background:var(--surface-2);width:62px;height:62px;color:var(--muted);cursor:pointer;border-radius:50%;flex:none;justify-content:center;align-items:center;transition:background .2s,color .2s,box-shadow .2s,border-color .2s;display:inline-flex}.light-toggle svg{width:27px;height:27px}.light-toggle.on{color:#3a2400;background:#ffb547;border-color:#ffb547;box-shadow:0 0 24px #ffb54773}.lit-text{color:#ffb547}.card.tappable{cursor:pointer;transition:border-color .15s}.card.tappable:active{border-color:var(--accent)}.spinner.sm{border-width:2px;width:18px;height:18px}.cloud-banner{background:var(--warn-soft);color:var(--warn);border-radius:12px;margin-bottom:12px;padding:10px 12px;font-size:13px;font-weight:600}.chart-wrap{margin-top:18px;position:relative}.chart-tip{background:var(--surface);color:var(--text);border:1px solid var(--border);white-space:nowrap;pointer-events:none;z-index:2;border-radius:8px;padding:3px 8px;font-size:12px;position:absolute;top:0;transform:translate(-50%,-115%);box-shadow:0 4px 14px #0000001f}.chart{touch-action:manipulation;cursor:crosshair;width:100%;height:130px;display:block}.chart-cursor{stroke:var(--text);stroke-width:1px;opacity:.45;vector-effect:non-scaling-stroke}.chart-dot{fill:var(--text)}.chart-legend{color:var(--muted);gap:14px;margin-top:4px;font-size:12px;display:flex}.chart-legend .swatch{vertical-align:middle;border-radius:2px;width:14px;height:3px;margin-right:5px;display:inline-block}.chart-legend .swatch.off{background:#2f6fbb}.chart-legend .swatch.on{background:#c23b3b}.site-model{border-radius:var(--radius);border:1px solid var(--border);background:#d7ddd0;height:min(70vh,560px);min-height:360px;margin:4px 0 14px;position:relative;overflow:hidden}.site-model canvas{touch-action:none;cursor:grab;width:100%;height:100%;display:block}.site-model canvas:active{cursor:grabbing}.site-model-labels{pointer-events:none;position:absolute;inset:0}.site-model-label{pointer-events:auto;color:#1d2721;box-shadow:inset 0 0 0 2px var(--cam,#2b6cb0), 0 1px 4px #0000002e;background:#ffffffeb;border:0;border-radius:999px;padding:3px 8px;font:600 12px/1.2 inherit;position:absolute;transform:translate(-50%,-130%)}.site-model-label.armed{background:var(--cam,#2b6cb0);color:#fff}.site-model-label.offline{color:#fff;background:#ac4d42;box-shadow:0 1px 4px #0000002e}.chart-grid{stroke:var(--border);stroke-width:1px;vector-effect:non-scaling-stroke}.chart-label{fill:var(--muted);font-size:10px}.chart-band{fill:var(--ok-soft)}.chart-title{color:var(--muted);margin:12px 0 4px;font-size:13px;font-weight:600}.chart-empty{justify-content:center;align-items:center;height:80px;display:flex}.home-summary{gap:8px;margin-bottom:10px;display:flex;overflow-x:auto}.home-tile{background:var(--surface-2);border:1px solid var(--border);color:var(--text);white-space:nowrap;border-radius:11px;align-items:center;gap:7px;padding:8px 12px;font-family:inherit;font-size:13px;font-weight:600;display:inline-flex}button.home-tile{cursor:pointer}.home-tile svg{width:17px;height:17px;color:var(--muted);flex:none}.home-tile.ok svg{color:var(--ok)}.home-tile.lit svg{color:#ffb547}.light-toggle:disabled{opacity:.45;cursor:default}.room-title{color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin:18px 2px 10px;font-size:14px;font-weight:700}.room-title:first-child{margin-top:0}.sensor-head{align-items:center;gap:10px;display:flex}.sensor-head .main{flex:1;min-width:0}.sensor-head .t{font-weight:700}.sensor-vals{align-items:baseline;gap:18px;margin-top:12px;display:flex}.sensor-val{font-size:26px;font-weight:700}.sensor-val small{color:var(--muted);font-size:14px;font-weight:600}.sensor-vals .muted{margin-left:auto}.weather-plate{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:10px 14px;display:flex}.weather-plate .w-left{align-items:center;gap:10px;min-width:0;display:flex}.weather-plate .w-temp{font-size:26px;font-weight:700}.weather-plate .w-cond{font-size:14px}.weather-plate .w-details{text-align:right}.arm-bar{align-items:center;gap:10px;margin-bottom:14px;display:flex}.cam-grid{grid-template-columns:1fr;gap:12px;display:grid}@media (width>=700px){.cam-grid{grid-template-columns:1fr 1fr}}@media (width>=1200px){.cam-grid{grid-template-columns:1fr 1fr 1fr}}.cam-tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.cam-video{aspect-ratio:16/9;cursor:pointer;background:#000;position:relative}.cam-video live-video,.cam-video video,.cam-video img{width:100%;height:100%;display:block;position:absolute;inset:0}.cam-video .overlay{color:var(--muted);pointer-events:none;justify-content:center;align-items:center;font-size:13px;display:flex;position:absolute;inset:0}.snapshot-tile{cursor:pointer;background:#000;border:0;padding:0;position:absolute;inset:0}.snapshot-tile img{object-fit:contain}.snapshot-play{color:#fff;background:#000a;border-radius:50%;place-items:center;width:36px;height:36px;display:grid;position:absolute;bottom:10px;right:10px}.snapshot-play svg{width:18px;height:18px}.cam-meta{align-items:center;gap:10px;padding:10px 12px;display:flex}.cam-meta .name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.spinner{border:3px solid #ffffff26;border-top-color:var(--accent);border-radius:50%;width:26px;height:26px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.viewer{z-index:50;background:#000;flex-direction:column;animation:.25s ease-out viewer-in;display:flex;position:fixed;inset:0}@keyframes viewer-in{0%{opacity:0;transform:scale(.97)}}.zoom-pane{touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.zoom-inner{transform-origin:0 0;will-change:transform;position:absolute;inset:0}.zoom-inner.animate{transition:transform .22s ease-out}.zoom-badge{z-index:3;color:#fff;cursor:pointer;background:#0009;border:0;border-radius:20px;padding:6px 12px;font-size:13px;font-weight:600;position:absolute;top:64px;left:50%;transform:translate(-50%)}.cam-offline{text-align:center;color:var(--danger);pointer-events:none;background:#0f1115c7;justify-content:center;align-items:center;padding:12px;font-size:14px;font-weight:600;display:flex;position:absolute;inset:0}.viewer-top{padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px;z-index:2;background:linear-gradient(#000c,#0000);align-items:center;gap:10px;display:flex;position:absolute;top:0;left:0;right:0}.viewer-top .title{flex:1;font-weight:600}.viewer-body{flex:1;position:relative}.viewer-body live-video,.viewer-body video{width:100%;height:100%;position:absolute;inset:0}.viewer-bottom{padding:12px 12px calc(12px + var(--safe-bottom));z-index:2;background:linear-gradient(#0000,#000c);flex-wrap:wrap;justify-content:center;gap:8px;display:flex;position:absolute;bottom:0;left:0;right:0}.icon-btn{cursor:pointer;background:#ffffff1f;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.icon-btn svg{width:22px;height:22px}.sort-btns{flex-direction:column;flex:none;gap:2px;display:inline-flex}.sort-btns button{border:1px solid var(--border);background:var(--surface);width:26px;height:20px;color:var(--text);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex}.sort-btns button svg{width:14px;height:14px}.sort-btns button:disabled{opacity:.3;cursor:default}.chips{scrollbar-width:none;gap:8px;margin-bottom:12px;padding-bottom:4px;display:flex;overflow-x:auto}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:20px;flex:none;padding:6px 12px;font-size:13px}.chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.event{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;gap:12px;padding:10px;display:flex}.event+.event{margin-top:10px}.event img,.event .noimg{object-fit:cover;background:#000;border-radius:9px;flex:none;width:116px;height:70px}.event .info{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.event .title{font-weight:600}.sheet-backdrop{z-index:60;background:#0009;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;width:100%;max-width:720px;max-height:92dvh;padding:16px 16px calc(16px + var(--safe-bottom));border-radius:18px 18px 0 0;overflow-y:auto}.sheet .row.end{bottom:calc(-16px - var(--safe-bottom));margin:10px -16px calc(-16px - var(--safe-bottom));padding:10px 16px calc(10px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--border);position:sticky}.sheet-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.sheet-head h2{margin:0;font-size:18px}.media{background:#000;border-radius:12px;width:100%;display:block}.zones-preview{background:#000;border-radius:12px;margin-bottom:8px;position:relative;overflow:hidden}.zones-preview img{aspect-ratio:16/9;object-fit:fill;width:100%;display:block}.zones-preview.drawing{touch-action:none;cursor:crosshair}.zones-svg{width:100%;height:100%;position:absolute;inset:0}.excl-poly{fill:#f5a52433;stroke:var(--warn,#f5a524);stroke-width:2px;vector-effect:non-scaling-stroke}.excl-poly.draft{stroke-dasharray:6 4}.excl-dot{fill:#fff;stroke:var(--warn,#f5a524);stroke-width:1.5px;vector-effect:non-scaling-stroke}.zone-box{border:2px solid var(--warn,#f5a524);color:#fff;box-sizing:border-box;background:#f5a5242e;padding:1px 4px;font-size:11px;line-height:1.2;position:absolute}.zone-row{border-bottom:1px solid var(--border);align-items:center;padding:6px 0}.btn.small{padding:5px 10px;font-size:13px}.timeline{background:var(--surface-2);cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:10px;height:54px;position:relative;overflow:hidden}.timeline .rec{background:#4f8cff73;position:absolute;top:18px;bottom:18px}.timeline .ev{background:var(--muted);border-radius:2px;width:3px;margin-left:-1px;position:absolute;top:8px;bottom:8px}.timeline .ev.alarm{background:var(--danger)}.timeline .cursor{background:#fff;width:2px;margin-left:-1px;position:absolute;top:0;bottom:0;box-shadow:0 0 6px #000}.timeline-hours{color:var(--muted);justify-content:space-between;margin-top:4px;padding:0 2px;font-size:11px;display:flex}.player-wrap{aspect-ratio:16/9;background:#000;border-radius:12px;max-width:106.667vh;margin:0 auto 12px;position:relative;overflow:hidden}.player-wrap .archive-player{position:absolute;inset:0}.player-wrap video{width:100%;height:100%;display:block}.player-wrap .overlay{color:var(--muted);pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.zoom-row{align-items:center;gap:8px;margin-top:10px;display:flex}.list-item{cursor:pointer;align-items:center;gap:12px;padding:12px 0;display:flex}.list-item+.list-item{border-top:1px solid var(--border)}.list-item .main{flex:1;min-width:0}.list-item .main .t{font-weight:600}.list-item .chev{color:var(--muted)}.segmented{background:var(--surface-2);border-radius:11px;gap:3px;margin-bottom:14px;padding:3px;display:flex;overflow-x:auto}.segmented button{cursor:pointer;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;flex:1;padding:8px 10px;font-size:13px;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text)}.days{flex-wrap:wrap;gap:5px;display:flex}.days button{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:9px;width:38px;height:34px;font-size:13px}.days button.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.class-row{grid-template-columns:1fr 1fr auto auto;align-items:center;gap:8px;margin-bottom:8px;display:grid}.stat-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.stat{background:var(--bg);border-radius:10px;padding:10px 12px}.stat .v{font-size:18px;font-weight:700}.center{justify-content:center;align-items:center;min-height:100%;padding:24px;display:flex}.login{width:100%;max-width:360px}.login .logo{width:56px;height:56px;margin:0 auto 14px;display:block}.login h1{text-align:center;margin:0 0 6px;font-size:22px}.empty{text-align:center;color:var(--muted);padding:40px 10px}.toast{left:50%;bottom:calc(90px + var(--safe-bottom));background:var(--text);color:var(--surface);z-index:100;border-radius:12px;max-width:90vw;padding:12px 20px;font-size:13px;position:fixed;transform:translate(-50%);box-shadow:0 6px 24px #0003}body{font-size:14px;line-height:1.55}button{cursor:pointer}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button:disabled{cursor:default}button,.card,.sheet,.house-content{overflow-wrap:anywhere}.btn{background:var(--surface);min-height:42px;font-size:12px;font-weight:550}.btn.sm{min-height:36px;font-size:12px}.btn.primary{color:var(--accent-contrast)}.card{box-shadow:var(--shadow);min-width:0;padding:23px}.card h2{letter-spacing:-.3px;font-size:18px;font-weight:600}.badge{border-radius:6px;font-size:11px;font-weight:550}.icon-btn{background:var(--surface-2)}.light-toggle.on{background:var(--warn-soft);color:var(--warn);border-color:var(--warn);box-shadow:none}.lit-text,.home-tile.lit svg{color:var(--warn)}.light-row .main{min-width:0}.light-row .t{font-size:16px;font-weight:600}.sensor-grid>.card+.card{margin-top:0}.sensor-val{font-weight:500}.sensor-vals{flex-wrap:wrap}.spinner{border-color:var(--border);border-top-color:var(--accent)}.segmented button{min-height:38px}.switch{position:relative}.switch input{opacity:0;width:1px;height:1px;display:block;position:absolute}.switch input:focus-visible+.track{outline:3px solid var(--accent);outline-offset:3px}.switch input:disabled+.track{opacity:.45}.switch:has(input:disabled){cursor:default}.switch input:checked+.track:after{background:var(--accent-contrast)}.input,select.input{min-width:0;max-width:100%}.house-shell{grid-template-columns:228px minmax(0,1fr);max-width:1920px;min-height:100%;margin:0 auto;display:grid}.house-sidebar{border-right:1px solid var(--border);background:var(--surface);flex-direction:column;align-self:start;gap:40px;min-height:100dvh;padding:32px 22px;display:flex;position:sticky;top:0}.house-brand{align-items:center;gap:12px;display:flex}.house-brand-mark{background:var(--accent);width:43px;height:43px;color:var(--accent-contrast);border-radius:14px;flex:none;place-items:center;display:grid}.house-brand-mark svg{width:23px;height:23px}.house-brand strong{letter-spacing:-.7px;font-size:19px;font-weight:650;display:block}.house-brand small{color:var(--muted);letter-spacing:1px;font-size:9px;display:block}.house-nav{flex-direction:column;gap:7px;display:flex}.house-nav button{width:100%;min-height:47px;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:11px;align-items:center;gap:13px;padding:13px 14px;font-size:13px;display:flex}.house-nav button.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.house-nav button:hover{background:var(--surface-2)}.house-nav svg,.house-mobile-nav svg{stroke-width:1.7px;flex:none;width:21px;height:21px}.house-side-bottom{margin-top:auto;padding-top:80px}.house-side-note{color:var(--muted);border:1px solid var(--border);border-radius:13px;padding:15px;font-size:12px;line-height:1.7}.house-user{text-align:left;background:0 0;border:0;align-items:center;gap:10px;max-width:100%;margin-top:20px;padding:0;display:flex}.house-user>span:last-child{min-width:0}.house-user strong,.house-user small{font-size:12px;display:block}.house-user small{color:var(--muted);font-size:11px}.house-avatar{background:var(--surface-2);border-radius:50%;flex:none;place-items:center;width:34px;height:34px;font-size:11px;font-weight:600;display:grid}.house-workspace{min-width:0}.house-topbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:14px;height:82px;padding:0 42px;display:flex}.house-breadcrumb{color:var(--muted);align-items:center;gap:12px;min-width:0;font-size:12px;display:flex}.house-breadcrumb b{color:var(--text);font-weight:500}.house-top-actions{flex:none;align-items:center;gap:20px;display:flex}.house-date{color:var(--muted);font-size:12px}.house-icon-button{background:var(--surface);border:1px solid var(--border);border-radius:11px;place-items:center;width:40px;height:40px;display:grid}.house-icon-button svg{width:20px;height:20px}.house-content{min-width:0;max-width:1440px;margin:0 auto;padding:34px 42px 38px}.house-content .page{padding:0;overflow:visible}.house-content .page-title{margin:0 0 24px}.house-content .page-title h1{letter-spacing:-1px;font-size:30px;font-weight:600}.house-page-head{justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px;display:flex}.house-page-head h1{letter-spacing:-1.2px;margin:0;font-size:32px;font-weight:600;line-height:1.2}.house-page-head p{color:var(--muted);margin:10px 0 0;font-size:13px}.house-eyebrow{color:var(--muted);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:9px;font-size:10px;font-weight:650}.house-page-intro{color:var(--muted);margin:-12px 0 24px;font-size:13px}.house-security-tabs{max-width:430px;margin-bottom:24px}.house-security-tabs~.page>.page-title{display:none}.house-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px;display:grid}.house-stat{text-align:left;flex-direction:column;width:100%;padding:20px;display:flex}.house-stats>.card+.card{margin:0}.house-stat:hover{border-color:var(--accent)}.house-stat-top{width:100%;color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin-bottom:22px;font-size:12px;display:flex}.house-stat-top svg{width:21px;height:21px;color:var(--accent);flex:none}.house-stat-value{letter-spacing:-.8px;margin-bottom:11px;font-size:25px;font-weight:550;line-height:1.2}.house-stat-value small{letter-spacing:0;font-size:13px;font-weight:400}.house-stat-note{color:var(--muted);flex-direction:column;gap:4px;margin-top:auto;font-size:11px;display:flex}.house-main-grid{grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:22px;display:grid}.house-stack{flex-direction:column;gap:22px;min-width:0;display:flex}.house-stack>.card+.card{margin-top:0}.house-card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;display:flex}.house-card-head h2{letter-spacing:-.3px;margin:0;font-size:18px;font-weight:600}.house-card-head p{color:var(--muted);margin:5px 0 0;font-size:11px}.house-link{color:var(--accent);text-align:left;background:0 0;border:0;min-height:36px;padding:6px 0;font-size:12px}.house-link:disabled{opacity:.5}.house-metrics{flex-wrap:wrap;gap:32px;margin-bottom:20px;display:flex}.house-metrics strong{letter-spacing:-1px;font-size:32px;font-weight:500;line-height:1.25;display:block}.house-metrics small{color:var(--muted);letter-spacing:0;font-size:15px;font-weight:400}.house-metrics span{color:var(--muted);font-size:11px}.house-climate .chart{height:180px}.house-chart-foot{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:14px;font-size:11px;display:flex}.house-climate .weather-plate{background:var(--surface-2);box-shadow:none;border:0;border-radius:12px;margin:20px 0 0;padding:15px 18px}.house-climate .w-details{font-size:11px}.house-notice,.house-attention{background:var(--warn-soft);color:var(--warn);border:1px solid color-mix(in srgb, var(--warn) 20%, transparent);border-radius:12px;margin-bottom:23px;padding:15px 18px;font-size:12px}.house-notice{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.house-notice>div{flex:1;min-width:150px}.house-attention .house-card-head{margin-bottom:8px}.house-attention h2{font-size:13px}.house-attention ul{margin:0;padding:0;list-style:none}.house-attention li{justify-content:space-between;align-items:center;gap:16px;display:flex}.house-attention .house-link{color:var(--warn);white-space:nowrap}.house-inline-error{color:var(--danger);margin:10px 0;font-size:12px}.house-inline-error .house-link{display:block}.house-stale{color:var(--warn);font-size:11px}.house-footnote{color:var(--muted);margin:16px 0 0;font-size:11px;line-height:1.65}.house-scene-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.house-scene{background:var(--surface-2);color:var(--accent);border:1px solid #0000;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-width:0;padding:17px 6px;display:flex}.house-scene svg{stroke-width:1.7px;width:22px;height:22px}.house-scene strong{font-size:12px;font-weight:550}.house-scene span{color:var(--muted);font-size:10px}.house-scene:hover:not(:disabled){border-color:var(--accent)}.house-scene:disabled{opacity:.5}.house-last-run{border-top:1px solid var(--border);margin:16px 0 0;padding-top:16px;font-size:12px}.house-last-run span{color:var(--muted);font-size:11px}.house-scenario-description{white-space:pre-line;font-size:15px;line-height:1.7}.house-heating>.house-boiler-card{box-shadow:none;background:0 0;border:0;padding:0}.house-boiler-card .t{font-weight:600}.house-boiler-card .main>p{margin:5px 0}.house-heating .light-row{align-items:flex-start}.house-heating .light-toggle{border-radius:14px;width:52px;height:52px}.house-heating .light-row .small{font-size:16px}.house-history-entry{border:0;border-bottom:1px solid var(--border);text-align:left;background:0 0;align-items:center;gap:12px;width:100%;padding:14px 0;display:flex}.house-history-entry:last-child{border-bottom:0}.house-history-entry:hover .house-history-copy strong{color:var(--accent)}.house-history-copy{flex:1;min-width:0}.house-history-copy strong{font-size:13px;font-weight:550;display:block}.house-history-copy small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.house-activity-icon{background:var(--surface-2);width:32px;height:32px;color:var(--accent);border-radius:10px;flex:none;place-items:center;display:grid}.house-activity-icon svg{width:17px;height:17px}.house-run-steps{margin:18px 0;padding:0;list-style:none}.house-run-steps li{border-bottom:1px solid var(--border);padding:14px 0}.house-run-steps strong{font-size:14px}.house-run-steps p{color:var(--muted);white-space:pre-line;margin:7px 0 0;font-size:12px}.house-light-list>div{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 0;display:flex}.house-light-list>div:last-child{border-bottom:0}.house-light-list strong{font-size:12px;font-weight:550;display:block}.house-light-list small{color:var(--muted);font-size:11px;display:block}.house-footer{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin-top:30px;padding-top:17px;font-size:10px;display:flex}.house-mobile-nav{display:none}.cam-grid{gap:20px}.cam-meta{flex-wrap:wrap;gap:8px;padding:16px}.cam-meta .name{white-space:normal;flex-basis:100%;font-size:14px}.cam-meta .icon-btn{margin-left:auto}.cam-meta .icon-btn+.icon-btn{margin-left:0}.sheet-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#15241d80}.sheet{border:1px solid var(--border)}.sheet .row.end{flex-wrap:wrap}.sheet-head{align-items:flex-start}.sheet-head .icon-btn{flex:none}.viewer,.cam-video,.player-wrap,.media,.zones-preview{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--text:#f3f5f1;--muted:#c1cbc4;--accent:#b2d8a6;--accent-contrast:#1d2721;--surface:#1d2721;--surface-2:#27332b;--border:#536158;--ok:#b2d8a6;--ok-soft:#2b4432;--danger:#efa699;--danger-soft:#432e29;--warn:#e4bd77;color:#f3f5f1}.viewer .btn,.viewer .icon-btn{color:#f3f5f1;background:#1d2721dd;border-color:#536158}.viewer .btn.ok{color:#b2d8a6}.viewer .btn.danger{color:#efa699}.timeline .rec{background:color-mix(in srgb, var(--accent) 50%, transparent)}.timeline .cursor{background:var(--text);box-shadow:0 0 4px var(--surface)}@media (width>=700px){.sheet-backdrop{align-items:center;padding:24px}.sheet{border-radius:23px;padding:24px}.sheet .row.end{margin:20px -24px -24px;padding:16px 24px;bottom:-24px}}@media (width>=1200px){.house-content .cam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1150px){.house-shell{grid-template-columns:190px minmax(0,1fr)}.house-sidebar{padding:25px 15px}.house-brand{gap:8px}.house-brand-mark{width:36px;height:36px}.house-brand strong{font-size:18px}.house-content{padding:28px}.house-topbar{padding:0 28px}.house-stat{padding:16px}.house-stat-value{font-size:23px}.house-main-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}}@media (width<=1000px){.house-main-grid{grid-template-columns:1fr}.house-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.house-date{display:none}}@media (width<=700px){.house-shell{display:block}.house-sidebar{display:none}.house-topbar{height:calc(64px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 18px 0}.house-content{padding:24px 18px calc(100px + var(--safe-bottom))}.house-page-head{flex-wrap:wrap;align-items:flex-start;gap:14px;margin-bottom:23px}.house-page-head h1,.house-content .page-title h1{font-size:27px}.house-page-head>.btn{padding:8px 12px;font-size:11px}.house-stats{gap:10px}.house-stat-top{margin-bottom:20px;font-size:11px}.card{padding:19px}.house-stat{padding:16px}.house-stat-value{font-size:23px}.house-stat-value small{font-size:12px}.house-stack,.house-main-grid{gap:18px}.house-mobile-nav{background:var(--surface);border-top:1px solid var(--border);padding:8px 4px calc(8px + var(--safe-bottom));z-index:20;justify-content:space-around;align-items:stretch;display:flex;position:fixed;bottom:0;left:0;right:0}.house-mobile-nav button{min-width:0;min-height:52px;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:5px;padding:3px 1px;font-size:12px;display:flex}.input,select.input,textarea.input{font-size:16px}.icon-btn{width:44px;height:44px}.btn.sm{min-height:44px}.house-mobile-nav button.active{color:var(--accent);font-weight:650}.house-mobile-nav button span{max-width:100%}.house-mobile-nav svg{width:20px;height:20px}.house-notice,.house-attention{padding:13px}.house-attention li{flex-wrap:wrap;gap:0 8px;margin-top:8px}.house-attention li span{flex:1;min-width:155px}.house-footer{align-items:flex-start}.house-climate .chart{height:150px}.house-chart-foot{font-size:10px}.house-history-entry{grid-template-columns:28px minmax(0,1fr);gap:8px 10px;display:grid}.house-history-entry>.badge{grid-column:2;justify-self:start}.house-activity-icon{width:28px;height:28px}.house-light-list>div{flex-wrap:wrap;gap:8px}.event{gap:10px}.event img,.event .noimg{width:90px;height:65px}.event .title{font-size:13px}.event .small{font-size:11px}.event .row{gap:4px}.class-row{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding-bottom:12px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{overflow-wrap:anywhere}.weather-plate .w-details{text-align:left}.arm-bar{flex-wrap:wrap}.sheet .badge{white-space:normal}}@media (width<=360px){.house-content{padding-left:12px;padding-right:12px}.house-topbar{padding:env(safe-area-inset-top,0px) 12px 0}.house-breadcrumb{gap:8px;font-size:11px}.house-mobile-nav button{font-size:11px}.house-stat{padding:13px}.house-stat-value{font-size:21px}.house-stat-top{gap:4px;font-size:10px}.house-stat-top svg{width:18px;height:18px}.house-scene-grid{gap:6px}.house-card-head h2{font-size:17px}.event img,.event .noimg{width:74px;height:60px}.sheet{padding-left:12px;padding-right:12px}.sheet .row.end{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.sheet .row.end .btn{white-space:normal}.list-item{gap:8px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
