@font-face{font-family:Playfair Display;src:url(fonts/playfair-display.ttf) format('truetype');font-weight:400 900;font-display:swap}
:root{--ink:#233c40;--green:#267f72;--paper:#faf9f6;--line:#dce2e0;--soft:#f1f4f2;--warm:#fff0bc;--blue:#286895;color-scheme:light;font-family:'Segoe UI',system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit;color:inherit}button,select{min-height:44px}button{border:1px solid var(--line);background:white;border-radius:7px;padding:10px 14px;cursor:pointer;font-weight:600;transition:background .16s}button:hover{background:var(--soft)}button:disabled{cursor:default;opacity:.4}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #ba6429;outline-offset:3px}a{color:var(--ink)}h1,h2{font-family:Playfair Display,Georgia,serif;font-weight:500;margin:0}h1{font-size:clamp(27px,3vw,38px);line-height:1.17}h2{font-size:25px;line-height:1.25}p{line-height:1.5}header,main,footer{max-width:1530px;margin:auto}.header{padding:24px 40px;display:flex;gap:36px;align-items:center;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:2.5px;font-size:17px;line-height:1.05;flex-shrink:0}.brand small{font-size:10px;letter-spacing:3px}.brand-mark{font-family:Playfair Display,Georgia,serif;font-size:52px;font-weight:400;letter-spacing:-5px;margin-right:4px}.heading{flex:1}.eyebrow{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;margin:0 0 7px;color:#516562}.source-link{font-size:14px;padding:10px 0;white-space:nowrap;min-height:44px;display:flex;align-items:center;gap:10px}.toolbar{display:flex;align-items:end;gap:22px;padding:24px 40px}.room-picker{flex:1;min-width:200px}.room-picker,.switch-picker{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#516562}select{border:1px solid var(--line);background:white;padding:10px 30px 10px 12px;border-radius:7px;width:100%;font-weight:600;color:var(--ink);max-width:100%}.environment{border:0;padding:0;margin:0;min-width:0}.environment legend,.small-label{font-size:13px;color:#516562;margin-bottom:6px;display:block}.segmented{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;background:white;gap:2px}.segmented button{border:0;border-radius:4px;min-height:44px;padding:7px 15px;font-size:14px}.segmented button[aria-pressed=true]{background:var(--ink);color:white}.scene-controls>div{display:flex;gap:6px}.scene-controls button{font-size:14px;font-weight:500}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 345px;gap:24px;padding:0 40px}.plan-card{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden;align-self:start}.plan-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 24px 13px}.plan-header h2{font-size:24px}.plan-header button{font-size:14px;white-space:nowrap}.plan-viewport{position:relative;aspect-ratio:1.2;max-height:640px;background:#f6f6f2;overflow:hidden}.plan-viewport svg{width:100%;height:100%;display:block;touch-action:pan-y pinch-zoom}.plan-viewport.panning svg{touch-action:none;cursor:grab}.plan-viewport.panning:active svg{cursor:grabbing}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--soft);font-size:18px}.loading.hidden{display:none}.view-controls{padding:10px 16px;display:flex;justify-content:space-between;gap:8px}.zoom-controls{display:flex;gap:4px}.zoom-controls button:first-child,.zoom-controls button:last-child{width:44px;padding:0;font-size:25px}.zoom-controls #fit{font-size:13px}.view-controls #pan-mode{font-size:13px;font-weight:500}.view-controls #pan-mode[aria-pressed=true]{background:var(--ink);color:white}.layers{padding:8px 20px 12px;display:flex;flex-wrap:wrap;gap:10px 20px;font-size:14px;line-height:1.4}.layers label{display:flex;align-items:center;min-height:44px;gap:7px;cursor:pointer}.layers input{width:19px;height:19px;accent-color:var(--green)}.plan-caption{padding:14px 22px;border-top:1px solid var(--line);display:flex;gap:12px;background:var(--soft)}.plan-caption p{margin:0;font-size:14px}.plan-caption small{font-size:12px;color:#536762}.switch-key{font-size:24px;color:#b56b32}.control-panel{min-width:0;padding:7px 0}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.panel-title .eyebrow{font-size:11px;letter-spacing:1px}.panel-title>span{font-size:11px;color:#5a6b65;text-align:right}.switch-picker{margin:10px 0 14px}.control-card{padding:18px;background:var(--soft);border:1px solid var(--line);border-radius:10px}.control-card h2{font-size:23px}.control-card .source-code{font-size:12px;color:#5b716b;margin:5px 0 14px}.key-button{display:flex;justify-content:space-between;gap:12px;text-align:left;width:100%;margin-top:8px;font-size:14px;min-height:52px}.key-button[aria-pressed=true]{background:#fff0bc;border-color:#d6bd72}.key-button .state-label{font-size:12px;font-weight:500;white-space:nowrap;align-self:center}.key-button .label-text{display:flex;flex-direction:column;gap:3px}.key-button small{font-size:11px;font-weight:400;color:#5a6961}.control-note{font-size:12px;line-height:1.5;margin:12px 0 0;color:#5b6b62}.group-heading{display:flex;justify-content:space-between;align-items:center;margin:23px 0 10px}.group-heading h2{font-size:22px}.group-heading span{font-size:12px}.group-button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;padding:11px 12px;margin-bottom:8px;min-height:52px;font-size:14px;font-weight:500}.group-button[aria-pressed=true]{background:#fff6d9;border-color:#e4cc8f}.group-button.selected{box-shadow:inset 3px 0 #267f72}.group-button .bulb{width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:var(--soft);color:#476559;font-size:18px}.group-button[aria-pressed=true] .bulb{background:#ffda69;color:#705100}.group-button .group-text{flex:1}.group-text small{display:block;font-size:11px;color:#62756d;margin-top:3px}.pill{font-size:10px;letter-spacing:.3px;padding:5px 7px;border-radius:12px;background:#eef1ef}.group-button[aria-pressed=true] .pill{background:#ebd68d}.fine-note{font-size:12px;color:#5a6b64;line-height:1.5;margin-top:16px}.information{padding:26px 40px}.information details{border-top:1px solid var(--line);padding:4px 0}.information details:last-child{border-bottom:1px solid var(--line)}summary{cursor:pointer;min-height:52px;padding:14px 0;font-weight:600;font-size:14px}summary span{color:#647771;font-weight:400;margin-left:8px}.information p,.information li{font-size:14px;line-height:1.6;max-width:1000px}.information ul{padding-left:23px}.information li{margin:7px 0}.point-register{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-bottom:18px}.register-button{text-align:left;font-size:13px;font-weight:400;line-height:1.45;padding:12px}.register-button strong{display:block;font-size:12px;color:var(--blue);margin-bottom:4px}.register-button small{display:block;color:#61756c;margin-top:5px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}footer{display:flex;justify-content:space-between;gap:20px;padding:22px 40px 32px;font-size:11px;color:#61736d;letter-spacing:.5px}dialog{border:1px solid var(--line);padding:24px;border-radius:12px;width:min(540px,calc(100% - 24px));color:var(--ink);max-height:calc(100dvh - 32px);overflow:auto}dialog::backdrop{background:#18333b66}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header button{width:44px;font-size:24px;padding:0}.dialog-header .eyebrow{margin:0}dialog h2{margin:12px 0}dialog p{font-size:15px}dialog dl{display:grid;grid-template-columns:110px 1fr;gap:8px;font-size:14px}dialog dt{color:#64766c}dialog dd{margin:0}.marker{cursor:pointer}.marker:focus-visible{outline:none}.marker:focus-visible .marker-ring{stroke:#b56b32;stroke-width:3}.marker-ring{fill:white;stroke:#b56b32;stroke-width:1.5}.marker.active .marker-ring{fill:#fff0bc}.marker.selected .marker-ring{stroke:#233c40;stroke-width:2.5}.marker text{fill:#233c40;font-family:'Segoe UI',system-ui,sans-serif;pointer-events:none}.socket-marker .marker-ring{stroke:#286895}.fixture{pointer-events:none}.fixture-icon{stroke:#267f72;fill:#f4f9f5;stroke-width:1}.fixture.on .fixture-icon{stroke:#a27a23;fill:#ffe492}.link-line{stroke:#d65a00;fill:none;stroke-width:1.2;stroke-dasharray:4 3;pointer-events:none}.group-line{stroke:#267f72;stroke-dasharray:1 3}.glow,.ambient{pointer-events:none;transition:opacity .22s}.marker-label{paint-order:stroke;stroke:#fff;stroke-width:2.5;stroke-linejoin:round;font-weight:600}.marker-hit{fill:transparent;pointer-events:all}
@media(min-width:761px){#group-list{max-height:420px;overflow-y:auto;padding:3px;overscroll-behavior:contain}}
@media(min-width:1250px){.control-panel{max-height:none}.plan-viewport{aspect-ratio:1.25}}
@media(max-width:1000px){.header{padding:20px 24px;gap:22px}.toolbar{padding:20px 24px;gap:12px;flex-wrap:wrap}.room-picker{min-width:180px}.workspace{padding:0 24px;grid-template-columns:minmax(0,1fr) 300px;gap:18px}.plan-header{padding:16px}.plan-header h2{font-size:22px}.plan-viewport{aspect-ratio:1}.information{padding:24px}.point-register{grid-template-columns:repeat(2,minmax(0,1fr))}footer{padding:20px 24px}.view-controls{flex-wrap:wrap}.scene-controls{margin-left:auto}}
@media(max-width:760px){.header{padding:16px;gap:14px;align-items:center}.brand-mark{font-size:39px}.brand{font-size:12px;letter-spacing:1.4px;gap:7px}.brand small{font-size:8px;letter-spacing:1.8px}.heading .eyebrow{font-size:10px;letter-spacing:.5px;margin-bottom:4px}h1{font-size:25px}.source-link{font-size:12px;align-self:flex-start;padding:0}.source-link span{display:none}.toolbar{padding:16px;gap:13px;align-items:end}.room-picker{min-width:100%;font-size:13px}.environment{flex:1}.segmented button{padding:7px 14px}.scene-controls{margin-left:0}.scene-controls button{font-size:12px;padding:10px}.small-label,.environment legend{font-size:12px}.workspace{display:flex;flex-direction:column;padding:0 12px;gap:18px}.plan-card{width:100%}.plan-header{padding:15px 14px 9px}.plan-header h2{font-size:24px}.plan-header .eyebrow{font-size:10px}.plan-header button{font-size:12px;padding:9px}.plan-viewport{aspect-ratio:1.07;max-height:none}.view-controls{padding:8px 10px;flex-wrap:nowrap}.view-controls #pan-mode{font-size:12px;padding:9px}.zoom-controls #fit{font-size:12px;padding:8px}.layers{padding:2px 12px 7px;gap:0 13px;font-size:12px}.layers label{min-height:44px}.plan-caption{padding:11px 14px;gap:9px}.plan-caption p{font-size:12px}.plan-caption small{font-size:11px}.control-panel{padding:0 4px}.panel-title .eyebrow{font-size:12px}.control-card{padding:16px}.key-button{font-size:15px}.group-button{font-size:15px}.information{padding:20px 16px}.point-register{grid-template-columns:1fr}.information summary{font-size:14px}footer{padding:16px;display:block}footer span{display:block;margin:5px 0}}
@media(max-width:370px){.header{padding:12px;gap:9px}.brand>span:last-child{display:none}h1{font-size:23px}.source-link{font-size:11px}.toolbar{padding:12px}.environment{flex-basis:100%}.segmented button{flex:1}.scene-controls{width:100%}.scene-controls>div{width:100%}.scene-controls button{flex:1}.plan-header h2{font-size:22px}.layers{display:block}.view-controls{gap:4px}.view-controls #pan-mode{padding:8px}.zoom-controls #fit{padding:8px}}
@media(max-height:500px) and (orientation:landscape){.workspace{display:grid;grid-template-columns:1.2fr 1fr;align-items:start}.plan-viewport{aspect-ratio:1.5;max-height:330px}.toolbar .room-picker{min-width:180px;flex-basis:25%}.toolbar{flex-wrap:nowrap}.environment{flex-basis:auto}.scene-controls{width:auto}.header{padding-top:10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.view-switch{margin:0 20px 14px;width:max-content}.view-switch button{min-width:110px}
.three-viewport{height:560px;position:relative;background:#d5ddda;overflow:hidden}.three-surface{position:relative;width:100%;height:100%;touch-action:pan-y pinch-zoom;cursor:grab}.three-surface.free-orbit{touch-action:none}.three-surface:active{cursor:grabbing}.three-surface canvas{display:block;width:100%;height:100%;touch-action:inherit}.three-markers{position:absolute;inset:0;pointer-events:none}.three-marker{position:absolute;transform:translate(-50%,-50%);min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#fffdf5;box-shadow:0 2px 8px #153a3733;border:1.5px solid #b56b32;pointer-events:auto;font-size:12px}.three-marker.socket{border-color:#286895}.three-marker.selected{border:3px solid #233c40;background:#ffedb7}.three-controls{padding:12px 18px}.camera-buttons{display:flex;gap:6px;flex-wrap:wrap}.camera-buttons button{font-size:12px;min-width:44px}.orbit-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:10px}.orbit-options label{min-height:44px;display:flex;align-items:center;gap:7px;font-size:13px}.orbit-options input{height:19px;width:19px;accent-color:var(--green)}#free-orbit{font-size:13px}#free-orbit[aria-pressed=true]{background:var(--ink);color:white}#orbit-hint{font-size:12px;margin:8px 0 0;color:#48635b}.three-note{font-size:11px;color:#64746d;line-height:1.5;margin:6px 0 0}
@media(max-width:760px){.three-viewport{height:370px}.three-controls{padding:10px 12px}.view-switch{margin-left:14px}.camera-buttons button{padding:9px 10px}.orbit-options{gap:10px}}
@media(max-width:370px){.three-viewport{height:320px}}
@media(max-height:500px) and (orientation:landscape){.three-viewport{height:300px}.three-controls{padding:8px}.three-note{font-size:10px}}
