/* Home: summary, interactive plan, then compact room previews. */
.dashboard-health-stack{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:14px;min-width:0;align-items:start}
.dashboard-health-card{border:1px solid var(--line,#dfe5e8);border-radius:20px;background:var(--surface,#fff);min-width:0;overflow:hidden;margin:0;padding:0}
.dashboard-health-head{display:flex;align-items:center;gap:10px;padding:18px 18px 12px}
.dashboard-health-card>summary.dashboard-health-head{list-style:none;cursor:pointer;margin:0;padding:14px 18px;min-height:68px}
.dashboard-health-card>summary::-webkit-details-marker{display:none}
.dashboard-health-card>summary.dashboard-health-head h2{font-size:18px}
.health-card-toggle{display:grid;place-items:center;flex-shrink:0;margin-left:auto;width:24px;height:24px;color:var(--muted,#5c6b79)}
.health-card-toggle::before{content:"";display:block;width:8px;height:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(-45deg)}
.dashboard-health-card[open]>summary .health-card-toggle::before{transform:rotate(45deg)}
.dashboard-health-card:not([open])>.dashboard-health-body{display:none}
.dashboard-health-body{padding-top:4px}
.dashboard-health-tools{display:flex;justify-content:flex-end;padding:0 14px 10px}
.dashboard-health-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:#fce2d5;color:#c84f39;border-radius:13px}
.dashboard-health-icon .icon{width:21px;height:21px}
.dashboard-health-head>div{min-width:0}
.dashboard-health-head h2{font-size:20px;color:var(--navy,#183b63);margin:0;line-height:1.25}
.dashboard-health-head p{font-size:12px;color:var(--muted,#5c6b79);margin:4px 0 0;overflow-wrap:anywhere}
.health-settings-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;flex-shrink:0;min-width:44px;min-height:44px;margin-left:auto;border:0;background:transparent;color:var(--navy,#183b63);padding:8px}
.dashboard-health-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 10px 14px}
.dashboard-health-metric{display:flex;flex-direction:column;align-items:flex-start;padding:8px 12px 10px;min-width:0;text-align:left;border:0;border-radius:10px;background:transparent;color:var(--navy,#183b63)}
.dashboard-health-metric+.dashboard-health-metric{box-shadow:-1px 0 0 var(--line,#dfe5e8)}
.dashboard-health-metric[aria-expanded=true]{background:#edf3f7}
.dashboard-health-metric:disabled{opacity:1;cursor:default}
.health-metric-label{min-height:58px;font-size:12px;font-weight:500;color:var(--muted,#5c6b79);display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.health-metric-label .icon{width:17px;height:17px;color:var(--navy,#183b63)}
.dashboard-health-metric strong{font-family:Inter,sans-serif;font-size:clamp(20px,3vw,25px);font-weight:600;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.4}
.dashboard-health-metric small{font-size:11px;line-height:1.4;color:var(--muted,#5c6b79);margin-top:3px;overflow-wrap:anywhere}
.dashboard-health-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line,#dfe5e8);margin:0 18px;padding:8px 0}
.dashboard-health-footer>div{min-width:0;overflow-wrap:anywhere}
.dashboard-health-footer b,.dashboard-health-footer small{display:block;font-size:12px;line-height:1.5}
.dashboard-health-footer b{font-weight:500;color:var(--navy,#183b63)}
.dashboard-health-footer small{font-size:11px;color:var(--muted,#5c6b79)}
.dashboard-health-footer>button{font-size:12px;min-height:44px;flex-shrink:0;padding:7px 0 7px 8px}
.dashboard-health-sharing{font-size:11px;color:var(--muted,#5c6b79);margin:0;padding:0 18px 15px}
.health-other-readings{margin:0 18px 15px}.health-other-readings>summary{min-height:44px;padding:10px 0;color:var(--navy,#183b63);font-size:12px}.health-other-readings .personal-health-readings{margin:4px 0 0}
.health-dashboard-empty{padding:8px 18px 18px;margin:0;font-size:14px}
.dashboard-health-trends{padding:16px;background:#edf3f7;border-top:1px solid var(--line,#dfe5e8)}
.health-trend-tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--surface,#fff);margin-bottom:15px}
.health-trend-tabs button{flex:1;min-width:0;min-height:44px;padding:6px 8px;font-size:12px;border:0;background:transparent;color:var(--navy,#183b63)}
.health-trend-tabs button[aria-pressed=true]{background:var(--navy,#183b63);color:#fff;border-radius:9px}
.health-trend-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:5px 12px;margin-bottom:12px}
.health-trend-head h3{font-size:14px;margin:0;color:var(--navy,#183b63)}
.health-trend-head small{font-size:11px;color:var(--muted,#5c6b79)}
.health-trend-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;min-width:0}
.health-trend-day{display:flex;align-items:center;flex-direction:column;gap:6px;font-size:11px;color:var(--muted,#5c6b79);min-width:0;font-variant-numeric:tabular-nums}
.health-trend-value{text-align:center;min-height:32px;display:flex;align-items:flex-end;justify-content:center;overflow-wrap:anywhere;color:var(--navy,#183b63)}
.health-trend-track{height:80px;display:flex;width:min(60%,28px);align-items:flex-end;justify-content:center}
.health-trend-bar{display:block;width:100%;background:#8cabc6;min-height:2px;border-radius:4px 4px 0 0}
.health-trend-bar.is-today{background:#c84f39}
.health-trend-gap{align-self:center}
.health-trend-note{margin:12px 0 0;font-size:11px;color:var(--muted,#5c6b79);overflow-wrap:anywhere}
.health-dashboard-sharing-controls h3{font-size:16px;margin:8px 0}
.health-dashboard-sharing-controls>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line,#dfe5e8)}
.health-dashboard-sharing-controls>div>span{min-width:0}
.health-dashboard-sharing-controls small{display:block;color:var(--muted,#5c6b79);font-size:12px;overflow-wrap:anywhere}
.health-dashboard-sharing-controls button{min-height:44px;flex-shrink:0;font-size:12px}
.health-summary-master{display:flex;align-items:center;gap:10px;min-height:44px}
@media(max-width:390px){.dashboard-health-head{padding:15px 12px 9px;gap:8px}.dashboard-health-head h2{font-size:18px}.dashboard-health-icon{width:34px;height:34px;flex-basis:34px}.dashboard-health-metric{padding-left:8px;padding-right:8px}.dashboard-health-metric strong{font-size:20px}.health-metric-label{font-size:11px}.dashboard-health-footer{margin:0 14px}}
@media(max-width:340px){.dashboard-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.health-metric-label{min-height:28px;flex-direction:row;align-items:center}.dashboard-health-metric:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;gap:0 10px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line,#dfe5e8);box-shadow:none}.dashboard-health-metric:last-child strong{grid-column:2;grid-row:1/3}.dashboard-health-metric:last-child small{grid-column:1}.health-trend-bars{gap:3px}}
.home-screen{display:grid;gap:20px;min-width:0}
.home-screen .home-heading{margin:0;align-items:center}
.home-screen .home-heading h1{font-size:clamp(25px,3vw,32px);margin:0 0 4px}
.home-screen .home-heading p{font-size:13px;margin:0;color:var(--muted)}
.home-summary-block{padding:18px 20px;border:1px solid #dce5de;border-radius:16px;background:#f4f7f2}
.home-screen .home-quick-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:0;margin:0;border:0;background:none;border-radius:0}
.home-screen .home-quick-summary>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.home-screen .home-quick-summary .eyebrow{font-size:12px;order:2;letter-spacing:.04em}
.home-screen .home-quick-summary h2{font-size:19px;margin:0;line-height:1.3}
.home-screen .home-quick-summary p{grid-column:1;margin:0;font-size:15px;line-height:1.55;max-width:95ch}
.home-screen .home-quick-summary>button{grid-column:2;grid-row:1/3;align-self:center;font-size:13px;min-height:44px;padding:6px 0 6px 12px;white-space:nowrap}
.home-screen .home-glance{display:flex;flex-wrap:wrap;gap:4px 16px;background:none;border:0;margin:9px 0 -6px;padding:0;border-radius:0}
.home-screen .home-glance button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:5px 0;min-height:44px;min-width:0;border-radius:5px;text-align:left}
.home-screen .home-glance b{font-family:Inter,sans-serif;font-size:12px;font-weight:500;line-height:1.4}
.home-screen .home-glance .glance-dot{width:7px;height:7px;flex:0 0 7px}
.home-screen .glance-calendar{display:inline-flex;width:14px;height:14px}
.home-screen .glance-calendar .icon{width:14px;height:14px}
.home-screen .home-glance button:hover b,.home-screen button.link:hover{text-decoration:underline;text-underline-offset:3px}
.home-screen .home-context:empty{display:none}
.home-screen .home-context{display:block}
.home-screen .home-attention{margin-top:10px;border-radius:10px;padding:10px 12px;background:#fff5ed;border:1px solid #edc5b7}
.home-screen .attention-heading{display:none}
.home-screen .home-attention>button{padding:3px 0;min-height:44px;border:0;background:none}
.home-screen .home-attention>button b{font-size:14px}
.home-screen .home-attention>button small{font-size:12px}
.home-screen .home-dashboard{display:block;margin:0}
.home-screen .home-map-panel{width:100%;min-width:0}
.home-screen .home-model{margin:0;padding:20px;border-radius:16px;min-width:0}
.home-screen .home-model>.card-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:0}
.home-screen .home-model h2,.home-screen .home-controls h2{font-size:20px;margin:0;line-height:1.3}
.home-screen .home-section-note{font-size:13px;color:var(--muted);line-height:1.5;margin:5px 0 0}
.home-screen .home-map-views{display:flex;flex-shrink:0;gap:2px;background:#edf1ef;border-radius:9px;padding:3px}
.home-screen .home-map-views button{border:0;min-height:44px;padding:7px 13px;font-size:13px;background:transparent}
.home-screen .home-map-views button[aria-pressed=true]{background:var(--navy);color:#fff;box-shadow:none}
.home-screen .home-map-controls{display:flex;align-items:center;gap:10px 20px;margin:14px 0 12px;flex-wrap:wrap}
.home-screen .home-map-controls label{display:flex;align-items:center;gap:8px;flex:0 1 auto;max-width:none;min-width:0;font-size:12px}
.home-screen .home-map-controls select{font-size:14px;min-height:44px;min-width:150px;max-width:230px;padding:7px 30px 7px 10px}
.home-screen .home-map-legend{display:flex;flex-wrap:wrap;flex:1 1 280px;gap:7px 13px;padding:0;margin-left:auto;justify-content:flex-end;font-size:12px;line-height:1.5}
.home-screen .home-map-legend>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.home-screen .room-area-key{display:inline-block;width:10px;height:10px;border:1px solid #adb8c2;border-radius:3px;background:#edf0f3}
.home-screen .room-area-key.presence{background:#93c8ac;border-color:#548d70}
.home-screen .room-area-key.clear{background:#edf4ef;border-color:#a8c2b1}
.home-screen .room-area-key.last-known{background:#efdaab;border-color:#b49856}
.home-screen .room-area-key.alert{background:#f0b7a6;border-color:#c47057}
.home-screen .room-area-key.unconfigured{border-style:dashed}
.home-screen .home-map-layout{min-width:0}
.home-screen .home-map-stage{min-width:0}
.home-screen .home-map-surface{background:#f8faf8;border:1px solid #dce5de;border-radius:12px;overflow:hidden}
.home-screen .home-floor-plan{height:380px;width:100%;padding:22px;border:0;background-color:#f8faf8;background-image:radial-gradient(#c6d1c855 .65px,transparent .65px);background-size:20px 20px}
.home-screen .home-model-canvas{height:380px;min-height:300px;background:#f8faf8}
.home-screen .home-floor-plan .home-map-room{--room-fill:#edf0f3;--room-edge:#aebcc5}
.home-screen .home-floor-plan .home-map-room.clear{--room-fill:#edf4ef;--room-edge:#a8c2b1}
.home-screen .home-floor-plan .home-map-room.presence,.home-screen .home-floor-plan .home-map-room.motion{--room-fill:#93c8ac;--room-edge:#548d70}
.home-screen .home-floor-plan .home-map-room.last-known{--room-fill:#efdaab;--room-edge:#b49856}
.home-screen .home-floor-plan .home-map-room.alert{--room-fill:#f0b7a6;--room-edge:#c47057}
.home-screen .home-floor-plan .home-map-room [data-room-shape]{fill:var(--room-fill);stroke:var(--room-edge);stroke-width:1.5px;filter:drop-shadow(0 2px 2px #284c3c0b)}
.home-screen .home-floor-plan .home-map-room.unconfigured [data-room-shape],.home-screen .home-floor-plan .home-map-room.unavailable [data-room-shape]{stroke-dasharray:4 3}
.home-screen .home-floor-plan .home-map-room:hover [data-room-shape]{fill:var(--room-fill);filter:brightness(.98)}
.home-screen .home-floor-plan .home-map-room.selected [data-room-shape]{fill:var(--room-fill);stroke:var(--navy);stroke-width:3px;stroke-dasharray:none}
.home-screen .home-floor-plan [data-map-room]:focus-visible [data-room-shape]{stroke:var(--navy);stroke-width:3px}
.home-screen .home-floor-plan .room-label text{fill:#183b3b;stroke:#f8faf8;stroke-width:.07em}
.home-screen .home-plan-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:1px 0}
.home-screen .map-fit-actions{display:flex;gap:14px;flex-wrap:wrap;margin:0;padding:0}
.home-screen .map-fit-actions button,.home-screen .map-room-list>summary{font-size:12px;min-height:44px;padding:8px 0;background:none;border:0}
.home-screen .map-room-list{margin:0;max-width:52%}
.home-screen .map-room-list>summary{cursor:pointer;color:var(--navy);text-align:right}
.home-screen .map-room-list[open]{flex:1;max-width:none}
.home-screen .map-room-list .map-room-options{grid-template-columns:1fr}
.home-screen .map-room-list .map-room-options button{padding:9px 12px;min-height:44px}
.home-screen .home-room-prompt{padding:8px 0 4px;margin:0;border:0;border-radius:0;background:none;min-height:0}
.home-screen .home-room-prompt p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.home-screen .has-room-selection [data-home-room-status]{padding:15px;border:1px solid #dce5de;border-radius:12px;background:#f7f9f6;min-width:0}
.home-screen .room-selection{padding:0;margin:0;border:0;min-width:0;background:none}
.home-screen .room-selection-heading{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.home-screen .room-selection-heading h3{font-size:18px;margin:0;overflow-wrap:anywhere;min-width:0;line-height:1.35}
.home-screen .room-clear-selection{font-size:12px!important;min-height:44px;padding:6px 0 6px 8px;margin-left:auto;flex-shrink:0}
.home-presence{display:inline-flex;align-items:center;gap:5px;font-family:Inter,sans-serif;font-size:12px;font-weight:500;line-height:1.5;color:#596a75;white-space:normal}
.home-presence i{width:6px;height:6px;border-radius:50%;background:#aab5bc;flex:0 0 6px}
.home-presence.presence,.home-presence.motion{color:#30694f}
.home-presence.presence i,.home-presence.motion i{background:#397f58}
.home-presence.clear i{background:#90a99b}
.home-presence.last-known{color:#806323}
.home-presence.last-known i{background:#b38b36}
.home-presence.alert{color:#a7432d}
.home-presence.alert i{background:#c7543a}
.home-screen .home-selected-status{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;margin:1px 0 10px}
.home-screen .home-selected-status .home-presence{font-size:12px}
.home-screen .home-selected-status small{font-size:12px;color:var(--muted)}
.home-screen .home-selected-devices .room-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:9px 0 14px}
.home-screen .home-selected-devices .room-metric{min-width:0}
.home-screen .home-selected-devices .room-metric dt{font-size:12px}
.home-screen .home-selected-devices .room-metric dd{font-size:21px;margin-top:3px}
.home-screen .home-selected-devices .appliance-metric{grid-column:1/-1}
.home-screen .home-selected-devices .appliance-metric dd{font-family:Inter,sans-serif;font-size:13px;font-weight:600}
.home-screen .home-selected-devices .appliance-metric small{font-size:12px}
.home-screen .home-room-controls{display:grid;gap:0}
.home-screen .home-control-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e1e8e2;min-width:0}
.home-screen .home-control-row>div{min-width:0}
.home-screen .home-control-row h4{font-size:14px;line-height:1.4;margin:0;font-weight:600;overflow-wrap:anywhere}
.home-screen .home-control-row p{font-size:12px;line-height:1.4;margin:3px 0 0;color:var(--muted)}
.home-screen .home-command-status{font-size:12px;line-height:1.4;display:block;margin-top:3px}
.home-screen .home-device-toggle{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;min-height:44px;min-width:79px;flex-shrink:0;border:0;background:none;padding:5px 0 5px 8px;font-size:12px;font-weight:600}
.home-screen .home-device-toggle:disabled{opacity:.5}
.home-screen .home-switch-track{display:inline-flex;align-items:center;width:32px;height:20px;padding:3px;background:#cad5dc;border-radius:12px;flex:0 0 32px}
.home-screen .home-switch-track i{width:14px;height:14px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #183b631a}
.home-screen .is-on .home-switch-track{background:#397b5e}
.home-screen .is-on .home-switch-track i{transform:translateX(12px)}
.home-screen .is-mixed .home-switch-track{background:#6f9d87}
.home-screen .is-mixed .home-switch-track i{transform:translateX(6px)}
.home-screen .home-room-options{display:flex;justify-content:flex-end;margin-top:5px}
.home-screen .home-room-options button{font-size:12px;min-height:44px;padding:5px 0 5px 8px}
.home-screen .home-room-empty{font-size:13px;line-height:1.5;color:var(--muted)}
.home-screen .home-map-caption{margin-top:8px;padding-top:8px;gap:12px}
.home-screen .home-map-caption small,.home-screen .home-map-caption .link{font-size:12px;line-height:1.5}
.home-screen .home-map-caption .link{min-height:44px;padding:5px 0 5px 10px}
.home-screen .home-controls>.card-head{margin:0 0 12px;align-items:center;gap:12px}
.home-screen .home-controls>.card-head>.link{font-size:13px;min-height:44px;white-space:nowrap;padding:6px 0 6px 10px}
.home-screen .home-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-screen .home-room-grid{align-items:start}
.home-screen .home-room-compact{display:flex;flex-direction:column;gap:8px;padding:13px 15px;border:1px solid #dce3e5;border-radius:12px;background:#fff;min-width:0;margin:0}
.home-screen .home-room-compact:has(.home-room-title[aria-pressed=true]){border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);background:#f9fbfa}
.home-screen .home-room-compact>h3{font-size:17px;line-height:1.35;margin:0;min-width:0}
.home-screen .home-room-title{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;width:100%;padding:0;border:0;background:none;text-align:left;font-family:Nunito,Inter,sans-serif;font-size:17px;line-height:1.35;font-weight:800;white-space:normal}
.home-screen .home-room-title>span:first-child{min-width:0;overflow-wrap:anywhere}
.home-screen .home-room-title>span:last-child{font-size:22px;color:#6b8074;font-weight:500;flex-shrink:0}
.home-screen .home-room-title:focus-visible{outline:2px solid var(--navy);outline-offset:3px;border-radius:4px}
.home-screen .home-room-context{display:grid;gap:3px}
.home-screen .home-room-context-line{margin:0;font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-screen .home-room-context-line .home-presence{font-size:12px}
.home-screen .home-room-media{display:grid;gap:4px}
.home-screen .home-room-media-line{display:flex;align-items:baseline;gap:7px;margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.home-screen .home-media-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b3bcb7;flex:0 0 6px}
.home-screen .home-media-dot.playing{background:#397b5e}
.home-screen .home-room-latest-use{font-size:12px;line-height:1.5;margin:0;color:var(--muted);overflow-wrap:anywhere}
.home-screen .home-room-latest-use>span{display:block;font-size:10px;line-height:1.4;color:#68796e;letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px}
.home-screen .home-room-compact .home-room-controls{margin-top:1px;border-top:1px solid #e1e8e2}
.home-screen .home-room-compact .home-control-row{padding:6px 0;gap:8px}
.home-screen .home-room-compact .home-control-row:last-child{border-bottom:0}
.home-screen .home-room-compact .home-control-row h4{font-size:13px}
.home-screen .home-room-compact .home-control-row p{font-size:11px;margin-top:1px}
.home-screen .home-room-empty{margin:0}
.home-screen .home-secondary{display:grid;gap:16px;padding-top:3px}
.home-screen .home-people{margin:0}
.home-screen .home-deeper{margin:0;gap:9px}
.home-screen .home-detail>summary{min-height:48px;font-size:13px}
@media(min-width:1050px){.home-screen .home-map-layout.has-room-selection{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:16px;align-items:start}}
@media(max-width:1049px){.home-screen .has-room-selection [data-home-room-status]{margin-top:8px}.home-screen .home-selected-devices .room-metrics{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.home-screen .home-selected-devices .appliance-metric{grid-column:auto}.home-screen .home-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.home-screen{gap:16px}.home-summary-block{padding:15px 16px}.home-screen .home-model{padding:15px}.home-screen .home-model>.card-head{align-items:flex-start;gap:10px}.home-screen .home-model .home-section-note{max-width:24ch}.home-screen .home-model h2,.home-screen .home-controls h2{font-size:19px}.home-screen .home-map-views button{padding:7px 11px;font-size:12px}.home-screen .home-map-controls{margin-top:12px;gap:8px}.home-screen .home-map-controls label{flex:1 1 auto}.home-screen .home-map-controls select{min-width:0;max-width:100%;width:100%;font-size:16px}.home-screen .home-map-legend{flex-basis:100%;justify-content:flex-start;font-size:12px;gap:5px 11px;padding:4px 0}.home-screen .home-floor-plan{height:300px;padding:15px}.home-screen .home-model-canvas{height:300px}.home-screen .home-map-caption small{font-size:12px}.home-screen .home-quick-summary{gap:6px 8px}.home-screen .home-quick-summary p{font-size:14px;grid-column:1/-1}.home-screen .home-quick-summary>button{grid-row:1;font-size:12px;align-self:start}.home-screen .home-quick-summary .eyebrow{font-size:12px}.home-screen .home-glance{gap:0 14px;margin-top:6px}.home-screen .home-glance b{font-size:12px}.home-screen .home-room-preview-heading{align-items:flex-start}.home-screen .home-map-caption{align-items:center}.home-screen .home-control-row h4{font-size:15px}.home-screen .home-map-caption>.link{white-space:nowrap}}
@media(max-width:520px){.home-screen .home-room-grid{grid-template-columns:1fr}.home-screen .home-room-compact{padding:12px 14px}.home-screen .home-room-preview-heading{gap:5px 12px}.home-screen .home-room-preview-heading>b{font-size:17px}.home-screen .home-presence{font-size:12px}.home-screen .home-preview-metrics{gap:8px 20px}.home-screen .home-map-caption{align-items:flex-start}.home-screen .home-section-note{font-size:12px}.home-screen .home-quick-summary h2{font-size:18px}.home-screen .home-quick-summary>div{gap:2px 7px}.home-screen .home-glance b{font-size:12px}}
.comfortable .home-screen .home-quick-summary p{font-size:16px}
.comfortable .home-screen .home-control-row h4{font-size:16px}
.comfortable .home-screen .home-device-toggle{font-size:14px;min-height:48px}
.comfortable .home-screen .home-room-title{font-size:18px;min-height:44px}
.comfortable .home-screen .home-presence{font-size:12px}
.comfortable .home-screen .home-room-context-line,.comfortable .home-screen .home-room-media-line,.comfortable .home-screen .home-room-latest-use{font-size:14px}

/* Room readings stay compact, with one status for each identified media device. */
.home-screen .has-room-selection [data-home-room-status]{padding:14px 16px;background:#fff;border-color:#dce3e5;border-radius:14px}
.home-screen .home-selected-devices{display:grid;gap:10px}
.home-screen .home-selected-status{margin:4px 0 10px}
.home-screen .home-room-context{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 13px}
.home-screen .home-room-context-line{max-width:100%;font-size:12px;line-height:1.5}
.home-screen .home-room-context-line:has(.home-presence){flex-basis:100%}
.home-screen .home-room-media{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.home-screen .home-room-media-line{display:inline-flex;align-items:center;gap:7px;max-width:100%;margin:0;padding:6px 9px;border:1px solid #e0e6e4;border-radius:8px;background:#f8faf9;font-size:12px;line-height:1.4}
.home-screen .home-room-media-line>svg{flex:0 0 16px;color:#536a68}
.home-screen .home-room-media-line>span{min-width:0;overflow-wrap:anywhere}
.home-screen .home-media-state{font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap}
.home-screen .home-media-state.is-on{color:#30694f}
.home-screen .home-media-state.is-off{color:#65717a}
.home-screen .home-room-latest-use>span{display:inline;margin:0 5px 0 0;font-size:inherit;line-height:inherit;letter-spacing:normal;text-transform:none;color:var(--muted)}
.home-screen .home-control-row{padding:9px 0}
.home-screen .home-room-controls{border-top:1px solid #e1e8e2}
.home-screen .home-control-row:last-child{border-bottom:0}
.home-screen .home-room-options{margin:0;border-top:0}
.home-screen .home-room-options button{padding:0 0 0 8px;min-height:36px;font-size:12px}
.home-screen .map-fit-actions{flex-wrap:nowrap;gap:10px;min-width:0}
.home-screen .map-fit-actions button,.home-screen .map-room-list>summary{white-space:nowrap;line-height:1.35}
.comfortable .home-screen .home-room-media-line,.comfortable .home-screen .home-room-context-line{font-size:13px}
.comfortable .home-screen .home-media-state{font-size:12px}

.home-screen .home-preview-usage>b{font-family:Inter,sans-serif;font-size:13px;font-weight:500;line-height:1.45}

@media(max-width:520px){.home-screen .home-model .home-section-note{display:none}.home-screen .home-floor-plan{height:260px}.home-screen .home-model-canvas{height:260px;min-height:260px}}

/* One daily disclosure; a short overview gives way to four continuous paragraphs. */
.home-screen .home-summary-block{padding:22px;background:var(--cream,#fff7ea);border-color:var(--line);border-radius:20px}
.home-daily-disclosure{padding:0;margin:0;border:0;background:transparent}
.home-daily-topbar{display:block;min-height:44px;list-style:none;font:inherit}
.home-daily-topbar::-webkit-details-marker{display:none}
.home-daily-heading-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.home-daily-heading{font-family:Nunito,system-ui,sans-serif;font-size:22px;font-weight:800;line-height:1.3;margin:0;color:var(--navy)}
.home-daily-heading-row>small{font-size:12px;line-height:1.5;color:var(--muted)}
.home-daily-preview{display:block;margin-top:8px;font-size:15px;line-height:1.6;color:var(--navy);overflow-wrap:anywhere}
.home-daily-disclosure[open]>.home-daily-topbar .home-daily-preview{display:none}
.home-daily-disclosure[open]>.home-daily-topbar{margin-bottom:14px}
.home-daily-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.home-daily-section{padding:0;min-width:0;border:0;border-bottom:1px solid var(--line);background:transparent}
.home-daily-section:nth-child(odd){padding-right:18px}
.home-daily-section:nth-child(even){padding-left:18px;border-left:1px solid var(--line)}
.home-daily-section>h3{display:flex;align-items:center;gap:10px;min-height:62px;margin:0;padding:12px 0;font-family:Nunito,system-ui,sans-serif;font-size:17px;font-weight:800;line-height:1.4;color:var(--navy)}
.home-daily-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#edf3f7;color:var(--navy)}
.home-daily-icon .icon{width:18px;height:18px}
.home-daily-section:first-child .home-daily-icon{background:#fce2d5}
.home-daily-toggle{margin-left:auto;font-family:Inter,system-ui,sans-serif;font-weight:400;font-size:22px;line-height:1}
.home-daily-disclosure[open]>.home-daily-topbar .home-daily-toggle{transform:rotate(45deg)}
.home-daily-copy{padding:0 0 16px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.home-daily-copy p{margin:0 0 9px;font-size:inherit;line-height:inherit}
.home-daily-copy .home-daily-source{font-size:12px;color:var(--muted)}
.home-daily-records{margin:10px 0;padding:0;border:0;background:transparent}
.home-daily-records>summary{min-height:44px;font-size:14px;line-height:1.5;color:var(--navy)}
.home-screen .home-daily-records .daily-summary{padding:12px 0 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.home-daily-records .daily-summary h2{font-size:18px}
.home-daily-records .daily-summary .brief-period{margin:0}
.home-daily-actions{display:flex;flex-wrap:wrap;gap:0 16px}
.home-daily-actions button.link{font-size:13px;min-height:44px;padding:5px 0;text-align:left}
.home-daily-notice-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:1px 6px;border-radius:999px;background:#fce2d5;color:var(--navy);font:600 12px Inter,system-ui,sans-serif}
.home-screen .home-ask-compact{margin:20px 0 0}
.home-screen .home-ask-compact .ask-homekind{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.home-ask-compact .ask-homekind>.eyebrow,.home-ask-compact .ask-homekind>.muted{display:none}
.home-ask-compact .ask-homekind>h2{font-size:20px;margin:0 0 10px}
.home-ask-compact .form-stack{display:flex;align-items:center;gap:8px;margin:0;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff}
.home-ask-compact .form-stack>.field{flex:1;min-width:0;margin:0}
.home-ask-compact input{min-width:0;width:100%;font-size:16px;border:0;background:transparent;box-shadow:none;padding:10px}
.home-ask-compact .form-stack>.primary{flex:0 0 auto;min-height:44px;max-width:45%;padding:10px 16px;border-radius:10px;background:var(--navy);border-color:var(--navy);color:#fff}
.home-ask-compact .brief-answer:not(:empty){margin-top:16px;padding-top:16px}
.comfortable .home-daily-heading{font-size:25px}
.comfortable .home-daily-section>h3{font-size:19px;min-height:68px}
.comfortable .home-daily-preview{font-size:17px}
.comfortable .home-daily-copy{font-size:17px}
.comfortable .home-daily-actions button.link{font-size:15px}
.comfortable .home-ask-compact .ask-homekind>h2{font-size:24px}
@media(max-width:620px){
 .home-screen .home-summary-block{padding:18px 16px;border-radius:16px}
 .home-daily-sections{grid-template-columns:minmax(0,1fr)}
 .home-daily-section:nth-child(odd),.home-daily-section:nth-child(even){padding:0;border-left:0}
 .home-daily-section>h3{min-height:58px}
 .home-daily-heading{font-size:21px}
 .home-daily-copy{padding-left:0}
}
