/* Room layout adopts the existing app's colours, typography and icon catalogue. */
.space-dashboard{--dash-ok:#2d7565;--dash-warn:#946221;--dash-warn-bg:#fff3dd;--dash-radius:5px;min-width:0}
.dashboard-summary{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;margin:0 0 24px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.dashboard-stat{display:inline-flex;align-items:center;gap:12px;min-height:38px;padding:6px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);font-size:12px}
.dashboard-stat b{color:var(--ink);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.dashboard-stat[aria-pressed=true]{border-color:var(--line);background:#fff}
.dashboard-stat:hover{background:#fff;color:var(--ink)}
.dashboard-stat.needs-attention,.dashboard-stat.needs-attention b{color:var(--dash-warn)}
.dashboard-stat>.icon{width:13px;height:13px;color:var(--muted)}
.dashboard-body{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);grid-template-rows:auto 1fr;grid-template-areas:'rooms map' 'rooms automation';gap:20px 24px;align-items:start}
.dashboard-rooms{grid-area:rooms;min-width:0}
.dashboard-map{grid-area:map;min-width:0;overflow:hidden}
.dashboard-automation{grid-area:automation;min-width:0}
.dashboard-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;min-height:25px}
.dashboard-section-heading>div{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.dashboard-section-heading h2{font-size:15px;font-weight:600;margin:0}
.dashboard-section-heading>div>span{color:var(--muted);font-size:11px}
.dashboard-section-heading .text-button{font-size:12px;flex:none}
.dashboard-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.dashboard-room:only-child{grid-column:1/-1}
.dashboard-room{min-width:0;border-radius:var(--dash-radius);overflow:hidden}
.dashboard-room-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:53px;padding:14px 16px;border-bottom:1px solid var(--line)}
.dashboard-room-heading h3{font-size:15px;font-weight:600;margin:0;overflow-wrap:anywhere;line-height:1.5}
.dashboard-room-heading>span{font-size:11px;flex:none;white-space:nowrap}
.dashboard-room-presence.on{color:var(--dash-ok)}
.dashboard-room-presence.off{color:var(--muted)}
.dashboard-room-presence.unknown{color:var(--dash-warn)}
.dashboard-device{display:flex;align-items:center;gap:7px;min-width:0;padding:15px 13px;min-height:90px}
.dashboard-device+.dashboard-device{border-top:1px solid #edf0f2}
.dashboard-device.selected{background:var(--soft)}
.dashboard-device-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:0;border:0;background:none;text-align:left;color:inherit;min-height:48px}
.dashboard-device-open:hover .dashboard-device-copy>b{text-decoration:underline;text-underline-offset:3px}
.dashboard-device .appliance-bubble{width:36px;height:36px}
.dashboard-device .mdi-icon{width:22px;height:22px}
.dashboard-device-copy{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.dashboard-device-copy>b{font-size:13px;line-height:1.5;font-weight:550;overflow-wrap:anywhere}
.dashboard-device-copy>small{font-size:10px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.dashboard-device-state{font-size:12px;white-space:nowrap;font-weight:500;flex:none}
.dashboard-device-state.on{color:var(--dash-ok)}
.dashboard-device-state.off{color:var(--muted)}
.dashboard-device-state.unknown{color:var(--dash-warn)}
.dashboard-device-state.sensor{color:var(--muted)}
.dashboard-device .sim-power-button{flex:none;width:38px;height:38px;min-height:38px;border-radius:50%}
.dashboard-device .sim-power-button .icon{width:18px;height:18px}
.dashboard-row-arrow{display:flex;color:#929ba4;flex:none}
.dashboard-row-arrow .icon{width:13px;height:13px}
.dashboard-device.climate{min-height:125px}
.dashboard-device.climate .dashboard-device-open{align-items:flex-start}
.dashboard-device.climate .dashboard-device-state{font-size:10px;margin-top:4px}
.dashboard-sensor-values{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:3px 0}
.dashboard-sensor-values strong{font-size:22px;letter-spacing:-.6px;font-weight:550;font-variant-numeric:tabular-nums}
.dashboard-sensor-values small{font-size:12px;margin-left:4px;color:var(--muted)}
.dashboard-room-note{font-size:11px;line-height:1.7;color:var(--muted);margin:14px 0 0}
.dashboard-rooms>.sim-detail{margin-top:20px}
.dashboard-rooms>.sim-detail .sim-detail-body{grid-template-columns:1fr;gap:18px;padding:18px}
.dashboard-no-results{grid-column:1/-1;min-width:0}
.dashboard-no-results .empty{padding:35px 20px}
.dashboard-map .panel-bar,.dashboard-automation .panel-bar{padding:16px 18px}
.dashboard-map .panel-bar h2,.dashboard-automation .panel-bar h2{font-size:14px}
.dashboard-map .text-button,.dashboard-automation .text-button{font-size:12px}
.dashboard-map-canvas{position:relative;margin:12px}
.dashboard-map-open{display:block;width:100%;padding:0;border:0;background:#fff;cursor:zoom-in;line-height:0}
.dashboard-map-open img{display:block;width:100%;height:auto}
.dashboard-map-pin{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border:2px solid #fff;box-shadow:0 1px 4px #1e293b26;z-index:1}
.dashboard-map-pin:hover,.dashboard-map-pin:focus-visible{z-index:2;outline:2px solid var(--accent);outline-offset:2px}
.dashboard-map-pin .mdi-icon{width:18px;height:18px}
.dashboard-map-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;font-size:10px;color:var(--muted);padding:0 18px 14px;line-height:1.6}
.dashboard-map-empty{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;color:var(--muted);font-size:12px}
.dashboard-map-empty>.icon{width:25px;height:25px;color:#949ca4}
.dashboard-map-empty p{margin:0}
.dashboard-rule{display:flex;flex-direction:column;gap:9px;width:100%;text-align:left;background:#fff;border:0;padding:18px;color:inherit;line-height:1.65}
.dashboard-rule+.dashboard-rule{border-top:1px solid var(--line)}
.dashboard-rule:hover{background:var(--soft)}
.dashboard-rule-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.dashboard-rule-title>b{font-size:13px;font-weight:550;overflow-wrap:anywhere}
.dashboard-rule-state{font-size:10px;flex:none;white-space:nowrap;color:var(--muted)}
.dashboard-rule-state.waiting{background:var(--dash-warn-bg);padding:2px 6px;border-radius:3px;color:var(--dash-warn)}
.dashboard-rule-state.on{color:var(--dash-ok)}
.dashboard-rule>small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.dashboard-rule-failure{font-size:11px;color:#9c4c3d}
.dashboard-automation-empty{padding:20px 18px;color:var(--muted);font-size:12px}
.dashboard-automation-empty p{margin:0 0 12px}
.dashboard-recent{margin-top:24px}
.dashboard-empty-history{padding:22px;color:var(--muted);font-size:12px}
.dashboard-readings{margin-top:26px}
@media(min-width:761px) and (max-width:1120px){.dashboard-room-grid{grid-template-columns:1fr}.dashboard-body{grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr)}.dashboard-device{padding:15px 18px}}
@media(max-width:760px){
  .space-tabs{scrollbar-width:none}.space-tabs::-webkit-scrollbar{display:none}
  .dashboard-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-bottom:22px;padding-bottom:14px}
  .dashboard-stat{justify-content:space-between;gap:7px;padding:8px;min-height:44px;font-size:11px}
  .dashboard-stat b{font-size:14px}.dashboard-stat>.icon{display:none}
  .dashboard-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:'rooms' 'automation' 'map';gap:20px}
  .dashboard-room-grid{grid-template-columns:1fr;gap:12px}
  .dashboard-section-heading{gap:10px}.dashboard-section-heading>div{gap:7px}
  .dashboard-room-heading{padding:13px 15px;min-height:50px}
  .dashboard-device{padding:13px 14px;min-height:86px;gap:9px}
  .dashboard-device .sim-power-button{width:44px;height:44px;min-height:44px}
  .dashboard-device-state{font-size:11px}
  .dashboard-device-copy>b{font-size:14px}
  .dashboard-device.climate .dashboard-device-state{white-space:normal;max-width:62px;text-align:right}
  .dashboard-map-pin{width:34px;height:34px}
  .dashboard-map .panel-bar .text-button,.dashboard-automation .panel-bar .text-button{min-height:40px}
  .dashboard-rule-title{gap:8px}
  .dashboard-recent{margin-top:20px}
}
.dashboard-battery{display:flex;flex:none;flex-direction:column;align-items:flex-end;align-self:center;gap:3px;margin-left:6px;white-space:nowrap;color:var(--muted);font-size:11px;font-weight:500;line-height:1.5;font-variant-numeric:tabular-nums}
.dashboard-battery-value{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:62px;padding:5px 7px;border-radius:8px;background:#f4f5f7}
.dashboard-battery svg{width:17px;height:14px;flex:none;align-self:center}
.dashboard-battery.is-low{color:#97620c}
.dashboard-battery.is-low .dashboard-battery-value{background:#fff3df}
.dashboard-battery-low-label{font-size:10px;padding-right:7px}
.home-management{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--soft)}
.home-management>span{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
.home-management>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.device-monthly-usage{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin:5px 0}
@media(max-width:760px){.home-management{align-items:flex-start;flex-direction:column;padding:12px 16px}.home-management>div{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.home-management button{min-height:44px;font-size:12px;width:100%}.device-monthly-usage{font-size:11px}}
.device-current-watts{display:block;font-size:12px;color:var(--ink);margin:6px 0 0;font-variant-numeric:tabular-nums}.device-monthly-usage{font-size:11px;margin-top:3px}

/* Narrow homes separate each room from the page and load the map on demand.
   They also lead with four compact current-state tiles. */
.home-attention-strip{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 12px;padding:10px 12px;border:1px dashed #b7892a;border-radius:12px;background:#fff0d7;color:#7d5410;font-size:13px;font-weight:600;text-align:left}
.home-attention-strip>.icon{width:17px;height:17px;flex:none}
.home-attention-strip>span{flex:1;min-width:0}
.home-now{margin:0 0 12px;padding:12px;border:1px solid #d2d6de;border-radius:14px;background:#fff}
.home-now h2{margin:0 0 10px;font-size:15px;font-weight:700}
.home-now-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.home-now-tile{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:0;border-radius:12px;background:#f6f7f9;color:#1f2a33;text-align:left}
.home-now-icon{display:grid;place-items:center;width:24px;height:24px;flex:none;color:#687384}
.home-now-icon svg{width:22px;height:22px}
.home-now-copy{display:grid;min-width:0;gap:1px}
.home-now-copy>span{font-size:11px;line-height:1.3;color:#67707a}
.home-now-copy>b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.3;font-weight:700;word-break:keep-all}
.home-now-copy>small{font-size:11px;line-height:1.3;color:#67707a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-now-tile.present{background:#e7f6ec;color:#1c6b3c}
.home-now-tile.present .home-now-icon,.home-now-tile.present .home-now-copy>span,.home-now-tile.present .home-now-copy>small{color:#2b7a4b}
.home-now-tile.on{background:#fff3e4;color:#a85500}
.home-now-tile.on .home-now-icon,.home-now-tile.on .home-now-copy>span,.home-now-tile.on .home-now-copy>small{color:#8a4a08}
.home-now-tile.temp{background:#f5effc;color:#6b3fa0}
.home-now-tile.temp .home-now-icon,.home-now-tile.temp .home-now-copy>span,.home-now-tile.temp .home-now-copy>small{color:#5a3489}
.home-now-tile.open{background:#fbecee;color:#a83a46}
.home-now-tile.open .home-now-icon,.home-now-tile.open .home-now-copy>span,.home-now-tile.open .home-now-copy>small{color:#8d2a30}
.home-now-tile.unknown{background:#fff0d7;color:#7d5410}
.home-now-tile.unknown .home-now-icon,.home-now-tile.unknown .home-now-copy>span,.home-now-tile.unknown .home-now-copy>small{color:#7d5410}
.home-now-tile.clear,.home-now-tile.closed,.home-now-tile.off{background:#f6f7f9;color:#4d5862}
.home-now-tile:focus-visible,.home-attention-strip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.home-now-tile,.home-attention-strip{transition:none}}
.compact-home .dashboard-rooms .dashboard-section-heading{margin-bottom:10px}
.compact-home .dashboard-rooms .dashboard-room-grid{grid-template-columns:minmax(0,1fr);gap:12px}
.compact-home .compact-room{overflow:hidden;border:1px solid #d2d6de;border-radius:14px;background:#fff;box-shadow:0 2px 5px #19283a0c}
.compact-home .compact-room h3{margin:0;padding:9px 12px;background:#f0f2f6;border-bottom:1px solid #dce0e7;font-size:15px;font-weight:700;line-height:1.4}
.compact-home .compact-room-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f0f2f6;border-bottom:1px solid #dce0e7}
.compact-home .compact-room-heading h3{flex:1;min-width:0;background:none;border-bottom:0;padding-right:0}
.compact-room-badge{flex:none;margin-right:12px;padding:2px 8px;border-radius:10px;background:#e9ecef;color:#59636f;font-size:12px;font-weight:700;white-space:nowrap}
.compact-room-badge.presence-present{background:#e7f6ec;color:#1c6b3c}
.compact-room-badge.presence-clear{background:#eef0f3;color:#5b6575}
.compact-room-badge.unknown{background:#fff0d7;color:#7d5410}
.compact-room-badge.temp{padding-right:12px}
.compact-room-list{padding:0 12px}
.compact-device{display:grid;grid-template-columns:22px minmax(0,1fr) fit-content(45%) 8px;align-items:center;gap:8px;width:100%;min-width:0;min-height:44px;padding:5px 0;text-align:left;color:var(--ink)}
.compact-device{border:0;border-radius:0;background:none;font-size:13px}
.compact-device+.compact-device{border-top:1px solid var(--line)}
.compact-device:focus-visible,.compact-plan-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.compact-device-icon{position:relative;display:grid;place-items:center}
.compact-device-icon svg{width:18px;height:18px}
.compact-device-name,.compact-device-status{overflow-wrap:anywhere;line-height:1.35}
.compact-device-status{justify-self:end;text-align:right;color:var(--muted);font-size:12px;font-weight:600}
.compact-device-status:is(.presence-present,.door-open,.unknown){padding:3px 6px;border-radius:10px;background:#fff1df;color:#825018}
.compact-device-status.on{color:#2d7565}
.compact-chevron{justify-self:center;width:6px;height:6px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;color:var(--muted);transform:rotate(45deg)}
.compact-home .dashboard-room-actions{margin-left:auto;align-items:center;justify-content:flex-end;gap:4px 10px}
.compact-plan-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:6px 10px;border:1px solid #d2d6de;border-radius:10px;background:#fff;color:var(--ink);font-size:12px;font-weight:600;white-space:nowrap}
.compact-plan-toggle>.icon{width:15px;height:15px}
.compact-plan-toggle .compact-chevron{transform:rotate(135deg);margin-right:1px;translate:0 -1px}
.compact-plan-toggle[aria-expanded=true] .compact-chevron{transform:rotate(-45deg);translate:0 1px}
.compact-sim-automation{margin-top:12px}
.compact-floorplan{margin:0 0 12px}
.compact-floorplan :is(.home-map,.dashboard-map,.customer-demo-map){margin:0}

.space-graph{padding:24px;margin:24px 0;min-width:0;overflow:hidden}
.space-graph-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.space-graph-header h2{font-size:20px;margin:0 0 6px}.space-graph-header p{font-size:13px;color:var(--muted);margin:0}
.space-graph-date{display:flex;align-items:center;gap:6px;max-width:100%}.space-graph-date input{width:145px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:13px}
.space-graph-date .icon-button{width:36px;height:40px;font-size:24px;flex:none}
.space-graph-summary{display:flex;align-items:center;gap:32px;margin:24px 0 18px}.space-graph-summary>div{display:flex;flex-direction:column;gap:6px}.space-graph-summary>div:not(.space-graph-view-buttons){align-self:flex-start}.space-graph-summary span{font-size:12px;color:var(--muted)}.space-graph-summary strong{font-size:22px;font-weight:650;font-variant-numeric:tabular-nums}.space-graph-summary strong.active{color:#b54157}.space-graph-summary strong.unknown{color:#92621d}.space-graph-view-buttons{margin-left:auto}
.space-graph-legend{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-bottom:14px}.space-graph-legend span{display:flex;align-items:center;gap:5px}.space-graph-legend i{display:inline-block;width:10px;height:10px;border-radius:3px}
.space-graph .active{background-color:#bd465d}.space-graph .clear{background-color:#e2e5eb}.space-graph .unknown{background:repeating-linear-gradient(135deg,#eee6d9 0 3px,#faf7f0 3px 7px)}.space-graph .observation{background:repeating-linear-gradient(135deg,#d98531 0 4px,#efbc80 4px 8px)}.space-graph .actual{background:#3c77ae}.space-graph .problem{background:#a93545}
.space-graph-summary strong.active,.space-graph-summary strong.clear,.space-graph-summary strong.unknown{background:none}
.space-graph-lane{margin:18px 0}.space-graph-lane-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;font-size:13px}.space-graph-mode{font-size:11px;color:#805018;padding:4px 7px;border-radius:6px}.space-graph-mode.observation{background:#fff1df}.space-graph-mode.actual{background:#e9f2fc;color:#285a87}
.space-graph-track{height:36px;position:relative;background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#e6e9ef calc(25% - 1px) 25%),#f7f8fa;border-radius:8px;overflow:hidden;isolation:isolate}
.space-graph-mark{position:absolute;top:0;height:100%;border:0;min-width:0;padding:0;border-radius:0;cursor:pointer;touch-action:manipulation}.space-graph-mark:hover{filter:brightness(.92)}.space-graph-mark.selected,.space-graph-mark:focus-visible{outline:2px solid #242d3d;outline-offset:-2px;z-index:2}.space-graph-mark.event{width:8px!important;min-width:8px;height:22px;top:7px;border-radius:5px;transform:translateX(-50%)}
.space-graph-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:7px 0 0;font-variant-numeric:tabular-nums}.space-graph-detail{display:flex;align-items:flex-start;flex-direction:column;gap:7px;min-height:58px;padding:14px;background:#f7f8fa;border-radius:12px;font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.space-graph-detail b{color:var(--ink);font-size:14px}.space-graph-guide{margin-top:16px;font-size:12px;color:var(--muted);line-height:1.7}.space-graph-guide summary{cursor:pointer}.space-graph-note{font-size:12px;color:var(--muted);line-height:1.6}.space-graph-loading{min-height:200px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:13px}
@media(max-width:600px){.space-graph{padding:18px 14px;margin:18px 0}.space-graph-header{gap:16px}.space-graph-header h2{font-size:18px}.space-graph-date{width:100%;justify-content:center}.space-graph-summary{gap:20px;flex-wrap:wrap;margin:18px 0}.space-graph-summary strong{font-size:19px}.space-graph-view-buttons{margin-left:0}.space-graph-view-buttons .btn{font-size:12px;min-height:36px;padding:6px 10px}.space-graph-track{height:40px}.space-graph-mark.event{top:9px}.space-graph-axis{font-size:10px}.space-graph-mode{font-size:10px}.space-graph-lane-label{font-size:12px}}
@media(max-width:600px){.space-graph-date input{flex:1;max-width:160px;font-size:16px}.space-graph-date .icon-button{width:44px;height:44px}.space-graph-date .text-button{flex:none}.space-graph-view-buttons .btn{min-height:44px}}

.space-sensor-timeline{--timeline-scale:0px;padding:16px 20px;margin:16px 0}
.space-sensor-timeline.has-climate{--timeline-scale:104px}
.space-sensor-timeline .space-graph-header{gap:6px 12px}
.space-sensor-timeline .space-graph-header h2{margin:0}
.space-sensor-timeline .space-graph-date{width:auto;justify-content:flex-start}
.space-sensor-summary,.space-sensor-overview{display:flex;align-items:center;gap:6px 12px;min-width:0}
.space-sensor-summary{justify-content:space-between;margin:4px 0 8px}
.space-sensor-overview{flex-wrap:wrap}
.space-sensor-now{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;background:#eef1f4;color:#455468;font-size:12px;font-weight:600;white-space:nowrap}
.space-sensor-now i{width:6px;height:6px;border-radius:50%;background:currentColor}
.space-sensor-now[data-tone=active]{color:#9d3f54;background:#faedf1}
.space-sensor-now[data-tone=unknown]{color:#845a24;background:#fbf2e4}
.space-sensor-last{display:flex;align-items:baseline;flex-wrap:wrap;gap:1px 5px;color:var(--muted);font-size:12px}
.space-sensor-last b{color:var(--ink);font-size:12px}
.space-sensor-last small{font-size:11px}
.space-sensor-timeline .space-graph-view-buttons .btn{min-width:44px}
.space-sensor-timeline .space-graph-legend{gap:4px 8px;margin:0}
.space-sensor-timeline .space-graph-legend .active{background:#c77887}
.space-sensor-timeline .space-graph-lane{margin:8px 0}
.space-sensor-timeline .space-graph-lane-label{justify-content:flex-start;flex-wrap:wrap;gap:4px 10px;margin-bottom:2px}
.space-sensor-timeline .space-graph-track{height:28px;margin-inline-start:var(--timeline-scale);background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#edf0f4 calc(25% - 1px) 25%),linear-gradient(transparent 32%,#f3f5f7 32% 68%,transparent 68%)}
.space-sensor-timeline .space-graph-mark:not(.event){background:transparent}
.space-sensor-timeline .space-graph-mark:not(.event)::before{content:'';position:absolute;inset:9px 0;border-radius:3px}
.space-sensor-timeline .space-graph-mark.active::before{background:#c77887}
.space-sensor-timeline .space-graph-mark.clear::before{background:#dce2e9}
.space-sensor-timeline .space-graph-mark.unknown::before{background:repeating-linear-gradient(135deg,#e9decf 0 3px,#f9f4ec 3px 7px)}
.space-sensor-timeline .space-graph-mark.event{top:5px;height:18px}
.space-sensor-timeline .space-graph-loading{min-height:42px;flex-wrap:wrap;gap:6px}
.space-sensor-timeline>.space-graph-axis{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));margin:5px 0 0 var(--timeline-scale)}
.space-sensor-timeline>.space-graph-axis>span{grid-row:1;justify-self:center;white-space:nowrap}
.space-sensor-timeline>.space-graph-axis>span:first-child{grid-column:1;justify-self:start}
.space-sensor-timeline>.space-graph-axis>span:nth-child(2){grid-column:2/span 2}
.space-sensor-timeline>.space-graph-axis>span:nth-child(3){grid-column:4/span 2}
.space-sensor-timeline>.space-graph-axis>span:nth-child(4){grid-column:6/span 2}
.space-sensor-timeline>.space-graph-axis>span:last-child{grid-column:8;justify-self:end}

.space-climate{margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}
.space-climate-source{display:flex;align-items:center;gap:3px 8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.space-climate-source>span:first-child{color:var(--ink);font-weight:650}
.space-climate-sensor,.space-climate select{max-width:100%;min-width:0;font-size:12px;overflow-wrap:anywhere}
.space-climate select{min-height:44px}
.space-climate-lane{--series:#4c64b1;display:grid;grid-template-columns:var(--timeline-scale) minmax(0,1fr);align-items:center;margin-top:8px;min-width:0}
.space-climate-lane.humidity{--series:#168277}
.space-climate-lane header{display:grid;align-content:center;gap:1px;padding-inline-end:8px;min-width:0}
.space-climate-lane h3{margin:0;font-size:12px;color:var(--series)}
.space-climate-lane header strong{color:var(--ink);font-size:20px;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.space-climate-lane header strong small{font-size:12px;margin-left:2px;font-weight:600;color:var(--muted)}
.space-climate-lane header time{color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.space-climate-plot{min-width:0}
.space-climate-plot svg{display:block;width:100%;height:49px;border-radius:3px;overflow:hidden}
.space-climate-grid,.space-climate-line,.space-climate-points{fill:none}
.space-climate-grid{stroke:#ebeff4}
.space-climate-area{fill:var(--series);fill-opacity:.09}
.space-climate-line{stroke:var(--series);stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round}
.space-climate-points{stroke:var(--series);stroke-width:3.4;stroke-linecap:round}
.space-climate-note,.space-climate-lane p,.space-climate-status{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.space-climate-status{min-height:40px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
@media(max-width:600px){.space-sensor-timeline{padding:14px 12px;margin:12px 0}.space-sensor-timeline.has-climate{--timeline-scale:74px}.space-sensor-overview{gap:4px 8px}.space-climate select{font-size:16px}}

/* Short signals stay above adjacent quiet spans; their true duration is unchanged. */
.space-graph-mark.active,.space-graph-mark.observation,.space-graph-mark.actual{min-width:8px;z-index:1}
.space-graph-mark.clear,.space-graph-mark.unknown{z-index:0}
.space-graph-mark.sensor-report{background:#65769b}
.space-graph-mark.active.selected,.space-graph-mark.observation.selected,.space-graph-mark.actual.selected,.space-graph-mark.active:focus-visible,.space-graph-mark.observation:focus-visible,.space-graph-mark.actual:focus-visible{z-index:2}

/* Daily-use layout, 2026-11-01. */
.installation-advanced{margin-top:16px;width:100%;font-size:13px}.installation-advanced summary{cursor:pointer;color:var(--muted);padding:12px 0}.space-graph-detail{margin-top:16px;min-height:0}.home-installation-settings{flex-wrap:wrap}

/* Compact entries open the existing, permission-checked device panel. */
.home-shortcuts{margin:0 0 20px}.home-shortcuts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.home-shortcuts-heading h2{font-size:15px;margin:0}.home-shortcuts-heading .text-button{font-size:12px;min-height:44px}.home-shortcuts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.home-shortcut{display:flex;align-items:center;gap:12px;min-width:0;min-height:80px;padding:14px;text-align:left;background:var(--surface,#fff);border:1px solid var(--line,#e4e6ea);border-radius:16px;color:var(--ink,#222);font:inherit;cursor:pointer}.home-shortcut>.appliance-bubble{width:36px;height:36px;min-width:36px;border-radius:12px}.home-shortcut .appliance-bubble svg{width:23px;height:23px}.home-shortcut-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.home-shortcut-copy b{font-size:14px;overflow-wrap:anywhere;line-height:1.45}.home-shortcut-copy small{font-size:12px;color:var(--muted,#777)}.home-shortcut.unknown .home-shortcut-copy small{color:#92621d}.home-shortcut>.icon{width:14px;height:14px;flex:none;color:var(--muted,#777)}.home-shortcut:focus-visible{outline:2px solid #c87825;outline-offset:3px}.dashboard-rooms{scroll-margin-top:76px}
@media(max-width:900px){.home-shortcuts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.home-shortcuts{margin-bottom:16px}.home-shortcuts-grid{gap:8px}.home-shortcut{padding:12px 10px;gap:8px;min-height:76px}.home-shortcut>.appliance-bubble{width:30px;height:30px;min-width:30px;border-radius:10px}.home-shortcut-copy b{font-size:13px}.home-shortcut-copy small{font-size:11px}.home-shortcut>.icon{display:none}}
