:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233a35;background:#f5f5ee;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.topbar{height:96px;padding:0 7%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dedfd5;background:#fafaf5}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:23px;font-weight:750;letter-spacing:1px}.mark{display:grid;place-items:center;background:#294a3f;color:white;border-radius:12px;width:39px;height:39px;font-size:23px}.brand-detail{font-size:9px;max-width:100px;line-height:1.6;letter-spacing:1.6px;border-left:1px solid #d9ddd4;padding-left:12px;margin-left:5px}.button{border:1px solid #294a3f;border-radius:24px;background:#294a3f;color:#fff;padding:11px 24px;font:inherit;font-size:13px;cursor:pointer}.button:hover{background:#40634f}.button:disabled{opacity:.5;cursor:default}.button:focus-visible,a:focus-visible{outline:3px solid #b37722;outline-offset:4px}main{max-width:1040px;margin:64px auto 80px;padding:0 32px}.eyebrow{color:#6b7a61;font-size:10px;letter-spacing:2.2px;font-weight:750}h1{font-family:Georgia,serif;font-size:clamp(34px,5vw,52px);line-height:1.16;font-weight:400;letter-spacing:-1.5px;margin:15px 0}.intro{color:#63746d;font-size:16px;line-height:1.7;margin:0 0 30px}.notice{font-size:13px;padding:13px 17px;border-radius:9px;background:#e9eee3;line-height:1.6;color:#395642}.notice.error{background:#f4e7d3;color:#795019}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 17px;gap:15px}h2{font-size:20px;font-weight:600;letter-spacing:-.4px;margin:0}.tag{font-size:9px;letter-spacing:1.6px;color:#67756b;font-weight:700}.device-card{max-width:520px;background:#fffef9;border:1px solid #dedfd3;border-radius:19px;padding:30px 32px;box-shadow:0 5px 15px #293d3010}.device-heading{display:flex;align-items:center;justify-content:space-between}.bulb{display:grid;place-items:center;border-radius:15px;width:62px;height:62px;background:#e9ece5;color:#677769}.bulb svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.device-card[data-state=on] .bulb{background:#fff0bf;color:#92631a}.device-card[data-state=on]{border-color:#d8d6b9}.device-card h3{font-size:22px;margin:27px 0 22px;letter-spacing:-.5px;overflow-wrap:anywhere}.state-caption{color:#788378;font-size:12px;margin:0 0 6px}.state{font-size:38px;letter-spacing:-1px;font-weight:550;line-height:1.15}.device-card[data-state=waiting] .state{font-size:25px}.reading-help{color:#68766b;font-size:13px;line-height:1.6;margin:13px 0 20px}.rule{height:1px;background:#e8e9df}dl{margin:19px 0 0;font-size:11px;color:#788176}dl div{display:flex;justify-content:space-between;gap:16px;margin-top:12px}dd{margin:0;color:#354b3c;text-align:right;font-variant-numeric:tabular-nums}.context-note{display:flex;gap:12px;margin-top:25px;max-width:570px;color:#778172;font-size:12px;line-height:1.8}.context-note p{margin:0}.context-note strong{font-weight:600;color:#546650}.info-icon{border:1px solid #9aa591;border-radius:50%;width:17px;height:17px;display:grid;place-items:center;flex-shrink:0;margin-top:3px;font-family:Georgia,serif}.checked{font-size:11px;color:#7f887b;margin-top:22px}.welcome{text-align:center;padding:60px 24px;background:#efefe6;border-radius:18px;margin-top:25px}.welcome-icon{font-size:56px;color:#85947a}.welcome h2{font-family:Georgia,serif;font-size:27px;margin:10px}.welcome p{color:#6d7b69;font-size:14px;line-height:1.7}footer{max-width:976px;margin:0 auto;padding:26px 0;border-top:1px solid #dedfd5;font-size:12px;font-weight:650;display:flex;justify-content:space-between;color:#697963}footer span{font-size:11px;font-weight:400}[hidden]{display:none!important}@media(max-width:600px){.topbar{height:78px;padding:0 24px}.brand-detail{display:none}main{margin:40px auto 48px;padding:0 22px}.device-card{padding:25px 24px}.section-heading .tag{font-size:8px}footer{margin:0 22px;gap:20px}dl div{flex-direction:column;gap:5px}dd{text-align:left}.state{font-size:34px}}

/* Approximate room plan shared by customer and admin. */
#home-plan:not(:empty){margin-top:32px}.floor-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.floor-tabs button[aria-pressed=true]{background:#173b5b}.blueprint{display:block;width:100%;max-width:680px;background:#102c44;border:1px solid #50718b;border-radius:12px;margin:16px 0}.blueprint-grid{stroke:#21445f;stroke-width:.6;fill:none}.blueprint-room{cursor:pointer}.blueprint-room rect{fill:#173e5b;stroke:#9bc9df;stroke-width:2}.blueprint-room:hover rect,.blueprint-room:focus rect{fill:#275977;stroke:#fff;stroke-width:3}.blueprint-room text{fill:#eef8ff;font:14px system-ui,sans-serif;pointer-events:none}.blueprint-room .blueprint-count{fill:#b2d3e6;font-size:11px}.plan-readings{background:#fffef9;border-radius:12px;padding:20px}.layout-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end}#layout-editor{margin-bottom:24px}#layout-editor label{display:block;margin:12px 0}#layout-editor input:not([type=checkbox]),#layout-editor select{display:block;max-width:100%;padding:9px;border:1px solid #81958e;border-radius:5px;font:inherit}#layout-editor input[type=checkbox]{margin-right:8px}#layout-editor .button{margin:6px 8px 6px 0}#layout-editor .layout-room-row{border:1px solid #b7c9c0;border-radius:8px;margin:16px 0;padding:14px}#layout-editor .layout-status{white-space:pre-wrap;line-height:1.6}#layout-editor fieldset{min-width:0}

.sketch-preview{display:block;width:100%;max-width:400px;border:1px solid #8aa3b6;margin:16px 0}.blueprint.has-sketch{background:#fff}.blueprint.has-sketch .blueprint-room rect{fill:#175b8a33;stroke:#15517b}.blueprint.has-sketch .blueprint-room text{fill:#102c44}.blueprint.has-sketch .blueprint-room:hover rect{fill:#175b8a66}

/* Room state and pointer editing; retain a translucent sketch reference. */
.blueprint .blueprint-room>rect:not(.room-handle){fill:#fff;stroke:#15517b}
.blueprint.has-sketch .blueprint-room>rect:not(.room-handle){fill:#ffffffd9}
.blueprint .blueprint-room.light-on>rect:not(.room-handle){fill:#ffe680}
.blueprint .blueprint-room:hover>rect:not(.room-handle),.blueprint .blueprint-room:focus>rect:not(.room-handle){stroke:#102c44;stroke-width:3}
.blueprint .blueprint-room text,.blueprint .blueprint-room .blueprint-count{fill:#102c44}
.blueprint-edit{touch-action:none;user-select:none;overflow:visible}
.blueprint-edit .blueprint-room{cursor:move}
.blueprint .blueprint-room .room-handle{fill:#15517b;stroke:#fff;stroke-width:1}
.room-handle.nw,.room-handle.se{cursor:nwse-resize}.room-handle.ne,.room-handle.sw{cursor:nesw-resize}

/* Account-independent display preference shared by Admin and Customer pages. */
.topbar{position:relative}.header-actions{display:flex;align-items:center;gap:16px}
.settings-link{border:0;background:none;color:#294a3f;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13px;cursor:pointer;padding:8px}
.settings-link:focus-visible,.theme-panel button:focus-visible{outline:3px solid #b37722;outline-offset:3px}
.theme-panel{position:absolute;z-index:50;right:7%;top:76px;min-width:190px;padding:14px;background:#fffef9;border:1px solid #abb8a9;border-radius:10px;box-shadow:0 10px 24px #293d3040}
.theme-label{display:block;font-size:12px;font-weight:700;margin:0 0 7px}.theme-panel button{display:block;width:100%;padding:10px;border:0;border-radius:6px;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}.theme-panel button[aria-pressed=true]{background:#e9eee3;font-weight:700}
:root[data-theme=dark]{color-scheme:dark;color:#e5eeeb;background:#122024}
:root[data-theme=dark] .topbar,:root[data-theme=dark] .admin-rail{background:#1b2e32;border-color:#3e5557}
:root[data-theme=dark] .brand,:root[data-theme=dark] .settings-link{color:#e5eeeb}
:root[data-theme=dark] .mark,:root[data-theme=dark] .button{background:#315d56;border-color:#6f9c8e;color:#fff}
:root[data-theme=dark] .button:hover{background:#47786a}
:root[data-theme=dark] .device-card,:root[data-theme=dark] .plan-readings,:root[data-theme=dark] .discovery-item,:root[data-theme=dark] .discovery-device,:root[data-theme=dark] .theme-panel{background:#1d3034;border-color:#3e5557;color:#e5eeeb}
:root[data-theme=dark] .welcome,:root[data-theme=dark] .notice,:root[data-theme=dark] .bulb{background:#243a3d;color:#dce9e3}
:root[data-theme=dark] .notice.error{background:#4c3827;color:#f3d7a4}
:root[data-theme=dark] .intro,:root[data-theme=dark] .eyebrow,:root[data-theme=dark] .reading-help,:root[data-theme=dark] .context-note,:root[data-theme=dark] .context-note strong,:root[data-theme=dark] .checked,:root[data-theme=dark] .tag,:root[data-theme=dark] .state-caption,:root[data-theme=dark] .welcome p,:root[data-theme=dark] .welcome-icon,:root[data-theme=dark] dl,:root[data-theme=dark] dd,:root[data-theme=dark] footer{color:#b9ccc4}
:root[data-theme=dark] .theme-panel button[aria-pressed=true]{background:#315d56;color:#fff}
:root[data-theme=dark] input,:root[data-theme=dark] select{background:#1d3034;color:#e5eeeb;border-color:#70928d}
:root[data-theme=dark] .rule,:root[data-theme=dark] footer,:root[data-theme=dark] .layout-actions{border-color:#3e5557;background-color:#3e5557}
:root[data-theme=dark] .blueprint.has-sketch{background:#e9eee9}
@media(max-width:600px){.header-actions{gap:5px}.settings-link{font-size:12px;padding:6px}.theme-panel{right:16px;top:66px}}

/* Customer home selection appears only for accounts granted multiple homes. */
.home-picker{display:flex;align-items:center;gap:12px;margin:18px 0;color:#395642;font-size:13px}
.home-picker label{font-weight:700}
.home-picker select{min-width:200px;max-width:100%;padding:10px 12px;border:1px solid #81958e;border-radius:7px;background:#fffef9;color:#233a35;font:inherit}
:root[data-theme=dark] .home-picker{color:#dce9e3}

#account-security{max-width:620px;margin:20px 0}#account-security label{display:grid;gap:5px;margin:12px 0}#account-security input{box-sizing:border-box;width:100%;padding:10px;font:inherit;border:1px solid #81958e;border-radius:6px}#mfa-enroll{margin-top:16px}#mfa-secret{font-family:ui-monospace,monospace}

/* Illustrative customer house; every room and reading comes from the approved layout. */
.house-overview{--house-bg:#444043;--house-line:#bbb9b2;--house-text:#f0f0e8;--house-muted:#c7c7bf;--house-accent:#dfce83;padding:32px clamp(18px,4vw,44px) 25px;border:1px solid #5d5a59;border-radius:18px;background:var(--house-bg);color:var(--house-text)}
.house-eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:var(--house-accent)}
.house-overview h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(24px,3vw,34px);margin:7px 0 0;color:var(--house-text)}
.house-overview>.reading-help{margin:9px 0 28px;color:var(--house-muted)}
.house-frame{max-width:860px;margin:0 auto}
.house-roof{display:block;width:100%;height:clamp(55px,10vw,110px);overflow:visible}
.house-roof path{fill:none;stroke:var(--house-line);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.house-levels{border:1px solid var(--house-line);border-top:0;background:transparent;overflow:hidden}
.house-level{display:grid;grid-template-columns:60px minmax(0,1fr);min-height:108px;border-top:1px solid var(--house-line)}
.house-floor-label{display:flex;align-items:center;justify-content:center;text-align:center;padding:4px;border-right:1px solid var(--house-line);color:var(--house-muted);font-size:10px;font-weight:650;letter-spacing:.1px}
.house-rooms{display:grid;grid-template-columns:repeat(var(--room-count),minmax(68px,1fr));min-width:0;overflow-x:auto;scrollbar-width:thin}
.house-room{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;min-height:106px;padding:12px 6px;text-align:left;background:transparent;border:0;border-right:1px solid var(--house-line);color:var(--house-text);font:inherit;cursor:pointer;transition:background .15s ease}
.house-room:last-child{border-right:0}
.house-room:hover{background:#565154}
.house-room:focus-visible{outline:2px solid var(--house-accent);outline-offset:-4px;z-index:1}
.house-room[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--house-accent)}
.house-room.is-lit,.house-room.is-lit:hover{background:#685d3d}
.house-room-name{position:relative;z-index:1;font-family:Georgia,serif;font-size:clamp(11px,1.05vw,14px);line-height:1.15;overflow-wrap:anywhere}
.house-room-art{position:absolute;left:50%;top:45%;width:64%;height:34px;transform:translate(-50%,-50%);fill:none;stroke:#9cad9f;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.house-sensors{display:flex;flex-wrap:wrap;gap:5px;max-width:100%}
.house-sensor{display:inline-flex;align-items:center;justify-content:center;max-width:100%;width:25px;height:25px;border:1px solid #85847f;border-radius:50%;background:#4b4849;color:#ebe9df;line-height:1.2}
.house-sensor svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.house-sensor-name,.house-room-empty{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.house-sensor-more{font-size:10px;color:var(--house-muted);align-self:center}
.house-room.is-lit .house-sensor{background:#6e6242;border-color:#cfbd78;color:#fff5d0}
.house-footnote{max-width:860px;margin:14px auto 0;color:var(--house-muted);font-size:12px;line-height:1.6}
#home-plan>.house-overview+h2{margin-top:38px}
:root[data-theme=dark] .house-overview{--house-bg:#383638;--house-line:#aaa9a2;--house-text:#f0f0e8;--house-muted:#c8c8c0;--house-accent:#e1ce80;border-color:#656363}
:root[data-theme=dark] .house-room:hover{background:#4b484a}
:root[data-theme=dark] .house-room.is-lit,:root[data-theme=dark] .house-room.is-lit:hover{background:#685d3d}
:root[data-theme=dark] .house-sensor{background:#454244;border-color:#85847f;color:#ebe9df}
:root[data-theme=dark] .house-room.is-lit .house-sensor{background:#6e6242;border-color:#cfbd78;color:#fff5d0}
@media(max-width:600px){.house-overview{padding:22px 12px}.house-overview>.reading-help{margin-bottom:16px}.house-level{grid-template-columns:49px minmax(0,1fr)}.house-floor-label{font-size:10px;padding:5px}.house-rooms{grid-template-columns:repeat(var(--room-count),minmax(86px,1fr))}.house-room{min-height:106px;padding:12px 8px}.house-roof{height:55px}}

/* Weather stays in the landscape outside the room hit targets. */
.house-landscape{height:148px;position:relative;overflow:hidden;border-radius:11px 11px 0 0}
.house-sky{--orb-x:50%;position:absolute;inset:0;background:linear-gradient(#a9c7d6,#dce7dd);transition:background 1s}
.house-sky[data-phase=twilight]{background:linear-gradient(#776e89,#e0b991)}
.house-sky[data-phase=night]{background:linear-gradient(#152743,#334960)}
.house-sky[data-phase=unknown]{background:linear-gradient(#aebdc3,#d5ded9)}
.house-orb{position:absolute;top:22px;left:var(--orb-x);width:29px;height:29px;border-radius:50%;background:#fff4c0;box-shadow:0 0 20px #ffe8a8;transition:left 60s linear}
.house-sky[data-phase=night] .house-orb{background:#f0f0e4;box-shadow:0 0 14px #d4e0e5}
.house-sky[data-phase=unknown] .house-orb{display:none}
.house-star{display:none;position:absolute;width:2px;height:2px;background:#f6f7ed;border-radius:50%;left:calc(8% + var(--star)*10%);top:calc(12% + var(--star)*5%)}
.house-sky[data-phase=night][data-condition=clear] .house-star{display:block}
.star-0{--star:0}.star-1{--star:1}.star-2{--star:2}.star-3{--star:3}.star-4{--star:4}.star-5{--star:5}.star-6{--star:6}.star-7{--star:7}.star-8{--star:8}
.house-cloud{display:none;position:absolute;top:38px;width:80px;height:19px;border-radius:30px;background:#f2f5f1b8;box-shadow:22px -8px 0 4px #f2f5f1b8}
.cloud-one{left:18%}.cloud-two{right:21%;top:62px;transform:scale(.7)}
.house-sky[data-condition=cloud] .house-cloud,.house-sky[data-condition=rain] .house-cloud,.house-sky[data-condition=snow] .house-cloud{display:block}
.house-precipitation{display:none;position:absolute;left:0;right:0;bottom:0;height:45px;opacity:.65;background-image:repeating-linear-gradient(105deg,transparent 0 22px,#e7eff5 23px 24px,transparent 25px 45px);background-size:95px 45px}
.house-sky[data-condition=rain] .house-precipitation{display:block}
.house-sky[data-condition=snow] .house-precipitation{display:block;background-image:radial-gradient(circle,#fff 1.5px,transparent 2px);background-size:30px 23px}

/* Public SMS registration copy. Consent remains a disabled preview until approved. */
.policy-page{max-width:760px}.policy-page h2{margin:34px 0 10px}.policy-page p{line-height:1.7}.policy-page a,footer a{color:inherit;text-decoration:underline}.policy-page .intro{margin-bottom:24px}.policy-note{margin-top:26px;padding:15px 18px;background:#e9eee3;border-left:3px solid #6b7a61;border-radius:6px;font-size:13px}.policy-card{max-width:680px}.policy-card>label:first-child{display:block;margin-bottom:9px;font-weight:600}.policy-card>input{width:100%;padding:10px;border:1px solid #81958e;border-radius:7px;font:inherit}.policy-consent{display:flex;align-items:flex-start;gap:10px;margin:23px 0;line-height:1.7;font-size:14px}.policy-consent input{margin-top:5px;flex:none}

/* Sensor detail: a compact current state, history, and independently scrollable activity. */
.room-reading{overflow:hidden;padding:0;max-width:860px}
.sensor-detail-heading{padding:23px 27px 18px;border-bottom:1px solid #e0e5dc}
.sensor-detail-heading h3{font-size:clamp(23px,3vw,31px);font-weight:600;margin:5px 0 0}
.sensor-breadcrumb{font-size:13px;color:#647a71;margin:0}
.sensor-now{display:flex;align-items:center;gap:18px;min-height:110px;padding:21px 27px}
.sensor-now>svg{width:32px;height:32px;flex:none;fill:none;stroke:#397b9c;stroke-width:1.6}
.sensor-now-copy{min-width:0;flex:1}.sensor-now-name{font-size:17px;font-weight:600}.sensor-now-copy .reading-help{margin:4px 0 0;font-size:12px}
.sensor-now .room-current{font-size:clamp(20px,2.6vw,28px);font-weight:500;text-align:right;margin:0;overflow-wrap:anywhere}
.sensor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 27px;padding:24px 0 14px;border-top:1px solid #e0e5dc}
.sensor-section-heading h4{font-size:22px;line-height:1.2;margin:0;font-weight:650}
.history-tabs button{font-size:12px;padding:7px 10px}
.history-panel{margin:0;padding:0 27px 27px}.history-panel>.reading-help{margin:4px 0 13px}
.history-graph>.reading-help{font-size:12px;margin:9px 0 16px}
.sensor-activity-hint{font-size:12px;color:#688075}
.sensor-activity-scroll{max-height:350px;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#a9bdb2 transparent;outline-offset:3px}
.sensor-activity-day{position:sticky;top:0;z-index:1;background:#fffef9;margin:0;padding:12px 0 8px;font-size:14px;font-weight:650}
.sensor-activity-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:53px;position:relative;border-bottom:1px solid #e4e8e2;font-size:15px}
.sensor-activity-row::before{content:"";position:absolute;left:9px;top:0;bottom:0;border-left:2px solid #dce3dc}
.sensor-activity-dot{position:relative;z-index:1;width:13px;height:13px;margin-left:3px;background:#9ba9a1;border-radius:50%}
.sensor-activity-dot.is-active{background:#f2ba24}
.sensor-activity-time{color:#687970;font-size:13px;text-align:right;white-space:nowrap}
.history-state-band{fill:#b6c1ba;stroke:#f6f8f3;stroke-width:1}
.history-state-band.is-active{fill:#e7ba3e}
.history-state-label{fill:#243a35;font:15px Inter,system-ui,sans-serif}
.history-time-label{fill:#5c7066;font:12px Inter,system-ui,sans-serif}
:root[data-theme=dark] .sensor-detail-heading,:root[data-theme=dark] .sensor-section-heading{border-color:#3e5557}
:root[data-theme=dark] .sensor-breadcrumb,:root[data-theme=dark] .sensor-activity-hint,:root[data-theme=dark] .sensor-activity-time{color:#adbfba}
:root[data-theme=dark] .sensor-now>svg{stroke:#5bafd5}
:root[data-theme=dark] .sensor-activity-day{background:#1d3034}
:root[data-theme=dark] .sensor-activity-row{border-color:#3e5557}
:root[data-theme=dark] .sensor-activity-row::before{border-color:#526661}
:root[data-theme=dark] .history-state-band{fill:#8f9b97;stroke:#23373b}
:root[data-theme=dark] .history-state-band.is-active{fill:#e7ba3e}
:root[data-theme=dark] .history-time-label{fill:#b4c8bc}
@media(max-width:600px){.sensor-detail-heading{padding:20px 18px 15px}.sensor-now{padding:18px;gap:12px;flex-wrap:wrap}.sensor-now-copy{flex-basis:calc(100% - 50px)}.sensor-now .room-current{width:100%;text-align:left;padding-left:44px}.sensor-section-heading{margin:0 18px;align-items:flex-start;flex-direction:column}.history-panel{padding:0 18px 22px}.sensor-activity-row{gap:8px}.sensor-activity-time{font-size:11px}}
.house-weather{position:absolute;left:12px;bottom:4px;margin:0;color:#283b43;font-size:11px;background:#f7f7f0c7;border-radius:4px;padding:4px 8px;max-width:calc(100% - 24px)}
.house-lawn{height:38px;background:linear-gradient(#6d9568,#729e69);border-radius:0 0 50% 50%}
.house-frame{position:relative;perspective:1400px;padding-right:18px}
.house-frame:before{content:"";position:absolute;left:-4%;bottom:16px;width:108%;height:92px;border-radius:52% 48% 0 0 / 70% 75% 0 0;background:linear-gradient(#8daf7e,#638c5f);pointer-events:none}
.house-frame.no-basement:before{height:56px;bottom:16px}
.house-frame .house-roof,.house-frame .house-levels{width:90%;margin-left:auto;margin-right:auto}
.house-roof,.house-levels{transform:rotateY(-10deg);transform-origin:left center}
.house-levels{position:relative;overflow:visible;box-shadow:12px 8px 0 #aab3a7}
.house-levels:after{content:"";position:absolute;top:0;right:-16px;width:16px;height:100%;background:#c6cec3;transform:skewY(-18deg);transform-origin:left top;border-right:1px solid #8e968e;pointer-events:none}
.house-frame.no-basement .house-lawn{width:110%;margin-left:-5%;height:38px;border-radius:0 0 50% 50% / 0 0 100% 100%;box-shadow:0 8px 0 #74986b}
.house-frame.has-basement .house-lawn{height:24px}
.house-frame .house-roof{position:relative;margin-top:calc(-1 * clamp(55px,10vw,110px))}
@media(max-width:600px){.house-frame .house-roof{margin-top:-55px}}
.house-overview .house-levels{background:#f6f4ec;border-color:#8e968e}
.house-overview .house-level{border-color:#adb4a8}
.house-overview .house-floor-label{color:#34483d;border-color:#adb4a8}
.house-overview .house-room{color:#233a35;border-color:#adb4a8;background:#fffef9}
.house-overview .house-room:hover,.house-overview .house-room:focus-visible{background:#eaf2e6;box-shadow:inset 0 0 0 3px #397b67,0 0 15px #2b674633;z-index:2}
.house-overview .house-room.is-lit,.house-overview .house-room.is-lit:hover{background:#fff0b8}
.house-overview .house-room.is-lit:hover,.house-overview .house-room.is-lit:focus-visible{box-shadow:inset 0 0 0 3px #9e742a,0 0 15px #9e742a55}
.house-overview .house-sensor{background:#f6f6ef;color:#334b43;border-color:#b6bfb1}
.house-overview .house-room.is-lit .house-sensor{background:#fff8db;color:#63521f;border-color:#d8c475}
.house-overview .house-room-empty,.house-overview .house-sensor-more{color:#596d61}
.session-setting{display:block;margin:7px 0 8px;font-size:12px;line-height:1.5}.session-setting select{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid #abb8a9;border-radius:5px;background:#fffef9;color:#233a35;font:inherit}
.room-page{max-width:860px;margin:20px auto}.room-page>h2{font:normal clamp(30px,4vw,44px) Georgia,serif;margin:20px 0 5px}.room-reading{background:#fffef9;border:1px solid #dedfd3;border-radius:15px;margin:22px 0;padding:24px}.room-reading>svg{width:25px;height:25px;fill:none;stroke:#42645a;stroke-width:1.5}.room-reading h3{margin:8px 0}.room-current{font-size:26px;margin:6px 0}.history-tabs{display:flex;gap:7px;flex-wrap:wrap}.history-tabs button[aria-pressed=true]{background:#173b5b}.history-panel{margin-top:14px}.history-chart{display:block;width:100%;height:auto;background:#f6f8f3;border-radius:8px}.history-axis{fill:none;stroke:#a2b0a4;stroke-width:1}.history-line{fill:none;stroke:#3d7668;stroke-width:2}.history-dot{fill:#276655}.history-recent{font-size:12px;line-height:1.8;padding-left:20px}
:root[data-theme=dark] .room-reading{background:#1d3034;border-color:#3e5557;color:#e5eeeb}
:root[data-theme=dark] .history-chart{background:#23373b}
@media(max-width:600px){.house-landscape{height:95px}.house-room{border-bottom:1px solid #adb4a8}.room-reading{padding:17px}}

/* Room entry and in-room navigation. */
.house-room.is-opening{z-index:5;transform:scale(1.11);box-shadow:0 12px 30px #1d332d55,inset 0 0 0 3px #397b67!important}
.house-sensor{position:relative}
.house-sensor:hover:after,.house-sensor:focus-within:after{content:attr(data-reading);position:absolute;z-index:20;left:0;top:calc(100% + 8px);width:max-content;max-width:min(280px,65vw);padding:9px 12px;border-radius:7px;background:#263d38;color:#fff;font-size:12px;line-height:1.4;white-space:normal;box-shadow:0 5px 15px #18251e66;pointer-events:none}
.room-page.entering{animation:room-zoom .34s ease-out both}
@keyframes room-zoom{from{opacity:.25;transform:scale(.91) translateY(24px)}to{opacity:1;transform:scale(1) translateY(0)}}
.room-hero{border:1px solid #aebead;border-radius:14px;background:#f4f5eb;padding:24px;margin:18px 0}
.room-hero h2{font:normal clamp(30px,4vw,44px) Georgia,serif;margin:9px 0 22px}
.room-shortcuts{display:flex;flex-wrap:wrap;gap:9px}
.room-shortcut{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:10px 12px;border:1px solid #8da69a;border-radius:9px;background:#fffef9;color:#233a35;font:inherit;font-size:13px;cursor:pointer}
.room-shortcut:hover,.room-shortcut:focus-visible{border-color:#397b67;box-shadow:0 0 0 2px #397b6733}
.room-shortcut svg{width:19px;height:19px;fill:none;stroke:#3d7668;stroke-width:1.5}
.room-reading{scroll-margin-top:22px}
#floating-nav{position:fixed;z-index:60;right:24px;bottom:24px;display:flex;flex-direction:column;gap:8px}
#floating-nav button{display:grid;place-items:center;width:48px;height:48px;border:1px solid #78988a;border-radius:50%;background:#294a3f;color:#fff;font:27px Georgia,serif;box-shadow:0 5px 18px #1d352b55;cursor:pointer}
#floating-nav button[hidden]{display:none}
#floating-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#floating-nav button:hover,#floating-nav button:focus-visible{background:#397b67;outline:3px solid #bfd9c3}
.sensor-list{display:grid;gap:10px;max-width:900px}.sensor-item{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:4px 18px;width:100%;padding:16px 18px;text-align:left;border:1px solid #b5c7bb;border-radius:11px;background:#fffef9;color:#233a35;font:inherit}.sensor-item h3{margin:0;font:normal 20px Georgia,serif}.sensor-item span{font-size:13px;color:#527064}.sensor-item strong{font-size:18px;font-weight:650}.sensor-item small{grid-column:1/-1;color:#5b7066}.sensor-item:is(button){cursor:pointer}.sensor-item:is(button):hover,.sensor-item:is(button):focus-visible{border-color:#397b67;box-shadow:0 0 0 3px #397b6733;outline:0}:root[data-theme=dark] .sensor-item{background:#1d3034;color:#e5eeeb;border-color:#567568}:root[data-theme=dark] .sensor-item span,:root[data-theme=dark] .sensor-item small{color:#c2d6c8}@media(max-width:600px){.sensor-item{grid-template-columns:1fr auto;padding:13px}.sensor-item span{grid-column:1}.sensor-item strong{grid-column:2;grid-row:1/3}}
:root[data-theme=dark] .room-hero{background:#23373b;border-color:#58776a}
:root[data-theme=dark] .room-shortcut{background:#1d3034;color:#e5eeeb;border-color:#6f9c8e}
@media(prefers-reduced-motion:reduce){.room-page.entering{animation:none}.house-room.is-opening{transform:none}.house-orb{transition:none}}

/* Room overview and weather across the customer page. */
.weather-page{min-height:100vh;isolation:isolate;background:transparent}
#page-weather{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#page-weather .house-orb{width:74px;height:74px;top:12vh;box-shadow:0 0 80px #ffe8a877}
#page-weather .house-cloud{top:20vh;width:220px;height:52px;opacity:.55;box-shadow:55px -20px 0 12px #f2f5f1b8}
#page-weather .cloud-two{top:45vh}#page-weather .house-precipitation{height:100%;opacity:.2}
.weather-page main{background:#fafbf5eb;border:1px solid #ffffff90;border-radius:22px;padding:30px 32px;margin-top:36px;box-shadow:0 14px 48px #173b4b12}
.weather-page .topbar{background:#fafaf5eb}.weather-page footer{background:#fafaf5e8;padding:20px;border-radius:12px}
.room-list{max-width:none}.room-item{grid-template-columns:minmax(150px,.7fr) minmax(0,2fr) 20px;gap:16px;padding:20px}
.room-item .room-title{display:flex;flex-direction:column;gap:5px;min-width:0}.room-item h3{overflow-wrap:anywhere}.room-item .room-floor{font-size:12px}
.room-item .room-statuses{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.room-item .room-status{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:9px;background:#edf0eb;color:#45564c;max-width:100%}
.room-status svg{width:23px;height:23px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.room-item .room-status-label{font-size:12px;color:inherit;overflow-wrap:anywhere}
.room-item .room-status[data-tone=on]{background:#fff1b4;color:#785400}.room-status[data-tone=on] svg{fill:#ffda50;stroke:#785400}
.room-item .room-status[data-tone=off]{background:#e4e8e6;color:#38443e}.room-item .room-status[data-tone=cold]{background:#dfedff;color:#205a98}
.room-item .room-status[data-tone=hot]{background:#fde4e0;color:#a1322b}.room-item .room-status[data-tone=unknown]{background:transparent;color:#687870;border:1px dashed #8e9b94}
.room-item .room-arrow{font-size:28px;color:#698174}.room-weather-note{font-size:12px;color:#526b63;margin:0 0 18px}
:root[data-theme=dark] .weather-page main,:root[data-theme=dark] .weather-page footer,:root[data-theme=dark] .weather-page .topbar{background:#122024ed;border-color:#455e64}
:root[data-theme=dark] .room-weather-note{color:#c2d6c8}:root[data-theme=dark] .room-item .room-status{background:#31413c;color:#dce4de}
:root[data-theme=dark] .room-item .room-status[data-tone=on]{background:#5a481e;color:#ffe07b}:root[data-theme=dark] .room-item .room-status[data-tone=off]{background:#172421;color:#a0ada7}
:root[data-theme=dark] .room-item .room-status[data-tone=cold]{background:#1a395a;color:#a8d1ff}:root[data-theme=dark] .room-item .room-status[data-tone=hot]{background:#542b29;color:#ffb7aa}
:root[data-theme=dark] .room-item .room-status[data-tone=unknown]{background:transparent;color:#b1beb7}
@media(max-width:600px){.weather-page main{margin:22px 12px;padding:22px 16px}.room-item{grid-template-columns:minmax(0,1fr) 18px;padding:16px}.room-item .room-title{grid-column:1}.room-item .room-statuses{grid-column:1/-1;grid-row:2;justify-content:flex-start}.room-item .room-arrow{grid-column:2;grid-row:1}.room-item .room-status,.room-item .room-status-label{grid-column:auto}}
@media(prefers-reduced-motion:reduce){#page-weather,#page-weather *{transition:none;animation:none}}

/* Public landing: original Signal Home artwork and copy. */
#public-landing,.public-nav{display:none}.public-view #public-landing{display:block}.public-view>main,.public-view>footer,.public-view #floating-nav,.public-view #theme-settings{display:none}
.public-view{background:#f8f5ed;color:#173e38}.public-view .topbar{background:#f8f5ed;border:0;height:100px;padding:0 6%;gap:25px}.public-view .brand{font-size:22px}.public-view .public-nav{display:flex;gap:30px;margin-left:auto;align-items:center;font-size:13px}.public-view .public-nav span{cursor:default}.public-view #auth{background:#c96749;border:0;border-radius:7px;padding:15px 28px;color:#fff;font-weight:650}.public-view #auth:hover{background:#a94e35}
.landing-hero{display:grid;grid-template-columns:1fr 1fr;max-width:1440px;margin:auto;padding:32px 6% 70px;gap:6%;align-items:center}.landing-kicker{font-size:11px;font-weight:700;letter-spacing:2px;color:#53766b}.landing-copy h1{font:normal clamp(48px,5.7vw,86px)/1.04 Georgia,serif;letter-spacing:-3px;margin:25px 0;color:#163d36}.landing-intro{font-size:20px;line-height:1.6;max-width:390px}.landing-description{font-size:15px;line-height:1.8;color:#537066;max-width:390px}.landing-placeholder-actions{display:flex;gap:25px;align-items:center;margin:30px 0;font-size:13px;font-weight:600}.landing-placeholder-actions span:first-child{background:#e8b494;padding:16px 20px;border-radius:6px;color:#3d3226}.landing-preview-note{font-size:11px;line-height:1.6;color:#65776c}.landing-art{position:relative;overflow:hidden;border-radius:150px 150px 18px 18px;background:#e6d5bd;box-shadow:0 14px 40px #29483512}.landing-art svg{display:block;width:100%;height:auto}.landing-art-caption{position:absolute;bottom:24px;left:7%;right:7%;padding:17px;background:#fffff3e8;border-radius:10px;font-size:13px;display:flex;align-items:center;gap:10px}.landing-dot{width:8px;height:8px;border-radius:50%;background:#638364}
.landing-audiences{padding:75px 6% 85px;background:#eef0e6}.landing-audiences>h2,.landing-band h2{font:normal clamp(32px,4vw,52px)/1.12 Georgia,serif;letter-spacing:-1px;margin:20px 0 36px}.landing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1300px;margin:auto}.landing-cards article{padding:35px;background:#faf8f1;border-radius:14px;min-height:260px}.landing-number{font-size:10px;letter-spacing:1.7px;color:#698376}.landing-cards h3{font:normal 28px/1.2 Georgia,serif;margin:27px 0 15px}.landing-cards p{font-size:14px;line-height:1.8;color:#526b5f}.landing-faux-link{display:block;font-size:12px;margin-top:25px;font-weight:650}.landing-band{padding:80px 8%;background:#244a40;color:#faf7ed;text-align:center}.landing-band .landing-kicker{color:#b9cbbb}.landing-band p:last-child{font-size:15px;line-height:1.8;color:#d7e0d2}.landing-footer{display:flex;justify-content:space-between;gap:20px;padding:35px 6%;font-size:12px}.landing-footer strong{font-size:20px}
@media(max-width:800px){.public-view .public-nav{display:none}.public-view .header-actions{margin-left:auto}.landing-hero{grid-template-columns:1fr;padding-top:20px;gap:35px}.landing-copy{max-width:550px}.landing-copy h1{font-size:58px}.landing-art{max-width:550px;width:100%;margin:auto}.landing-cards{grid-template-columns:1fr}.landing-cards article{min-height:0}.landing-footer{flex-direction:column}}

/* Temporary reference photography is embedded locally; no third-party browser requests. */
.public-view .public-nav{gap:20px;font-size:12px}.landing-art{border-radius:16px;align-self:stretch;min-height:550px}.landing-art>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:48% center}.landing-cards article>img{display:block;width:calc(100% + 70px);max-width:none;height:220px;object-fit:cover;margin:-35px -35px 28px;border-radius:14px 14px 0 0}.landing-feature{max-width:1440px;margin:auto;padding:80px 6%;display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center}.landing-feature img{display:block;width:100%;height:440px;object-fit:cover;border-radius:15px}.landing-feature h2,.landing-values>h2,.landing-faq>h2{font:normal clamp(32px,4vw,52px)/1.12 Georgia,serif;margin:20px 0 28px;letter-spacing:-1px}.landing-feature p:not(.landing-kicker),.landing-faq p{font-size:15px;line-height:1.8;color:#526b5f}.landing-feature ol{padding-left:24px;margin-top:24px}.landing-feature li{padding:12px 0 12px 10px}.landing-feature li span{display:block;font-size:13px;line-height:1.8;color:#526b5f}.landing-values{background:#e8eee4;padding:70px 6%}.landing-reverse>div:first-child{order:2}.landing-faq{max-width:960px;padding:70px 6%;margin:auto}.landing-faq article{padding:16px 0;border-bottom:1px solid #cad5c8}.landing-faq h3{font-size:17px}.public-notice{background:#f4e7d3;color:#795019;padding:14px 6%;margin:0;font-size:14px}.public-view .brand{flex-shrink:0}
@media(max-width:1050px){.public-view .public-nav{display:none}.public-view .header-actions{margin-left:auto}}
@media(max-width:800px){.landing-art{min-height:400px}.landing-feature{grid-template-columns:1fr;gap:28px;padding-top:45px;padding-bottom:45px}.landing-reverse>div:first-child{order:0}.landing-feature img{height:320px}.landing-copy h1{font-size:clamp(42px,10vw,58px)}}

/* Keep the public presentation consistent when a returning customer prefers dark mode. */
:root[data-theme=dark] .public-view .topbar{background:#f8f5ed;color:#173e38;border-color:transparent}
:root[data-theme=dark] .public-view .brand{color:#173e38}

/* Public hero correction: full-bleed photography with a fixed floating navigation pill. */
.public-view{background:#fff;color:#102e49}
.public-view .topbar,:root[data-theme=dark] .public-view .topbar{position:fixed;z-index:100;top:15px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:1200px;height:80px;padding:0 18px 0 44px;gap:24px;border:0;border-radius:48px;background:#f4f4f2;color:#102e49;box-shadow:0 4px 24px #102e4910}
.public-view .brand,:root[data-theme=dark] .public-view .brand{font-size:22px;letter-spacing:-.5px;color:#102e49;gap:8px}
.public-view .brand-detail{display:none}.public-view .mark,:root[data-theme=dark] .public-view .mark{background:transparent;color:#102e49;border:1px solid #102e4940;width:28px;height:28px;border-radius:8px;font-size:18px}
.public-view .public-nav{display:flex;margin:auto;gap:36px;font-size:14px;font-weight:500;white-space:nowrap}
.public-view .header-actions{margin:0}.public-view #auth,:root[data-theme=dark] .public-view #auth{min-width:127px;height:52px;padding:0 25px;border-radius:32px;background:#102e49;color:#fff;font-size:14px;font-weight:600}
.public-view #auth:hover{background:#244967}.public-view #auth:focus-visible{outline:3px solid #ad809d;outline-offset:3px}
.landing-hero{position:relative;display:flex;align-items:flex-end;isolation:isolate;min-height:760px;height:100svh;max-width:none;width:100%;margin:0;padding:145px max(7%,calc((100vw - 1040px)/2)) 130px;gap:0;overflow:hidden;background:#283e48}
.landing-hero .landing-art{position:absolute;inset:0;z-index:-2;min-height:0;width:100%;height:100%;max-width:none;margin:0;border-radius:0;box-shadow:none}
.landing-hero .landing-art>img{width:100%;height:100%;object-fit:cover;object-position:center center}
.landing-hero:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#0713218c 0%,#07132120 65%,#07132115 100%)}
.landing-copy{max-width:475px;width:100%;color:#fff}.landing-copy h1{font:600 clamp(44px,4.2vw,60px)/1.18 Arial,Helvetica,sans-serif;letter-spacing:-2.6px;color:#fff;margin:0 0 27px;text-shadow:0 2px 14px #07132115}
.landing-copy .landing-intro{font-size:19px;line-height:1.6;font-weight:600;color:#fff;margin:0;max-width:440px}
.landing-copy .landing-kicker,.landing-copy .landing-description,.landing-copy .landing-preview-note,.landing-art-caption{display:none}
.landing-placeholder-actions{gap:12px;margin:25px 0 0;align-items:center;font-size:14px;font-weight:500}
.landing-placeholder-actions span{display:inline-flex;align-items:center;justify-content:center;min-width:190px;height:52px;padding:0 22px;border-radius:30px;background:#fff;color:#102e49;border:1px solid #102e49}
.landing-placeholder-actions span:first-child{background:#c5aabb;color:#102e49;border-color:#c5aabb;border-radius:30px;padding:0 22px}
.public-notice{position:fixed;top:110px;left:50%;transform:translateX(-50%);z-index:101;width:min(90%,900px);border-radius:12px}
.landing-audiences{background:#fff;padding:100px max(7%,calc((100vw - 1200px)/2))}.landing-audiences>h2,.landing-feature h2,.landing-values>h2,.landing-faq>h2,.landing-band h2{font-family:Arial,Helvetica,sans-serif;font-weight:600;letter-spacing:-1.5px}.landing-audiences>h2{text-align:center;margin-bottom:50px}.landing-audiences>.landing-kicker{text-align:center}.landing-cards article{background:#f4f4f2;color:#102e49}.landing-cards h3{font-family:Arial,Helvetica,sans-serif;font-size:25px;font-weight:600}.landing-feature p:not(.landing-kicker),.landing-faq p,.landing-cards p{color:#425460}.landing-values{background:#eef1f3}.landing-band{background:#102e49}
@media(max-width:1100px){.public-view .topbar{padding-left:26px;gap:18px}.public-view .public-nav{gap:20px;font-size:13px}.landing-hero{padding-left:7%;padding-right:7%;padding-bottom:90px}}
@media(max-width:800px){.public-view .topbar,:root[data-theme=dark] .public-view .topbar{top:12px;width:calc(100% - 24px);height:68px;padding:0 12px 0 24px}.public-view .public-nav{display:none}.public-view .header-actions{margin-left:auto}.public-view #auth{min-width:100px;height:46px}.landing-hero{height:100svh;min-height:690px;padding:120px 7% 70px}.landing-hero .landing-art>img{object-position:58% center}.landing-hero:after{background:linear-gradient(0deg,#071321bf,#07132110 85%)}.landing-copy{max-width:460px}.landing-copy h1{font-size:clamp(38px,7vw,52px);letter-spacing:-1.5px}.landing-copy .landing-intro{font-size:16px;max-width:380px}.landing-placeholder-actions{flex-wrap:wrap;gap:10px}.landing-placeholder-actions span{min-width:0;padding:0 18px;height:48px;font-size:12px}.landing-placeholder-actions span:first-child{padding:0 18px}.landing-audiences{padding:60px 7%}}

/* Motion activity in the room summary uses both text and color. */
.room-item .room-status[data-tone=motion-active]{background:#dcf8df;color:#176b37;border:1px solid #81c893}
.room-status[data-tone=motion-active] svg{stroke:#176b37}
:root[data-theme=dark] .room-item .room-status[data-tone=motion-active]{background:#194730;color:#abefbc;border-color:#4d9163}
:root[data-theme=dark] .room-status[data-tone=motion-active] svg{stroke:#abefbc}

/* Floating room rows: the weather is the only backdrop around the overview. */
.weather-page main:has(.room-overview),:root[data-theme=dark] .weather-page main:has(.room-overview){background:transparent;border:0;border-radius:0;box-shadow:none}
.weather-page main:has(.room-overview){--overview-ink:#102e49;--overview-muted:#29475e}
.weather-page main:has(.room-overview) #home{color:var(--overview-ink);font-family:Arial,Helvetica,sans-serif;font-weight:600;text-shadow:0 1px 8px #ffffffb0}
.weather-page main:has(.room-overview)>.eyebrow,.weather-page main:has(.room-overview)>.intro,.room-overview>.section-heading,.room-overview>.section-heading .tag,.room-overview>.reading-help,.room-overview>.room-weather-note{color:var(--overview-muted);text-shadow:0 1px 6px #ffffffb0}
.weather-page:has(#page-weather[data-phase=night]) main:has(.room-overview){--overview-ink:#f5f8ff;--overview-muted:#e0ecfa}
.weather-page:has(#page-weather[data-phase=night]) main:has(.room-overview) #home,.weather-page:has(#page-weather[data-phase=night]) main:has(.room-overview)>.eyebrow,.weather-page:has(#page-weather[data-phase=night]) main:has(.room-overview)>.intro,.weather-page:has(#page-weather[data-phase=night]) .room-overview>.section-heading,.weather-page:has(#page-weather[data-phase=night]) .room-overview>.section-heading .tag,.weather-page:has(#page-weather[data-phase=night]) .room-overview>.reading-help,.weather-page:has(#page-weather[data-phase=night]) .room-weather-note{text-shadow:0 1px 8px #102e49}
.room-overview .room-list{gap:18px}
.room-overview .room-item{min-height:104px;padding:24px 32px;border:1px solid #ffffffb8;border-radius:56px;background:#f4f4f2f5;box-shadow:0 6px 24px #102e4914;transition:box-shadow .18s ease,transform .18s ease}
.room-overview .room-item:hover{background:#fff;box-shadow:0 10px 30px #102e4926;transform:translateY(-2px)}
.room-overview .room-item:focus-visible{outline:3px solid #397b67;outline-offset:4px}
.room-overview .room-item h3{font-family:Arial,Helvetica,sans-serif;font-weight:600;color:#102e49}
.room-overview .room-item .room-floor{color:#526675}.room-overview .room-item .room-status{border-radius:24px;padding:9px 13px}
:root[data-theme=dark] .room-overview .room-item{background:#1d3034f5;border-color:#526675;box-shadow:0 6px 24px #0003}
:root[data-theme=dark] .room-overview .room-item:hover{background:#263e44}
:root[data-theme=dark] .room-overview .room-item h3{color:#edf5fa}:root[data-theme=dark] .room-overview .room-item .room-floor{color:#bdcfd9}
@media(max-width:600px){.room-overview .room-item{padding:22px 24px;border-radius:34px}.room-overview .room-list{gap:16px}}
@media(prefers-reduced-motion:reduce){.room-overview .room-item{transition:none}.room-overview .room-item:hover{transform:none}}

/* Keep the overview concise while retaining operational error notices. */
.weather-page main:has(.room-overview)>.intro,.weather-page main:has(.room-overview)>#notice:not(.error){display:none}

/* Explicit contrast for overview guidance, independent of the selected theme. */
:root .weather-page main .room-overview>p.reading-help{color:#102e49;font-weight:500;text-shadow:0 1px 3px #fff,0 0 8px #ffffffb3}

/* Four broad areas lead to rooms, then sensors and individual history. */
.macro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.macro-overview .macro-tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:280px;padding:32px;border-radius:38px;cursor:pointer;font:inherit}
.macro-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.macro-title h3{font-size:28px;margin:0}.macro-arrow{font-size:26px;color:#526675}.macro-count{font-size:13px;color:#526675;margin:12px 0 28px}
.macro-tile .room-statuses{justify-content:flex-start;align-content:flex-start;margin-top:auto}.macro-tile .room-empty{color:#526675;font-size:14px}
:root[data-theme=dark] .macro-count,:root[data-theme=dark] .macro-arrow,:root[data-theme=dark] .macro-tile .room-empty{color:#bdcfd9}
.room-sensor-list{margin-top:24px;max-width:none}.room-sensor-list .room-item{border-radius:32px;padding:24px}.room-sensor-list .room-item .room-status{justify-self:end}
@media(max-width:650px){.macro-grid{grid-template-columns:1fr;gap:18px}.macro-overview .macro-tile{min-height:220px;padding:26px;border-radius:32px}.macro-title h3{font-size:25px}.room-sensor-list .room-item .room-status{grid-column:1/-1;justify-self:start}}

/* Critical activity is visible across every signed-in customer route. */
.critical-alerts{position:sticky;top:0;z-index:150;background:#a81022;color:#fff;border-bottom:4px solid #ffb3bc;padding:18px max(24px,calc((100vw - 976px)/2));box-shadow:0 5px 24px #68081355;font-size:16px}
.critical-alerts strong{font-size:20px;letter-spacing:.7px}.critical-alerts p{margin:8px 0;font-weight:600;overflow-wrap:anywhere}.critical-alerts small{display:block;color:#fff;font-size:12px;line-height:1.5}.public-view .critical-alerts{display:none}
@media(max-width:600px){.critical-alerts{padding:15px 20px;max-height:40vh;overflow-y:auto}.critical-alerts strong{font-size:18px}}

.room-name-edit{margin:0 0 1rem}
.room-name-dialog{width:min(32rem,calc(100vw - 2rem));box-sizing:border-box;border:1px solid #cbd5e1;border-radius:28px;padding:1.6rem;background:#fff;color:#1e293b;box-shadow:0 24px 90px #0f172a55}
.room-name-dialog::backdrop{background:#0f172a70;backdrop-filter:blur(5px)}
.room-name-dialog h2{margin:0 0 1rem;color:inherit}.room-name-dialog label{display:grid;gap:.5rem;font-weight:600}
.room-name-dialog input{font:inherit;padding:.8rem 1rem;border:1px solid #94a3b8;border-radius:14px;min-width:0;color:inherit;background:transparent}
.room-name-dialog p{color:inherit;line-height:1.5}.room-name-actions{display:flex;flex-wrap:wrap;gap:.6rem}
[data-theme="dark"] .room-name-dialog{background:#17243a;color:#e2e8f0;border-color:#52627a}

.public-view #alerts-open{display:none}
.critical-alerts{background:transparent;border:0;box-shadow:none;padding:8px max(24px,calc((100vw - 976px)/2))}
.critical-alert-card{background:#a81022;color:#fff;border:2px solid #ffb3bc;border-radius:18px;padding:16px 20px;box-shadow:0 5px 24px #68081335;margin-bottom:8px}
.critical-alert-card.cleared{background:#a74b08;border-color:#fdba74;box-shadow:0 5px 24px #78350f30}
.critical-alert-card .button{margin-top:12px;background:#fff;color:#713008;border-color:#fff}.critical-alert-card span[role=status]{display:inline-block;margin-left:10px}
.alert-history-dialog{width:min(720px,calc(100vw - 2rem));max-height:85vh;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:24px;padding:24px;background:#fff;color:#1e293b}
.alert-history-dialog::backdrop{background:#0f172a70;backdrop-filter:blur(4px)}
.alert-history-row{margin-top:16px;padding:14px 18px;border-left:5px solid #64748b;background:#f1f5f9;border-radius:12px}.alert-history-row.active{border-color:#c21f33}.alert-history-row.cleared{border-color:#d97706}.alert-history-row h3{margin:0 0 8px}.alert-history-row p{margin:4px 0}
[data-theme=dark] .alert-history-dialog{background:#17243a;color:#e2e8f0}[data-theme=dark] .alert-history-row{background:#23334b}

/* Original outdoor photography: calm scenery behind readable customer panels. */
.weather-page #page-weather{background:linear-gradient(180deg,#edf5fac9 0%,#edf5fa73 35%,#edf5fa26 75%),var(--home-photo,url('/outdoor-background.png')) center center/cover no-repeat;background-color:#afc5b4}
.weather-page #page-weather[data-phase=night]{background-image:linear-gradient(180deg,#071321e8,#071321a3),var(--home-photo,url('/outdoor-background.png'))}
.weather-page #page-weather>.house-orb,.weather-page #page-weather>.house-cloud{display:none}
.weather-page .room-overview .room-item{background:#f8faf9f7;box-shadow:0 8px 30px #102e4933;border-color:#ffffff}
:root[data-theme=dark] .weather-page .room-overview .room-item{background:#1d3034f7;border-color:#637c85;box-shadow:0 8px 30px #07132155}
.weather-page main:not(:has(.room-overview)){background:#fafbf5f7;box-shadow:0 8px 32px #102e4930}
:root[data-theme=dark] .weather-page main:not(:has(.room-overview)){background:#172b30f7}
.weather-page:has(#page-weather[data-phase=night]) main .room-overview>p.reading-help{color:#e0ecfa;text-shadow:0 1px 5px #071321}

/* User-selected plain backgrounds override weather and photo presentation. */
.weather-page[data-background=white]{background:#f6f7f8}.weather-page[data-background=dark]{background:#101d25}
.weather-page[data-background=white] #page-weather,.weather-page[data-background=dark] #page-weather{display:none}
:root .weather-page[data-background=white] main:has(.room-overview){--overview-ink:#102e49;--overview-muted:#29475e}
:root .weather-page[data-background=dark] main:has(.room-overview){--overview-ink:#f5f8ff;--overview-muted:#d6e5ef}
:root .weather-page[data-background=white] main .room-overview>p.reading-help{color:#29475e;text-shadow:none}
:root .weather-page[data-background=dark] main .room-overview>p.reading-help{color:#d6e5ef;text-shadow:none}
.weather-page[data-background=white] main #home,.weather-page[data-background=white] main .section-heading,.weather-page[data-background=white] main>.eyebrow,.weather-page[data-background=dark] main #home,.weather-page[data-background=dark] main .section-heading,.weather-page[data-background=dark] main>.eyebrow{text-shadow:none!important}

/* Custom photos keep their original contrast; readability belongs on the labels. */
.weather-page[data-background=custom] #page-weather{background:var(--home-photo) center center/cover no-repeat;filter:none;opacity:1;transition:none}
.weather-page[data-background=custom] #page-weather>*{display:none}
:root .weather-page[data-background=custom] main:has(.room-overview){--overview-ink:#102e49;--overview-muted:#29475e;--photo-label-bg:#f8faf9f2}
:root[data-theme=dark] .weather-page[data-background=custom] main:has(.room-overview){--overview-ink:#f5f8ff;--overview-muted:#d6e5ef;--photo-label-bg:#1d3034f5}
.weather-page[data-background=custom] main:has(.room-overview) #home{width:fit-content;padding:10px 18px;border-radius:22px;background:var(--photo-label-bg);text-shadow:none}
.weather-page[data-background=custom] main:has(.room-overview)>.eyebrow{display:table;padding:6px 12px;border-radius:12px;background:var(--photo-label-bg);text-shadow:none}
.weather-page[data-background=custom] .room-overview>.section-heading{padding:12px 18px;border-radius:22px;background:var(--photo-label-bg);text-shadow:none}
:root .weather-page[data-background=custom] main .room-overview>p.reading-help,.weather-page[data-background=custom] .room-overview>.room-weather-note{width:fit-content;padding:8px 14px;border-radius:14px;background:var(--photo-label-bg);color:var(--overview-muted);text-shadow:none}

/* Contact sensor state is explicit; it does not change critical-alert permissions. */
.room-item .room-status[data-tone=contact-open]{background:#fde4e0;color:#b42318}
.room-status[data-tone=contact-open] svg,.room-shortcut[data-contact=open] svg,.sensor-now[data-contact=open]>svg{color:#b42318;stroke:#b42318}
:root[data-theme=dark] .room-item .room-status[data-tone=contact-open]{background:#542b29;color:#ffb7aa}
:root[data-theme=dark] .room-status[data-tone=contact-open] svg,:root[data-theme=dark] .room-shortcut[data-contact=open] svg,:root[data-theme=dark] .sensor-now[data-contact=open]>svg{color:#ffb7aa;stroke:#ffb7aa}

.tile-main-link{color:inherit;text-decoration:none}.tile-main-link:hover{text-decoration:underline}
a.room-status{text-decoration:none;cursor:pointer}a.room-status:hover{box-shadow:0 0 0 2px currentColor}
a.room-status:focus-visible,.tile-main-link:focus-visible{outline:3px solid #397b67;outline-offset:4px}
.sensor-alert-dialog{max-width:520px;width:calc(100% - 36px);border:1px solid #b7c9c4;border-radius:24px;padding:26px;color:#17392f;background:#f8fbf9}
.sensor-alert-dialog::backdrop{background:#102e4970}.sensor-alert-fields{display:grid;gap:16px;margin:20px 0}
.sensor-alert-fields label{display:flex;flex-direction:column;gap:7px}.sensor-alert-fields .alert-toggle{flex-direction:row;align-items:center;gap:10px}
.sensor-alert-fields input[type=number],.sensor-alert-fields select{font:inherit;padding:10px;border:1px solid #839d95;border-radius:10px;background:#fff;color:#17392f;width:100%}
.sensor-alert-actions{display:flex;gap:10px;flex-wrap:wrap}.sensor-alert-status{min-height:24px}.sensor-alert-dialog [data-error=true]{color:#b42318}
:root[data-theme=dark] .sensor-alert-dialog{background:#1d3034;color:#edf5fa}:root[data-theme=dark] .sensor-alert-fields input[type=number],:root[data-theme=dark] .sensor-alert-fields select{background:#112326;color:#edf5fa}
:root[data-theme=dark] .sensor-alert-dialog [data-error=true]{color:#ffb7aa}

.sensor-alert-summary{margin:20px 0 24px;padding:20px;border:1px solid #c7d7d0;border-radius:20px;background:#edf4f0}
.sensor-alert-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sensor-alert-summary h4{margin:0;font-size:18px}.sensor-alert-summary .sensor-alert-options{margin:12px 0 6px}.sensor-alert-summary small{display:block;color:#526b63}.sensor-alert-summary .sensor-alert-edit{margin-top:16px}
.sensor-alert-enabled{padding:5px 12px;border-radius:20px;font-size:13px;font-weight:700;background:#dde5e2;color:#435c51}.sensor-alert-enabled[data-enabled=true]{background:#d7efdf;color:#185d35}
:root[data-theme=dark] .sensor-alert-summary{background:#172e2e;border-color:#45665e}:root[data-theme=dark] .sensor-alert-summary small{color:#bdcfd9}:root[data-theme=dark] .sensor-alert-enabled{background:#354c49;color:#dfebe5}:root[data-theme=dark] .sensor-alert-enabled[data-enabled=true]{background:#245b3f;color:#c0f0ce}

/* Alert status overrides decorative room/weather colors, including dark mode. */
[data-critical-alert=active]{--critical-tile-bg:#fff0f0;--critical-tile-border:#c52d31;--critical-tile-text:#991b27}
[data-critical-alert=cleared]{--critical-tile-bg:#fff3df;--critical-tile-border:#c97812;--critical-tile-text:#885006}
:root[data-theme=dark] [data-critical-alert=active]{--critical-tile-bg:#48232a;--critical-tile-border:#ff7981;--critical-tile-text:#ffd6d9}
:root[data-theme=dark] [data-critical-alert=cleared]{--critical-tile-bg:#49351e;--critical-tile-border:#efac52;--critical-tile-text:#ffe0ad}
[data-alert-devices][data-critical-alert]{background:var(--critical-tile-bg)!important;border:2px solid var(--critical-tile-border)!important;box-shadow:0 0 0 1px var(--critical-tile-border),0 6px 20px #172e4920!important}
.room-status[data-critical-alert]{color:var(--critical-tile-text)!important}

.sensor-alert-adjustments{display:grid;gap:16px}.sensor-alert-adjustments[hidden]{display:none}

/* Keep customer navigation and connection status visible while scrolling. */
body:not(.public-view) .topbar{position:sticky;top:0;z-index:100}
#appliance-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;white-space:nowrap}
#appliance-status:before{content:"";width:10px;height:10px;flex-shrink:0;border-radius:50%;background:#dc2626;box-shadow:0 0 0 3px #dc262622}
#appliance-status[data-online=true]:before{background:#16a34a;box-shadow:0 0 0 3px #16a34a22}
.public-view #appliance-status{display:none}
@media(max-width:600px){body:not(.public-view) .topbar{padding:0 12px;gap:8px}#appliance-status{font-size:10px;gap:5px}body:not(.public-view) .brand{font-size:18px}}

body:not(.public-view) .critical-alerts{top:var(--customer-header-height,96px);z-index:90}
@media(max-width:600px){body:not(.public-view) .critical-alerts{top:78px}}

/* Explicit history scales and pointer/keyboard/touch reading details. */
.history-axis-label{fill:#344c43;font:13px Inter,system-ui,sans-serif;font-weight:600}
.history-grid{fill:none;stroke:#a2b0a4;stroke-opacity:.25;stroke-dasharray:3 4}
.history-point-detail{font-size:12px;line-height:1.6;min-height:3.2em;color:#344c43;overflow-wrap:anywhere}
.history-dot,.history-state-band{cursor:crosshair}
.history-dot:hover,.history-dot:focus{stroke:#e7ba3e;stroke-width:4;outline:none}
.history-state-band:focus{stroke:#173b5b;stroke-width:3;outline:none}
.history-state-label{pointer-events:none}
[data-theme=dark] .history-axis-label,[data-theme=dark] .history-point-detail{fill:#d5e4dc;color:#d5e4dc}
[data-theme=dark] .history-dot{fill:#80cfb8}

.history-line.is-breached{stroke:#c21f33;stroke-width:3}
.history-dot.is-breached{fill:#c21f33}
.history-threshold-legend{font-size:12px;line-height:1.5;color:#9e2131}
[data-theme=dark] .history-line.is-breached{stroke:#ff7585}
[data-theme=dark] .history-dot.is-breached{fill:#ff7585}
[data-theme=dark] .history-threshold-legend{color:#ffabb5}

/* Alert state stays visible in navigation until all pending alerts are acknowledged. */
:root body:not(.public-view) .topbar[data-alert-level=active]{background:#a81022;color:#fff;border-bottom:3px solid #ffb3bc}
:root body:not(.public-view) .topbar[data-alert-level] .brand,
:root body:not(.public-view) .topbar[data-alert-level] .settings-link{color:inherit}
:root body:not(.public-view) .topbar[data-alert-level] .button{background:#fff;color:#352000;border-color:#69400d}
:root .critical-alert-card.cleared{background:#ffd84d;color:#352000;border-color:#987400;box-shadow:0 5px 24px #9a580030}
:root .critical-alert-card.cleared small{color:#352000}
