/* Scoped additions preserve the existing warm theme and device-card layouts. */
body:not([data-home-view="home"]) #boiler{display:none}
.boiler-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;max-width:none;padding:12px 14px;margin:0 0 16px;border-radius:17px}
.boiler-identity{display:flex;align-items:center;gap:10px;min-width:0}
.boiler-icon{width:28px;height:36px;flex:none;color:#786044}
.boiler-panel h2{margin:0;font-size:17px;line-height:1.4}
.boiler-panel .boiler-state{font-size:13px;line-height:1.5;font-weight:500;margin:3px 0 0;color:#655647}
.boiler-state::before{content:'';display:inline-block;width:7px;height:7px;margin-inline-end:6px;border-radius:50%;background:#9c9080}
.boiler-panel[data-state="on"]{background:var(--home-active-surface);border-color:var(--home-active-border)}
.boiler-panel[data-state="on"] .boiler-state{color:var(--home-active-ink);font-weight:650}
.boiler-panel[data-state="on"] .boiler-state::before{background:var(--home-active-edge)}
.boiler-panel[data-state="on"] .boiler-icon{color:var(--home-active-ink)}
.boiler-panel[data-state="pending"] .boiler-state,.boiler-panel[data-state="warning"] .boiler-state{color:#8b4319}
.boiler-home{display:block;font-size:12px;color:var(--muted)}
.boiler-home:empty{display:none}
.boiler-actions{margin-inline-end:52px}
.boiler-actions button{min-height:44px;margin:0;padding:10px 13px;font-size:14px;font-weight:600;white-space:nowrap}
.boiler-details{grid-column:1/-1}
.boiler-details>summary{position:absolute;inset-inline-end:14px;top:12px;display:grid;place-items:center;width:44px;height:44px;list-style:none;cursor:pointer;border:1px solid #d6c9b6;border-radius:10px;background:#faf7f1;color:#695237}
.boiler-details>summary::-webkit-details-marker{display:none}
.boiler-details>summary svg{width:24px;height:24px}
.boiler-details[open]>summary{background:#eee1c9;border-color:#9c8058}
.boiler-expanded{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.boiler-expanded h3{margin:0 0 12px}
.boiler-panel form{margin:0;max-width:540px}
.boiler-panel input{max-width:100%;font-size:16px}
.boiler-expanded p,.boiler-technical{font-size:14px}
.boiler-technical{margin-top:18px}
.boiler-technical>summary{min-height:44px;cursor:pointer;align-content:center;color:#695237}
.boiler-access,.boiler-result{grid-column:1/-1;margin:8px 0 0;font-size:13px;line-height:1.5;color:#695237}
.boiler-access:empty,.boiler-result:empty{display:none}
@media(max-width:400px){.boiler-icon{display:none}.boiler-panel{padding:12px;column-gap:8px}.boiler-actions button{padding-inline:10px}.boiler-details>summary{inset-inline-end:12px}}

#room-picker{margin:0 0 20px;scroll-margin-top:12px}
#room-picker>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:48px;list-style:none;cursor:pointer;color:#493929}
#room-picker>summary::-webkit-details-marker{display:none}
#room-picker>summary>span:first-child{font-size:20px;font-weight:600}
#selected-room{border:1px solid var(--line);background:#faf7f1;border-radius:20px;padding:4px 10px;font-size:13px}
.room-picker-change{margin-inline-start:auto;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.room-picker-change::after{content:'⌄';display:inline-block;margin-inline-start:8px}
#room-picker[open] .room-picker-change::after{transform:rotate(180deg)}
#room-picker .room-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:10px;padding:0;overflow:visible;white-space:normal}
#room-picker .room-tile{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-items:center;min-width:0;min-height:78px;padding:12px;text-align:start;border-radius:15px;white-space:normal}
.room-tile svg{width:28px;height:28px;grid-row:1/3}
.room-tile-name{font-size:15px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.room-tile small{font-size:12px;color:inherit;line-height:1.5}
#room-picker .room-tile[aria-pressed=true]{background:var(--home-active-ink);color:var(--home-active-contrast);border-color:var(--home-active-ink)}
.room-order-bar{display:flex;justify-content:flex-end;align-items:center;gap:4px;flex-wrap:wrap}
#room-picker .room-order-bar button{min-height:44px;padding:6px 9px;margin:0;background:transparent;border:1px solid transparent;border-radius:8px;color:#716657;font-size:12px;font-weight:400;box-shadow:none}
#room-picker .room-order-bar button:hover{color:#493929;background:#f0eae0}
#room-picker .room-order-bar .room-order-save{font-weight:600;color:#594735}
#room-picker .room-order-bar button:focus-visible{outline:2px solid #78634a;outline-offset:1px}
.room-order-help,.room-order-status{font-size:12px;color:#716657;line-height:1.6;margin:0 0 8px}
.room-order-status:empty{display:none}
.room-order-status:not(:empty){margin:8px 0 0}
.room-order-cell{min-width:0;border:1px dashed #c9bba7;border-radius:15px;overflow:hidden}
#room-picker .room-order-cell .room-tile{width:100%;border:0;background:transparent;touch-action:none;user-select:none;cursor:grab}
.room-order-moves{display:flex;justify-content:space-between;border-top:1px solid #e5dbcd}
#room-picker .room-order-moves button{min-width:44px;min-height:44px;margin:0;padding:4px 12px;border:0;background:transparent;color:#594735;font-size:18px;border-radius:8px}
#room-picker .room-order-moves button:disabled{opacity:.3}
.room-order-cell.room-order-dragging{opacity:.6}
.room-order-cell.room-order-target{outline:2px solid #937b5d;outline-offset:2px;background:#efe7da}
@media(max-width:760px){#room-picker .room-chips{grid-template-columns:repeat(2,minmax(0,1fr))}#room-picker .room-tile{grid-template-columns:24px minmax(0,1fr);column-gap:8px;padding:10px}.room-tile svg{width:24px;height:24px}}
