:root{font-family:"DM Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#292b27;background:#f6f5f1;--ink:#292b27;--mute:#676b61;--line:#dcdcd2;--accent:#975037;--paper:#fdfcf9;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:0;border-radius:7px;color:inherit;background:transparent}button:disabled{cursor:default;opacity:.43}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #bb724f;outline-offset:3px}i[data-icon]{display:inline-flex;align-items:center;flex:none;font-style:normal}button svg{width:17px;height:17px}[hidden]{display:none!important}.bar{height:69px;border-bottom:1px solid var(--line);padding:0 clamp(20px,3.5vw,68px);display:flex;align-items:center;justify-content:space-between;background:#fcfbf8}.identity,.header-actions,.location,.lib-heading,.finish-top,.scale-row,.schedule-title{display:flex;align-items:center}.identity{gap:11px}.identity img{width:34px;height:34px}.identity b{font-size:21px;letter-spacing:.075em}.identity i{height:24px;border-left:1px solid #cfcfc5;margin:0 5px}.identity span{font-size:16px;letter-spacing:-.035em;color:#606156}.header-actions{gap:14px}.header-actions button{font-size:.89rem;font-weight:600;padding:10px 14px;min-height:39px}.primary{background:var(--accent);color:white;border:1px solid #8b4a32;box-shadow:0 2px 4px #51291516}.primary:hover{background:#82432e}.quiet:hover:enabled,.restore:hover:enabled{background:#e8e6dc}main{max-width:1800px;margin:0 auto;padding:30px clamp(20px,3.5vw,68px) 34px}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.property-type{display:flex;align-items:center;gap:9px;font-size:.77rem;font-weight:650;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}.property-type span{width:21px;height:2px;background:#af7056}h1,h2,h3,p{margin:0}h1{font-family:"Baskervville",Baskerville,"Times New Roman",serif;font-weight:400;font-size:clamp(38px,3.7vw,62px);letter-spacing:-.055em;line-height:1.12;margin:5px 0 0}h1 em{font-weight:400}.location{gap:6px;color:var(--mute);font-size:.9rem;margin-bottom:6px}.location svg{width:16px;height:16px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,25vw,395px);gap:clamp(16px,1.7vw,30px);align-items:start}.left{min-width:0}.stage{position:relative;width:100%;height:clamp(380px,66vh,820px);overflow:hidden;border-radius:13px;background:#454339;isolation:isolate}.stage.full{position:fixed;inset:0;border-radius:0;z-index:90;height:100dvh}.stage:fullscreen{border-radius:0;max-width:none;width:100vw;height:100vh}.camera,.camera img,.camera canvas,.stage iframe,.shade,.markers{position:absolute;inset:0;width:100%;height:100%;border:0}.camera img,.camera canvas{object-fit:cover}.camera canvas{cursor:crosshair}.shade{pointer-events:none;background:linear-gradient(180deg,#100c091c 0%,transparent 20%,transparent 73%,#120f0b59 100%)}.scene-top,.scene-foot{position:absolute;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.scene-top>* , .scene-foot>*{pointer-events:auto}.scene-top{top:18px}.scene-foot{bottom:18px}.view-menu,.glass-square,.mode-switch{border:1px solid #ffffff62;background:#252621c9;color:#fff;backdrop-filter:blur(12px);box-shadow:0 2px 6px #17171022}.glass-square{width:37px;height:37px;border-radius:8px}.view-menu{position:relative;display:flex;align-items:center;border-radius:8px;padding:0 10px;height:37px;gap:7px}.view-menu svg{height:16px;width:16px}.view-menu select{background:transparent;border:0;appearance:none;color:white;font-size:.86rem;letter-spacing:.005em;font-weight:550;width:112px;height:100%;padding-right:17px}.view-menu select option,.view-menu optgroup{color:#242520;background:white}.view-menu i:last-child{position:absolute;right:9px;pointer-events:none}.mode-switch{display:flex;gap:3px;padding:4px;border-radius:9px}.mode-switch button{padding:8px 12px;color:#fff9f0;font-size:.82rem;border-radius:6px}.mode-switch button[aria-pressed="true"]{background:#f6f3e9;color:#302f29}.markers{pointer-events:none;overflow:hidden}.marker{position:absolute;transform:translate(-50%,-50%);width:25px;height:25px;background:#f9f7efef;border-radius:50%;color:#423e34;border:1px solid #fff;box-shadow:0 0 0 5px #ffffff40,0 2px 7px #15130d5c;pointer-events:auto;padding:0}.marker svg{width:13px;height:13px}.marker.active{background:var(--accent);color:white}.marker span{position:absolute;left:calc(100% + 9px);border-radius:5px;padding:5px 8px;background:#282921de;color:white;white-space:nowrap;font-size:.73rem;font-weight:500;opacity:0;pointer-events:none}.marker:hover span,.marker:focus-visible span,.marker.active span{opacity:1}.scene-help{display:flex;align-items:center;gap:7px;color:var(--mute);font-size:.82rem;line-height:1.4;padding:12px 1px}.scene-help svg{width:15px;height:15px}.scene-index{margin-left:auto;color:#77796d}.schedule-title{margin:13px 0 11px;justify-content:space-between}.schedule-title h2{font-family:Baskerville,"Times New Roman",serif;font-size:1.55rem;font-weight:400;letter-spacing:-.035em}.schedule-title span,.finish-top span{color:var(--mute);font-size:.8rem}.schedule{display:flex;gap:8px;flex-wrap:wrap}.schedule button{border:1px solid var(--line);background:var(--paper);padding:7px 13px 7px 7px;gap:9px;text-align:left;border-radius:8px}.schedule button.active{border-color:#bda08d}.schedule button>i{border-radius:5px;display:block;width:33px;height:33px;background-size:cover!important;border:1px solid #0001}.schedule button strong,.schedule button small{display:block;font-size:.81rem;font-weight:600}.schedule button small{color:var(--mute);font-size:.77rem;font-weight:400;margin-top:2px}.library{border-radius:13px;border:1px solid var(--line);background:var(--paper);padding:clamp(18px,1.55vw,26px);box-shadow:0 3px 12px #1a191209}.lib-heading{gap:10px;padding-bottom:21px;margin-bottom:20px;border-bottom:1px solid var(--line)}.library-icon{display:grid;place-items:center;width:34px;height:34px;background:#f1e8dd;border-radius:8px;color:var(--accent)}.lib-heading h2{font-family:Baskerville,"Times New Roman",serif;font-weight:400;letter-spacing:-.035em;font-size:1.8rem}.library label,.finish-top h3,.scale-row label{font-size:.86rem;font-weight:600}.surface-select{position:relative;display:flex;align-items:center;margin:8px 0 24px}.surface-select select{appearance:none;background:#f4f3ed;border:1px solid #d5d6cb;border-radius:7px;color:var(--ink);width:100%;padding:12px 30px 12px 39px;font-size:.94rem}.surface-select i{pointer-events:none;position:absolute;left:12px}.surface-select i:last-child{left:auto;right:11px}.surface-select svg{width:16px;height:16px}.finish-top,.scale-row{justify-content:space-between}.categories{display:flex;gap:3px;margin:10px 0 14px;background:#efeee8;padding:3px;border-radius:7px}.categories button{flex:1;padding:6px 1px;font-size:.81rem;color:#5c6055;border:1px solid transparent}.categories button[aria-pressed="true"]{background:var(--paper);color:var(--ink);border-color:#d9d7cc;border-radius:5px;box-shadow:0 1px 3px #312c2112}.swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}.swatch{position:relative;display:block;text-align:left;min-width:0;padding:0;border-radius:5px}.swatch .sample{display:block;width:100%;height:clamp(54px,5.8vw,90px);border-radius:7px;background-size:cover;background-position:center;border:1px solid #0001}.swatch:hover .sample,.swatch[aria-pressed=true] .sample{outline:2px solid var(--accent);outline-offset:2px}.swatch .name{display:block;font-size:.77rem;letter-spacing:-.01em;line-height:1.2;margin-top:7px;min-height:1.2em}.swatch .chosen{position:absolute;top:5px;right:5px;background:#fff0e2;border-radius:50%;color:#783b23;padding:2px;display:grid;place-items:center}.chosen svg{width:13px;height:13px}.scale-row{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.scale-row output{font-size:.78rem;font-variant-numeric:tabular-nums;background:#f0eee7;border-radius:4px;padding:3px 6px}input[type=range]{display:block;width:100%;height:17px;margin:8px 0 17px;accent-color:var(--accent);cursor:pointer}.uploads button{border:1px dashed #aaa99b;width:100%;background:#f9f8f4;padding:10px;font-size:.85rem;font-weight:550}.uploads button:hover{background:#efede5}.restore{margin:8px auto -4px;display:flex;font-size:.78rem;color:var(--mute);padding:7px}.restore svg{width:14px;height:14px}.loading{position:absolute;z-index:4;inset:0;background:#28271eae;backdrop-filter:blur(4px);color:white;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center}.loading button{background:#fff;color:var(--ink);padding:8px 12px;font-size:.85rem}.spinner{width:28px;height:28px;border-radius:50%;border:2px solid #fff6;border-top-color:white;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;left:50%;bottom:23px;transform:translate(-50%,12px);transition:.18s;pointer-events:none;opacity:0;z-index:110;background:#282b25;color:white;font-size:.88rem;max-width:calc(100% - 24px);width:max-content;border-radius:8px;padding:12px 18px;box-shadow:0 4px 18px #0002}#toast.on{opacity:1;transform:translate(-50%,0)}@media(min-width:1700px){.stage{height:clamp(640px,64vh,820px)}}@media(max-width:900px){.workbench{grid-template-columns:minmax(0,1fr) 290px;gap:14px}main{padding:23px 17px}.bar{padding:0 18px}.stage{height:clamp(410px,66vh,720px)}.scene-index{display:none}.library{padding:16px}.scene-top,.scene-foot{left:10px;right:10px}.mode-switch button{padding:7px 8px}}
@media(max-width:720px){.bar{height:58px;padding:0 13px}.identity{gap:6px}.identity img{width:28px;height:28px}.identity b{font-size:17px}.identity span{font-size:14px}.identity i{margin:0 2px;height:19px}.header-actions{gap:5px}.header-actions button{padding:7px 9px;min-height:33px;font-size:.8rem}.quiet span{display:none}main{padding:18px 12px 24px}.intro{margin-bottom:15px}.location{font-size:.74rem;gap:3px;margin-bottom:3px}.location svg{width:13px}.property-type{font-size:.68rem}h1{font-size:38px}.workbench{display:flex;flex-direction:column;gap:12px}.left{display:contents}.stage{height:clamp(280px,51vh,450px);border-radius:10px}.scene-top{top:10px}.scene-foot{bottom:10px}.scene-help{order:1;padding:0 1px}.stage{order:0}.library{order:2;width:100%;padding:17px}.schedule-title{order:3;width:100%;margin:4px 0 0}.schedule{order:4}.lib-heading{padding-bottom:12px;margin-bottom:14px}.swatch .sample{height:70px}.surface-select{margin-bottom:16px}.library-icon{width:28px;height:28px}.lib-heading h2{font-size:1.55rem}.categories button{padding:9px 1px}.marker.active span{display:none}.glass-square{width:33px;height:33px}.scene-help{font-size:.78rem}}
@media(max-width:385px){.location{display:none}.identity span{font-size:12px}.header-actions{gap:0}}
@media(prefers-reduced-motion:reduce){*{animation-duration:0.001ms!important;transition:none!important}}
#pick{width:auto;padding:0 9px;font-size:.78rem}
#pick[aria-expanded="true"] {background:#f7f4ec;color:var(--ink);border-color:#fff9}
.finish-tray {
  position:absolute; z-index:2; right:18px; bottom:72px; width:min(386px,calc(100% - 36px));
  background:#fbfaf5; color:var(--ink); border:1px solid #ffffffc7; border-radius:12px;
  box-shadow:0 6px 28px #1717104a; padding:10px 12px 4px;
}
.tray-head,.tray-actions {display:flex;align-items:center;gap:6px}
.tray-surface {flex:1;min-width:0}
.tray-surface strong,.tray-surface span {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tray-surface strong {font-family:Baskerville,Georgia,serif;font-weight:500;font-size:1.24rem;line-height:1.15}
.tray-surface span {color:#626256;font-size:.76rem;margin-top:2px}
#tray-category {min-height:36px;color:var(--ink);background:#eeede5;border:1px solid #d9d8ce;border-radius:6px;padding:0 4px;font-size:.8rem}
#tray-close {font-size:23px;width:36px;height:36px;color:#4f5046}
#tray-close:hover,.tray-actions button:hover:enabled {background:#e8e6dc}
.tray-swatches {display:flex;gap:3px;overflow-x:auto;margin:7px -3px 0;padding:3px;align-items:start}
.tray-swatch {flex:1 0 0;min-width:36px;display:flex;flex-direction:column;gap:4px;padding:0 2px;border-radius:5px}
.tray-swatch .sample {position:relative;display:block;width:100%;height:34px;border:1px solid #0002;border-radius:5px;background-size:cover;background-position:center}
.tray-swatch .name {font-size:.66rem;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.tray-swatch[aria-pressed="true"] .sample,.tray-swatch:hover .sample {outline:2px solid var(--accent);outline-offset:1px}
.tray-swatch[aria-pressed="true"] .sample::after {content:"✓";position:absolute;right:2px;bottom:2px;background:#fff;border-radius:50%;font-size:11px;width:14px;line-height:14px;text-align:center}
.tray-actions {justify-content:space-between;margin-top:4px;border-top:1px solid var(--line)}
.tray-actions button {font-size:.72rem;min-height:32px;padding:3px 6px;gap:4px}
.tray-actions svg {height:13px;width:13px}
@media (max-width:720px) {
  .finish-tray {top:53px;bottom:auto;right:10px;width:min(365px,calc(100% - 20px));padding:7px 9px 2px}
  .tray-surface strong {font-size:1.08rem}
  .tray-swatches {margin-top:4px}
  .tray-actions {margin-top:2px}
  .tray-actions button {min-height:30px}
}
@media (min-width:721px) and (max-width:1050px) {
  .finish-tray {bottom:auto;top:65px}
}

@media (max-width:420px) {
  .mode-switch .room-prefix,.mode-switch .walk-suffix {display:none}
  #preview-mode>span::first-letter {text-transform:uppercase}
  .tray-swatch .name {overflow-wrap:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}

.sample-pager {display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-top:.6rem}
.sample-pager button {font-size:.79rem;min-height:32px;padding:.25rem .65rem;color:#373a33;background:#efece4;border:1px solid var(--line)}
.sample-pager button:hover:enabled {background:#e2dfd4}
.sample-pager output {color:var(--mute);font-size:.77rem;font-variant-numeric:tabular-nums}
.finish-tray .sample-pager {margin-top:4px}
.finish-tray .sample-pager button {min-height:28px;padding:2px 7px;font-size:.73rem}
.categories {flex-wrap:wrap}
.categories button {min-width:40px}

.scene-tools {display:flex;align-items:center;gap:7px}
#sofa-picker {width:auto;padding:0 11px;font-size:.86rem;font-weight:600}
#sofa-picker[aria-expanded=true] {color:var(--ink);background:#f7f4ec}
.sofa-panel {position:absolute;right:18px;top:65px;z-index:3;width:min(365px,calc(100% - 36px));max-height:calc(100% - 124px);overflow:auto;background:var(--paper);border:1px solid #ffffffc7;border-radius:12px;box-shadow:0 6px 28px #1717104a;padding:12px}
.sofa-heading,.sofa-foot {display:flex;align-items:center;justify-content:space-between;gap:8px}
.sofa-heading h2 {font-family:Baskerville,Georgia,serif;font-size:1.45rem;letter-spacing:-.035em;font-weight:500}
#sofa-close {width:34px;height:32px;font-size:24px;color:var(--mute)}
.sofa-rooms {border-radius:7px;background:#efeee8;display:flex;gap:3px;padding:3px;margin:6px 0 10px}
.sofa-rooms button {flex:1;font-size:.82rem;min-height:33px;color:var(--mute);border:1px solid transparent}
.sofa-rooms button[aria-pressed=true] {background:white;border-color:var(--line);color:var(--ink)}
.sofa-options {display:grid;align-items:start;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.sofa-card {position:relative;display:block;text-align:left;padding:0;min-width:0}
.sofa-card img {width:100%;aspect-ratio:1.52;display:block;object-fit:cover;background:#eeece7;border:1px solid var(--line);border-radius:7px}
.sofa-card span {display:block;font-size:.8rem;line-height:1.18;margin:6px 0 2px;font-weight:550}
.sofa-card[aria-pressed=true] img,.sofa-card:hover img {outline:2px solid var(--accent);outline-offset:0}
.sofa-card[aria-pressed=true]::after {content:"✓";position:absolute;right:3px;top:3px;width:17px;height:17px;line-height:17px;background:var(--accent);color:white;font-size:12px;text-align:center;border-radius:50%}
#sofa-description {font-size:.83rem;line-height:1.4;color:#55594f;margin:9px 0}
.sofa-foot {flex-wrap:wrap;justify-content:flex-start;border-top:1px solid var(--line);padding-top:7px}
.sofa-foot button,#tray-sofa {background:#f1e8dd;color:#78432f;font-weight:600;font-size:.8rem;min-height:32px;padding:5px 8px}
.sofa-foot a {color:#615e52;font-size:.77rem;text-underline-offset:2px}
#tray-sofa {margin-top:6px}
@media(max-width:720px) {
 .sofa-panel {right:10px;top:52px;max-height:calc(100% - 60px);width:min(355px,calc(100% - 20px));padding:8px 10px}
 .sofa-options {gap:6px}.sofa-heading h2 {font-size:1.2rem}.sofa-rooms {margin:3px 0 7px}
 .sofa-card img {aspect-ratio:1.95}.sofa-foot {padding-top:4px}#sofa-description {margin:6px 0}.sofa-card span {font-size:.76rem}
}
#sofa-reference {display:inline-block;margin-top:8px;font-size:.76rem;color:#675c50;text-underline-offset:2px}
#sofa-save {margin-left:auto;background:transparent;color:var(--mute)}
#sofa-save:hover {background:#efeee8}
.surface-caption {display:flex;align-items:center;justify-content:space-between;min-height:26px}
#library-sofa {font-size:.8rem;color:var(--accent);padding:3px 5px;gap:5px}
#library-sofa:hover {background:#f1e8dd}
#library-sofa svg {width:15px;height:15px}

button.identity {padding:0;color:inherit}
#render-dialog {width:min(440px,calc(100vw - 26px));max-height:90dvh;overflow:auto;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:0 18px 80px #21251b44}
#render-dialog::backdrop {background:#171b17a8}
.render-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.render-heading h2 {font:400 32px/1.12 Baskerville,Georgia,serif;letter-spacing:-.04em}
#render-close {font-size:25px;width:38px;height:38px;border:1px solid var(--line)}
#render-dialog form {display:grid;gap:10px}
#render-dialog label {font-size:14px;font-weight:600}
#render-dialog label span,.render-help,#render-view {color:var(--mute);font-weight:400}
#render-dialog input,#render-dialog select,#render-dialog textarea {box-sizing:border-box;width:100%;background:white;color:var(--ink);border:1px solid #aaa99e;border-radius:6px;font:inherit;padding:10px 12px}
#render-dialog textarea {resize:vertical;min-height:84px}
#render-dialog .primary {padding:12px;font-weight:600;margin-top:5px}
#render-dialog .render-help,#render-view,#render-status {font-size:14px;line-height:1.45}
#render-view {margin-bottom:4px}
#render-status:empty {display:none}
#render-status {margin-top:12px}
#render-result {margin:14px 0 0}
#render-result img {display:block;width:100%;max-height:260px;object-fit:contain;background:#e5e4db;border-radius:5px}
#render-download {display:inline-block;margin-top:10px;color:#843f2b;font-weight:600}

#light-toggle{width:auto;padding:0 10px;font-size:.86rem;font-weight:600}
.light-panel{position:absolute;right:16px;top:64px;z-index:15;width:min(304px,calc(100% - 32px));max-height:calc(100% - 116px);overflow:auto;background:var(--paper);color:var(--ink);padding:14px 16px;border:1px solid var(--line);border-radius:10px;box-shadow:0 7px 24px #24201533;display:grid;gap:7px}
.light-panel header,.light-label,.light-presets{display:flex;align-items:center;justify-content:space-between;gap:6px}
.light-panel h2{font:500 23px/1.15 Baskerville,Georgia,serif}
.light-panel header button{width:32px;height:32px;font-size:24px}
.light-panel label,.light-panel output{font-size:14px}
.light-panel output{font-variant-numeric:tabular-nums;color:var(--mute)}
.light-panel select{width:100%;padding:7px 8px;border-radius:5px;border:1px solid var(--line);background:white;font:inherit;color:inherit}
.light-panel input{width:100%;margin:0;accent-color:var(--accent);min-height:24px}
.light-presets button{padding:6px 8px;border:1px solid var(--line);font-size:14px;min-height:32px}
.light-presets button[aria-pressed=true]{background:#eee1d5;border-color:#aa795e}
.light-presets button:last-child{margin-left:auto}
@media(max-width:500px){#light-toggle{font-size:12px;padding:0 7px}.light-panel{top:52px;right:8px;max-height:calc(100% - 100px)}}
