.h3d{color:var(--c-night);font-family:inherit}.h3d,.h3d *{box-sizing:border-box}.h3d button,.h3d input{font:inherit}.h3d button{cursor:pointer}.h3d button:focus-visible,.h3d input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.h3d [hidden]{display:none!important}.h3d{border:1px solid var(--c-edge);background:radial-gradient(900px 520px at 40% 45%,#fff,#eceae4);width:100%;position:relative;overflow:hidden}.h3d:before{content:"";pointer-events:none;opacity:0;background:radial-gradient(900px 500px at 40% 45%,#1a2130,#0c1016);transition:opacity .6s;position:absolute;inset:0}.h3d.is-night:before{opacity:1}.h3d .house-canvas{position:absolute;inset:0}.h3d .house-canvas canvas{display:block}.h3d .house-label-layer{pointer-events:none;z-index:1;isolation:isolate}.h3d .surface{background:color-mix(in oklab,var(--c-paper) 90%,transparent);border:1px solid var(--c-edge);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:18px;box-shadow:0 12px 32px -12px #10141c2e}.h3d.is-night .surface{box-shadow:0 12px 32px -12px #0009}.h3d .seg,.h3d .floor-pills,.h3d .mode{background:color-mix(in oklab,var(--c-night) 6%,transparent);border-radius:999px;gap:4px;padding:4px;display:flex}.h3d .seg button,.h3d .floor-pills button,.h3d .mode button{height:36px;color:var(--c-slate);white-space:nowrap;background:0 0;border:0;border-radius:999px;align-items:center;gap:6px;padding:0 14px;font-size:13px;font-weight:600;display:flex}.h3d .seg button[aria-pressed=true],.h3d .floor-pills button[aria-pressed=true],.h3d .mode button[aria-pressed=true]{background:var(--c-night);color:var(--c-paper)}.h3d .seg svg{width:16px;height:16px}.h3d .topbar{z-index:3;align-items:center;gap:16px;padding:10px 10px 10px 16px;display:flex;position:absolute;top:20px;left:20px}.h3d .stage-title{flex-direction:column;gap:2px;display:flex}.h3d .stage-title small{font-family:var(--font-mono);letter-spacing:.08em;color:var(--c-slate);font-size:11px}.h3d .stage-title strong{font-size:15px;font-weight:600}.h3d .daynight{z-index:3;border-radius:999px;padding:4px;position:absolute;top:20px;right:20px}.h3d .daynight .seg{background:0 0;padding:0}.h3d .room-card{z-index:3;flex-direction:column;gap:14px;width:300px;padding:18px;display:flex;position:absolute;top:84px;bottom:84px;right:20px;overflow:auto}.h3d .room-chips{flex-wrap:wrap;gap:6px;display:flex}.h3d .room-chips button{border:1px solid var(--c-edge-strong);height:32px;color:var(--c-night);background:0 0;border-radius:999px;padding:0 12px;font-size:13px}.h3d .room-chips button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--c-paper);font-weight:600}.h3d .rule{background:var(--c-edge);flex-shrink:0;height:1px}.h3d .room-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.h3d .room-head strong{font-size:20px;font-weight:600}.h3d .room-head span{font-family:var(--font-mono);color:var(--c-slate);white-space:nowrap;font-size:12px}.h3d .rows{flex-direction:column;gap:6px;display:flex}.h3d .row{background:var(--c-mist);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;min-height:52px;padding:8px 10px 8px 14px;display:grid}.h3d .row.is-flash{background:color-mix(in oklab,var(--accent) 22%,var(--c-mist));transition:background .25s}.h3d .row-name{color:var(--c-night);text-align:left;background:0 0;border:0;padding:0;font-size:14px;font-weight:500;line-height:1.35}.h3d .row-value{font-family:var(--font-mono);color:var(--c-slate);font-size:12px;display:block}.h3d .row-value.is-on{color:#9a6a12}.h3d.is-night .row-value.is-on{color:#f0b44c}.h3d .switch{background:var(--c-edge-strong);border:0;border-radius:999px;flex-shrink:0;width:44px;height:26px;padding:0;transition:background .2s;position:relative}.h3d .switch:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.h3d .switch[aria-checked=true]{background:var(--accent)}.h3d .switch[aria-checked=true]:after{transform:translate(18px)}.h3d .dim{color:var(--c-slate);white-space:nowrap;grid-column:1/-1;align-items:center;gap:8px;font-size:11px;display:flex}.h3d .dim input{width:100%;accent-color:var(--accent)}.h3d .tones{flex-wrap:wrap;grid-column:1/-1;gap:4px;display:flex}.h3d .tones button{border:1px solid var(--c-edge-strong);height:28px;color:var(--c-night);background:0 0;border-radius:999px;align-items:center;gap:5px;padding:0 9px;font-size:12px;display:flex}.h3d .tones button[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);font-weight:600}.h3d .swatch{border-radius:50%;width:10px;height:10px;display:block}.h3d .swatch-white{background:#fff3dd;box-shadow:0 0 0 1px #0002}.h3d .swatch-warm{background:#ffb36b}.h3d .swatch-mood{background:#8b7bff}.h3d .swatch-rainbow{background:conic-gradient(#ff5f5f,#ffd25f,#6fe07a,#5fc8ff,#a56bff,#ff5f5f)}.h3d .timer{flex-direction:column;grid-column:1/-1;gap:6px;display:flex}.h3d .timer-toggle{width:max-content;height:26px;color:var(--accent);font-family:var(--font-mono);background:0 0;border:0;align-items:center;gap:5px;padding:0;font-size:12px;display:flex}.h3d .timer-toggle svg{width:14px;height:14px}.h3d .timer-edit{color:var(--c-slate);flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;display:flex}.h3d .timer-edit label{align-items:center;gap:4px;display:flex}.h3d .timer-edit input{border:1px solid var(--c-edge-strong);background:var(--c-paper);height:30px;color:var(--c-night);font-family:var(--font-mono);color-scheme:inherit;border-radius:8px;padding:0 6px;font-size:12px}.h3d .timer-clear{border:1px solid var(--c-edge-strong);height:30px;color:var(--c-night);background:0 0;border-radius:999px;padding:0 10px;font-size:12px}.h3d .clock-panel{z-index:3;width:268px;padding:12px 14px;position:absolute;top:96px;left:20px}.h3d .clock{flex-direction:column;gap:8px;display:flex}.h3d .clock-head{align-items:center;gap:10px;display:flex}.h3d .clock-head small{font-family:var(--font-mono);letter-spacing:.06em;color:var(--c-slate);font-size:11px}.h3d .clock-head strong{font-family:var(--font-mono);font-variant-numeric:tabular-nums;margin-right:auto;font-size:22px;font-weight:500}.h3d .clock-play{background:var(--color-cta);height:34px;color:var(--color-cta-ink);border:0;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;display:flex}.h3d .clock-play svg{width:13px;height:13px}.h3d .clock input[type=range]{width:100%;accent-color:var(--accent)}.h3d .clock p{color:var(--c-slate);margin:0;font-size:11px}.h3d .scene-bar{z-index:3;flex-wrap:wrap;align-items:center;gap:4px;width:max-content;max-width:calc(100% - 260px);padding:6px;display:flex;position:absolute;bottom:20px;left:20px}.h3d .scene-bar>small{font-family:var(--font-mono);letter-spacing:.08em;color:var(--c-slate);padding:0 10px 0 8px;font-size:11px}.h3d .scene-button svg{flex-shrink:0;width:18px;height:18px}.h3d .scene-button{height:40px;color:var(--c-night);white-space:nowrap;background:0 0;border:0;border-radius:13px;align-items:center;gap:8px;padding:0 14px;font-size:14px;font-weight:500;display:flex}.h3d .scene-button[aria-pressed=true]{background:var(--accent);color:var(--c-paper)}.h3d .scene-note{color:var(--c-slate);margin:0;font-size:12px;line-height:1.5}.h3d .zoom-bar{z-index:3;border-radius:14px;gap:2px;padding:4px;display:flex;position:absolute;bottom:20px;right:20px}.h3d .zoom-bar button{width:40px;height:40px;color:var(--c-night);background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.h3d .zoom-bar button:hover:not(:disabled){background:color-mix(in oklab,var(--c-night) 8%,transparent)}.h3d .zoom-bar button[aria-pressed=false]{opacity:.55}.h3d .zoom-bar svg{width:16px;height:16px}.h3d .reset{border:1px solid var(--c-edge-strong);background:var(--c-paper);color:var(--c-night);border-radius:999px;height:36px;padding:0 14px;font-size:13px}.h3d .room-tag{color:#15181e;white-space:nowrap;pointer-events:none;background:#fffffff5;border:1px solid #e1dfd8;border-radius:14px;align-items:center;gap:7px;height:28px;padding:0 12px 0 10px;font-family:inherit;font-size:13px;font-weight:600;transition:background .6s,color .6s,border-color .6s;display:inline-flex;box-shadow:0 2px 6px #15181e14}.h3d .tag-dot{background:#c9c6be;border-radius:50%;flex-shrink:0;width:8px;height:8px}.h3d .room-tag.is-lit .tag-dot{background:#f0b44c;box-shadow:0 0 8px #f0b44c}.h3d.is-night .room-tag{color:#f2f1ec;background:#14181feb;border-color:#ffffff24}.h3d.is-night .tag-dot{background:#4b525e}.h3d .room-tag.is-pickable{pointer-events:auto;cursor:pointer;position:relative}.h3d .room-tag.is-pickable:after{content:"";position:absolute;inset:-6px -3px}.h3d .room-tag.is-selected,.h3d.is-night .room-tag.is-selected{color:#fff;background:#0e6e6a;border-color:#0e6e6a}.h3d.is-night .room-tag.is-selected{color:#0b1215;background:#5cc2ba;border-color:#5cc2ba}.h3d .room-tag.is-pickable:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.h3d.room-pins .device-pin,.h3d.room-pins .lock-badge{display:none}.h3d .device-pin{pointer-events:auto;touch-action:none;border:1px solid var(--c-edge);background:color-mix(in oklab,var(--c-paper) 88%,transparent);width:26px;height:26px;color:var(--accent);border-radius:50%;place-items:center;padding:2px;display:grid;position:relative;box-shadow:0 2px 6px #15181e1f}.h3d .device-pin:after{content:"";background:color-mix(in oklab,var(--accent) 50%,transparent);width:1px;height:12px;position:absolute;top:100%;left:50%}.h3d .device-pin svg{width:18px;height:18px}.h3d .device-pin.is-on{color:var(--c-paper);background:var(--accent);border-color:var(--accent)}.h3d .device-pin.is-locked{color:var(--c-paper);background:var(--c-night);border-color:var(--c-night)}.h3d .device-pin.is-unlocked{color:#15181e;background:#f0b44c;border-color:#f0b44c}.h3d .pin-tooltip{white-space:nowrap;background:var(--c-paper);color:var(--c-night);border:1px solid var(--c-edge);pointer-events:none;border-radius:8px;padding:6px 8px;font-size:11px;display:none;position:absolute;bottom:35px;left:50%;transform:translate(-50%);box-shadow:0 6px 18px #15181e33}.h3d .bulb-tooltip{z-index:2;white-space:nowrap;background:var(--c-paper);color:var(--c-night);border:1px solid var(--c-edge);pointer-events:none;border-radius:8px;padding:6px 8px;font-size:11px;position:absolute;box-shadow:0 6px 18px #15181e33}.h3d .device-pin:hover .pin-tooltip,.h3d .device-pin.show-tip .pin-tooltip{display:block}.h3d .device-pin.highlight:before{content:"";border:2px solid var(--accent);border-radius:50%;animation:.65s ease-out 3 h3d-pin-pulse;position:absolute;inset:-5px}@keyframes h3d-pin-pulse{to{opacity:0;transform:scale(1.65)}}.h3d .device-pin.is-flashing{box-shadow:0 0 0 7px color-mix(in oklab,var(--accent) 50%,transparent)}.h3d .device-pin.kind-plug.is-on{box-shadow:0 0 12px 4px color-mix(in oklab,var(--accent) 50%,transparent)}.h3d .switch-plate{pointer-events:auto;background:linear-gradient(150deg,#fff 0%,#f3f4f6 55%,#e6e8eb 100%);border:1px solid #00000024;border-radius:4px;align-items:center;gap:4px;min-width:56px;height:38px;padding:0 16px 0 9px;display:flex;position:relative;box-shadow:0 4px 12px #00000052,inset 0 1px #ffffffe6;z-index:99999!important}.h3d .switch-plate:before{content:"";border-radius:inherit;pointer-events:none;background:linear-gradient(115deg,#0000 58%,#ffffff8c 64%,#0000 72%);position:absolute;inset:0}.h3d .switch-plate:after{content:"";background:#8a9099;border-radius:50%;width:3px;height:3px;margin-top:-1.5px;position:absolute;top:50%;right:6px}.h3d .switch-key{cursor:pointer;touch-action:manipulation;background:0 0;border:0;place-items:center;width:22px;height:24px;padding:0;display:grid;position:relative}.h3d .switch-key:after{content:"";border:1.5px solid #9aa1aa;border-radius:50%;width:12px;height:12px;transition:border-color .15s,box-shadow .15s}.h3d .switch-key.is-on:after{border-color:#f0b44c;box-shadow:0 0 6px 1px #f0b44cbf,inset 0 0 4px #f0b44c99}.h3d .switch-key:active:after{transform:scale(.88)}.h3d .switch-key:focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-radius:4px}.h3d.plates-black .switch-plate{background:linear-gradient(150deg,#2b2d31 0%,#141518 55%,#08090a 100%);border-color:#ffffff1f;box-shadow:0 4px 12px #00000073,inset 0 1px #ffffff1f}.h3d.plates-black .switch-plate:before{background:linear-gradient(115deg,#0000 58%,#ffffff1f 64%,#0000 72%)}.h3d.plates-black .switch-plate:after{background:#cfd3d8}.h3d.plates-black .switch-key:after{border-color:#d5d9de}.h3d.plates-black .switch-key.is-on:after{border-color:#f0b44c}.h3d.plates-hidden .switch-plate{display:none!important}.h3d .plate-swatch{border:1.5px solid;border-radius:2px;width:16px;height:12px}.h3d .plate-swatch.is-white{background:#fff}.h3d .plate-swatch.is-black{background:#111}.h3d .lock-badge{background:var(--c-night);width:19px;height:19px;color:var(--c-paper);pointer-events:none;border-radius:5px;place-items:center;display:grid}.h3d .lock-badge.unlocked{color:#15181e;background:#f0b44c}.h3d .lock-badge svg{width:15px;height:15px}.h3d .gang-no{background:var(--c-night);min-width:14px;height:14px;color:var(--c-paper);text-align:center;border-radius:7px;padding:0 3px;font-size:9px;font-weight:700;line-height:14px;position:absolute;top:-6px;right:-6px}.h3d .touch-hint{z-index:3;border:1px solid var(--c-edge);background:var(--c-paper);color:var(--c-slate);border-radius:999px;padding:7px 10px;font-size:11px;display:none;position:absolute;top:18px;right:20px}.h3d .bulb-hint{z-index:3;border:1px solid var(--c-edge);background:var(--c-paper);color:var(--c-night);pointer-events:none;border-radius:999px;padding:7px 10px;font-size:11px;position:absolute;bottom:82px;left:20px}@media (pointer:coarse){.h3d .touch-hint{display:block}}.h3d .stage-status{z-index:5;background:var(--c-paper);width:max-content;max-width:calc(100% - 24px);color:var(--c-night);text-align:center;border-radius:10px;padding:10px 14px;font-size:13px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.h3d button:disabled{cursor:default;opacity:.6}.h3d .mobile-sheet{display:none}@media (max-width:899px){.h3d .topbar{box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;gap:6px;padding:12px;top:0;left:0}.h3d .stage-title,.h3d .room-card,.h3d .scene-bar,.h3d .clock-panel{display:none}.h3d .daynight{padding:3px;top:12px;right:12px}.h3d .seg button,.h3d .floor-pills button,.h3d .mode button{height:32px;padding:0 10px;font-size:12px}.h3d .seg button svg{display:none}.h3d:has(.mobile-sheet) .house-canvas{height:min(62svh,560px);min-height:420px;position:relative}.h3d .mobile-sheet{z-index:4;flex-direction:column;margin:0 9px 9px;display:flex;position:relative;overflow:hidden}.h3d .mobile-tabs{border-bottom:1px solid var(--c-edge);display:flex}.h3d .mobile-tabs button{color:var(--c-slate);background:0 0;border:0;flex:1;padding:11px;font-size:13px}.h3d .mobile-tabs button[aria-selected=true]{color:var(--c-night);box-shadow:inset 0 -2px var(--accent);font-weight:600}.h3d .mobile-panel{flex-direction:column;gap:12px;padding:14px;display:flex;overflow:auto}.h3d .mobile-panel .clock{border-bottom:1px solid var(--c-edge);padding-bottom:12px}.h3d .mobile-panel .scene-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.h3d .mobile-panel .scene-button{background:var(--c-mist)}.h3d .mobile-panel .scene-button[aria-pressed=true]{background:var(--accent)}.h3d .mobile-sheet[data-tab=room] .mobile-panel{max-height:min(60svh,520px)}.h3d .zoom-bar{flex-direction:column;top:62px;bottom:auto;right:12px}.h3d .touch-hint{top:62px;left:12px;right:auto}.h3d .bulb-hint{top:calc(max(420px,min(62svh,560px)) - 44px);bottom:auto;left:12px}.h3d .device-pin{width:22px;height:22px;padding:1px}.h3d .device-pin svg{width:15px;height:15px}.h3d .room-tag{gap:5px;height:22px;padding:0 8px 0 6px;font-size:10.5px}}@media (prefers-reduced-motion:reduce){.h3d *,.h3d :before,.h3d :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.h3d .design-clock{z-index:4;width:262px;padding:10px 12px;position:absolute;top:12px;left:12px}.h3d .design-clock .clock-head strong{font-size:18px}.h3d .timer-open{border:1px solid var(--c-edge-strong);height:30px;color:var(--c-night);background:0 0;border-radius:999px;align-self:flex-start;padding:0 12px;font-size:12px;font-weight:600}.h3d .timer-list{flex-direction:column;gap:6px;max-height:min(230px,36svh);display:flex;overflow:auto}.h3d .timer-row{background:var(--c-mist);border-radius:10px;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.h3d .timer-row b{color:var(--c-night);font-size:12px;font-weight:500;line-height:1.4}.h3d.is-expanded{z-index:70;border:0;border-radius:0;width:auto;height:100dvh;position:fixed;inset:0}:is(:has(>* .h3d.is-expanded),:has(>.h3d.is-expanded)){z-index:70}.h3d .sheet-toggle{display:none}@media (max-width:1023px){.h3d .sheet-toggle{z-index:5;background:var(--color-cta,#f0b44c);height:40px;color:var(--color-cta-ink,#15181e);border:0;border-radius:999px;padding:0 14px;font-size:14px;font-weight:600;display:block;position:absolute;top:12px;left:12px;box-shadow:0 4px 14px #0000002e}.h3d.sheet-open{height:auto;bottom:50dvh}.h3d.sheet-open .zoom-bar.design-zoom{bottom:12px}.h3d.sheet-open .touch-hint{display:none}body:has(.h3d.sheet-open) #room-panel{z-index:71;border-radius:20px 20px 0 0;height:50dvh;margin:0;position:fixed;bottom:0;left:0;right:0;overflow-y:auto;box-shadow:0 -8px 24px #0003}}@media (min-width:1024px){.h3d.is-expanded{right:400px}body:has(.h3d.is-expanded) #summary{z-index:71;pointer-events:none}body:has(.h3d.is-expanded) #summary>:not(#room-panel){visibility:hidden}body:has(.h3d.is-expanded) #room-panel{pointer-events:auto;z-index:71;border-radius:0;width:400px;margin:0;position:fixed;top:0;bottom:0;right:0;overflow-y:auto}}.h3d .zoom-bar.design-zoom{flex-direction:column;top:62px;bottom:auto;right:12px}.h3d .zoom-bar.design-zoom button[aria-pressed=false]{opacity:1}@media (max-width:899px){.h3d .zoom-bar.design-zoom{top:auto;bottom:96px}.h3d .design-clock{width:auto;top:56px;right:12px}.h3d .design-clock .clock input[type=range],.h3d .design-clock .clock p,.h3d .switch-plate:not(.is-room){display:none}}
