/* Independent desktop menu; mobile retains normal page scrolling. */
@media(min-width:761px){
  main>.controls{position:sticky;top:var(--studio-steps-height,73px);align-self:start;max-height:calc(100vh - var(--studio-header-height,82px) - var(--studio-steps-height,73px) - 12px);max-height:calc(100dvh - var(--studio-header-height,82px) - var(--studio-steps-height,73px) - 12px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#829b99 #eef2f3;scroll-padding-block:20px}
  main>.controls>*{flex-shrink:0}
  main>.controls .wizard-panel{flex:0 0 auto}
  main>.controls:focus-visible{outline:2px solid #4bafc2;outline-offset:-2px}
}
/* Guided configuration: controls and composition stay together on every screen. */
.studio-steps{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid var(--line);padding:12px 32px;gap:8px;position:sticky;top:0;z-index:12}
.studio-steps button{background:#f3f6f7;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;white-space:normal}
.studio-steps button[aria-selected=true]{background:var(--nav);color:#fff}.step-number{border:1px solid currentColor;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px;flex-shrink:0}
main{grid-template-columns:360px minmax(0,1fr);min-height:0}.controls{padding:20px 24px;display:flex;flex-direction:column}.controls .wizard-panel{border:0;padding:20px 0;flex:1}.controls .wizard-panel:last-of-type{max-width:none;width:auto}.guide-intro{font-size:.82rem;color:var(--muted);line-height:1.5}.step-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.step-navigation button{white-space:normal}.wall-settings{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}.wall-settings h3{font-size:.9rem}.advanced-settings{padding-top:15px;border-top:1px solid var(--line)}.advanced-body{padding-top:4px}.advanced-body details{margin-top:14px}
input[type=text],input[type=email],input:not([type]),textarea{width:100%;border:1px solid #cbd5db;background:#fff;color:var(--ink);padding:10px;font:inherit;font-size:.9rem;border-radius:6px}textarea{resize:vertical;line-height:1.5;min-height:80px}input:focus-visible,textarea:focus-visible{outline:3px solid #4bafc2;outline-offset:2px}
.workspace{padding-top:20px;margin:0 auto}.workspace-heading h2{font-size:1.45rem}.project-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:.75rem;color:var(--muted)}.project-status button{padding:5px 8px;background:transparent;color:var(--teal);font-size:.75rem}.project-status [data-status=error]{color:#995221}.restore-banner{background:#e2f0ed;border:1px solid #b7d7cc;padding:12px 14px;font-size:.8rem;border-radius:6px;line-height:1.5;margin-bottom:16px}.stage{max-width:650px}.stats{margin-top:18px}.technical-note{max-width:900px}.quantities{margin:24px 32px 40px 392px;max-width:1400px}
.saved-projects{border-top:1px solid var(--line);padding-top:20px}.saved-projects summary{font-size:.88rem}.saved-project-card{margin-top:12px;padding:12px;background:#f3f7f7;border:1px solid var(--line);border-radius:7px}.saved-project-card strong{display:block;font-size:.85rem;overflow-wrap:anywhere}.saved-project-card p{font-size:.73rem;line-height:1.45;color:var(--muted);margin:6px 0}.saved-project-actions{display:flex;flex-wrap:wrap;gap:6px}.saved-project-actions button{font-size:.72rem;padding:6px 9px;min-height:34px}.saved-project-empty{font-size:.8rem;line-height:1.5;margin-top:12px;color:var(--muted)}
.quote-dialog{border:0;border-radius:14px;padding:28px;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 12px 80px #102d3744}.quote-dialog::backdrop{background:#0b2538aa}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.dialog-heading h2{font-size:1.3rem;line-height:1.3}.dialog-heading button{font-size:1.35rem;padding:4px 12px}.quote-dialog .hint{font-size:.82rem}.quote-dialog a{color:var(--teal);overflow-wrap:anywhere}.mail-fallback{display:block;margin-top:14px;font-size:.82rem;line-height:1.5;text-decoration:underline}.quote-dialog .full{justify-content:center;white-space:normal}#quoteReady{border-top:1px solid var(--line);margin-top:18px;padding-top:4px}
@media(min-width:1200px){.workspace{position:sticky;top:80px;align-self:start}}
@media(max-width:1000px){main{grid-template-columns:320px minmax(0,1fr)}.controls{padding-left:18px;padding-right:18px}.workspace{padding-left:18px;padding-right:18px}.quantities{margin-left:338px}.stats{grid-template-columns:1fr 1fr}.board-tools{margin-top:16px}.studio-steps{padding:10px 18px}.studio-steps button{font-size:.8rem}.project-status{flex-wrap:wrap}}
@media(max-width:760px){.studio-steps{padding:8px;gap:5px}.studio-steps button{flex-direction:column;gap:4px;font-size:.7rem;padding:7px 3px;min-height:61px;line-height:1.3}.step-number{width:21px;height:21px;font-size:11px}main{display:flex;flex-direction:column}.workspace{order:0;position:static;padding:14px 16px 18px}.workspace-heading{align-items:start}.workspace-heading h2{font-size:1.15rem}.controls{order:1;display:flex;padding:18px 20px;border-top:1px solid var(--line)}.controls .wizard-panel{display:block;max-width:none;padding:16px 0}.project-status{margin-bottom:10px}.stage{max-width:min(100%,380px);margin-top:6px}.workspace .stats,.workspace #countNote,.workspace .technical-note{display:none}.board-tools{margin:12px 0 4px}.canvas-caption{margin-bottom:4px}.canvas-caption #resetManual{margin-left:auto}.secondary-tools{gap:12px}.workspace .render-status{font-size:.7rem;min-height:18px}.quantities{margin:18px 12px 30px;padding:18px 12px}.guide-intro{font-size:.78rem}.step-navigation{position:sticky;bottom:0;background:#fff;padding:12px 0 4px;z-index:5}.controls .section-title{margin-bottom:14px}.project-status button{min-height:34px}.quote-dialog{padding:20px}.workspace-heading .view-label{font-size:.72rem}.topbar .identity .badge{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.download-location{display:grid;grid-template-columns:1fr 1fr;gap:12px}.download-fields label{display:block;margin-top:9px}.download-fields .check{display:flex}.download-fields input:not([type=checkbox]),.download-fields select{width:100%;min-height:38px}.download-location>div{min-width:0}#downloadDialog .hint{line-height:1.5}#downloadDialog [hidden]{display:none!important}#downloadDialog .quote-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.download-room-option{padding:14px;margin:18px 0;border:1px solid var(--line);border-radius:8px;background:#f4f7f7}.download-room-option>.check{align-items:flex-start;line-height:1.45}.download-room-option input[type=checkbox]{flex-shrink:0;margin-top:3px}#downloadRoomPicker>label{display:block;margin:14px 0 6px}#downloadRoomScene{width:100%;min-height:42px}#downloadRoomPreview{display:block;width:100%;height:auto;border-radius:4px;background:white}#downloadRoomNote{font-size:.78rem;margin:12px 0 0}
