@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif&display=swap";:root{--bg:#12110f;--bg-panel:#1c1a17;--line:#f5e6c81f;--text:#f3ebe0;--muted:#a89f92;--accent:#e8b86a;--orange:#ff7a1a;--orange-deep:#e85d00;--font:"DM Sans", system-ui, sans-serif;--display:"Instrument Serif", Georgia, serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#1a1815;border-radius:8px;padding:.45rem .8rem}button.ghost{background:0 0}code{color:var(--accent);font-size:.85em}.app{grid-template-rows:auto auto 1fr;height:100%;display:grid}.app.is-settings{grid-template-rows:auto 1fr}.header-controls{align-items:center;gap:.5rem;display:flex}.header-controls button.is-on{color:var(--text);background:#ff7a1a29;border-color:#ff7a1a73}.app-header{border-bottom:1px solid var(--line);background:#12110fd9;justify-content:space-between;align-items:flex-end;gap:1rem;padding:1rem 1.25rem .9rem;display:flex}.brand-mark{letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0;font-size:.68rem}.brand h1{font-family:var(--display);margin:.15rem 0 0;font-size:clamp(1.7rem,3vw,2.3rem);font-weight:400;line-height:1}.brand-sub{color:var(--muted);margin:.25rem 0 0;font-size:.85rem}.app-main{grid-template-columns:1fr minmax(280px,340px);min-height:0;display:grid}.plan-column{flex-direction:column;min-width:0;min-height:0;display:flex}.circuit-plan{border-right:1px solid var(--line);touch-action:none;background:#0e0d0b;flex:1;place-items:center;min-height:0;display:grid;position:relative;overflow:hidden}.circuit-stage{transform-origin:50%;transition:transform .78s cubic-bezier(.22,1,.36,1);position:absolute;inset:0}.circuit-stage.is-direct{transition:none}@media (prefers-reduced-motion:reduce){.circuit-stage{transition:none}}.circuit-svg{background:#f4f1ea;border-radius:2px;width:100%;height:100%;display:block}.layer-walls line{stroke:#2a2a2a;stroke-width:28px;stroke-linecap:round;fill:none}.layer-furniture line{stroke:#9a958c;stroke-width:12px;stroke-linecap:round;fill:none;opacity:.55}.layer-light line{stroke:#3a3630;stroke-width:18px;stroke-linecap:round;stroke-linejoin:round;fill:none;transition:stroke .12s,stroke-width .12s}.layer-light.is-tagged line{stroke:#8a6a3a;stroke-width:28px}.layer-light.is-other line{stroke:#cfc6b8;stroke-width:14px;opacity:.45}.layer-light.is-strip line,.layer-light.is-dotted line{stroke-width:36px}.layer-light.is-dotted line{stroke-dasharray:70 46}.layer-light.is-on line{stroke:var(--orange);stroke-width:70px;filter:drop-shadow(0 0 10px #ff7a1a8c)}.layer-light.is-on.is-dotted line{stroke-dasharray:90 50}.layer-light.is-lv-100 line{stroke:var(--orange);stroke-width:78px;filter:drop-shadow(0 0 10px #ff7a1a8c)}.layer-light.is-lv-60 line{stroke:#ff9a4a;stroke-width:46px}.layer-light.is-lv-30 line{stroke:#ffb27a;stroke-width:18px;opacity:.85}.layer-light.is-lv-100.is-dotted line,.layer-light.is-lv-60.is-dotted line,.layer-light.is-lv-30.is-dotted line{stroke-dasharray:90 50}.switch-marker line{stroke:#ff5cab;stroke-width:18px;fill:none}.switch-marker-label{fill:#c2185b;font-size:90px;font-family:var(--font);font-weight:700}.tag-hit{fill:#e8b86a1f;stroke:#c9a05a;stroke-width:12px}.tag-hit.is-active{fill:#ff7a1a38;stroke:var(--orange);stroke-width:18px}.tag-label{font-size:110px;font-family:var(--font);fill:#5c4a2a;pointer-events:none;font-weight:600}.tag-label.is-active{fill:var(--orange-deep);font-weight:700}.hud-active{color:var(--orange);font-weight:600}.circuit-hit{fill:#0000}.circuit-dot{fill:#1e2a38;stroke:#6a8fad;stroke-width:10px}.circuit-marker.is-active .circuit-dot{fill:var(--orange-deep);stroke:var(--orange);stroke-width:16px}.circuit-num{font-size:90px;font-family:var(--font);fill:#f3ebe0;pointer-events:none;font-weight:600}.circuit-marker.is-active .circuit-num{fill:#1a0f05}.plan-hud{color:var(--muted);align-items:center;gap:.5rem;font-size:.8rem;display:flex;position:absolute;bottom:.75rem;left:.75rem}.plan-hud button{background:#12110fd1;padding:.3rem .65rem}.plan-hud button.is-on{color:var(--text);background:#ff7a1a33;border-color:#ff7a1a8c}.side-rail{background:var(--bg-panel);flex-direction:column;min-height:0;display:flex;overflow:auto}.room-summary,.inspector{border-bottom:1px solid var(--line);padding:1rem 1.1rem}.room-summary h3,.inspector h3{font-family:var(--display);margin:0;font-size:1.4rem;font-weight:400}.muted{color:var(--muted);font-size:.85rem;line-height:1.45}.circuit-list{border-bottom:1px solid var(--line);flex-direction:column;gap:.25rem;max-height:48vh;padding:.6rem;display:flex;overflow:auto}.circuit-group+.circuit-group{margin-top:.35rem}.circuit-head{align-items:stretch;gap:.15rem;display:flex}.circuit-head .circuit-row{flex:1;min-width:0}.circuit-toggle{background:0 0;border-color:#0000;flex:0 0 1.6rem;place-items:center;padding:0;display:grid}.chevron{border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);width:.4rem;height:.4rem;margin-left:-.15rem;transform:rotate(-45deg)}.chevron.is-open{margin-top:-.15rem;transform:rotate(45deg)}.circuit-row{text-align:left;background:0 0;border-color:#0000;justify-content:space-between;align-items:center;gap:.6rem;width:100%;padding:.45rem .55rem;display:flex}.circuit-row:hover{background:#ffffff0a}.circuit-row.circuit-parent{border-color:#c9a05a73;font-weight:600}.circuit-row.is-child{opacity:.92;padding-left:1.35rem}.circuit-row.is-on{background:#ff7a1a24;border-color:#ff7a1a59}.circuit-id{color:var(--accent);font-weight:600}.circuit-row.is-on .circuit-id{color:var(--orange)}.warn{color:#d4735a;font-size:.75rem}.level-list{gap:.3rem;margin:.6rem 0 0;padding:0;list-style:none;display:grid}.level-list li{background:#ffffff08;border-radius:6px;justify-content:space-between;gap:.5rem;padding:.35rem .45rem;font-size:.85rem;display:flex}.room-tabs{border-bottom:1px solid var(--line);background:#161410;gap:.35rem;padding:.55rem .75rem;display:flex;overflow-x:auto}.room-tabs button{white-space:nowrap;color:var(--muted);background:0 0;border-color:#0000;flex:none;padding:.35rem .7rem}.room-tabs button.is-on{color:var(--text);background:#ff7a1a29;border-color:#ff7a1a73}.switch-dock{border-top:1px solid var(--line);background:#16130f;max-height:38%;padding:.7rem .85rem .85rem;overflow:auto}.switch-dock-head h3{font-family:var(--display);margin:0;font-size:1.35rem;font-weight:400}.switch-dock-head p{margin:.2rem 0 .55rem}.switch-plates{flex-wrap:wrap;align-items:flex-start;gap:.75rem;display:flex}.switch-plate{background:#2a1822;border:1px solid #ff5cab73;border-radius:12px;width:248px;max-width:100%;padding:.55rem}.switch-plate header{justify-content:space-between;align-items:baseline;margin-bottom:.4rem;display:flex}.switch-id{color:#ff8ec4;letter-spacing:.04em;font-weight:700}.keypad{aspect-ratio:1;gap:.35rem;width:220px;max-width:100%;margin-inline:auto;display:grid}.keypad-s4{grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr}.keypad-s9{grid-template-rows:repeat(4,1fr);grid-template-columns:1fr 1fr}.key{text-align:center;background:#3a2230;border-color:#ffa0c840;justify-content:center;align-items:center;width:100%;height:100%;min-height:0;padding:.2rem .35rem;display:flex}.key-top{justify-content:space-between;align-items:center;gap:.35rem;width:100%;display:flex}.key-id{color:#ffd0e6;font-size:.75rem;font-weight:700}.key-state{letter-spacing:.04em;text-transform:uppercase;color:#c9b0bc;border:1px solid #ffc8dc47;border-radius:999px;flex:none;padding:.05rem .38rem;font-size:.62rem;font-weight:700}.key-name{-webkit-line-clamp:3;-webkit-box-orient:vertical;width:100%;font-size:.72rem;line-height:1.15;display:-webkit-box;overflow:hidden}.keypad-s9 .key-name{-webkit-line-clamp:2;font-size:.62rem}.key-detail{color:var(--muted);font-size:.68rem;line-height:1.25}.key.is-on{background:var(--orange);color:#1a1008;box-shadow:0 0 0 1px var(--orange), 0 0 16px #ff7a1a73;border-color:#ffc089}.key.is-on .key-id,.key.is-on .key-name,.key.is-on .key-detail{color:#1a1008}.key.is-on .key-state{color:#ffd7b5;background:#1a1008;border-color:#1a1008}.circuit-level{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;display:grid}.circuit-value{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:700}.circuit-value.is-lit{color:var(--orange)}.button-names{flex-direction:column;gap:.45rem;margin-top:.8rem;display:flex}.button-room{border:1px solid var(--line);background:#1a1815;border-radius:10px;padding:.45rem .7rem .6rem}.button-room summary{cursor:pointer;font-weight:600}.button-plate-id{color:var(--accent);letter-spacing:.04em;margin:.7rem 0 .3rem;font-size:.78rem;font-weight:700}.name-grid{flex-direction:column;gap:.35rem;display:flex}.name-grid label{color:var(--muted);grid-template-columns:2.4rem minmax(0,1fr);align-items:center;gap:.5rem;font-size:.78rem;display:grid}.name-grid input{font:inherit;color:var(--text);border:1px solid var(--line);background:#12110f;border-radius:8px;padding:.35rem .5rem}@media (width<=900px){.app-main{grid-template-rows:minmax(50vh,1fr) auto;grid-template-columns:1fr}.circuit-plan{border-right:none;border-bottom:1px solid var(--line)}}.sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.settings-page{min-height:0;padding:1.25rem 1.5rem 2.5rem;overflow:auto}.settings-intro h2,.settings-block h3{font-family:var(--display);margin:0;font-weight:400}.settings-intro h2{font-size:2rem}.settings-block{max-width:920px;margin-top:1.5rem}.settings-block h3{font-size:1.45rem}.theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin-top:.8rem;display:grid}.theme-card{text-align:left;background:#1a1815;flex-direction:column;align-items:stretch;gap:.2rem;padding:.7rem;display:flex}.theme-card.is-on{border-color:#ff7a1ab3;box-shadow:0 0 0 1px #ff7a1a73}.theme-name{margin-top:.55rem;font-weight:700}.theme-product,.theme-note{font-size:.78rem;line-height:1.35}.room-settings{flex-direction:column;gap:.45rem;margin:.8rem 0 0;padding:0;list-style:none;display:flex}.room-setting{border:1px solid var(--line);background:#1a1815;border-radius:10px;padding:.55rem .7rem}.room-setting.is-dragging{opacity:.45}.room-setting-main{align-items:center;gap:.6rem;display:flex}.drag-grip{color:var(--muted);cursor:grab;letter-spacing:-.12em}.room-setting-name{font-weight:600}.room-setting-move{gap:.35rem;margin-left:auto;display:flex}.room-setting-move button,.room-includes select{background:0 0;padding:.25rem .5rem}.room-includes{flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.45rem;display:flex}.include-chip{background:#ff7a1a24;border-color:#ff7a1a66;border-radius:999px;padding:.2rem .5rem}.switch-dock.is-preview{background:0 0;border:none;max-height:none;padding:0;overflow:visible}.switch-dock.is-preview .switch-plate{width:100%;box-shadow:none;background:0 0;border:none;padding:0;display:block}.switch-dock.theme-control4 .switch-plate,.switch-dock.theme-lutron .switch-plate,.switch-dock.theme-eelectron .switch-plate{box-sizing:border-box}.switch-dock.theme-control4 .key,.switch-dock.theme-lutron .key,.switch-dock.theme-eelectron .key{min-height:0;position:relative}.switch-dock.theme-control4 .switch-plate{background:#141414;border-color:#3a3a3a;border-radius:4px}.switch-dock.theme-control4 .switch-id{color:#d7d7d7;letter-spacing:.08em;font-size:.78rem}.switch-dock.theme-control4 .key{color:#ececec;background:#2b2b2b;border:1px solid #3f3f3f;border-radius:2px;box-shadow:inset 0 1px #ffffff0a}.switch-dock.theme-control4 .key-name{color:#c8c8c8}.switch-dock.theme-control4 .key:after{content:"";background:#1a3f6d;border-radius:50%;width:.42rem;height:.42rem;position:absolute;top:.35rem;right:.35rem;box-shadow:inset 0 0 0 1px #1d4f86}.switch-dock.theme-control4 .key.is-on{color:#fff;background:#343434;border-color:#5a5a5a;box-shadow:inset 0 0 0 1px #4da3ff59}.switch-dock.theme-control4 .key.is-on .key-name{color:#f4f4f4}.switch-dock.theme-control4 .key.is-on:after{background:#4da3ff;box-shadow:0 0 8px #4da3ff}.switch-dock.theme-lutron .keypad-s4,.switch-dock.theme-lutron .keypad-s9{grid-template-columns:1fr}.switch-dock.theme-lutron .keypad-s4{grid-template-rows:repeat(4,1fr)}.switch-dock.theme-lutron .keypad-s9{grid-template-rows:repeat(8,1fr);gap:.18rem}.switch-dock.theme-lutron .switch-plate{background:#f3efe8;border:1px solid #cfc6b8;border-radius:2px;box-shadow:0 8px 20px #00000040}.switch-dock.theme-lutron .switch-id{color:#4a433a}.switch-dock.theme-lutron .key{color:#2f2a24;box-shadow:none;background:#fbfaf7;border:1px solid #e3dbd0;border-radius:1px}.switch-dock.theme-lutron .key-name{color:#3a342c;letter-spacing:.04em;text-transform:uppercase}.switch-dock.theme-lutron .keypad-s9 .key-name{letter-spacing:.02em;-webkit-line-clamp:1;font-size:.55rem}.switch-dock.theme-lutron .key:after{content:"";background:#d9d3c8;width:.34rem;height:.34rem;position:absolute;top:.28rem;left:.32rem}.switch-dock.theme-lutron .key.is-on{color:#2f2a24;background:#fff;border-color:#c8a15a;box-shadow:inset 3px 0 #e0a11a}.switch-dock.theme-lutron .key.is-on .key-name{color:#2f2a24}.switch-dock.theme-lutron .key.is-on:after{background:#e0a11a;box-shadow:0 0 6px #e0a11acc}.switch-dock.theme-eelectron .switch-plate{background:#f7f6f3;border:1px solid #e4e0d8;border-radius:18px;box-shadow:0 10px 24px #00000047}.switch-dock.theme-eelectron .switch-id{color:#3d3a36}.switch-dock.theme-eelectron .keypad.is-split{grid-template-columns:1fr 7px 1fr;gap:.28rem .35rem}.switch-dock.theme-eelectron .keypad-s4.is-split{grid-template-rows:1fr 1fr}.switch-dock.theme-eelectron .keypad-s9.is-split{grid-template-rows:repeat(4,1fr)}.switch-dock.theme-eelectron .rgb-bar{background:linear-gradient(#dedad4,#f3f1ec);border-radius:99px;grid-area:1/2/-1}.switch-dock.theme-eelectron .keypad.is-split:has(.key.is-on) .rgb-bar{background:linear-gradient(#7eb6ff,#d7b0ff 55%,#ffb7c8);box-shadow:0 0 10px #a08cffa6}.switch-dock.theme-eelectron .key{color:#2a2724;background:#fff;border:1px solid #ece8e1;border-radius:8px;box-shadow:0 1px #fffc,0 1px 2px #0000000f}.switch-dock.theme-eelectron .key-name,.switch-dock.theme-eelectron .key.is-on .key-name{color:#1d1b19}.switch-dock.theme-eelectron .key.is-on{color:#1d1b19;background:#f4f7fb;border-color:#d5deea;box-shadow:inset 0 0 0 1px #d5deea}@media (width<=900px){.theme-grid{grid-template-columns:1fr}}
