@font-face{font-family:Playfair;src:url('assets/Playfair.ttf') format('truetype');font-display:swap;font-weight:600}:root{font-family:'Segoe UI',Arial,sans-serif;color:#292d29;background:#f3f0e9;font-synthesis:none;--ink:#292d29;--muted:#646b60;--line:#d8d7cc;--accent:#a87632;--panel:#fffdf8}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}a{color:inherit}button,input,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #b77d2d;outline-offset:3px}button:disabled{cursor:default;opacity:.55}.masthead{display:flex;align-items:center;gap:28px;background:var(--panel);border-bottom:1px solid var(--line);padding:20px 4%}.brand{font-size:22px;letter-spacing:.22em;line-height:1.1;border-right:1px solid var(--line);padding-right:28px}.brand span{font-size:10px;letter-spacing:.43em;display:block;margin-top:6px}.project{display:flex;align-items:baseline;gap:18px}.project h1{font:600 22px Playfair,Georgia,serif;margin:0}.project>span{font-size:14px;color:var(--muted)}.header-actions{margin-left:auto;display:flex;gap:15px;align-items:center}.pdf-link{font-size:14px;text-decoration:none;border-bottom:1px solid #8c8b7d;line-height:2}.help{height:44px;width:44px;border-radius:50%;background:none;border:1px solid #c9c9ba;font:20px Georgia}main{max-width:1660px;padding:24px 4% 0;margin:auto}.intro{display:flex;align-items:baseline;gap:22px;margin-bottom:21px}.intro h2{font:600 28px Playfair,Georgia,serif;margin:0}.intro p{font-size:15px;color:var(--muted);margin:0;line-height:1.5}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.visual{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.viewbar{padding:13px 16px;border-bottom:1px solid var(--line)}.segmented{display:flex;gap:3px;background:#eeece4;border-radius:7px;padding:3px;width:max-content;max-width:100%}.segmented button{min-height:44px;padding:10px 17px;border:0;background:transparent;border-radius:5px;font-size:14px;white-space:nowrap}.segmented button[aria-pressed=true]{background:var(--ink);color:#fffaf0;box-shadow:0 2px 5px #20282014}.canvas-wrap{position:relative;background:#e6e1d7;min-height:250px}.stage{height:clamp(380px,44vw,570px);position:relative;overflow:hidden}.room-stage #room-canvas{position:absolute;inset:0}.room-stage canvas{display:block;width:100%;height:100%;touch-action:none}.room-markers{position:absolute;inset:0;pointer-events:none;overflow:hidden}.room-marker,.hotspot{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;border:0;display:grid;place-items:center;background:transparent;border-radius:50%;pointer-events:auto;z-index:3}.room-marker span,.hotspot span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#fffdf3;box-shadow:0 2px 8px #252a2940;border:2px solid #3c5445;font-size:14px;font-weight:700;color:#344a3b}.room-marker.selected span,.hotspot.selected span{background:#344c3d;color:#fffefa;box-shadow:0 0 0 4px #fffdf3,0 0 0 6px #b29360}.room-marker:hover span,.hotspot:hover span{transform:scale(1.07)}.view-caption{position:absolute;top:16px;left:18px;background:#fffdf4e8;border-radius:4px;padding:7px 11px;font-size:13px;color:#535c4e;pointer-events:none}.camera-tip{position:absolute;right:17px;bottom:15px;font-size:12px;color:#4b5548;background:#fffdf4d9;padding:6px 9px;border-radius:4px;pointer-events:none}.plan-stage{height:auto;aspect-ratio:880/590;max-height:570px;isolation:isolate}.plan-stage svg{width:100%;height:100%;display:block}.furniture-base{filter:contrast(.94);transition:filter .3s}.night .furniture-base{filter:brightness(.42) saturate(.6)}.night .plan-stage{background:#252b24}.glow-item{mix-blend-mode:screen;transition:opacity .25s}.lamp-dot{stroke:#849378;stroke-width:2;fill:#f6f3e6}.lamp-dot.on{fill:#ffe1a0;stroke:#aa8038}.light-line{stroke-linecap:round;fill:none}.selected-link{stroke:#b86527;stroke-width:1.6;stroke-dasharray:6 5;opacity:.75;fill:none}.focus-ring{stroke:#b46b2a;stroke-width:2.3;stroke-dasharray:3 3;fill:none}.focus-line{stroke:#b46b2a;stroke-width:11;stroke-opacity:.42;fill:none;stroke-linecap:round}.canvas-tools{display:flex;align-items:center;gap:13px;padding:12px 16px;border-top:1px solid var(--line);font-size:14px;min-height:64px;flex-wrap:wrap}.day-night{display:flex;border:1px solid #d2d2c4;border-radius:5px;padding:2px;background:#f2f0e9}.day-night button{background:none;border:0;min-height:38px;padding:8px 16px;border-radius:3px;font-size:14px}.day-night button[aria-pressed=true]{background:#4b5845;color:white}.outline{border:1px solid #c6c8b8;background:none;border-radius:5px;min-height:44px;padding:9px 12px;font-size:14px}.check{display:flex;align-items:center;gap:7px;min-height:44px;margin-left:auto;cursor:pointer}.check input{accent-color:#4b5845;width:18px;height:18px}.active-lights{display:flex;align-items:start;gap:10px;padding:5px 16px 7px;min-height:42px;font-size:13px}.active-label{padding-top:5px;color:var(--muted)}#active-names{display:flex;flex-wrap:wrap;gap:5px;flex:1}.active-tag{background:#f5ebd8;border:1px solid #ded0b2;padding:4px 7px;border-radius:4px;font-size:12px}.none-on{color:var(--muted);padding:5px 0}.text-button{background:none;border:0;font-size:13px;text-decoration:underline;text-underline-offset:4px;min-height:36px;white-space:nowrap;margin-top:-5px}.view-note,.fallback-note{margin:0;padding:3px 16px 16px;color:var(--muted);font-size:12px;line-height:1.55}.fallback-note{color:#97651f}.controls{background:var(--panel);border:1px solid var(--line);border-radius:12px;position:sticky;top:14px;overflow:hidden}.controls-top{padding:20px 19px 17px}.eyebrow{font-size:12px;letter-spacing:.15em;color:#68715e;font-weight:700;margin:0 0 11px}.location-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.location-grid button{border:1px solid #d6d8c9;border-radius:5px;background:none;min-height:47px;display:flex;align-items:center;gap:8px;padding:8px 9px;font-size:14px;text-align:left}.location-grid button:last-child{grid-column:span 2}.location-grid button small{min-width:22px;height:22px;border-radius:50%;background:#eceee2;display:grid;place-items:center;font-size:12px;font-weight:600}.location-grid button[aria-pressed=true]{background:#ececdf;border-color:#829076}.switch-box{padding:19px;border-top:1px solid var(--line);background:linear-gradient(170deg,#f9f7ed,#fffdf8)}.switch-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:17px}.location-kicker{font-size:12px;color:var(--muted);letter-spacing:.09em;text-transform:uppercase}.switch-heading h3{font:600 23px Playfair,Georgia,serif;margin:6px 0 0;line-height:1.25}.plate-number{background:#3d5342;color:#fffdfa;border-radius:50%;height:32px;min-width:32px;font-size:14px;display:grid;place-items:center;margin-top:6px}.switch-key{display:flex;align-items:center;gap:10px;justify-content:space-between;background:#fffef9;min-height:79px;width:100%;border:1px solid #c6c9b7;border-radius:7px;box-shadow:0 3px 0 #d7dac9;padding:13px 12px;margin-bottom:10px;text-align:left;transition:background .2s,border-color .2s}.switch-key[aria-pressed=true]{background:#faefd8;border-color:#b9a16f;box-shadow:0 3px 0 #c5b188}.key-label{display:flex;flex-direction:column;gap:5px}.key-label strong{font-size:15px;font-weight:600}.key-label small{font-size:12px;color:var(--muted)}.key-association{font-size:12px;color:#7e6643;line-height:1.4}.toggle{height:22px;width:38px;background:#899381;border-radius:20px;position:relative;flex-shrink:0}.toggle:after{content:'';position:absolute;height:16px;width:16px;left:3px;top:3px;background:#fffdf5;border-radius:50%;transition:transform .2s}.switch-key[aria-pressed=true] .toggle{background:#886c36}.switch-key[aria-pressed=true] .toggle:after{transform:translateX(16px)}.dimmer{margin-top:19px}.dimmer label{font-size:14px;display:flex;justify-content:space-between;gap:10px;line-height:1.5;margin-bottom:7px}.dimmer strong{color:#8a662b;min-width:34px;text-align:right}.dimmer input{width:100%;accent-color:#92713b;height:28px;cursor:pointer}.range-labels{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin-top:1px}.shared-control{font-size:13px;line-height:1.6;color:var(--muted);border-left:2px solid #a4aa91;padding-left:11px;margin:18px 0 0}.scenes{margin-top:25px;display:grid;grid-template-columns:240px 1fr;gap:12px 22px;align-items:center}.scene-intro h3{font:600 24px Playfair,Georgia,serif;margin:0 0 8px}.scene-intro p{font-size:14px;color:var(--muted);line-height:1.5;margin:0}.scene-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.scene-buttons button{border:1px solid #d0d2c2;border-radius:7px;background:var(--panel);padding:16px;min-height:83px;display:flex;align-items:center;gap:11px;text-align:left}.scene-buttons button[aria-pressed=true]{background:#3e5140;border-color:#3e5140;color:white}.scene-symbol{font:30px Georgia;color:#a58046;min-width:28px}.scene-buttons button[aria-pressed=true] .scene-symbol{color:#e9c990}.scene-buttons b{font-size:16px;font-weight:600;display:block;margin-bottom:5px}.scene-buttons small{font-size:12px;line-height:1.45;display:block}.scene-note{grid-column:2;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.understand{margin-top:25px;border-top:1px solid var(--line);padding:12px 0}.understand summary{font-size:15px;padding:12px 0;min-height:44px;cursor:pointer}.explanations{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.explanations h4{font-size:16px;margin:15px 0 8px}.explanations p{font-size:14px;color:var(--muted);line-height:1.65}footer{border-top:1px solid var(--line);padding:18px 0 23px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted)}.load-overlay{position:absolute;inset:0;background:#f5f2e9;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;font-size:16px;text-align:center;padding:25px}.loading-dot{width:20px;height:20px;border:2px solid #d4d5c7;border-top-color:#5b6b50;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-overlay h3{font:600 27px Playfair;margin:0}.error-overlay p{color:var(--muted);margin:0}.error-overlay button{padding:12px 20px;border:0;background:#405541;color:white;border-radius:5px;min-height:44px}.error-overlay a{font-size:14px;line-height:2}.socket-hotspot{position:absolute;transform:translate(-50%,-50%);height:44px;min-width:44px;border:0;background:none;display:grid;place-items:center;z-index:4;padding:0}.socket-hotspot span{background:#e8f1f6;border:1px solid #3a617a;border-radius:4px;min-width:25px;padding:3px 5px;font-size:12px;color:#32576f;font-weight:bold}.socket-hotspot.active span{background:#3a617a;color:white}.socket-detail{position:absolute;bottom:15px;left:15px;right:15px;padding:14px 50px 14px 16px;background:#fffdfa;border:1px solid #a2b6bd;border-radius:7px;box-shadow:0 5px 20px #2b422523;font-size:14px;z-index:5}.socket-detail small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}.socket-detail button{border:0;background:none;position:absolute;right:4px;top:4px;width:44px;height:44px;font-size:24px}.sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip:rect(0,0,0,0);white-space:nowrap}dialog{border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--panel);padding:34px;max-width:500px;width:calc(100% - 30px)}dialog::backdrop{background:#232e25a8;backdrop-filter:blur(3px)}dialog h2{font:600 30px Playfair;margin:17px 0 22px}.dialog-close{position:absolute;top:10px;right:10px;height:44px;width:44px;background:none;border:0;font-size:26px}dialog ol{padding-left:23px}dialog li{margin:20px 0;padding-left:4px;font-size:16px}dialog p{font-size:15px;color:var(--muted);line-height:1.5;margin:7px 0}.primary{background:#405541;color:white;border:0;border-radius:5px;min-height:48px;width:100%;font-size:16px;padding:12px;margin-top:15px}.help-note{font-size:13px!important}
@media(max-width:1100px){main{padding-left:22px;padding-right:22px}.masthead{padding-left:22px;padding-right:22px}.workspace{grid-template-columns:minmax(0,1fr) 295px;gap:16px}.stage{height:450px}.project{display:block}.project>span{display:block;margin-top:5px}.intro{display:block}.intro p{margin-top:8px}.segmented{width:100%}.segmented button{flex:1;padding:10px;font-size:13px}.controls-top,.switch-box{padding-left:15px;padding-right:15px}.canvas-tools{padding:10px 12px;gap:8px}.scenes{grid-template-columns:1fr}.scene-note{grid-column:1}.scene-intro{display:flex;align-items:baseline;gap:20px}}
@media(max-width:800px){main{padding:17px 18px 0}.masthead{padding:15px 18px;gap:18px}.brand{font-size:18px;padding-right:18px}.brand span{font-size:8px}.project h1{font-size:19px}.project>span{font-size:12px}.header-actions{gap:8px}.pdf-link{font-size:12px}.help{width:36px;height:44px;border:0}.intro{margin-bottom:15px}.intro h2{font-size:24px}.intro p{font-size:14px;margin-top:5px}.workspace{display:block}.visual{position:relative;z-index:1}.stage{height:clamp(260px,39svh,390px)}.plan-stage{height:auto;max-height:390px;aspect-ratio:880/590}.viewbar{padding:9px 10px}.controls{position:relative;top:0;margin-top:13px}.controls-top{padding:12px 14px}.controls-top .eyebrow{display:none}.location-grid{display:flex;overflow:auto;gap:7px;padding:3px 1px;scrollbar-width:thin}.location-grid button{flex-shrink:0;min-height:44px;padding:8px 11px;white-space:nowrap}.switch-box{padding:15px}.switch-heading{margin-bottom:12px}.switch-heading h3{font-size:22px;margin-top:2px}.location-kicker{font-size:11px}.plate-number{height:28px;min-width:28px;margin-top:2px}#switches{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}#switches.three-keys{grid-template-columns:repeat(3,1fr)}.switch-key{margin:0;min-height:72px;padding:11px 10px;gap:8px}.key-label strong{font-size:14px}.key-label small,.key-association{font-size:12px}.key-association{display:none}.toggle{width:32px;height:20px}.toggle:after{width:14px;height:14px}.switch-key[aria-pressed=true] .toggle:after{transform:translateX(12px)}.dimmer{margin-top:15px}.dimmer label{font-size:14px;margin-bottom:2px}.shared-control{margin-top:12px;font-size:12px;line-height:1.45}.canvas-tools{min-height:54px;padding:7px 12px;gap:8px}.day-night button{min-height:40px;padding:8px 13px}.outline{min-height:44px;font-size:12px;padding:8px 9px}.check{font-size:12px}.active-lights{padding:2px 12px 5px;align-items:center;gap:7px}.active-label{font-size:12px;padding-top:0}.active-tag{font-size:11px;padding:3px 5px}.text-button{font-size:12px;min-height:44px;margin-top:0}.view-note,.fallback-note{font-size:11px;padding:1px 12px 10px;line-height:1.4}.scene-intro{display:block}.scene-intro h3{font-size:24px}.scene-intro p{margin-top:5px}.scenes{margin-top:22px}.explanations{grid-template-columns:1fr;gap:0}.room-marker span,.hotspot span{width:27px;height:27px;font-size:13px}.view-caption{left:12px;top:12px;font-size:12px;padding:6px 9px}.camera-tip{bottom:12px;right:12px;font-size:11px}}
@media(max-width:480px){.masthead{padding:12px;gap:12px}.brand{font-size:15px;letter-spacing:.18em;padding-right:12px}.brand span{letter-spacing:.28em}.project h1{font-size:17px}.project>span{font-size:11px}.pdf-link{font-size:11px}.help{min-width:29px;width:29px}.header-actions{gap:5px}main{padding:13px 12px 0}.intro h2{font-size:23px}.intro p{font-size:13px;max-width:350px}.segmented button{font-size:12px;padding:8px 5px;min-height:44px}.viewbar{padding:7px}.stage{height:clamp(235px,34svh,320px)}.plan-stage{height:auto}.camera-tip{font-size:10px}.canvas-tools{gap:7px;padding:5px 10px}.day-night button{padding:8px 10px;font-size:13px}.outline{font-size:11px;padding:8px}.check{margin-left:0;font-size:11px;min-height:34px}.check input{width:16px;height:16px}.active-lights{font-size:11px;gap:5px;padding:0 10px 3px}.active-label{font-size:11px}.active-tag{font-size:10px;padding:3px 4px}.text-button{font-size:11px}.view-note{font-size:10px;padding:0 10px 8px}.view-caption{font-size:11px}.switch-box{padding:13px}.switch-heading h3{font-size:22px}.location-grid button{font-size:13px}.location-grid button small{width:20px;min-width:20px;height:20px}.shared-control{font-size:12px}#switches.three-keys .switch-key{display:block;position:relative;padding:10px 9px 28px;min-height:97px}#switches.three-keys .toggle{position:absolute;bottom:7px;right:8px;width:26px;height:16px}#switches.three-keys .toggle:after{height:10px;width:10px}#switches.three-keys .switch-key[aria-pressed=true] .toggle:after{transform:translateX(10px)}#switches.three-keys .key-label strong{font-size:13px}.scene-buttons{grid-template-columns:1fr}.scene-buttons button{padding:13px 15px;min-height:72px}.scene-buttons small{font-size:13px}.scene-note{font-size:12px}footer{font-size:11px;line-height:1.5}.socket-detail{font-size:13px;bottom:8px;left:8px;right:8px}.socket-detail small{font-size:11px}.plan-stage .hotspot span{width:25px;height:25px;font-size:12px}.room-marker.selected span,.hotspot.selected span{box-shadow:0 0 0 3px #fffdf3,0 0 0 5px #b29360}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:480px){.intro{display:none}.switch-heading{margin-bottom:10px}.shared-control{font-size:12px}.view-note{font-size:12px}.check{min-height:44px;font-size:12px}.segmented button{font-size:13px}.active-tag{font-size:12px}.active-label{font-size:12px}.text-button{font-size:12px}.camera-tip{font-size:12px}.view-caption{font-size:13px}.key-label strong{font-size:14px}#switches.three-keys .key-label strong{font-size:14px}}

/* The plan image and its percentage-positioned points always share one aspect ratio. */
.plan-stage{height:auto!important;max-height:none!important;aspect-ratio:880/590}
.key-label{min-width:0}.key-label strong{overflow-wrap:anywhere}
@media(max-width:800px){
 .workspace{display:flex;flex-direction:column;gap:0}
 .visual,.controls{display:contents}
 .viewbar{order:0;border:1px solid var(--line);border-radius:10px 10px 0 0;background:var(--panel)}
 .canvas-wrap{order:1;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;overflow:hidden}
 .controls-top{order:2;margin-top:9px;padding:8px 0}
 .switch-box{order:3;border:1px solid var(--line);border-radius:10px;padding:12px}
 .canvas-tools{order:4;margin-top:9px;background:var(--panel);border:1px solid var(--line);border-radius:10px 10px 0 0}
 .active-lights{order:5;background:var(--panel);border-left:1px solid var(--line);border-right:1px solid var(--line);padding-top:6px}
 .view-note{order:6;background:var(--panel);border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;padding:7px 12px 12px}
 .fallback-note{order:7;padding-top:9px}
 .scene-intro p,.explanations p{font-size:16px}
 .key-label strong{font-size:14px}
 #switches.three-keys{grid-template-columns:repeat(3,minmax(0,1fr))}
 .switch-heading{margin-bottom:10px}
 .shared-control{margin-top:10px}
}
@media(max-width:360px){
 .masthead{flex-wrap:wrap}.project{flex:1}.header-actions{margin-left:0}.pdf-link{font-size:12px}
 .segmented{display:grid;grid-template-columns:repeat(2,1fr)}.segmented button{font-size:14px}
 #switches{grid-template-columns:1fr}.switch-key{min-height:64px}
 #switches.three-keys{grid-template-columns:1fr}
 #switches.three-keys .switch-key{display:flex;min-height:64px;padding:11px 10px}
 #switches.three-keys .toggle{position:relative;bottom:auto;right:auto}
}

.intro p,dialog p{font-size:16px}.active-tag{font-size:14px}.active-label,.text-button{font-size:14px}.location-grid button{font-size:14px}
@media(max-width:800px){.segmented button,.check,.day-night button{font-size:14px}.active-tag{font-size:14px}.active-label,.text-button{font-size:14px}.location-grid button{font-size:14px}}

.ambience-picker{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.mode-label{font-size:14px;color:var(--muted)}.mode-note{flex-basis:100%;margin:0;color:var(--muted);font-size:12px;line-height:1.4}.plan-stage[data-ambience=evening]{background:#8f897e}.plan-stage[data-ambience=night]{background:#333a36}
@media(max-width:800px){.ambience-picker{gap:7px}.mode-label{font-size:14px}.mode-note{font-size:12px}.canvas-tools{padding-top:9px;padding-bottom:9px}}

/* Mobile working surface: DOM order matches the visible controls. */
.preview-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:9px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
.mobile-location{display:none}.plan-stage{aspect-ratio:auto!important;padding:24px 0;overflow:visible}.plan-content{position:relative;width:100%;aspect-ratio:880/590;overflow:visible}.plan-content svg{width:100%;height:100%;display:block}.socket-hotspot{width:44px}
.touch-rotate[aria-pressed=true]{background:#405541;color:#fffdfa;border-color:#405541}.camera-tip{max-width:70%;line-height:1.35}
body.phone-layout main{padding:12px 12px 0}body.phone-layout .intro{display:none}body.phone-layout .workspace{display:block}body.phone-layout .visual{display:block;overflow:hidden}body.phone-layout .controls{display:block;position:static;top:auto;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;overflow:visible;background:var(--panel)}
body.phone-layout .viewbar{padding:7px;border:0;border-bottom:1px solid var(--line);border-radius:0}body.phone-layout .segmented{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}body.phone-layout .segmented button{font-size:14px;padding:8px 3px;min-height:44px;white-space:normal;line-height:1.2}
body.phone-layout .preview-tools{padding:8px 10px;gap:7px}body.phone-layout .ambience-picker{gap:7px}body.phone-layout .mode-label{display:none}body.phone-layout .day-night button{min-height:44px;padding:8px 12px;font-size:14px}body.phone-layout .touch-rotate{min-height:44px;font-size:14px;padding:8px 10px}
body.phone-layout .canvas-wrap{border:0;border-radius:0;min-height:0}body.phone-layout .room-stage{height:clamp(210px,32svh,300px)}body.phone-layout .plan-stage{padding:24px 0}body.phone-layout .camera-tip{font-size:12px;max-width:74%;bottom:9px;right:9px}body.phone-layout .view-caption{font-size:13px;top:9px;left:9px}
body.phone-layout .controls-top{margin:0;padding:10px 12px 4px}body.phone-layout .controls-top .eyebrow,body.phone-layout .location-grid{display:none}body.phone-layout .mobile-location{display:block}body.phone-layout .mobile-location label{display:block;font-size:14px;color:var(--muted);margin-bottom:5px}body.phone-layout .mobile-location select{width:100%;min-height:46px;padding:8px 34px 8px 11px;border:1px solid #b8c0b0;border-radius:6px;background:var(--panel);color:var(--ink);font:16px 'Segoe UI',Arial,sans-serif}
body.phone-layout .switch-box{border:0;border-radius:0;padding:12px}body.phone-layout .switch-heading{margin-bottom:10px}body.phone-layout .switch-heading h3{font-size:22px;margin-top:3px}body.phone-layout #switches,body.phone-layout #switches.three-keys{display:grid;grid-template-columns:1fr;gap:8px}body.phone-layout .switch-key,body.phone-layout #switches.three-keys .switch-key{display:flex;align-items:center;min-height:64px;padding:10px 12px;margin:0;gap:12px}body.phone-layout .key-label strong,body.phone-layout #switches.three-keys .key-label strong{font-size:16px;overflow-wrap:normal;line-height:1.3}body.phone-layout .key-label small{font-size:12px}body.phone-layout .key-association{display:none}body.phone-layout #switches.three-keys .toggle{position:relative;bottom:auto;right:auto;width:32px;height:20px}body.phone-layout #switches.three-keys .toggle:after{width:14px;height:14px}body.phone-layout #switches.three-keys .switch-key[aria-pressed=true] .toggle:after{transform:translateX(12px)}
body.phone-layout .dimmer{margin-top:12px}body.phone-layout .dimmer input{height:44px;touch-action:pan-y}body.phone-layout .shared-control{font-size:12px;line-height:1.4;margin-top:12px}body.phone-layout .canvas-tools{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:10px 12px;gap:9px;min-height:0}body.phone-layout .active-lights{border:0;padding:7px 12px;flex-wrap:wrap}body.phone-layout #active-names{min-width:0}body.phone-layout .view-note{border:0;border-radius:0;padding:5px 12px 12px}body.phone-layout .fallback-note{padding:7px 12px 12px}
body.phone-layout .masthead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:10px 12px}body.phone-layout .brand{display:flex;align-items:baseline;gap:7px;font-size:16px;border:0;padding:0;grid-column:1}body.phone-layout .brand span{display:inline;font-size:10px;letter-spacing:.16em;margin:0}body.phone-layout .project{grid-column:1;display:block;min-width:0}body.phone-layout .project h1{font-size:20px;line-height:1.2}body.phone-layout .project>span{display:none}body.phone-layout .header-actions{grid-column:2;grid-row:1/span 2;margin:0;gap:7px}body.phone-layout .pdf-link{font-size:14px;min-height:44px;display:flex;align-items:center;white-space:nowrap}body.phone-layout .help{width:44px;min-width:44px;height:44px;border:1px solid var(--line)}
@media(min-width:430px){body.phone-layout #switches:not(.three-keys){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:500px){body.phone-layout .room-stage{height:clamp(150px,48svh,230px)}body.phone-layout .canvas-wrap{min-height:0}body.phone-layout .preview-tools{padding-top:5px;padding-bottom:5px}}
@media(max-width:380px){body.phone-layout .segmented{grid-template-columns:repeat(2,minmax(0,1fr))}body.phone-layout .preview-tools{justify-content:flex-start}body.phone-layout .day-night button{padding:8px 10px}body.phone-layout .touch-rotate{font-size:14px}body.phone-layout .project h1{font-size:19px}}

@media(min-height:501px){body.phone-layout .visual{overflow:visible}body.phone-layout .canvas-wrap{position:sticky;top:0;z-index:5;overflow:hidden}body.phone-layout .switch-key,body.phone-layout #location-select,body.phone-layout #brightness{scroll-margin-top:calc(32svh + 35px)}}
@media(max-height:500px) and (min-width:600px){body.phone-layout .visual{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);align-items:start;overflow:visible}body.phone-layout .viewbar{grid-column:1/-1;grid-row:1}body.phone-layout .preview-tools{grid-column:1/-1;grid-row:2}body.phone-layout .canvas-wrap{grid-column:1;grid-row:3;position:sticky;top:0;z-index:5;align-self:start;overflow:hidden}body.phone-layout .controls{grid-column:2;grid-row:3/span 4;border-top:0;border-left:1px solid var(--line)}body.phone-layout .canvas-tools{grid-column:1;grid-row:4}body.phone-layout .active-lights{grid-column:1;grid-row:5}body.phone-layout .view-note{grid-column:1;grid-row:6}body.phone-layout .fallback-note{grid-column:1;grid-row:7}body.phone-layout .plan-stage{padding:24px 0}}

/* Camera controls stay with the sticky preview, including after page scroll. */
.room-navigation{display:flex;gap:6px;padding:7px 10px;background:var(--panel);border-top:1px solid var(--line)}.room-navigation button{flex:1;min-width:0;min-height:44px;padding:8px 5px;font-size:14px;line-height:1.2}.room-navigation .touch-rotate{flex:1.3}
body.phone-layout .room-stage.rotating .room-marker{pointer-events:none}body.phone-layout .room-stage.rotating .room-marker span{opacity:.5}body.phone-layout .canvas-wrap{touch-action:pan-y pinch-zoom}
