.customer-preview-banner{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;background:#fff3df;color:#6e4218;border-bottom:1px solid #e7ceaa;font-size:14px}.customer-preview-banner small{margin-left:8px;color:#876a49}.preview-customer-list{display:grid;gap:10px;margin-top:20px}.preview-customer-list .btn{display:flex;justify-content:space-between;text-align:left}.preview-customer-list span{font-size:13px;color:var(--muted)}.live-power-controls:empty{display:none}.power-buttons{display:flex;gap:8px}.power-buttons .btn{min-width:74px}.command-result{font-size:12px;line-height:1.6;margin:12px 0 0;overflow-wrap:anywhere}.command-result small{display:block;color:var(--muted)}.fp-inspector .live-power-controls{margin:16px 0}.customer-preview-switch{font-size:12px;white-space:nowrap}.fp-inspector-actions .btn{min-height:40px}.fp-dragging{cursor:grabbing!important;z-index:10!important;pointer-events:none;will-change:left,top}.fp-dragging .fp-pin-symbol{box-shadow:0 0 0 4px #fff,0 8px 20px #0003;outline:2px solid #e59a49}.fp-sheet.drag-active{cursor:grabbing}.fp-scroll.editing .fp-sheet{touch-action:pan-x pan-y}.fp-page:has(.editing) .fp-device{touch-action:pan-y}.fp-device .fp-drag-handle{touch-action:none;cursor:grab;flex:none;color:#8a8c90;font-size:20px;padding:9px 3px;line-height:1}.fp-drag-proxy{position:fixed;z-index:10000;pointer-events:none}.fp-drag-proxy .fp-pin-symbol{background:#fff4e5;outline:2px solid #e59a49}.fp-placement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.fp-inspector-heading,.fp-current-state{padding:0!important}.fp-inspector .fp-current-state{margin:18px 0}.fp-inspector-actions{gap:8px}.fp-tip.selected-tip{background:#fff9ee;border-radius:10px;margin-top:12px;padding:10px 12px}.fp-page .fp-tip{line-height:1.6}
@media(max-width:760px){.customer-preview-banner{flex-wrap:wrap;padding:10px 16px;font-size:12px}.customer-preview-banner .btn{padding:8px 12px;font-size:12px}.customer-preview-switch{font-size:11px;padding:8px!important}.fp-sidebar{display:flex;flex-direction:column}.fp-inspector{order:-1}.fp-inspector-actions .btn{flex:1}.fp-inspector .live-power-controls .power-buttons .btn{flex:1}.fp-pin{min-width:36px;min-height:36px}.fp-dragging .fp-pin-label{display:block!important}.fp-page .fp-device-list{max-height:300px}.fp-placement-actions .btn{flex:1}}
.fp-register-actions{justify-content:flex-end;margin:-6px 0 18px}.automation-filters{display:flex;align-items:end;gap:14px;margin:0 0 20px;flex-wrap:wrap}.automation-filters label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.automation-search{flex:1;min-width:220px}.automation-filters input,.automation-filters select{min-height:44px;border:1px solid #dddfe3;border-radius:12px;padding:9px 12px;background:#fff;color:var(--text);font-size:14px}.automation-filters #automation-result-count{font-size:12px;color:var(--muted);padding-bottom:12px}.automation-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.automation-card{border:1px solid #e6e6e8;border-radius:20px;background:#fff;padding:22px;min-width:0}.automation-card.enabled{border-color:#ead0ad}.automation-card-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.automation-card-top>.table-link{text-align:left;font-size:17px;font-weight:650;overflow-wrap:anywhere;min-width:0}.rule-toggle{display:flex;align-items:center;gap:8px;flex:none;background:none;border:0;padding:6px 0;font-size:12px;color:#74767a}.rule-toggle-track{position:relative;display:block;width:42px;height:25px;border-radius:20px;background:#d4d6da;transition:background .15s}.rule-toggle-track i{position:absolute;width:19px;height:19px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.rule-toggle[aria-checked=true] .rule-toggle-track{background:#d88027}.rule-toggle[aria-checked=true] .rule-toggle-track i{transform:translateX(17px)}.rule-toggle[aria-checked=true]{color:#925014}.rule-toggle:disabled{cursor:default;opacity:.65}.automation-card dl{display:grid;gap:10px;margin:20px 0;line-height:1.6;font-size:14px}.automation-card dl>div{display:flex;gap:14px}.automation-card dt{color:#85878c;flex:none}.automation-card dd{margin:0;overflow-wrap:anywhere}.automation-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #f0f0f2;padding-top:14px}.automation-card-bottom small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.automation-card-bottom .actions{flex-shrink:0;gap:14px}.automation-editor-panel{max-width:1100px;margin:auto}.automation-collection>.empty{grid-column:1/-1}.automation-card .table-link:focus-visible,.rule-toggle:focus-visible{outline:2px solid #e49a4b;outline-offset:5px}
@media(max-width:760px){.automation-collection{grid-template-columns:1fr}.automation-card{padding:18px}.automation-filters{gap:10px}.automation-search{flex-basis:100%}.automation-filters label:not(.automation-search){flex:1}.automation-filters select{width:100%}.automation-card-top>.table-link{font-size:15px}.automation-card-bottom{flex-wrap:wrap}.automation-card-bottom .actions{margin-left:auto}.fp-register-actions{justify-content:space-between}.fp-register-actions .btn{font-size:12px}}
@media(prefers-reduced-motion:reduce){.rule-toggle-track,.rule-toggle-track i{transition:none}}

/* Keep the page's scrollbar slot when an overlay locks background scrolling. */
html{scrollbar-gutter:stable}
body.modal-open{scrollbar-gutter:auto}
.device-power-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:64px;min-height:58px;flex:none;border:0;border-radius:12px;background:transparent;padding:5px 7px;color:#767982;font:inherit;font-size:12px;line-height:1.3;cursor:pointer}
.device-power-track{position:relative;display:block;width:46px;height:28px;border-radius:20px;background:#d5d7dc;transition:background .15s}
.device-power-track i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:transform .15s}
.device-power-toggle[aria-checked=true]{color:#a85415}
.device-power-toggle[aria-checked=true] .device-power-track{background:#e78b35}
.device-power-toggle[aria-checked=true] .device-power-track i{transform:translateX(18px)}
.device-power-toggle:focus-visible{outline:2px solid #c87825;outline-offset:3px}
.device-power-toggle:disabled{cursor:default;opacity:.65}
.device-power-toggle.unknown .device-power-track{background:#d5d7dc}
.device-power-toggle[aria-busy=true] .device-power-track i{border:2px solid #d2d4d8;border-top-color:#9d581e;animation:power-wait .8s linear infinite}
@keyframes power-wait{to{rotate:360deg}}
.device-power-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border:1px solid #e8e8ed;background:#f8f8fa;border-radius:14px;font-size:14px}
.device-power-line .device-power-toggle{flex-direction:row-reverse;gap:12px;min-height:44px;padding:0 2px}
.power-confirm-name{font-size:18px;line-height:1.8}
.fp-device-row{display:flex;align-items:center;border-top:1px solid #ededf0;padding-right:10px;min-width:0;background:#fff}
.fp-device-row.selected{background:#fff8ef}
.fp-device-row>.fp-device{flex:1;min-width:0;width:auto;border:0;background:transparent;padding-right:7px}
.fp-device-row>.device-power-toggle{margin-right:3px}
.fp-device-row .fp-device em:empty{display:none}
.fp-inspector .fp-current-state:has(+.live-power-controls){display:none}
.fp-inspector .device-power-line{margin-top:18px}
.dashboard-device.climate .dashboard-device-state{max-width:none;text-align:left}
.fp-page .fp-device-list{max-height:none}
.automation-collection{display:flex;flex-direction:column;gap:0;border:1px solid #e4e5e9;border-radius:18px;overflow:hidden;background:#fff}
.automation-collection:has(>.empty){border:0;background:none}
.automation-row{display:flex;align-items:center;gap:26px;padding:18px 24px;min-width:0}
.automation-row+.automation-row{border-top:1px solid #ededf1}
.automation-row-main{flex:1;min-width:0;display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,2fr);gap:24px;align-items:center;background:none;border:0;padding:8px 0;text-align:left;color:inherit}
.automation-row-main>b{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.automation-row-main>span{font-size:13px;line-height:1.7;color:#777b83;overflow-wrap:anywhere}
.automation-row-actions{display:flex;gap:16px;flex:none}
.automation-row-actions button{font-size:13px;min-height:44px}
.automation-row .rule-toggle{min-height:44px}
.activity-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.activity-search{display:flex;gap:8px;flex:1;min-width:0;max-width:650px}
.activity-search label{min-width:0;flex:1}
.activity-search input,.activity-filters select,.activity-dates input,.area-edit input{width:100%;min-height:44px;border:1px solid #dddfe5;border-radius:12px;background:#fff;padding:10px 12px;color:var(--ink);font:inherit;font-size:14px;min-width:0}
.activity-search .btn{flex:none}
.activity-toolbar>.text-button{margin-left:auto;white-space:nowrap;font-size:12px;min-height:44px}
.activity-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.activity-filters>label,.activity-dates>label{display:grid;gap:7px;min-width:150px;font-size:12px;color:#747984}
.activity-date-nav{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:13px;color:#777b82}
.activity-date-nav .icon-button{font-size:22px}
.activity-dates{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:15px;padding:16px;background:#f4f5f8;border-radius:14px}
.activity-dates .form-error{width:100%}
.activity-kind-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:20px 0 12px}
.activity-kinds{display:flex;gap:6px;flex-wrap:wrap}
.activity-kinds button{background:#fff;border:1px solid #e2e3e8;border-radius:20px;padding:9px 16px;min-height:40px;color:#6a6f78;font-size:13px}
.activity-kinds button[aria-pressed=true]{background:#fff1e3;border-color:#edbd8b;color:#9b4f12}
.activity-attention{display:flex;gap:8px;align-items:center;font-size:12px;color:#717680;cursor:pointer;min-height:44px}
.activity-attention input{width:16px;height:16px;accent-color:#ce7828}
.activity-result-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0 15px;font-size:12px;color:#888d96}
.activity-result-bar .text-button{font-size:12px;min-height:36px}
.activity-results{min-height:120px}
.activity-results[aria-busy=true]{opacity:.65}
.activity-day{font-size:13px;font-weight:600;color:#696e77;margin:22px 0 10px}
.activity-day:first-child{margin-top:0}
.activity-item{border:1px solid #e9eaee;border-bottom:0;background:#fff;margin:0}
.activity-day+.activity-item{border-radius:14px 14px 0 0}
.activity-item:last-child,.activity-item:has(+.activity-day){border-bottom:1px solid #e9eaee;border-radius:0 0 14px 14px}
.activity-day+.activity-item:has(+.activity-day),.activity-day+.activity-item:last-child{border-radius:14px}
.activity-item>summary{display:flex;align-items:center;gap:20px;padding:16px 20px;list-style:none;cursor:pointer}
.activity-item>summary::-webkit-details-marker{display:none}
.activity-item time{font-variant-numeric:tabular-nums;font-size:12px;color:#8b8e98;flex:none}
.activity-description{display:flex;align-items:baseline;gap:16px;flex:1;min-width:0;flex-wrap:wrap;line-height:1.6}
.activity-description b{font-size:14px;font-weight:550;overflow-wrap:anywhere}
.activity-description>span{font-size:13px;color:#777c86;overflow-wrap:anywhere}
.activity-description>small{font-size:11px;color:#8d9097}
.activity-chevron{color:#989da5;flex:none}
.activity-item[open] .activity-chevron{rotate:180deg}
.activity-item.needs-attention .activity-description>span{color:#ae5f24}
.activity-detail{margin:0 20px 16px 93px;padding-top:12px;border-top:1px solid #efeff3;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.activity-detail .device-details-list{margin:0}
.activity-in-modal .history-pagination{padding:16px 0 0}
.modal-backdrop dialog:has(.activity-in-modal){width:min(1050px,100%);max-width:1050px}
.area-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:20px 0}
.area-create .form-error{grid-column:1/-1}
.area-create button{min-height:44px}
.area-edit{display:flex;align-items:start;gap:12px;padding:14px 0;border-top:1px solid #ececf0;flex-wrap:wrap}
.area-edit label{flex:1;min-width:120px}
.area-edit small{display:block;color:#868a94;font-size:12px;margin:7px 0 0}
.area-edit .form-error{width:100%}
.area-add-inline{justify-self:start;font-size:13px;margin-top:-10px}
@media(max-width:900px){.automation-row{gap:14px;padding:14px 18px}.automation-row-main{grid-template-columns:1fr;gap:4px}.activity-filters>label{min-width:130px;flex:1}.activity-date-nav{margin-left:0}}
@media(max-width:600px){.automation-row{flex-wrap:wrap;gap:0 14px}.automation-row-main{flex:1;min-width:0}.automation-row-actions{width:100%;justify-content:flex-end;gap:20px}.automation-row-main>b{font-size:15px}.automation-row-main>span{font-size:12px}.rule-toggle{flex-direction:column;gap:5px;font-size:11px}.activity-toolbar{flex-wrap:wrap;gap:6px}.activity-search{flex-basis:100%;max-width:none}.activity-toolbar>.text-button{margin-left:0;margin-right:auto}.activity-filters{gap:10px}.activity-filters>label{min-width:calc(50% - 5px)}.activity-filters>label:last-of-type{min-width:120px;flex:1}.activity-date-nav{margin-left:auto}.activity-date-nav span{font-size:12px}.activity-date-nav .icon-button{width:34px;min-width:34px}.activity-kind-row{gap:4px;margin-top:16px}.activity-kinds{gap:5px}.activity-kinds button{padding:8px 13px;font-size:12px}.activity-description{display:block}.activity-description>*{display:block}.activity-item>summary{gap:12px;padding:14px 12px;align-items:start}.activity-item time{padding-top:3px;font-size:11px}.activity-description b{font-size:13px}.activity-description>span{font-size:12px;margin-top:3px}.activity-detail{margin-left:12px;margin-right:12px}.activity-dates{padding:12px;gap:10px}.activity-dates>label{min-width:120px;flex:1}.activity-in-modal .history-pagination{gap:12px}.modal-backdrop dialog:has(.activity-in-modal) .dialog-body{padding:18px 14px}.fp-device-row>.device-power-toggle{margin-right:0}}
@media(prefers-reduced-motion:reduce){.device-power-track,.device-power-track i{transition:none;animation:none!important}}

/* Everyday use starts with the map; installation tools live in Settings. */
.space-heading.space-home-heading.has-cover{min-height:120px;padding:18px 26px;margin-bottom:18px}
.space-home-heading h1{font-size:28px;margin:0}
.space-home-heading.has-cover .back-link{margin-bottom:6px;font-size:12px}
.home-overview{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;color:#787d85;margin:0 3px 16px;min-height:28px}
.home-all-good{color:#56775f;font-size:12px}
.home-map{overflow:hidden;min-width:0;margin-bottom:30px}
.home-map-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 24px;border-bottom:1px solid #ededf1}
.home-map-bar h2{font-size:17px;margin:0}
.home-map-bar p{font-size:13px;color:#7c818a;margin:6px 0 0}
.home-map .fp-scroll{max-height:650px;padding:0;overscroll-behavior:auto}
.home-map .fp-sheet{max-width:none;min-width:0;margin:0 auto}
.home-map .fp-pin{border:0;padding:0;background:transparent;min-width:44px;min-height:44px;cursor:pointer}
.home-map .fp-pin-label{top:46px;max-width:125px;font-size:12px;padding:4px 8px;background:#fffffff0}
.home-map .fp-pin-label small{font-size:11px}
.home-map .fp-pin:focus-visible{outline:2px solid #c17a38;outline-offset:4px;border-radius:50%}
.home-map-empty{padding:60px 20px;text-align:center;color:#777d86}
.home-map-empty>.icon{width:34px;height:34px;color:#9ca3aa}
.home-map-empty h3{font-size:16px;color:#545b64}
.home-map-empty p{font-size:13px}
.home-dashboard .dashboard-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.home-dashboard .dashboard-rooms{margin:0}
.home-dashboard .dashboard-device{padding:14px 16px;min-height:96px}
.home-dashboard .dashboard-device-open{min-width:0}
.home-dashboard .dashboard-device-copy{min-width:0}
.home-dashboard .dashboard-device-copy>b{font-size:15px;overflow-wrap:anywhere}
.home-dashboard .dashboard-sensor-values{gap:4px 12px;margin:1px 0}
.dashboard-sensor-value{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.home-dashboard .dashboard-sensor-value small{font-size:11px;line-height:1.4;margin-left:0}
.dashboard-sensor-value b{font-size:15px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums}
.home-shortcut .dashboard-sensor-value b{font-size:13px}
@media(max-width:600px){.home-shortcut .dashboard-sensor-values{gap:2px 8px}.home-shortcut .dashboard-sensor-value b{font-size:12px}}
.home-dashboard .dashboard-device-meta>small{display:none}
.home-dashboard .dashboard-section-heading{margin-bottom:18px}
.home-dashboard .dashboard-room-heading{padding:0 2px 10px}
.home-dashboard .dashboard-room-heading h3{font-size:16px}
.home-device-settings{max-width:900px;margin-bottom:24px;overflow:hidden}
.home-device-settings .panel-bar p{font-size:13px;color:#80858d;margin:8px 0 0}
.home-setting-device{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#fff;border:0;border-top:1px solid #eeeef2;padding:16px 24px;color:inherit;cursor:pointer}
.home-setting-device>span:nth-child(2){display:grid;gap:6px;flex:1;min-width:0}
.home-setting-device b{font-size:15px;overflow-wrap:anywhere}
.home-setting-device small{font-size:12px;color:#858b94}
.home-setting-device>.icon{color:#8c949d}
.home-setting-device:disabled{cursor:default}
.home-installation-settings{max-width:900px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;margin-bottom:28px}
.home-installation-settings h2{font-size:16px;margin:0 0 8px}
.home-installation-settings p{font-size:13px;color:#81858e;margin:0;line-height:1.7}
.installation-back{margin-bottom:20px}
@media(max-width:1100px){.home-dashboard .dashboard-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.space-heading.space-home-heading.has-cover{min-height:110px;padding:16px;gap:10px}.space-home-heading.has-cover h1{font-size:23px}.space-home-heading.has-cover p{display:none}.space-home-heading.has-cover .space-switch{flex-basis:120px}.space-home-heading .space-switch>span{display:none}.home-map-bar{padding:14px 16px}.home-map-bar h2{font-size:15px}.home-map-bar p{font-size:11px;line-height:1.5}.home-map .fp-pin-label{display:block;font-size:9px;top:36px;max-width:80px;padding:2px 5px}.home-map .fp-pin-label small{font-size:9px}.home-map .fp-pin-symbol{margin:auto}.home-map .fp-scroll{max-height:440px}.home-map{margin-bottom:26px}.home-overview{font-size:12px;margin-bottom:12px}.home-installation-settings{display:block;padding:20px}.home-installation-settings .btn{margin-top:16px}.home-setting-device{padding:14px 18px}.home-dashboard .dashboard-room-grid{grid-template-columns:1fr;gap:20px}.home-dashboard .dashboard-device{min-height:84px}.home-dashboard .dashboard-sensor-values strong{font-size:25px}}
/* A narrow home keeps a low cover and one summary line instead of the description. */
@media(max-width:760px){
 .space-heading.space-home-heading.compact-home-heading{position:relative;display:block}
 .space-heading.space-home-heading.has-cover.compact-home-heading{min-height:84px;padding:8px 16px 9px;gap:6px}
 .space-heading.compact-home-heading .space-heading-copy{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;width:100%}
 .space-heading.compact-home-heading .space-heading-top{flex:0 0 auto;display:flex;align-items:center;gap:8px}
 .space-heading.compact-home-heading .space-heading-top .back-link{margin-bottom:0}
 .space-heading.space-home-heading.compact-home-heading h1{flex:1 1 auto;min-width:0;padding-top:0;margin:0;font-size:22px;line-height:1.25;letter-spacing:-.4px}
 .space-heading.compact-home-heading .space-heading-copy>p:not(.space-home-summary){display:none}
 .space-heading.space-home-heading .space-heading-copy>p.space-home-summary,
 .space-heading.space-home-heading.has-cover .space-heading-copy>p.space-home-summary{display:block;flex:1 0 100%;margin:2px 0 0;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:760px){.space-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.home-map .fp-pin-label small{display:none}.home-map .fp-pin-label{max-width:70px;overflow:hidden;text-overflow:ellipsis}.home-map-bar .fp-zoom{gap:0}.home-map-bar .fp-zoom .icon-button{width:34px;min-width:34px}.home-map-bar .fp-zoom .text-button{font-size:12px}}
@media(max-width:760px){.home-map-bar .fp-zoom .icon-button{width:44px;min-width:44px;min-height:44px}.home-map-bar .fp-zoom .text-button{min-width:44px;min-height:44px}.modal-backdrop input:not([type=checkbox]),.modal-backdrop select,.modal-backdrop textarea{font-size:16px}}

@media(max-width:760px){.space-tabs.admin-space-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.space-tabs.admin-space-tabs button{font-size:12px;padding:10px 2px;min-height:44px;white-space:nowrap}.space-tabs.admin-space-tabs button>span{display:none}}
.customer-shell.in-space .space-tabs{display:none}
.customer-shell.in-space .space-heading.has-cover{min-height:120px;padding:18px 24px;margin-bottom:22px}
.customer-shell.in-space .space-heading h1{font-size:26px}
.customer-shell.in-space .space-heading p{display:none}
.customer-shell.in-space .space-heading .back-link{margin-bottom:5px}
.customer-shell .customer-space-nav{gap:4px}
.customer-shell .customer-space-nav>button{padding:10px 13px}
.automation-access-note{font-size:13px;color:#666b73;line-height:1.6;margin:-10px 0 18px}
.automation-browse-line{display:flex;align-items:flex-start;gap:12px;margin-bottom:8px}
.automation-browse-line .automation-search{flex:1;min-width:0}
.automation-browse-line input,.browse-options select,.activity-period-row select,.activity-extra-targets select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dedfe5;border-radius:12px;background:#fff;color:inherit;font:inherit}
.browse-options{flex:0 0 auto;max-width:60%;border:1px solid #dedfe5;border-radius:12px;background:#fff;padding:0 12px}
.browse-options>summary,.activity-extra>summary{cursor:pointer;min-height:44px;padding:11px 0;font-size:13px;font-weight:500}
.browse-options-body{display:flex;gap:12px;padding:8px 0 12px}
.browse-options-body label{display:grid;gap:6px;font-size:12px;min-width:120px}
.automation-count{color:#737780;font-size:12px;margin:8px 0 12px}
.automation-browser+.observation-summary{margin-top:22px}
.activity-period-row{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.activity-period-row>label{width:160px;flex-shrink:0}
.activity-period-row .activity-date-nav{margin-left:auto;min-width:0}
.activity-extra{border-bottom:1px solid #dedfe5;margin:8px 0 0}
.activity-extra>summary{color:#575d66}
.activity-extra>summary>span{margin-left:6px;color:#965514}
.activity-extra .activity-toolbar{margin-top:8px}
.activity-extra-targets{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.activity-extra-targets label{display:grid;gap:6px;font-size:12px;min-width:0}
.activity-extra .activity-attention{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:8px}
.activity-browser .activity-kinds button{min-height:44px}
@media(max-width:760px){
 .space-heading{grid-template-columns:minmax(0,1fr)}
 .space-heading .space-switch{display:none}
 .customer-shell.in-space .global-header .primary-nav>button{min-height:58px;padding:6px 2px;font-size:12px}
 .customer-shell.in-space .space-heading.has-cover{min-height:100px;padding:12px 16px;margin-bottom:18px;gap:10px}
 .customer-shell.in-space .space-heading h1{font-size:22px}
 .customer-shell.in-space .page-heading{margin-bottom:16px}
 .customer-shell.in-space .page-heading h1{font-size:23px}
 .customer-shell.in-space .page-heading p{font-size:13px}
 .automation-browse-line{gap:8px}
 .automation-browse-line input{font-size:16px}
 .browse-options{max-width:52%;padding:0 10px}
 .browse-options-body{flex-direction:column;gap:10px}
 .browse-options-body label{min-width:0}
 .browse-options select{font-size:16px}
 .activity-period-row>label{width:125px}
 .activity-period-row .activity-date-nav{gap:0}
 .activity-period-row .activity-date-nav .icon-button{min-width:40px;width:40px;min-height:44px}
 .activity-period-row .activity-date-nav span{font-size:11px;white-space:normal;text-align:center}
 .activity-period-row select{font-size:16px}
 .activity-browser .activity-kinds{gap:5px}
 .activity-browser .activity-kinds button{padding:8px 10px;font-size:12px}
 .activity-browser .activity-result-bar{padding-bottom:8px}
 .activity-browser .activity-day{margin-top:12px}
}

.activity-management{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.activity-management .text-button,.activity-record-action{min-height:44px}.activity-management button[aria-pressed=true]{background:#fff1e3;border-color:#edbd8b;color:#9b4f12}.activity-trash-note{padding:12px 16px;background:#fff4e6;border-radius:12px;font-size:13px;line-height:1.7;color:#775633}.activity-record-action{display:block;margin-left:auto}

/* Each room is a horizontal section, with every device shown in a regular grid. */
.home-dashboard .dashboard-room-grid{grid-template-columns:minmax(0,1fr);gap:20px}
.home-dashboard .dashboard-room-heading{justify-content:flex-start;gap:12px;padding:0 2px 12px}
.home-dashboard .dashboard-room-heading::after{content:'';height:1px;flex:1;background:#e3e5e9;margin-left:4px}
.home-dashboard .dashboard-room-heading h3{font-size:16px;flex:none}
.home-dashboard .dashboard-room-count{font-size:12px;color:#878b93}
.home-dashboard .dashboard-room-devices{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,340px));gap:10px;align-items:stretch}
.home-dashboard .dashboard-room-devices .dashboard-device{margin:0;min-height:104px;padding:14px;border-radius:14px;gap:10px}
.home-dashboard .dashboard-room-devices .dashboard-device-open{align-items:center;gap:10px}
.home-dashboard .dashboard-room-devices .dashboard-device-copy{gap:4px}
.home-dashboard .dashboard-device.kind-plug:is(.status-on,.status-off):has(.device-power-toggle) .dashboard-device-meta{display:none}
.home-dashboard .dashboard-room-devices .device-monthly-usage{line-height:1.5;overflow-wrap:anywhere}

@media(max-width:760px){.home-dashboard .dashboard-room-grid{gap:18px}.home-dashboard .dashboard-room-devices{grid-template-columns:minmax(0,1fr);gap:10px}.home-dashboard .dashboard-room-devices .dashboard-device{min-height:100px;padding:12px 14px}.home-dashboard .dashboard-room-heading{gap:9px}.home-dashboard .dashboard-room-heading>span{font-size:11px}}

.home-dashboard .dashboard-room-devices .appliance-bubble{width:40px;height:40px;flex:0 0 40px;border-radius:12px}
.home-dashboard .dashboard-room-devices .appliance-bubble svg{width:23px;height:23px}
.home-dashboard .dashboard-room-devices .device-monthly-usage{font-size:11px}

/* History selection keeps checkboxes separate from expandable record details. */
.activity-selection{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;margin-bottom:8px;border-bottom:1px solid var(--border,#e4e5eb)}
.activity-selection>span{font-size:13px;color:var(--muted,#6b7280);margin-left:auto}
.activity-selectable{display:flex;align-items:flex-start;min-width:0;gap:4px}
.activity-selectable>.activity-item,.activity-selectable>.run-item{flex:1;min-width:0;margin:0}
.activity-select-box{flex:0 0 44px;min-height:56px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.activity-select-box input{width:20px;height:20px;margin:0;accent-color:#c66c13}
.run-list>.activity-selection{margin:0 20px}.activity-record-action{margin:12px 20px}
@media(max-width:600px){.activity-selection>span{margin-left:0}.activity-selection{gap:8px}.activity-selection .btn,.activity-selection .text-button{min-height:44px}.activity-select-box{flex-basis:36px}.activity-selectable .activity-item summary{padding-left:4px;column-gap:8px}.activity-selectable .activity-item time{font-size:11px}.run-list>.activity-selection{margin:0 12px}}

/* Daily-use layout, 2026-11-01. */
.activity-management{justify-content:flex-end}.history-chart-footnote{font-size:12px;color:var(--muted);margin:18px 0 0}.activity-selectable:not(:has(.activity-select-box)) .activity-item summary{padding-left:16px}

.activity-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px;padding-top:18px;border-top:1px solid #e2e6ed}.activity-list-heading h3{font-size:16px;margin:0}.activity-list-heading .activity-management{margin:0}.activity-description .activity-action-overview{flex-basis:100%;font-size:13px;color:#404854;line-height:1.7}.activity-row-delete{align-self:center;flex:none;min-height:44px;padding:8px 10px;font-size:12px;color:#8c6262}.activity-selection{position:sticky;top:0;z-index:2;background:var(--surface,#fff);padding:12px;border-radius:10px}.run-item>summary small{line-height:1.7}
.boiler-history .activity-list-heading{margin-top:0;padding-top:6px;border-top:0}.boiler-history .activity-day{font-size:13px;margin:18px 0 8px}.boiler-history .activity-extra .activity-kinds{margin-top:12px}.boiler-history-event{display:flex;gap:20px;flex:1;min-width:0;padding:18px 4px;border-bottom:1px solid #eceef2}.boiler-history-event time{flex:none;width:46px;padding-top:2px;color:var(--muted,#777c86);font-size:13px;font-variant-numeric:tabular-nums}.boiler-history-event>div{min-width:0}.boiler-history-event strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.boiler-history-event p{margin:6px 0 0;color:var(--muted,#777c86);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.boiler-history-event.needs-attention strong{color:#ae5f24}.boiler-history .activity-management .text-button{font-size:12px}@media(max-width:600px){.boiler-history-event{gap:12px;padding:16px 2px}.boiler-history-event strong{font-size:14px}.boiler-history-event p{font-size:12px}.boiler-history .activity-period-row>label{width:110px}}
@media(max-width:600px){.activity-row-delete{padding:8px 4px;min-width:38px}.activity-list-heading{gap:8px}.activity-list-heading h3{font-size:14px}.activity-list-heading .activity-management{gap:8px}.activity-description .activity-action-overview{font-size:12px}}

.activity-chart-disclosure{margin:10px 0 14px;color:var(--muted,#777);font-size:13px}.activity-chart-disclosure>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}.activity-chart-disclosure .history-chart{margin-top:10px}.activity-extra [aria-label="상세 기록 종류"]{margin:12px 0}.activity-chart-disclosure+.activity-record-list>.activity-list-heading{margin-top:8px}

/* Two independent boiler states share the exact same plot width and cursor. */
.boiler-timeline{padding:18px 0 8px;min-width:0}.boiler-timeline-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.boiler-timeline-heading h3{font-size:18px;margin:0}.boiler-timeline-heading .text-button{font-size:12px;min-height:44px}.boiler-time-lane{margin:0 0 24px;min-width:0}.boiler-time-lane>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.boiler-time-lane h4{font-size:14px;margin:0}.boiler-time-lane>header>span{font-size:12px;color:var(--muted,#777)}.boiler-time-track{height:54px;position:relative;overflow:hidden;border-radius:8px;background:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),#dfe3ea calc(25% - 1px) 25%),#f2f3f6;cursor:crosshair;touch-action:pan-y;isolation:isolate}.boiler-time-track:focus-visible{outline:2px solid #2776c7;outline-offset:3px}.boiler-time-span{position:absolute;top:8px;height:38px;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-size:11px;color:white;min-width:0;box-sizing:border-box;pointer-events:none}.boiler-time-span.fire-on{background:#ce7032}.boiler-time-span.fire-off{background:#bdc4cd;color:#374252}.boiler-time-span.mode-room{background:#587ba5}.boiler-time-span.mode-ondol{background:#9c7457}.boiler-time-span.mode-water{background:#428d91}.boiler-time-span.mode-away{background:#8a75a7}.boiler-time-span.mode-other{background:#6f7b91}.boiler-time-cursor{position:absolute;top:0;bottom:0;width:2px;background:#1e2938;transform:translateX(-1px);z-index:2;pointer-events:none}.boiler-time-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted,#777);margin-top:8px;font-variant-numeric:tabular-nums}.boiler-time-picked{padding:16px;background:#f5f6f9;border-radius:12px}.boiler-time-picked>time{display:block;font-size:14px;font-weight:600;margin-bottom:12px}.boiler-time-picked dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}.boiler-time-picked dl>div{min-width:0}.boiler-time-picked dt{font-size:12px;color:var(--muted,#777);margin-bottom:5px}.boiler-time-picked dd{margin:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}.boiler-time-picked p{margin:12px 0 0;font-size:12px;line-height:1.6;color:var(--muted,#777)}.boiler-time-legend{display:flex;flex-wrap:wrap;gap:10px 14px;font-size:11px;color:var(--muted,#777);margin:14px 0 0}.boiler-time-legend>span:before{content:'';display:inline-block;width:9px;height:9px;margin-right:5px;border-radius:2px;background:#e7e9ef}.boiler-time-legend>.fire-on:before{background:#ce7032}.boiler-time-legend>.fire-off:before{background:#bdc4cd}.boiler-time-legend>.unknown:before{background:#f2f3f6;border:1px solid #dfe3ea}.activity-list-disclosure{margin-top:20px;border-top:1px solid var(--line,#e4e6ea);padding-top:8px}.activity-list-disclosure>summary{font-size:13px;color:var(--muted,#777);padding:14px 0;cursor:pointer}.activity-list-disclosure .activity-list-heading{margin-top:0;border-top:0;padding-top:6px}.activity-list-disclosure .activity-result-bar{padding-top:0}.boiler-history .activity-extra{margin-bottom:4px}
@media(max-width:600px){.boiler-timeline{padding-top:16px}.boiler-timeline-heading{margin-bottom:18px;gap:8px}.boiler-timeline-heading h3{font-size:16px}.boiler-time-picked{padding:14px}.boiler-time-picked dd{font-size:14px}.boiler-time-axis{font-size:10px}.boiler-time-span{font-size:10px}}

.history-chart-track .history-chart-mark.event-dot{width:24px;height:44px;top:-4px;transform:translateX(-50%);background:transparent;z-index:1}.history-chart-mark.event-dot:after{content:'';position:absolute;width:7px;top:8px;bottom:8px;left:9px;background:var(--chart-color,#65769b);border-radius:4px}.history-chart-mark.event-dot:focus-visible{outline-offset:-2px}.history-chart-actions{margin-top:12px;margin-bottom:8px}
.history-time-surface{position:relative;min-height:44px;cursor:crosshair;touch-action:pan-y;isolation:isolate}.history-time-surface:focus-visible{outline:2px solid #2776c7;outline-offset:4px;border-radius:6px}.history-time-surface .history-chart-track,.history-time-surface .history-chart-numeric{margin-left:0;margin-right:0}.history-time-span{position:absolute;top:7px;height:22px;background:var(--chart-color);pointer-events:none;min-width:0}.history-time-span.state-off{background:#bbc4cf}.history-time-span.uncertain{background:repeating-linear-gradient(135deg,#c9d0da 0 3px,#eef0f5 3px 6px)}.history-time-picked{padding:14px 16px;border-radius:12px;background:#f5f6f9}.history-time-picked>time{display:block;font-size:14px;font-weight:600;margin-bottom:12px}.history-time-picked dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;margin:0}.history-time-picked dl>div{min-width:0}.history-time-picked dt{font-size:12px;color:var(--muted,#777);overflow-wrap:anywhere;margin-bottom:4px}.history-time-picked dd{margin:0;font-size:15px;font-weight:600}.history-chart-picked>time{display:block;font-size:12px;color:var(--muted,#777);margin-top:6px}

.history-time-surface .numeric-point{pointer-events:none}
