:root{--navy:#012352;--ink:#092e56;--blue:#0095f0;--light:#92dfff;--muted:#607b96;--line:#dce7f1;--paper:#f5f9fd;--canvas:#082844;--ease:cubic-bezier(.16,1,.3,1)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:'Segoe UI Variable','Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button,input,select,a{touch-action:manipulation}button{border:0}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--blue);outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0}.hidden{display:none!important}.topbar{height:80px;padding:0 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:15}.brand{width:204px;height:62px;background:none;padding:0;overflow:hidden;justify-self:start}.brand img{display:block;width:212px;height:auto;max-width:none;transform:translateX(-12px)}.header-center{display:flex;align-items:center;justify-content:center}.header-actions{display:flex;gap:8px;justify-content:end}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;min-height:40px;padding:10px 16px;font-size:12px;font-weight:600;transition:background .15s,color .15s,border-color .15s}.button.primary{background:var(--blue);color:#fff}.button.primary:hover:not(:disabled){background:#007bd0}.button.outline{border:1px solid #bed1e1;background:transparent;color:var(--ink)}.button.outline:hover:not(:disabled){background:#e9f5ff;border-color:#6ab9ec}.button.quiet{color:var(--ink);background:transparent}.button.quiet:hover:not(:disabled){background:#eaf2f9}.button.full{width:100%}.icon-button{width:36px;height:36px;display:grid;place-items:center;background:transparent;color:inherit;border-radius:8px;font-size:24px}.icon-button:hover{background:#0095f014}.defaults-toggle{background:#eff7fe;border:1px solid #d4e8f8;color:var(--ink);min-width:152px}.chevron{font-size:18px;margin-left:16px}.case-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.16em;margin:0 0 12px;color:var(--blue)}h1,h2,p{margin-top:0}h2{font-size:18px;line-height:1.3;font-weight:650}p{line-height:1.6}.muted{font-size:12px;color:var(--muted)}.field-help{font-size:11px;color:var(--muted);line-height:1.6;margin:12px 0}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.panel-heading h2{margin-bottom:16px}.defaults-panel{position:absolute;top:72px;left:50%;transform:translateX(-50%);width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 168px);overflow:auto;z-index:25;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 24px 80px #001e4830;padding:24px}.defaults-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.defaults-grid label,dialog label{font-size:11px;display:block;font-weight:650}.defaults-grid label>span,dialog label>span{float:right;color:var(--muted);font-weight:400}input[type=number],select{width:100%;height:40px;border:1px solid #c9d9e7;border-radius:6px;background:#f8fbff;color:var(--ink);padding:8px 10px;margin-top:8px}input[type=range]{width:100%;accent-color:var(--blue)}input[type=checkbox]{accent-color:var(--blue)}.home-screen{height:calc(100dvh - 164px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;overflow:auto;background:radial-gradient(ellipse at 50% 40%,#fff 5%,#eff6fd 90%)}.home-intro{text-align:center}.home-intro h1{font-size:clamp(28px,3vw,44px);font-weight:550;letter-spacing:-1.2px;margin-bottom:12px}.home-intro>p:last-child{color:var(--muted);font-size:14px}.appliance-choices{display:grid;grid-template-columns:1fr 1fr;gap:24px;width:min(760px,100%);margin:24px 0 32px}.appliance-card{position:relative;text-align:left;background:#fff;border:1px solid #d4e5f3;border-radius:16px;padding:24px 32px 32px;color:var(--ink);box-shadow:0 8px 32px #10447906;transition:transform .2s var(--ease),border-color .2s,box-shadow .2s}.appliance-card:hover{transform:translateY(-4px);border-color:var(--blue);box-shadow:0 16px 48px #0095f015}.appliance-art{height:144px;margin-bottom:24px;display:flex;justify-content:center}.appliance-art svg{width:184px;height:144px;stroke:var(--blue);stroke-width:1.5}.guard-art svg path:first-child{fill:#0095f020}.guard-art svg path:last-child{stroke:#83d6ff;stroke-width:7}.retainer-art svg path:first-child{fill:#0095f008;stroke:#76c8f7;stroke-width:2}.retainer-art svg path:last-child{stroke:#acd8f2;stroke-width:2}.card-kicker{font-size:8px;letter-spacing:.16em;font-weight:700;color:var(--blue);display:block;margin-bottom:8px}.appliance-card strong{font-size:20px;letter-spacing:-.6px;display:block;margin-bottom:12px}.card-description{font-size:12px;color:var(--muted);display:block;max-width:80%;line-height:1.6}.card-arrow{position:absolute;bottom:32px;right:24px;font-size:24px;color:var(--blue)}.home-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.home-note svg{width:16px;height:16px;color:#3993c8}.workspace{height:calc(100dvh - 164px);display:grid;grid-template-columns:240px minmax(0,1fr)216px;overflow:hidden}.design-sidebar{border-right:1px solid var(--line);background:#fff;padding:24px 20px;overflow-y:auto;min-width:0}.project-heading{margin-bottom:24px}.project-heading .eyebrow{margin-bottom:8px}.project-heading input{width:100%;border:0;background:transparent;font-size:16px;font-weight:650;color:var(--ink);padding:0;margin:0 0 8px;outline-offset:3px}.project-heading>span{font-size:9px;color:var(--muted)}.case-tabs{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;gap:4px;margin-bottom:24px}.case-tabs button{flex:1;background:transparent;color:var(--muted);font-size:11px;border-radius:5px;padding:8px}.case-tabs button.selected{background:#e8f5ff;color:#007ec9;font-weight:700}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading h2{font-size:12px;margin:0;display:flex;align-items:center;gap:8px}.section-heading svg{width:16px;height:16px}.preset-list{display:flex;flex-direction:column;gap:8px}.preset{position:relative;background:#fff;text-align:left;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--ink)}.preset.selected{border-color:var(--blue);background:#f0f9ff}.preset strong{display:block;font-size:12px;margin-bottom:5px}.preset small{display:block;font-size:10px;color:var(--muted);line-height:1.5}.preset .preset-status{font-size:8px;letter-spacing:.06em;color:#587086;margin-top:8px;display:block}.preset:disabled{opacity:.7}.expert-tools,.refine-tools{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.expert-tools .button{margin-bottom:8px;font-size:11px;padding-left:8px;padding-right:8px}.trace-actions,.point-editor{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin:12px 0}.text-button{background:none;color:var(--blue);font-size:11px;padding:4px}.row-buttons{display:flex;gap:8px}.row-buttons>.button{flex:1}.segmented{display:flex;padding:3px;border:1px solid var(--line);border-radius:6px;gap:3px}.segmented button{flex:1;padding:8px 3px;font-size:10px;background:transparent;color:var(--muted);border-radius:4px}.segmented .selected{background:#e3f3ff;color:#0074bd}.slider-label{display:flex;justify-content:space-between;font-size:10px;margin-top:16px}.mesh-summary{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.mesh-summary>div{display:flex;justify-content:space-between;font-size:10px;padding:6px 0}.mesh-summary span{color:var(--muted)}.mesh-summary strong{font-weight:600}.viewport{min-width:0;min-height:0;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#123b59 0%,#07243f 80%)}#canvasHost{position:absolute;inset:0}#canvasHost canvas{display:block;width:100%;height:100%;outline:0}.view-toolbar{position:absolute;top:16px;left:16px;display:flex;gap:8px;align-items:center;color:#c9e7f8}.view-presets{display:flex;gap:2px;padding:4px;background:#15374f;border:1px solid #385870;border-radius:7px}.view-presets button{padding:7px 10px;font-size:9px;border-radius:4px;color:#acc9dc;background:transparent}.view-presets .selected,.view-presets button:hover{background:#3c5d75;color:#fff}.view-toolbar>.icon-button{border:1px solid #385870;width:36px;height:36px}.view-toolbar svg{width:18px;height:18px}.import-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:auto;padding:24px;pointer-events:none}.import-stage>*{pointer-events:auto}.import-heading{text-align:center;color:#eef8ff;margin-bottom:16px}.import-heading h1{font-size:32px;font-weight:500;letter-spacing:-.8px;margin-bottom:8px}.import-heading>p:last-child{font-size:12px;color:#a5c5dc;margin-bottom:0}.scan-pair{display:flex;gap:24px;width:min(640px,100%)}.scan-slot{position:relative;flex:1;min-width:0;height:260px;display:flex;align-items:center;justify-content:center}.ghost-arch{position:absolute;width:100%;height:100%;color:#74bce6;stroke-width:1.1;opacity:.28}.ghost-arch path:first-child{fill:#8ad6ff10;stroke-width:1.3}.ghost-arch path:last-child{opacity:.75}.ghost-arch.lower{transform:rotate(180deg)}.dropzone{width:calc(100% - 16px);text-align:center;border:1px dashed #6696b5;background:#0d2e49ba;border-radius:12px;padding:24px 16px;backdrop-filter:blur(4px);color:#dbf0ff;position:relative;cursor:pointer}.dropzone:hover,.dropzone.dragover{border-color:#36b3ff;background:#0e466bd9}.dropzone.loaded{border-style:solid;border-color:#49b7ec;background:#12486bdb}.scan-tag{position:absolute;top:-10px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:12px;background:#153b58;color:#a5dfff;font-size:10px;letter-spacing:.05em;text-transform:uppercase}.dropzone>svg{display:block;width:22px;height:22px;color:#77ccff;margin:0 auto 12px}.dropzone strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.dropzone small{display:block;font-size:9px;color:#9dbbd0;margin-top:8px;line-height:1.6}.target-chooser{text-align:center;margin-top:8px}.target-chooser p{font-size:12px;color:#d0eaff;margin-bottom:12px}.target-options{display:flex;gap:8px}.target-options>.button{min-width:104px}.target-options .outline{color:#c9ebff;border-color:#5985a3}.target-options .outline:hover:not(:disabled){background:#244c68}.target-chooser>small{display:block;min-height:20px;color:#91b9d5;font-size:10px;margin-top:12px}.sample-button{margin-top:24px;color:#85c8ef}.canvas-bottom{position:absolute;bottom:12px;left:16px;right:16px;color:#7ea7c4;display:flex;justify-content:space-between;gap:12px;font-size:8px;pointer-events:none}.navigation-help{margin-left:auto}.axis-badge{position:absolute;top:64px;left:16px;color:#78b9e2;font-size:9px;pointer-events:none}.viewport-prompt{position:absolute;left:50%;top:72px;transform:translateX(-50%);max-width:85%;text-align:center;background:#d9efff;color:#164568;padding:8px 12px;border-radius:6px;pointer-events:none;font-size:10px;z-index:3}.busy-overlay{position:absolute;inset:0;background:#06223dd9;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#effaff;z-index:10}.busy-overlay strong{font-size:18px;font-weight:500}.busy-overlay span{font-size:11px;color:#aac9df}.review-dock{position:absolute;left:24px;right:24px;bottom:36px;margin:0 auto;max-width:720px;border:1px solid #b7d7ec;border-radius:12px;background:#f7fbfff7;padding:20px 24px;box-shadow:0 12px 40px #00132244;z-index:4;max-height:60%;overflow-y:auto}.review-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-top .eyebrow{margin:0;font-size:8px}.stage-badge{font-size:8px;letter-spacing:.08em;color:#5c7893}.review-dock h2{font-size:20px;margin:10px 0 6px;font-weight:550}.review-content>p{font-size:11px;color:#5a7790;margin-bottom:14px;max-width:62ch}.stage-timeline{display:flex;padding:0;margin:12px 0 16px;list-style:none;gap:4px;counter-reset:stage}.stage-timeline li{height:3px;background:#d7e4ee;flex:1;border-radius:2px}.stage-timeline li.completed{background:#80cef8}.stage-timeline li.active{background:var(--blue)}.review-actions{display:flex;gap:8px;justify-content:end}.review-actions .button{min-height:36px;padding:8px 14px;font-size:11px}.review-actions .button:first-child{margin-right:auto}.build-progress{margin:8px 0 16px}.build-progress progress{width:100%;height:4px;accent-color:var(--blue);display:block}.build-progress span{font-size:10px;color:var(--muted);display:block;margin-top:8px}.review-dock .pipeline-error{background:#fff0e7;border:1px solid #e9c4a8;color:#80502a;padding:10px 12px;border-radius:6px;font-size:11px}.layers-pane{background:#fff;border-left:1px solid var(--line);padding:24px 20px;overflow-y:auto;min-width:0}.layer-group-title{font-size:8px;font-weight:700;letter-spacing:.15em;color:#7d93a9;margin:24px 0 12px}.layer{padding:12px 0;border-bottom:1px solid #e9eff5}.layer>label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:11px}.layer label>input{margin:0}.layer small{display:block;font-size:8px;color:var(--muted);margin-top:3px}.layer-swatch{width:10px;height:10px;border-radius:3px;flex-shrink:0}.layer-swatch.upper{background:#c3dfef}.layer-swatch.lower{background:#8caec6}.layer-swatch.appliance{background:#0095f0}.layer>input{height:10px;margin-top:14px}.layer.inactive{opacity:.4}.wireframe-control{display:flex;align-items:center;gap:8px;font-size:10px;margin-top:24px}.layer-footnote{display:flex;gap:8px;margin-top:32px;color:#8ba0b4;font-size:9px;align-items:start}.layer-footnote svg{width:14px;height:14px}.layer-footnote p{margin:0}.bottom-bar{height:84px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;padding:12px 24px;gap:24px;position:relative;z-index:12}.expert-toggle{display:flex;gap:10px;align-items:center;cursor:pointer;min-width:192px;font-size:11px;font-weight:600}.expert-toggle input{position:absolute;opacity:0;width:36px;height:22px}.expert-toggle .switch{width:34px;height:20px;border-radius:12px;background:#b6c6d5;position:relative;transition:background .15s}.expert-toggle .switch:after{content:'';position:absolute;width:14px;height:14px;border-radius:50%;background:white;top:3px;left:3px;transition:transform .15s}.expert-toggle input:checked~.switch{background:var(--blue)}.expert-toggle input:checked~.switch:after{transform:translateX(14px)}.expert-toggle input:focus-visible~.switch{outline:3px solid #75caff;outline-offset:3px}.expert-toggle small{display:block;font-size:8px;color:var(--muted);font-weight:400;margin-top:4px}.parameter-bar{display:flex;justify-content:center;gap:8px;flex:1;overflow-x:auto;min-width:0;padding:2px}.parameter-bar button{text-align:left;background:#f3f8fc;border:1px solid #dce8f2;border-radius:8px;padding:8px 16px;min-width:116px;color:var(--ink)}.parameter-bar button:hover{border-color:var(--blue);background:#eaf6ff}.parameter-bar span{display:block;font-size:9px;color:var(--muted);white-space:nowrap}.parameter-bar strong{display:block;font-size:13px;font-weight:650;margin-top:4px;white-space:nowrap}.research-badge{font-size:8px;letter-spacing:.08em;margin-left:auto;color:#8097ad;white-space:nowrap}.research-badge small{display:block;font-size:8px;text-align:right;margin-top:5px;letter-spacing:0}.toast{pointer-events:none;position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#edf8ff;color:#124c72;border:1px solid #a6d4ef;border-radius:8px;padding:14px 20px;font-size:12px;line-height:1.6;max-width:min(580px,90vw);z-index:40;box-shadow:0 12px 36px #06233c22}.toast.error{background:#fff3e9;color:#835029;border-color:#e7c4a4}dialog{width:440px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #c4dced;border-radius:12px;padding:28px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #00112240}dialog::backdrop{background:#031a3380;backdrop-filter:blur(3px)}dialog input{font-size:18px}dialog .row-buttons{margin-top:24px}.export-choices{display:flex;flex-direction:column;gap:8px;margin:24px 0}.export-choices button{justify-content:space-between}.settings-table{font-size:11px;margin:0}.settings-table>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e4edf5}.settings-table dt{color:var(--muted)}.settings-table dd{margin:0}.settings-table button{padding:0;background:none;color:var(--blue);font-size:11px}body[data-screen=import] .workspace{grid-template-columns:0 minmax(0,1fr)216px}body[data-screen=import] .design-sidebar{visibility:hidden;padding:0;border:0}body[data-screen=import] .view-toolbar,body[data-screen=import] .canvas-bottom{display:none}body[data-screen=production] #presetSection{display:none}body[data-screen=production] .viewport #canvasHost{bottom:230px}body[data-screen=production] .review-dock{max-height:220px}body[data-screen=production] .axis-badge{top:64px}body[data-screen=production] .canvas-bottom{bottom:260px}
@media(min-width:1700px){.workspace{grid-template-columns:264px minmax(0,1fr)240px}.design-sidebar,.layers-pane{padding:32px 24px}.scan-slot{height:300px}.scan-pair{gap:40px}.import-heading{margin-bottom:24px}.home-screen{padding:48px}.appliance-choices{width:840px}.appliance-art{height:168px}}
@media(max-width:1100px){.workspace{grid-template-columns:204px minmax(0,1fr)172px}.design-sidebar,.layers-pane{padding:20px 16px}.topbar{padding:0 16px;gap:12px}.brand{width:184px}.brand img{width:192px}.button{padding:8px 12px}.header-actions{gap:4px}.view-presets button{padding:7px 8px}.navigation-help{display:none}.review-dock{left:12px;right:12px;padding:16px}.expert-toggle{min-width:172px}.bottom-bar{padding:12px 16px;gap:12px}.parameter-bar button{min-width:100px;padding:8px 12px}.research-badge{display:none}body[data-screen=import] .workspace{grid-template-columns:0 minmax(0,1fr)172px}.scan-pair{gap:12px}.scan-slot{height:240px}.import-heading h1{font-size:20px}}
@media(max-width:760px){.topbar{height:64px;grid-template-columns:1fr auto;padding:0 12px;gap:4px}.brand{width:150px;height:50px}.brand img{width:156px;transform:translateX(-8px)}.header-center{position:absolute;left:50%;top:72px;transform:translateX(-50%);z-index:17}.case-label{display:none!important}.header-actions .button{width:34px;min-height:34px;padding:7px}.header-actions .button span{display:none}.header-actions .button svg{width:17px;height:17px}.defaults-toggle{min-width:128px;min-height:34px;font-size:11px;background:#f1f9ff;box-shadow:0 4px 16px #0002}.defaults-toggle .chevron{margin-left:8px}.defaults-panel{top:112px;padding:20px;max-height:calc(100dvh - 212px)}.home-screen{height:calc(100dvh - 140px);padding:24px 16px;justify-content:center}.home-intro h1{font-size:20px;letter-spacing:-.7px}.home-intro>p:last-child{font-size:11px;max-width:30ch;margin:0 auto}.appliance-choices{gap:12px;margin:28px 0}.appliance-card{padding:20px 16px 24px;border-radius:12px}.appliance-art{height:92px;margin-bottom:20px}.appliance-art svg{height:92px;width:120px}.appliance-card strong{font-size:21px;margin-bottom:8px}.card-kicker{font-size:6px;letter-spacing:.1em}.card-description{font-size:10px;max-width:100%;min-height:48px;line-height:1.6}.card-arrow{font-size:19px;bottom:12px;right:12px}.home-note{font-size:9px;gap:6px}.home-note svg{width:14px}.workspace{height:calc(100dvh - 168px);grid-template-columns:minmax(0,1fr)112px;grid-template-rows:minmax(0,1fr)auto}.viewport{grid-column:1;grid-row:1;min-height:210px}.layers-pane{grid-column:2;grid-row:1 / span 2;padding:16px 10px}.design-sidebar{grid-column:1;grid-row:2;max-height:190px;min-height:0;padding:12px;border-right:0;border-top:1px solid var(--line)}.project-heading{display:none}.case-tabs{margin-bottom:12px}.section-heading{margin-bottom:12px}.preset-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.preset{padding:10px}.preset strong{font-size:10px}.preset small{font-size:8px}.preset .preset-status{font-size:7px}.expert-tools,.refine-tools{border:0;padding:0;margin:0}.expert-tools .button{min-height:32px;margin-bottom:6px}.mesh-summary{display:none!important}.layers-pane .section-heading h2{font-size:10px;gap:4px}.layers-pane .section-heading svg{width:13px}.layer-group-title{font-size:6px;letter-spacing:.08em;margin:24px 0 8px}.layer{padding:10px 0}.layer>label{gap:4px;font-size:9px}.layer-swatch{display:none}.layer>label>input{width:12px;height:12px}.layer small{font-size:7px}.layer>input{margin-top:12px}.wireframe-control{gap:4px;font-size:8px;align-items:center}.wireframe-control input{width:12px;height:12px;margin:0}.layer-footnote{font-size:7px;display:block}.layer-footnote svg{margin-bottom:6px}.view-toolbar{top:10px;left:8px;right:8px;gap:4px}.view-presets{min-width:0;flex:1;padding:2px;gap:0;justify-content:space-between}.view-presets button{font-size:7px;padding:6px 4px}.view-toolbar>.icon-button{height:28px;width:28px}.view-toolbar svg{width:14px;height:14px}.axis-badge{top:48px;left:10px;font-size:7px}.viewport-prompt{top:62px;font-size:8px;padding:6px 8px;width:max-content;max-width:90%}.canvas-bottom{font-size:6px;left:8px;right:8px;bottom:8px}.review-dock{left:8px;right:8px;bottom:20px;padding:12px;max-height:55%}.review-dock h2{font-size:16px;margin:8px 0 4px}.review-content>p{font-size:9px;margin-bottom:8px}.review-top{gap:8px}.review-top .eyebrow{font-size:6px;letter-spacing:.06em}.stage-badge{font-size:5px;letter-spacing:0}.stage-timeline{margin:8px 0 10px}.review-actions{gap:4px;flex-wrap:wrap}.review-actions .button{font-size:9px;min-height:30px;padding:7px 9px}.review-actions #approveStage{flex:1}.bottom-bar{height:104px;padding:8px 12px;gap:8px;flex-wrap:wrap;align-content:center}.expert-toggle{font-size:10px;min-width:0}.expert-toggle small{font-size:7px;display:inline;margin-left:6px}.expert-toggle .switch{height:18px;width:32px}.expert-toggle .switch:after{width:12px;height:12px}.parameter-bar{flex-basis:100%;order:-1;justify-content:start;gap:6px;padding:1px}.parameter-bar button{padding:6px 10px;min-width:89px;flex:1}.parameter-bar span{font-size:7px}.parameter-bar strong{font-size:10px;margin-top:3px}.research-badge{display:none}body[data-screen=home] .bottom-bar{height:76px}body[data-screen=import] .workspace{grid-template-columns:minmax(0,1fr)112px;grid-template-rows:1fr}body[data-screen=import] .design-sidebar{display:none}body[data-screen=import] .viewport{min-height:0}.import-stage{padding:60px 12px 16px;justify-content:center}.import-heading{margin-bottom:12px}.import-heading h1{font-size:22px;letter-spacing:-.5px}.import-heading .eyebrow{font-size:7px;margin-bottom:8px}.import-heading>p:last-child{font-size:9px}.scan-pair{flex-direction:column;gap:12px}.scan-slot{height:132px;flex:auto}.ghost-arch{width:160px}.dropzone{padding:16px 10px;width:100%;border-radius:8px}.dropzone>svg{width:16px;height:16px;margin-bottom:8px}.dropzone strong{font-size:10px}.dropzone small{font-size:7px;margin-top:5px}.scan-tag{font-size:8px;top:-8px}.target-chooser{margin-top:20px;width:100%}.target-chooser p{font-size:10px;margin-bottom:8px}.target-options{gap:4px}.target-options>.button{min-width:0;flex:1;padding:8px 6px;font-size:10px;min-height:34px}.target-chooser>small{font-size:8px;margin-top:8px}.sample-button{margin-top:12px;font-size:9px}.field-help{font-size:9px;margin:8px 0}.point-editor,.trace-actions{font-size:9px;margin:6px 0}.settings-table{font-size:10px}.settings-table>div{padding:5px 0}.settings-table button{font-size:10px}body[data-screen=production] .viewport #canvasHost{bottom:190px}body[data-screen=production] .review-dock{max-height:180px}body[data-screen=production] .canvas-bottom{display:none}body[data-screen=production] .axis-badge{top:44px}.toast{bottom:120px;font-size:10px;padding:10px 14px}dialog{padding:20px}.defaults-grid{gap:12px}.defaults-grid label{font-size:10px}}
@media(max-height:720px) and (min-width:761px){.home-screen{padding:20px}.appliance-art{height:100px}.appliance-art svg{height:100px}.appliance-choices{margin:16px 0}.appliance-card{padding:20px 28px}.import-stage{padding:16px}.scan-slot{height:180px}.import-heading h1{font-size:26px}.sample-button{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Floating controls leave the canvas continuous underneath. */
.workspace{background:#082844;position:relative;height:calc(100dvh - 80px);grid-template-columns:240px minmax(0,1fr);padding-bottom:0}
.viewport{grid-column:2;grid-row:1}.design-sidebar{padding-bottom:100px}
body[data-screen=import] .workspace{grid-template-columns:0 minmax(0,1fr)}
.layers-pane{position:fixed;z-index:12;top:100px;right:20px;width:194px;max-height:calc(100dvh - 218px);height:auto;overflow-y:auto;grid-column:auto;grid-row:auto;padding:18px 16px;border:1px solid #6d9bbb55;border-radius:12px;background:#0c2c46ee;box-shadow:0 12px 36px #001a3433;backdrop-filter:blur(16px);color:#e6f5ff}
.layers-pane .section-heading h2{color:#e6f5ff}.layers-pane .layer-group-title,.layers-pane small,.layers-pane .layer-footnote,.layers-pane .wireframe-control{color:#9ebed4}.layers-pane .layer{border-color:#a2d5ff20}.layers-pane .layer-footnote{margin-top:16px}.layers-pane input[type=range]{accent-color:#23adff}
.layers-pane .section-heading{margin-bottom:8px}.layers-pane .layer-group-title{margin-top:18px}.layers-pane .layer{padding:10px 0}.layers-pane .layer>input{margin-top:7px}.layers-pane .layer-footnote svg{color:#92dfff}
.blockout-control{border-top:1px solid #a2d5ff25;margin-top:12px;padding-top:12px}.blockout-control label{display:flex;align-items:center;gap:7px;font-size:11px}.blockout-control input{margin:0}.blockout-swatch{width:10px;height:10px;border-radius:3px;background:#ff785f}.blockout-control small{font-size:9px;display:block;margin:8px 0 0}.blockout-control p{font-size:9px;color:#9ebed4;line-height:1.5;margin:6px 0 0}
.bottom-bar,body[data-screen=home] .bottom-bar{position:fixed;left:16px;right:16px;bottom:16px;height:58px;padding:0;z-index:18;background:transparent;border:0;pointer-events:none;display:flex;align-items:end;flex-wrap:nowrap}
.expert-toggle{pointer-events:auto;min-width:0;background:#fffefb;padding:12px 14px;border:1px solid #cee1f0;border-radius:10px;box-shadow:0 8px 24px #001c3422}.research-badge{display:none}
.parameter-bar{pointer-events:auto;position:fixed;bottom:18px;left:calc(50% + 120px);transform:translateX(-50%);width:max-content;max-width:calc(100vw - 290px);flex:none;overflow:auto;justify-content:start;gap:6px;padding:7px;border:1px solid #b6d6ef66;border-radius:12px;background:#0b2c46ed;box-shadow:0 12px 36px #00162840;backdrop-filter:blur(16px)}
.parameter-bar button{background:#163a57;border:1px solid #8ac4f52b;border-radius:7px;min-width:110px;padding:9px 13px;color:#eef9ff}.parameter-bar span{color:#a0c6df}.parameter-bar strong{color:#eef9ff}.parameter-bar button:hover:not(:disabled){background:#205072;border-color:#36afff}.parameter-bar button:disabled{opacity:.45}
body[data-screen=import] .parameter-bar{left:50%;max-width:calc(100vw - 32px)}
.view-toolbar{right:232px}.view-presets{flex-shrink:0}.viewport-prompt{max-width:calc(100% - 250px);left:calc(50% - 108px)}
.import-stage{padding-right:232px;padding-bottom:110px}.canvas-bottom{bottom:100px;right:232px}
body[data-screen=production] .review-dock{right:230px;bottom:106px;max-height:220px}body[data-screen=production] .viewport #canvasHost{bottom:340px}body[data-screen=production] .canvas-bottom{bottom:350px}
body[data-screen=results] #canvasHost{bottom:100px}body[data-screen=results] .design-sidebar{padding-bottom:95px}
.axis-badge{max-width:calc(100% - 250px)}
@media(min-width:1700px){.workspace{grid-template-columns:264px minmax(0,1fr)}.parameter-bar{left:calc(50% + 132px)}}
@media(max-width:1100px) and (min-width:761px){.workspace{grid-template-columns:204px minmax(0,1fr)}.parameter-bar{left:calc(50% + 102px);max-width:calc(100vw - 260px)}.parameter-bar button{min-width:98px;padding:8px 10px}.layers-pane{right:14px;width:178px;padding:16px 12px}.view-toolbar{right:204px}.import-stage{padding-right:204px}body[data-screen=production] .review-dock{right:204px}}
@media(max-width:760px){
 .workspace{height:calc(100dvh - 64px);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)168px;padding-bottom:128px}
 .viewport{grid-column:1;grid-row:1;min-height:230px}.design-sidebar{grid-column:1;grid-row:2;max-height:168px;padding:12px 148px 12px 12px;background:#f7fbff}.case-tabs{min-width:0}.preset-list{grid-template-columns:1fr 1fr}
 .layers-pane{top:120px;right:8px;width:128px;max-height:calc(100dvh - 262px);padding:12px 9px;border-radius:10px;grid-column:auto;grid-row:auto}.layers-pane .layer-group-title{margin-top:14px;font-size:7px}.layers-pane .layer>label{font-size:10px}.layers-pane .layer small{font-size:8px}.layers-pane .layer>input{margin-top:6px}.layers-pane .layer{padding:8px 0}.layers-pane .section-heading h2{font-size:12px}.layers-pane .layer-footnote{display:none}.layers-pane .wireframe-control{font-size:9px}.blockout-control label{font-size:10px;gap:4px}.blockout-control input{width:12px;height:12px}.blockout-control small,.blockout-control p{font-size:8px}.blockout-swatch{width:8px;height:8px;flex-shrink:0}
 .bottom-bar,body[data-screen=home] .bottom-bar{left:10px;right:10px;bottom:10px;height:auto;padding:0;flex-wrap:nowrap}.expert-toggle{font-size:10px;padding:9px 11px}.expert-toggle small{font-size:7px;display:inline;margin-left:6px}
 .parameter-bar,body[data-screen=import] .parameter-bar{left:10px;right:10px;bottom:57px;transform:none;max-width:none;width:auto;flex-basis:auto;order:0;gap:5px;padding:6px;border-radius:10px}.parameter-bar button{flex:none;min-width:98px;padding:8px 10px}.parameter-bar span{font-size:8px}.parameter-bar strong{font-size:11px}.parameter-bar{scrollbar-width:thin}
 body[data-screen=import] .workspace{grid-template-columns:1fr;grid-template-rows:1fr;padding-bottom:128px}.import-stage{padding:58px 146px 12px 12px}.import-heading h1{font-size:21px}.scan-slot{height:135px}.scan-pair{gap:12px}.dropzone{padding:16px 8px}.target-options{gap:3px}.target-options>.button{font-size:9px}.target-chooser>small{font-size:8px}
 .view-toolbar{left:8px;right:8px;top:10px;max-width:calc(100% - 16px)}.view-presets{flex:1;flex-shrink:1}.view-presets button{font-size:8px;padding:6px}.viewport-prompt{max-width:calc(100% - 158px);left:8px;transform:none;top:58px;font-size:8px}
 body[data-screen=production] .workspace{grid-template-rows:minmax(0,1fr)160px}body[data-screen=production] .design-sidebar{max-height:160px}body[data-screen=production] .viewport #canvasHost{bottom:175px}body[data-screen=production] .review-dock{left:8px;right:144px;bottom:8px;max-height:166px;padding:10px}body[data-screen=production] .review-dock h2{font-size:14px}.review-actions .button{font-size:8px;padding:6px}.review-content>p{font-size:8px;line-height:1.5}.review-top .eyebrow{font-size:6px}.stage-badge{display:none}
 body[data-screen=results] #canvasHost{bottom:0}body[data-screen=results] .design-sidebar{padding-bottom:12px}.canvas-bottom{left:8px;right:146px;bottom:8px}.axis-badge{left:8px;max-width:calc(100% - 154px);font-size:7px}.expert-tools .button{font-size:10px}.settings-table{font-size:9px}.toast{bottom:130px}
}

/* 0.4.2: supplied imagery and a clear, Upper-first import workspace. */
body{background:#082844}
.home-screen{height:calc(100dvh - 80px);padding:40px 32px 96px;background:radial-gradient(ellipse at 45% 35%,#123b59,#07243f);color:#eef8ff}
.home-intro .eyebrow{color:#79cfff}.home-intro>p:last-child,.home-note{color:#a5c5dc}
.appliance-choices{width:min(790px,100%);gap:24px;margin:34px 0 28px}
.appliance-card{background:#0d304c;border-color:#6d9bbb55;box-shadow:0 12px 36px #001a3433;color:#eff8ff;padding:28px 30px 30px}
.appliance-card:hover{background:#123e5b;border-color:#43b9ff;box-shadow:0 16px 48px #00152866}
.appliance-art{height:185px;margin-bottom:22px;align-items:center}
.appliance-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 12px #00142655)}
.appliance-card .card-kicker{color:#8ed4ff}.appliance-card .card-description{color:#b0cce0}.appliance-card .card-arrow{color:#89d4ff}
.defaults-toggle{position:fixed;z-index:22;top:100px;left:50%;transform:translateX(-50%);min-width:148px;min-height:42px;background:#0c2c46ee;border:1px solid #6d9bbb55;border-radius:12px;box-shadow:0 12px 36px #001a3433;backdrop-filter:blur(16px);color:#e6f5ff}
.defaults-toggle:hover{background:#164361;border-color:#49b7ec}.defaults-toggle[aria-expanded=true]{border-color:#49b7ec}
.defaults-panel{position:fixed;top:152px;background:#0c2c46f5;border-color:#6d9bbb55;box-shadow:0 20px 60px #00152b88;color:#e6f5ff;backdrop-filter:blur(20px);max-height:calc(100dvh - 250px)}
.defaults-panel h2,.defaults-panel label{color:#e6f5ff}.defaults-panel .eyebrow{color:#92dfff}.defaults-panel .muted,.defaults-panel .field-help,.defaults-panel label>span{color:#a7c6db}
.defaults-panel input,.defaults-panel select{background:#153a56;color:#f1f9ff;border-color:#6285a0}.defaults-panel option{background:#153a56}
.import-stage{padding:90px 232px 110px 24px}.import-heading{margin-bottom:24px}
.import-choices{display:flex;flex-direction:column;align-items:center;gap:0;width:min(720px,100%);pointer-events:none}
.scan-pair{width:100%;gap:26px;pointer-events:none}.scan-slot{height:250px;pointer-events:none}
.scan-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:16px;opacity:.9;pointer-events:none;mask-image:radial-gradient(ellipse at center,#000 40%,transparent 74%)}
.dropzone{width:82%;padding:20px 12px;background:#0b2b449c;backdrop-filter:blur(2px);pointer-events:auto;box-shadow:0 6px 20px #001b3322}
.dropzone .scan-tag{background:#113b58;color:#c5ecff;border-color:#6b9fbd}
.target-chooser{margin:0;width:340px;max-width:100%;padding:16px 18px;border:1px solid #6d9bbb55;border-radius:12px;background:#0c2c46ee;backdrop-filter:blur(12px);pointer-events:auto}
.target-options>.button.outline{color:#d9eeff;border-color:#688da7}.target-options>.button.outline:hover:not(:disabled){background:#235576}.target-chooser>small{line-height:1.4;min-height:0}
.reset-scans{margin-top:24px;color:#9ed7f9;font-size:11px;padding:8px 12px;pointer-events:auto;border-radius:6px}.reset-scans:hover:not(:disabled){background:#ffffff0c}.reset-scans:disabled{opacity:.35}
.import-stage.both-scans .import-heading{display:none}
.import-stage.both-scans .import-choices{position:absolute;bottom:126px;left:24px;right:232px;width:auto;flex-direction:row;justify-content:center;gap:32px;align-items:center}
.import-stage.both-scans .scan-pair{width:210px;flex:none}.import-stage.both-scans .scan-slot{height:128px}
.import-stage.both-scans .dropzone{width:90%;padding:12px 8px}.import-stage.both-scans .dropzone>svg{width:16px;height:16px;margin-bottom:6px}.import-stage.both-scans .dropzone strong{font-size:10px}.import-stage.both-scans .dropzone small{font-size:8px;margin-top:4px}
.import-stage.both-scans .reset-scans{position:absolute;bottom:88px;left:calc(50% - 104px);transform:translateX(-50%);margin:0}
body[data-screen=import] .workspace[data-scan-count="2"] .scan-pair{display:none}
body[data-screen=import] .workspace:not([data-scan-count="0"]) #canvasHost{top:80px;bottom:280px}
body[data-screen=import] .workspace[data-scan-count="2"] #canvasHost{bottom:252px}
body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{display:flex;top:20px;right:auto}
@media(min-width:1700px){.appliance-art{height:210px}.scan-slot{height:290px}}
@media(max-width:1100px) and (min-width:761px){.import-stage{padding-right:204px}.import-stage.both-scans .import-choices{right:204px;gap:16px}.import-stage.both-scans .scan-pair{width:180px}.target-chooser{width:300px}.import-stage.both-scans .reset-scans{left:calc(50% - 90px)}}
@media(max-width:760px){
 .home-screen{height:calc(100dvh - 64px);padding:28px 16px 82px}.appliance-choices{gap:12px;margin:28px 0 24px}.appliance-card{padding:16px 12px 22px}.appliance-art{height:106px;margin-bottom:18px}.appliance-card strong{font-size:21px}.appliance-card .card-kicker{font-size:7px}.appliance-card .card-description{font-size:10px;line-height:1.5}.home-note{font-size:9px}
 .defaults-toggle{top:74px;min-width:138px;min-height:36px;font-size:11px;border-radius:10px}.defaults-panel{top:120px;padding:20px;max-height:calc(100dvh - 250px)}
 .import-stage{padding:65px 146px 12px 12px}.import-heading{margin-bottom:14px}.import-heading h1{font-size:20px}.import-heading>p:last-child{line-height:1.5}
 .import-choices{width:100%}.scan-pair{gap:12px}.scan-slot{height:144px}.dropzone{width:88%;padding:15px 8px}.dropzone strong{font-size:9px}.dropzone small{font-size:7px}.scan-placeholder{border-radius:10px}
 .reset-scans{margin-top:12px;font-size:10px;padding:6px 10px}
 .import-stage.both-scans .import-choices{left:12px;right:146px;bottom:42px;flex-direction:column;gap:14px}
 .import-stage.both-scans .scan-pair{width:100%}.import-stage.both-scans .scan-slot{height:108px}.import-stage.both-scans .dropzone{width:88%;padding:12px 6px}.import-stage.both-scans .dropzone>svg{display:none}
 .target-chooser{width:100%;padding:12px 9px}.target-options{gap:5px}.target-options>.button{font-size:10px;min-height:36px;padding:8px 6px}.target-chooser>small{font-size:8px;margin-top:9px}
 .import-stage.both-scans .reset-scans{bottom:10px;left:calc(50% - 67px)}
 body[data-screen=import] .workspace:not([data-scan-count="0"]) #canvasHost{top:62px;bottom:304px}
 body[data-screen=import] .workspace[data-scan-count="2"] #canvasHost{bottom:172px}
 body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{top:14px;left:8px;right:146px}.view-presets button{padding:6px 4px}
}
@media(max-height:720px) and (min-width:761px){.home-screen{padding:22px 28px 74px}.appliance-choices{margin:20px 0}.appliance-art{height:128px;margin-bottom:16px}.appliance-card{padding:18px 26px 24px}.import-stage{padding-top:70px}.scan-slot{height:190px}.import-heading{margin-bottom:14px}.import-heading h1{font-size:26px}.import-stage.both-scans .import-choices{bottom:120px}}
@media(max-width:760px) and (max-height:740px){.home-screen{justify-content:flex-start}.home-intro h1{font-size:25px}.appliance-art{height:80px}.import-stage:not(.both-scans){justify-content:flex-start;overflow-y:auto}.scan-slot{height:116px}.import-heading h1{font-size:18px}.import-stage.both-scans .scan-slot{height:84px}.import-stage.both-scans .import-choices{gap:9px}body[data-screen=import] .workspace[data-scan-count="1"] #canvasHost{bottom:274px}.target-chooser{padding:9px 7px}.target-chooser>small{font-size:7px}.target-options>.button{min-height:32px}}
/* Keep all target choices inside the floating card; leave imported anatomy unobscured. */
.target-options{display:flex;gap:8px}.target-options>.button{min-width:0;flex:1}
.dropzone{backdrop-filter:none;background:#0b2b4480}
@media(max-width:760px){
 body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{top:62px}
 body[data-screen=import] .workspace:not([data-scan-count="0"]) #canvasHost{top:108px}
 .target-options{gap:5px}
}

/* Anatomical navigation, independently scrollable on narrow screens. */
.view-toolbar{align-items:flex-start;z-index:14;max-width:calc(100% - 248px)}
.view-presets{min-width:0;flex-shrink:1;overflow-x:auto;scrollbar-width:thin}.view-presets button{white-space:nowrap;flex-shrink:0}
.view-adjust{position:relative;flex-shrink:0;font-size:11px;color:#cee4f4}.view-adjust summary{list-style:none;cursor:pointer;padding:11px 9px;border:1px solid #35556b;border-radius:8px;background:#12364f}.view-adjust>div{position:absolute;right:0;top:42px;width:220px;max-width:75vw;padding:14px;background:#12364f;border:1px solid #35556b;border-radius:12px;box-shadow:0 12px 30px #0006}.view-adjust p{font-size:11px;margin:0 0 10px;line-height:1.5}.view-adjust button{display:block;width:100%;background:#1b435f;color:#e9f6ff;border:1px solid #45677e;border-radius:6px;padding:9px;margin:5px 0;text-align:left;font-size:11px}.view-adjust small{display:block;font-size:10px;line-height:1.5;margin-top:10px;color:#adc9dd}
@media(max-width:760px){.view-toolbar{max-width:calc(100% - 16px)}.view-presets{justify-content:flex-start}.view-adjust summary{font-size:9px;padding:8px 5px}.view-adjust>div{top:34px}.view-toolbar>.icon-button{flex-shrink:0}body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{right:8px}body[data-screen=import] .workspace:not([data-scan-count="0"]) .layers-pane{top:164px;max-height:calc(100dvh - 310px)}body:not([data-screen=import]) .layers-pane{top:116px;max-height:calc(100dvh - 270px)}.view-presets button{font-size:9px;padding:7px 6px}}

/* Keep both import slots fixed until the pair is complete. The single live
   canvas occupies exactly the loaded slot; the empty slot remains interactive. */
.scan-slot.loaded>.scan-placeholder,.scan-slot.loaded>.dropzone{display:none}
.import-heading{pointer-events:none}
.view-adjust>div{left:0;right:auto}
body[data-screen=import] .workspace[data-scan-count="1"] #canvasHost{inset:auto}
body[data-screen=import] .workspace:not([data-scan-count="2"]) .layers-pane{top:100px}
@media(max-width:760px){
 body[data-screen=import] .workspace:not([data-scan-count="2"]) .layers-pane{top:120px;max-height:calc(100dvh - 262px)}
 body[data-screen=import] .workspace:not([data-scan-count="2"]) .view-toolbar{top:62px;right:auto}
}

/* Parameters live inside Defaults until an appliance exists, then float at top. */
#topParameterHost{position:fixed;z-index:14;top:100px;left:256px;right:232px;pointer-events:none}
.parameter-bar,body[data-screen=import] .parameter-bar{position:static;inset:auto;transform:none;width:100%;max-width:none;margin:0;pointer-events:auto}
.parameter-bar.in-defaults{background:transparent;box-shadow:none;border:0;padding:0 0 20px;backdrop-filter:none;flex-wrap:wrap;overflow:visible;gap:8px}
.parameter-bar.in-defaults button{flex:1 1 145px;min-width:0;text-align:left}
.defaults-panel{width:620px;max-height:calc(100dvh - 180px)}
.defaults-grid{margin-top:4px}.settings-source{display:none!important}
body[data-parameters=made] .view-toolbar{top:100px}
body[data-parameters=made] #canvasHost{top:145px}
body[data-screen=import] .import-stage{padding-bottom:70px}
body[data-screen=import] .import-stage.both-scans .import-choices{bottom:104px}
body[data-screen=import] .import-stage.both-scans .reset-scans{bottom:66px}
body[data-screen=import] .workspace[data-scan-count="2"] #canvasHost{bottom:226px}
@media(min-width:1700px){#topParameterHost{left:280px}}
@media(max-width:1100px) and (min-width:761px){#topParameterHost{left:220px;right:204px}}
@media(max-width:760px){
 #topParameterHost{left:8px;right:8px;top:74px}
 .parameter-bar,body[data-screen=import] .parameter-bar{width:100%;max-width:none;inset:auto;transform:none}
 .parameter-bar.in-defaults{gap:6px}.parameter-bar.in-defaults button{flex-basis:120px;min-width:0}
 .defaults-panel{top:116px;padding:16px;max-height:calc(100dvh - 176px)}
 body[data-screen=import] .workspace{padding-bottom:68px}
 body[data-screen=import] .import-stage{padding-bottom:12px}
 body[data-screen=import] .import-stage.both-scans .import-choices{bottom:42px}
 body[data-screen=import] .import-stage.both-scans .reset-scans{bottom:10px}
 body[data-screen=import] .workspace[data-scan-count="2"] #canvasHost{bottom:172px}
 body[data-parameters=made] .view-toolbar{top:88px}
 body[data-parameters=made] .layers-pane{top:166px;max-height:calc(100dvh - 270px)}
 body[data-parameters=made] #canvasHost{top:122px}
 .parameter-bar.in-defaults span{font-size:10px}.parameter-bar.in-defaults strong{font-size:12px}
}

.margin-warning{margin:10px 0;padding:10px 12px;border:1px solid #d89927;border-radius:8px;background:#fff6df;color:#70490c;font-size:11px;line-height:1.45}.margin-warning strong{display:block;margin-bottom:3px}.margin-warning p{margin:0;line-height:1.45}@media(max-width:760px){.margin-warning{font-size:10px;padding:8px}.review-actions #approveStage{font-size:9px}}

.review-dock{display:flex;flex-direction:column;overflow:hidden}.review-content{min-height:0;overflow-y:auto;flex:1}.review-actions{flex-shrink:0;padding-top:10px}.has-margin-warning #stageDescription,.has-margin-warning #stageTimeline{display:none}.has-margin-warning .margin-warning{margin-top:8px}@media(max-width:760px){body[data-screen=production] .review-dock.has-margin-warning{max-height:238px}.review-actions{padding-top:6px}}

/* Compact floating controls. Neither overlay participates in canvas sizing. */
#topParameterHost{display:flex;justify-content:center;left:240px;right:0;top:98px}
#topParameterHost>.parameter-bar{width:max-content;max-width:calc(100% - 48px);flex:none;margin:0 auto;justify-content:flex-start}
body[data-parameters=made] #canvasHost{top:0}
body[data-screen=production] .viewport #canvasHost{top:0;bottom:0}
body[data-screen=production] .canvas-bottom{bottom:12px}
body[data-screen=production] .review-dock{left:24px;right:232px;bottom:34px;width:auto;max-width:660px;max-height:min(320px,50%);padding:20px 22px 16px;background:#0d3049f2;border:1px solid #83b8da55;color:#edf8ff;border-radius:16px;box-shadow:0 16px 44px #00132350;backdrop-filter:blur(18px);z-index:16;isolation:isolate}
.review-dock .review-content{scrollbar-width:thin;scrollbar-color:#52748c transparent;overflow-x:hidden;padding-right:2px}
.review-dock h2{font-size:19px;line-height:1.3;color:#eef8ff;margin:9px 0 5px}
.review-dock #stageDescription{font-size:12px;line-height:1.5;color:#b2d1e4;max-width:48ch;margin:0}
.review-dock .stage-badge{color:#9fc7df;font-size:8px;letter-spacing:.06em;white-space:nowrap}
.review-dock .stage-timeline{margin:13px 0 2px;opacity:.8}
.review-dock .stage-timeline li{background:#416179;height:2px}
.review-dock .stage-timeline li.completed{background:#82ceef}
.review-dock .stage-timeline li.active{background:#2dacff}
.review-dock .review-actions{border-top:1px solid #8db8d326;margin-top:14px;padding-top:12px;flex-wrap:nowrap;align-items:center}
.review-dock .button.quiet{color:#c8e4f5}
.review-dock .button.quiet:hover:not(:disabled){background:#234d69}
.review-dock .button.outline{color:#cce7f8;border-color:#7faac7}
.review-dock .button:disabled{opacity:.5}
.review-dock .button:focus-visible{outline:2px solid #9edcff;outline-offset:3px}
.review-dock .build-progress{margin:9px 0 0;min-height:15px}
.review-dock .build-progress progress{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0}
.review-dock .build-progress span{color:#75cfff;font-size:11px;margin:0;line-height:1.45}
.dental-activity{display:none;pointer-events:none;position:absolute;right:16px;top:12px;width:112px;height:112px}
.is-working .dental-activity{display:block}
.is-working .review-content{padding-right:116px;min-height:108px}
.is-working .stage-badge{display:none}
.is-working .stage-timeline{display:none}
.dental-activity img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:1700px){#topParameterHost{left:264px}}
@media(max-width:1100px) and (min-width:761px){#topParameterHost{left:204px}body[data-screen=production] .review-dock{right:204px;left:16px;padding:18px}}
@media(max-width:760px){
 #topParameterHost{left:0;right:0;top:74px}#topParameterHost>.parameter-bar{max-width:calc(100% - 16px);width:max-content}
 body[data-screen=production] .workspace{padding-bottom:0;grid-template-rows:minmax(0,1fr)160px}
 body[data-screen=production] .review-dock,body[data-screen=production] .review-dock.has-margin-warning{left:8px;right:8px;bottom:10px;padding:12px 14px 10px;max-height:min(280px,68%);border-radius:12px}
 .review-dock .review-top .eyebrow{font-size:7px}.review-dock h2{font-size:15px;margin:7px 0 4px}.review-dock #stageDescription{font-size:10px}.review-dock .stage-badge{font-size:7px}
 .review-dock .review-actions{margin-top:9px;padding-top:8px;gap:6px}.review-dock .review-actions .button{font-size:10px;min-height:34px;padding:7px 10px}.review-dock .review-actions #approveStage{flex:none;font-size:10px}
 .review-dock .build-progress span{font-size:10px}.dental-activity{width:84px;height:84px;right:8px;top:8px}.is-working .review-content{padding-right:82px;min-height:80px}
 body[data-parameters=made] #canvasHost{top:0}
}

/* 0.4.9: a continuous canvas, with a shared row and floating side tools. */
:root{--studio-top:98px;--side-top:174px;--design-width:224px}
.workspace,body[data-screen=import] .workspace,body[data-screen=production] .workspace{display:block;grid-template-columns:none;grid-template-rows:none;padding:0}
.workspace>.viewport{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0}
body[data-screen=results] #canvasHost{inset:0}
#topParameterHost{top:var(--studio-top);left:90px;right:90px}
#topParameterHost>.parameter-bar{max-width:100%;margin:0 auto}
body[data-parameters=made] .view-toolbar,.workspace .view-toolbar,body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{position:fixed;top:var(--studio-top);left:16px;right:auto;max-width:none}
.view-adjust summary{min-height:42px;display:flex;align-items:center;padding:11px 12px;font-size:11px}
.view-adjust>div{top:48px}
.workspace .design-sidebar{position:fixed;z-index:12;top:var(--side-top);left:16px;width:var(--design-width);height:auto;max-height:calc(100dvh - var(--side-top) - 84px);min-height:0;padding:0;overflow:hidden;border:1px solid #6d9bbb55;border-radius:12px;background:#0c2c46ee;box-shadow:0 12px 36px #001a3433;backdrop-filter:blur(16px);color:#e6f5ff;--ink:#e6f5ff;--muted:#a1bed3;--line:#8db8d32b;--blue:#41baff}
#designPanel{display:flex;flex-direction:column;max-height:inherit}
#designPanel>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;flex:none;padding:15px 16px;font-size:12px;font-weight:600;color:#e6f5ff}
#designPanel>summary::-webkit-details-marker{display:none}
#designPanel>summary span{transition:transform .15s}
#designPanel:not([open])>summary span{transform:rotate(-90deg)}
#designPanel[open]>summary{border-bottom:1px solid var(--line)}
.design-panel-content{padding:16px;overflow-y:auto;max-height:calc(100dvh - var(--side-top) - 132px);scrollbar-width:thin;scrollbar-color:#52748c transparent}
.design-sidebar .project-heading{display:block;margin-bottom:18px}
.design-sidebar .project-heading input{font-size:14px}
.design-sidebar .case-tabs{margin-bottom:18px}
.design-sidebar .case-tabs .selected,.design-sidebar .segmented .selected{background:#205272;color:#a2e6ff}
.design-sidebar .preset{background:#153951;border-color:#85b6d52d;color:#e6f5ff;padding:11px}
.design-sidebar .preset.selected{background:#1b4967;border-color:#35b8ff}
.design-sidebar .preset:disabled{opacity:.55}
.design-sidebar .preset .preset-status{color:#9ebed4}
.design-sidebar .preset-list{display:flex;flex-direction:column}
.design-sidebar .button.outline,.design-sidebar .button.quiet{color:#d6edfc;border-color:#7faac75c}
.design-sidebar .button.outline:hover:not(:disabled),.design-sidebar .button.quiet:hover:not(:disabled){background:#234d69}
.design-sidebar .button.primary{background:#008ddd;color:white}
.design-sidebar .text-button{color:#80d3ff}
.design-sidebar .settings-table>div{border-color:var(--line)}
.design-sidebar .mesh-summary,.design-sidebar .refine-tools,.design-sidebar .expert-tools{border-color:var(--line)}
.design-sidebar input[type=range]{accent-color:#23adff}
.design-sidebar :focus-visible{outline-color:#9edcff}
body:not([data-screen=import]) .layers-pane{top:var(--side-top);max-height:calc(100dvh - var(--side-top) - 84px)}
body[data-screen=production] .review-dock{left:calc(var(--design-width) + 44px);right:232px}
.expert-toggle{background:#0c2c46ee;border-color:#6d9bbb55;color:#e6f5ff;backdrop-filter:blur(16px)}
.expert-toggle small{color:#a1bed3}
.toast{bottom:var(--review-clearance,84px)}
@media(max-width:1100px) and (min-width:761px){
 :root{--design-width:190px}
 body[data-screen=production] .review-dock{right:204px}
 .design-panel-content{padding:12px}
}
@media(max-width:760px){
 :root{--studio-top:74px;--side-top:144px;--design-width:min(224px,calc(100vw - 152px))}
 .workspace,body[data-screen=import] .workspace,body[data-screen=production] .workspace{height:calc(100dvh - 64px);padding:0}
 #topParameterHost{left:78px;right:8px}
 body[data-parameters=made] .view-toolbar,.workspace .view-toolbar,body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{left:8px}
 .view-adjust summary{padding:9px 10px;min-height:38px}
 .view-adjust>div{top:44px}
 .workspace .design-sidebar{left:8px;max-height:calc(100dvh - var(--side-top) - var(--review-clearance,84px) - 8px)}
 #designPanel>summary{padding:12px;font-size:11px}
 .design-panel-content{padding:12px;max-height:calc(100dvh - var(--side-top) - var(--review-clearance,84px) - 48px)}
 body[data-screen=production] .review-dock,body[data-screen=production] .review-dock.has-margin-warning{left:8px;right:8px}
 body[data-parameters=made] .layers-pane,body:not([data-screen=import]) .layers-pane{top:var(--side-top);max-height:calc(100dvh - var(--side-top) - var(--review-clearance,84px) - 8px)}
 .design-sidebar .preset strong{font-size:11px}
 .design-sidebar .preset small{font-size:10px}
 .canvas-bottom{right:144px}
}
.toast{width:max-content}
@media(max-width:760px){
 body[data-screen=production] .review-dock,body[data-screen=production] .review-dock.has-margin-warning{bottom:70px}
}

/* All floating notices use measured free space, not independent fixed offsets. */
#toast,#viewportPrompt,#axisBadge,.busy-notice{position:fixed;inset:auto;transform:none;margin:0;max-width:calc(100vw - 16px);pointer-events:none;z-index:40;overflow-wrap:anywhere;visibility:hidden}
#viewportPrompt{font-size:10px;line-height:1.5;padding:8px 12px}
#axisBadge{font-size:10px;line-height:1.5;padding:7px 10px;border:1px solid #6d9bbb55;border-radius:7px;background:#0c2c46ee;color:#b9e0f8}
.busy-notice{padding:18px 22px;background:#0c2c46f5;border:1px solid #6d9bbb55;border-radius:12px;color:#effaff;text-align:center;box-shadow:0 12px 36px #00162840}
.busy-notice strong,.busy-notice span{display:block}.busy-notice strong{font-size:16px;font-weight:500}.busy-notice span{font-size:11px;color:#aac9df;margin-top:8px}
.notice-slot:empty{display:none}
#toast.notice-inline,#viewportPrompt.notice-inline,#axisBadge.notice-inline,.busy-notice.notice-inline{position:static;inset:auto;transform:none;width:auto;max-width:100%;height:auto;margin:12px 0;box-shadow:none;visibility:visible}
.notice-slot{min-width:0}.notice-slot .hidden{display:none!important}
@media(max-width:760px){#toast{font-size:11px;line-height:1.5;padding:10px 14px}#viewportPrompt,#axisBadge{font-size:9px;padding:7px 9px}}
@media(max-width:760px){
 body[data-screen=import] .import-stage.both-scans .import-choices{bottom:102px}
 body[data-screen=import] .import-stage.both-scans .reset-scans{bottom:66px}
}

/* 0.4.12: compact independent design overlays and a model-orientation control. */
body[data-parameters=made] .view-toolbar,.workspace .view-toolbar,body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{top:auto;left:auto;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:24}
.view-adjust summary{width:52px;height:52px;padding:10px;justify-content:center;border-radius:15px;background:#10354eeb;border-color:#7faac75c;box-shadow:0 8px 26px #00132350;backdrop-filter:blur(16px)}
.view-adjust summary::-webkit-details-marker{display:none}.view-adjust summary svg{width:32px;height:32px;fill:none;stroke:#b4e7ff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.view-adjust[open] summary,.view-adjust summary:hover{background:#1b4967;border-color:#68c6f5}
.view-adjust>div{inset:auto 0 64px auto;width:210px;max-width:calc(100vw - 32px);padding:12px;border-radius:14px;background:#10334ef7;box-shadow:0 12px 40px #00132380;backdrop-filter:blur(20px)}
.view-adjust>div>strong{display:block;padding:2px 4px 9px;color:#9ac8e4;font-size:10px;font-weight:500;letter-spacing:.03em}
.view-adjust button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;background:transparent;border-color:transparent;font-size:12px;margin:2px 0}
.view-adjust button:hover{background:#22516e;border-color:#6facc33b}.view-adjust button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}.view-adjust button>span{color:#9ad7fa}
.view-adjust .rotate-actions{display:flex;gap:6px;border-block:1px solid #8db8d326;margin:4px 0;padding:4px 0}.rotate-actions button{justify-content:center;font-size:23px}.rotate-actions button span{font-size:11px}
.view-adjust .save-front{color:#84d6ff}
#topParameterHost{left:24px;right:24px}
body[data-screen=production] .workspace .design-sidebar{padding:0;max-height:calc(100dvh - var(--side-top) - var(--review-clearance,84px) - 12px)}
body[data-screen=production] .design-panel-content{max-height:calc(100dvh - var(--side-top) - var(--review-clearance,84px) - 62px)}
body[data-screen=results] .workspace .design-sidebar{max-height:calc(100dvh - var(--side-top) - 154px);padding:0}
body[data-screen=results] .design-panel-content{max-height:calc(100dvh - var(--side-top) - 204px);padding:14px 16px}
body[data-screen=results] .design-sidebar .project-heading{margin-bottom:12px}
body[data-screen=results] .design-sidebar .project-heading .eyebrow{font-size:8px;margin-bottom:6px}
body[data-screen=results] .design-sidebar .project-heading input{font-size:13px}
.design-sidebar .refine-tools{margin:0;padding:0;border:0}
.sculpt-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.sculpt-tools button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #80abc642;border-radius:8px;background:#153b55;color:#d8eeff;font:inherit;font-size:11px;cursor:pointer}
.sculpt-tools button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sculpt-tools button:hover{background:#22516e;border-color:#71b6dc}.sculpt-tools button.selected{border-color:#ffb76b;background:#9f5a2533;color:#ffbd79;box-shadow:inset 0 0 0 1px #ffb76b22}
.navigate-tool{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:30px;margin:8px 0 14px;border:0;border-radius:6px;background:transparent;color:#94b7cf;font:inherit;font-size:10px;cursor:pointer}
.navigate-tool svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.5}.navigate-tool.selected{background:#1b4967;color:#b0e6ff}.navigate-tool:hover{color:#e8f7ff}
.design-sidebar .slider-label{margin:12px 0 7px;font-size:10px}.design-sidebar .slider-label output{font-variant-numeric:tabular-nums;color:#b7e6ff}
.design-sidebar input[type=range]{display:block;width:100%;margin:0 0 4px;min-height:18px}
.sculpt-history{gap:2px;margin:12px 0 8px}.sculpt-history .button{min-width:0;flex:1;padding:8px 4px;min-height:34px;font-size:10px}
#resetSculpt{color:#9edcff}
.presets-pane{position:fixed;left:16px;width:var(--design-width);z-index:12;max-height:calc(100dvh - var(--presets-top,600px) - 84px);border:1px solid #6d9bbb55;border-radius:12px;background:#0c2c46ee;box-shadow:0 12px 36px #001a3433;backdrop-filter:blur(16px);color:#e6f5ff;overflow:hidden}
:is(#controlsPanel,#presetsPanel)>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:15px 16px;font-size:12px;font-weight:600;color:#e6f5ff}
:is(#controlsPanel,#presetsPanel)>summary::-webkit-details-marker{display:none}:is(#controlsPanel,#presetsPanel)[open]>summary{border-bottom:1px solid #8db8d32b}:is(#controlsPanel,#presetsPanel):not([open])>summary span{transform:rotate(-90deg)}
.presets-content{padding:10px;overflow-y:auto;max-height:calc(100dvh - var(--presets-top,600px) - 134px);scrollbar-width:thin;scrollbar-color:#52748c transparent}
.presets-pane .preset-list{display:flex;flex-direction:column;gap:6px}.presets-pane .preset{background:#153951;border-color:#85b6d52d;color:#e6f5ff;padding:10px;text-align:left}.presets-pane .preset.selected{background:#1b4967;border-color:#35b8ff}.presets-pane .preset:disabled{opacity:.5}.presets-pane .preset strong{font-size:11px}.presets-pane .preset small,.presets-pane .preset .preset-status{font-size:9px;color:#a1bed3;line-height:1.4}
body[data-screen=results] .canvas-bottom{display:none}
@media(max-width:1100px) and (min-width:761px){body[data-screen=results] .design-panel-content{padding:12px}.sculpt-tools button{font-size:10px;gap:5px}}
@media(max-width:760px){
 #topParameterHost{left:8px;right:8px}
 body[data-parameters=made] .view-toolbar,.workspace .view-toolbar,body[data-screen=import] .workspace:not([data-scan-count="0"]) .view-toolbar{top:auto;left:auto;right:10px;bottom:10px}
 .view-adjust summary{width:46px;height:46px;padding:8px}.view-adjust>div{bottom:56px}
 .presets-pane{left:8px;max-height:calc(100dvh - var(--presets-top,400px) - 84px)}
 :is(#controlsPanel,#presetsPanel)>summary{padding:12px;font-size:11px}.presets-content{max-height:calc(100dvh - var(--presets-top,400px) - 126px)}
 body[data-screen=results] .design-panel-content{padding:12px;max-height:calc(100dvh - var(--side-top) - 190px)}
 .sculpt-tools button{min-height:38px;font-size:10px;gap:5px}
 body[data-screen=production] .view-adjust>div{max-height:calc(100dvh - 150px);overflow-y:auto}
}

/* Setup choices are visible before the first import; panels remain overlays. */
#topParameterHost>.parameter-bar{display:flex;align-items:stretch;max-width:100%;overflow:hidden;gap:8px}
.parameter-controls{display:flex;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#52748c transparent}
.parameter-controls>button{flex:none}
.parameter-bar .save-defaults{display:flex;align-items:center;justify-content:center;gap:8px;min-width:144px;flex:none;text-align:center;background:#1b4b69;border-color:#5c94b8;color:#d9f3ff}
.parameter-bar .save-defaults:hover:not(:disabled){background:#236182;border-color:#6bc9fc}
.parameter-bar .save-defaults span{font-size:11px;font-weight:600;line-height:1.3}
.parameter-bar .save-defaults svg{width:17px;height:17px}
body[data-screen=import] .layers-pane{top:var(--side-top);max-height:calc(100dvh - var(--side-top) - 84px)}
body[data-screen=import] .import-stage{padding-left:calc(var(--design-width) + 44px);padding-top:100px}
body[data-screen=import] .import-stage.both-scans .import-choices{left:calc(var(--design-width) + 44px)}
body[data-screen=import] .import-stage.both-scans .reset-scans{left:calc(50% + 18px)}
body[data-screen=import] .presets-pane{top:var(--side-top)}
.setup-advanced{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.setup-advanced>summary{cursor:pointer;font-size:11px;font-weight:600;margin-bottom:12px}
#setupDialog{width:520px}
@media(max-width:760px){
 #topParameterHost>.parameter-bar{gap:6px;max-width:100%;padding:6px}
 .parameter-controls{gap:5px}.parameter-controls>button{min-width:98px}
 .parameter-bar .save-defaults{min-width:78px;width:78px;padding:7px 8px;gap:0}.parameter-bar .save-defaults svg{display:none}.parameter-bar .save-defaults span{font-size:10px}
 body[data-screen=import] .import-stage{padding-left:12px;padding-top:130px}
 body[data-screen=import] .import-stage.both-scans .import-choices{left:12px}
 body[data-screen=import] .import-stage.both-scans .reset-scans{left:calc(50% - 66px)}
 body[data-screen=import] .presets-content{max-height:min(290px,calc(100dvh - var(--side-top) - 132px))}
}
body[data-screen=import] #workspace .layers-pane{top:var(--side-top);max-height:calc(100dvh - var(--side-top) - 84px)}
@media(max-width:760px){.parameter-bar .save-defaults{white-space:normal}.parameter-bar .save-defaults span{white-space:normal}}

/* Separate each model from its import control; loading never moves its neighbour. */
body[data-screen=import] .scan-pair{align-items:start}
body[data-screen=import] .scan-slot{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:auto;min-width:0;gap:18px}
.scan-preview{position:relative;width:100%;height:170px;flex:none;pointer-events:none}
.scan-preview>.scan-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.scan-slot.loaded .scan-placeholder{display:none}
body[data-screen=import] .scan-slot>.dropzone{position:relative;inset:auto;transform:none;width:92%;min-height:112px;margin:0;flex:none;background:#0b2b44}
body[data-screen=import] .scan-slot.loaded>.dropzone{display:block;visibility:hidden;pointer-events:none}
.blockout-control>[hidden]{display:none!important}
@media(min-width:1700px){.scan-preview{height:190px}}
@media(max-width:1100px) and (min-width:761px){.scan-preview{height:150px}}
@media(max-height:780px) and (min-width:761px){.scan-preview{height:130px}body[data-screen=import] .scan-slot>.dropzone{min-height:84px;padding:14px 8px}}
@media(max-width:760px){
 body[data-screen=import] .import-stage:not(.both-scans){justify-content:flex-start;overflow-y:auto;padding-bottom:80px}
 body[data-screen=import] .scan-pair{gap:16px}
 body[data-screen=import] .scan-slot{width:100%;gap:12px}
 .scan-preview{height:88px}
 body[data-screen=import] .scan-slot>.dropzone{width:94%;min-height:86px;padding:14px 8px}
}

/* Import screen: drop container to the LEFT of its respective model; slots stacked
   vertically with the UPPER selection and model on top; placeholder model pictures
   rendered at 70% transparency while imported scans remain fully opaque. */
body[data-screen=import] .scan-pair{flex-direction:column;align-items:center;gap:14px}
body[data-screen=import] .scan-slot{display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;height:auto;width:100%;gap:8px;min-width:0}
body[data-screen=import] .scan-slot .scan-placeholder{opacity:.7}
body[data-screen=import] .scan-slot>.dropzone{position:relative;inset:auto;transform:none;width:38%;min-width:170px;min-height:76px;flex:none;align-self:center;background:#0b2b44}
.import-stage.both-scans .import-choices{position:static;width:100%;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.import-stage.both-scans .scan-pair{width:100%;flex:none}
.import-stage.both-scans .scan-slot{width:100%}
@media(max-width:760px){
 body[data-screen=import] .scan-slot{gap:4px}
 body[data-screen=import] .scan-slot>.dropzone{width:44%;min-width:110px;min-height:60px;padding:10px 8px}
 .import-stage.both-scans .scan-pair{width:100%}
 .import-stage.both-scans .scan-slot{width:100%}
}

/* FINAL import-slot geometry (owner directive 2026-10-17 pass 2): the drop
   container sits adjacent to its model with no dead air between them. This block
   specifies the complete slot interior geometry and is last in the cascade. */
body[data-screen=import] .scan-pair{gap:10px}
body[data-screen=import] .scan-slot{display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;height:auto;width:100%;gap:2px;min-width:0}
body[data-screen=import] .scan-slot .scan-preview{position:relative;width:308px;max-width:100%;height:150px;flex:none;pointer-events:none}
body[data-screen=import] .scan-slot>.dropzone{width:auto;max-width:38%;min-width:110px;min-height:64px;flex:none;align-self:center;background:#0b2b44}
@media(min-width:1700px){body[data-screen=import] .scan-slot .scan-preview{width:349px;height:170px}}
@media(max-width:1100px) and (min-width:761px){body[data-screen=import] .scan-slot .scan-preview{width:271px;height:132px}}
@media(max-height:780px) and (min-width:761px){body[data-screen=import] .scan-slot .scan-preview{width:230px;height:112px}}
@media(max-width:760px){
 body[data-screen=import] .scan-slot{gap:2px}
 body[data-screen=import] .scan-slot .scan-preview{width:164px;height:80px}
 body[data-screen=import] .scan-slot>.dropzone{min-width:90px;min-height:56px;padding:10px 8px}
}
/* flow-consolidation-20261019: appliance controls stack */
.control-label{font-size:9px;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:#7fd0ff;margin:16px 16px 8px}
#controlSection>.control-label:first-child{margin-top:4px}
.type-summary{display:flex;align-items:center;gap:10px;width:calc(100% - 32px);margin:0 16px 4px;padding:8px 10px;background:#153951;border:1px solid #85b6d52d;border-radius:10px;color:#e6f5ff;text-align:left;cursor:pointer}
.type-summary:hover{border-color:#35b8ff}
.type-thumb{flex:0 0 auto}
.type-thumb .type-image{display:block;height:34px;width:auto}
.type-summary strong{flex:1;font-size:11px;display:block}
.type-chevron{flex:0 0 auto;font-size:12px;color:#8fc6f5;transition:transform .15s}
.type-summary[aria-expanded="true"] .type-chevron{transform:rotate(90deg)}
.type-options{display:flex;flex-direction:column;gap:6px;margin:4px 16px 8px}
.type-option{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;background:#12324a;border:1px solid #85b6d52d;border-radius:8px;color:#e6f5ff;text-align:left;cursor:pointer}
.type-option .type-image{height:28px;width:auto;flex:0 0 auto}
.type-option span{flex:1;font-size:11px;font-weight:650}
.type-option:hover{border-color:#35b8ff}
.type-option.selected{border-color:#35b8ff;background:#1b4967}
.presets-pane .segmented{margin:0 16px 8px}
.presets-pane .segmented button{color:#acc9dc}
.presets-pane .segmented .selected{background:#22476a;color:#fff}
.type-options-inline{flex-direction:row;flex-wrap:wrap;gap:6px}
.type-options-inline .type-option{width:auto;flex:0 0 auto}
.type-options-inline .type-option .type-image{height:22px}
/* arch-state controls: full-width Upper/Lower state buttons + thin Both (2026-10-19) */
.arch-states{display:flex;flex-direction:column;gap:8px;margin:0 16px 8px}
.arch-state{position:relative;display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:#12324a;border:1px solid #85b6d52d;border-radius:10px;cursor:pointer;overflow:hidden}
.arch-state .arch-label{flex:0 0 auto;font-size:12px;font-weight:750;letter-spacing:.05em;color:#e6f5ff}
.arch-state img{flex:1 1 auto;min-width:0;height:56px;width:auto;object-fit:contain;object-position:left center}
.arch-state .arch-app{display:none}
.arch-state.selected .arch-app{display:block}
.arch-state .arch-only{display:block;filter:saturate(.5) brightness(.8) opacity(.75)}
.arch-state.selected .arch-only{display:none}
.arch-state:hover{border-color:#35b8ff}
.arch-state.selected{border-color:#35b8ff;background:#1b4967}
.arch-both{width:100%;padding:6px 10px;font-size:10px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;background:transparent;border:1px solid #85b6d52d;border-radius:8px;color:#8fc6f5;cursor:pointer}
.arch-both:hover{border-color:#35b8ff}
.arch-both.selected{border-color:#35b8ff;color:#fff;background:#1b4967}
/* appliance-type: full-width stacked, larger images (2026-10-19) */
.type-options-inline{flex-direction:column;flex-wrap:nowrap;gap:6px}
.type-options-inline .type-option{width:100%;flex:0 0 auto;padding:10px 12px}
.type-options-inline .type-option .type-image{height:64px;width:auto;flex:0 0 auto}
/* type-type: side-by-side selections, name under image, full width split (2026-10-19) */
.type-type{flex-direction:row;flex-wrap:nowrap;gap:8px;margin:0 16px 8px}
.type-type .type-name{display:block;text-align:center;font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;margin-top:6px;color:#e6f5ff}
.type-type .type-option{flex:1 1 0;width:auto;flex-direction:column;align-items:center;gap:0;padding:10px 8px}
.type-type .type-option .type-image{height:56px;width:auto}
/* thinner arch-state: match image height, tighter padding (2026-10-19) */
.arch-state{padding:4px 12px;gap:10px}
.arch-state img{height:44px}/* fit overrides: type-type must fit the pane width, no scrollbar (2026-10-19) */
.type-type{flex-direction:row;flex-wrap:nowrap;gap:6px;margin:0 12px 8px;max-width:100%}
.type-type .type-option{flex:1 1 0;min-width:0;max-width:100%;padding:8px 6px;overflow:hidden}
.type-type .type-option .type-image{width:100%;height:auto;max-height:56px;object-fit:contain;display:block;margin:0 auto 4px}
.type-type .type-name{font-size:9px;letter-spacing:.05em}
/* width-unification: type & arch groups align to the presets width (2026-10-19) */
.type-type{margin:0 10px 8px}
.arch-states{margin:0 10px 8px}
/* condensed presets: tighter, clamped descriptions, uniform height (2026-10-19) */
.presets-pane .preset{padding:7px 10px}
.presets-pane .preset small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* condensed uniform-height presets (2026-10-19) */
.presets-pane .preset{padding:5px 10px;height:38px;overflow:hidden}
.presets-pane .preset small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.presets-pane .preset .preset-status{margin-top:2px}
.presets-pane .preset strong{margin-bottom:1px}
.presets-pane .preset small,.presets-pane .preset .preset-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.presets-pane .preset strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:1px}


/* Independent appliance panels share width, insets and a measured vertical stack. */
#controlsPane,#presetsPane{max-width:calc(100vw - 16px)}
#controlSection .type-type,#controlSection .arch-states{margin-left:0;margin-right:0}
#controlSection>.control-label{margin-left:0;margin-right:0}
#controlSection,#presetSection{min-width:0;overflow-x:hidden;scrollbar-gutter:stable}
.presets-pane .preset{flex-shrink:0}

/* 2026-10-22: compact manual actions and four-phase production display. */
#editInsertion.hidden{display:none!important}
.design-actions{display:grid;gap:8px;margin:0 0 12px}
.design-actions .button{min-height:36px;font-size:11px}
#refineTools{display:none!important}
body:not([data-screen=import]) #controlsPane{display:none!important}
.layers-pane{padding:14px 12px!important}
.layers-pane .section-heading{margin-bottom:8px}
.layers-pane .layer-group-title{margin:10px 0 5px}
.layers-pane .layer{display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:center;gap:8px;padding:6px 0}
.layers-pane .layer label{min-width:0;margin:0}
.layers-pane .layer input[type=range]{width:72px;min-width:0;margin:0}
.layers-pane .layer small{font-size:8px}
.review-dock #stageDescription{display:none!important}
body[data-screen=production] .review-dock{max-height:min(230px,45%);padding:14px 18px 12px}
.review-dock .stage-timeline{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:5px 0 8px;list-style:none;padding:0;opacity:1}
.review-dock .stage-timeline li{height:auto!important;background:transparent!important;color:#95b9d0;font-size:9px;text-align:center;line-height:1.3;white-space:nowrap}
.review-dock .stage-timeline li:before{content:'';display:block;height:3px;border-radius:5px;background:#416179;margin-bottom:5px}
.review-dock .stage-timeline li.completed:before{background:#82ceef}
.review-dock .stage-timeline li.active{color:#fff;font-weight:700}
.review-dock .stage-timeline li.active:before{background:#2dacff}
.review-dock h2{font-size:16px;margin:5px 0 0}
.review-dock .review-actions{margin-top:9px;padding-top:8px}
.review-dock .build-progress span{display:none}
.dental-activity{width:132px;height:132px;right:10px;top:8px}
.is-working .review-content{padding-right:136px;min-height:86px}
.expert-toggle{display:inline-flex;align-items:center;gap:9px}
.expert-toggle .toggle-auto,.expert-toggle .toggle-manual{font-size:11px;font-weight:700}
.expert-toggle input:not(:checked)~.toggle-auto,.expert-toggle input:checked~.toggle-manual{color:#85d7ff}
.expert-toggle input:checked~.toggle-auto,.expert-toggle input:not(:checked)~.toggle-manual{color:#9bb5c7}
.expert-toggle small{display:none}
@media(max-width:760px){body[data-screen=production] .review-dock{max-height:min(205px,55%);padding:10px 12px}.dental-activity{width:100px;height:100px}.is-working .review-content{padding-right:102px;min-height:70px}.review-dock .stage-timeline li{font-size:8px}.layers-pane .layer{grid-template-columns:minmax(0,1fr) 58px}.layers-pane .layer input[type=range]{width:58px}}

.is-working .review-actions #previousStage,.is-working .review-actions #approveStage{display:none}
.is-working .review-actions{border-top:0;margin-top:0;padding-top:4px}
.review-dock #stageTitle{margin:7px 0 2px}

.dental-activity img{transform:scale(1.25);transform-origin:center}

/* 0.8.11: keep live work detail visible and contain the activity art. */
.review-dock .build-progress span{display:block}
.is-working .stage-timeline{display:grid!important}
.is-working .review-content{padding-right:102px;min-height:92px}
.is-working .dental-activity{width:88px;height:72px;right:14px;top:34px;overflow:hidden}
.dental-activity img{transform:none;width:100%;height:100%;object-fit:contain}
.is-working .review-actions{justify-content:flex-start}
@media(max-width:760px){
 .is-working .review-content{padding-right:78px;min-height:86px}
 .is-working .dental-activity{width:68px;height:58px;right:10px;top:37px}
 .is-working .stage-timeline{gap:4px}
 .is-working .stage-timeline li{font-size:7px;white-space:normal;overflow-wrap:anywhere}
}

/* Keep the animated model and progress visible above a near-black work shield. */
.production-shield{position:fixed;inset:0;z-index:30;background:rgba(2,7,13,.89);pointer-events:auto}
body.production-locked .topbar{z-index:33}
body.production-locked #canvasHost{z-index:31;pointer-events:none}
body.production-locked #canvasHost canvas{pointer-events:none}
body.production-locked .review-dock{z-index:34}
body.production-locked #toast,body.production-locked #viewportPrompt,body.production-locked #axisBadge{visibility:hidden!important}

/* 0.8.14: one clear progress row, with the status and Cancel held in place. */
.review-dock.is-working .review-content{padding-right:2px;min-height:0}
.review-dock.is-working .review-actions{display:none}
.review-dock .work-status{display:none}
.review-dock.is-working .work-status{display:flex;align-items:center;gap:14px;min-height:40px;margin-top:9px}
.review-dock .work-status .build-progress{flex:1 1 auto;min-width:0;margin:0}
.review-dock .work-status .build-progress span{display:block;color:#91d9ff;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.review-dock .work-status #cancelBuild{flex:0 0 auto;min-width:84px;min-height:36px;margin-left:auto;padding:7px 15px;border:1px solid #9ac7e3;background:#1b435e;color:#f2f9ff}
.review-dock .work-status #cancelBuild:hover{background:#2b5e7d;border-color:#c0e5f8}
.production-wait{position:fixed;z-index:32;top:calc(var(--studio-top) + 88px);left:50%;transform:translateX(-50%);pointer-events:none;color:#fff;font-size:clamp(18px,1.7vw,24px);font-weight:700;letter-spacing:.01em;white-space:nowrap;text-shadow:0 2px 12px #000,0 0 24px #001629}
@media(max-width:760px){
 .review-dock.is-working .review-content{padding-right:2px;min-height:0}
 .review-dock.is-working .work-status{gap:9px}
 .review-dock .work-status .build-progress span{font-size:11px}
 .review-dock .work-status #cancelBuild{min-width:76px;min-height:36px;padding:7px 11px}
 .production-wait{top:calc(var(--studio-top) + 74px);font-size:18px}
}

/* Mirror the live work status below the wait heading without obscuring the model. */
.production-wait{width:min(560px,calc(100% - 32px));text-align:center;white-space:normal}
.production-wait strong{display:block;font:inherit}
.production-wait span{display:block;margin-top:10px;color:#a6dcfa;font-size:clamp(13px,1.2vw,16px);font-weight:500;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:760px){.production-wait span{font-size:13px;margin-top:7px}}

/* Restore a clear path from retired saved geometry to a new build. */
.import-stage .regenerate-project{position:absolute;z-index:2;bottom:88px;left:calc(50% - 104px);transform:translateX(-50%);white-space:nowrap}
.import-stage.has-regenerate .reset-scans{bottom:40px}
@media(max-width:760px){.import-stage .regenerate-project{bottom:72px;left:calc(50% - 67px);font-size:10px;min-height:34px;padding:7px 10px}.import-stage.has-regenerate .reset-scans{bottom:28px}}

@media(max-width:760px){body[data-screen=import] .import-stage.both-scans.has-regenerate .regenerate-project{bottom:124px}}

@media(max-width:760px){body[data-screen=import] .import-stage.both-scans.has-regenerate .regenerate-project{left:auto;right:12px;bottom:120px;transform:none;width:124px;min-height:48px;white-space:normal;text-align:center}}

/* One complete-job meter, occupying the status row up to Cancel. */
.review-dock .work-status .build-progress{position:relative;display:block;flex:1 1 0;min-width:0;height:20px;min-height:20px;margin:0}
.review-dock .work-status .build-progress progress{position:static;display:block;appearance:none;-webkit-appearance:none;width:100%;height:20px;margin:0;padding:0;overflow:hidden;clip-path:none;border:1px solid #527b95;border-radius:10px;background:#08283e;color:#23aaf5;accent-color:#23aaf5}
.review-dock .work-status .build-progress progress::-webkit-progress-bar{background:#08283e;border-radius:9px}
.review-dock .work-status .build-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#078ad7,#43c0ff);border-radius:9px}
.review-dock .work-status .build-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#078ad7,#43c0ff);border-radius:9px}
.review-dock .work-status .build-progress #buildProgressValue{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;color:#fff;font-size:11px;font-weight:700;line-height:20px;font-variant-numeric:tabular-nums;text-shadow:0 1px 3px #00213d;pointer-events:none}

/* Five actual operations stay on one row, including narrow progress cards. */
.review-dock .stage-timeline{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.review-dock .stage-timeline li{min-width:0;white-space:nowrap!important;overflow-wrap:normal;font-size:9px}
#blockoutStrengthReadout{display:block;font-weight:650;color:var(--ink);margin:10px 0 18px;font-variant-numeric:tabular-nums}
#blockoutStrengthReadout.hidden{display:none}
@media(max-width:760px){.review-dock .stage-timeline{gap:3px}.review-dock .stage-timeline li{font-size:7px}}

body[data-blockout=geometry] .blockout-swatch{background:#0095f0}body[data-blockout=off] .blockout-swatch{background:#708193}


/* Shared centered parameter panel, anchored below the whole toolbar. */
.parameter-panel{pointer-events:auto;position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);width:430px;max-width:calc(100vw - 16px);background:#0b2c46ed;border:1px solid #b6d6ef66;border-radius:12px;box-shadow:0 12px 30px #00162840;backdrop-filter:blur(16px);color:#eef9ff;padding:12px 14px;z-index:19}
.parameter-panel .panel-title{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#a0c6df}
.parameter-panel .param-slider{display:flex;align-items:center;gap:8px;width:100%;margin-top:8px}
.parameter-panel .param-slider span{font-size:10px;color:#a0c6df;flex:none}
.parameter-panel .param-slider input{flex:1;min-width:0;height:24px}
.parameter-panel output{display:block;width:100%;font-size:20px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums;color:#eef9ff;white-space:normal;overflow-wrap:anywhere;margin:0;min-width:0;flex:1;text-align:center}
.parameter-panel .panel-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:10px}
.parameter-panel .panel-actions .button{min-height:30px;padding:6px 16px;font-size:13px}
.parameter-panel .panel-actions .button.outline{background:transparent;border:1px solid #8ac4f52b;color:#eef9ff}
.parameter-panel .panel-actions .button.outline:hover{background:#205072;border-color:#36afff}

/* Apply (20261027.6): red regenerate control. */
.parameter-bar #parameterApply{background:#d1342c;border-color:#ff9d97;color:#fff;box-shadow:0 2px 10px #d1342c55}
.parameter-bar #parameterApply:hover:not(:disabled){background:#e04a41}

/* A separate reset action leaves OK at the bottom right of every inline slider. */
.parameter-panel .panel-actions .parameter-reset{margin-right:0;min-width:36px;min-height:36px;padding:7px;display:inline-flex;align-items:center;justify-content:center}
.parameter-panel .parameter-reset svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.parameter-panel .parameter-reset:focus-visible{outline:2px solid #36afff;outline-offset:2px}

/* Readable parameter buttons; the Apply label must override the muted span rule. */
.parameter-controls>button>span{font-size:11px}
.parameter-controls>button>strong{font-size:14px}
.parameter-bar .save-defaults span{font-size:13px}
.parameter-bar #parameterApply span{color:#fff}
@media(max-width:760px){
 .parameter-controls>button>span{font-size:10px}
 .parameter-controls>button>strong{font-size:12px}
 .parameter-bar .save-defaults span{font-size:12px}
}
@media(max-width:360px){.parameter-bar .save-defaults{min-width:70px;width:70px}}

/* The retainer margin control participates in the same scrollable toolbar. */
#adjustMargin{min-width:112px}#marginCancel{margin-left:0}#marginCancel:not(.hidden)+#parameterOK{margin-left:0}

/* Parameter popovers outrank floating editing hints, including notices mounted on body. */
body:has(#parameterPanel:not(.hidden)) #topParameterHost{z-index:55}
/* Terms of Service link - bottom-right of the home (scan-entry) screen; same text styling as the Reset scans link. */
.tos-link{position:absolute;right:24px;bottom:12px;font-size:11px;line-height:1;color:#9ed7f9;text-decoration:none;pointer-events:auto;padding:8px 12px;border-radius:6px}.tos-link:hover{background:#ffffff0c;color:#c5ecff}
@media(max-width:760px){.tos-link{right:12px;bottom:10px;font-size:10px;padding:6px 10px}}

/* Start a selected single-arch appliance below both upload slots. */
.import-choices .generate-now{pointer-events:auto;flex:none;margin-top:18px;min-width:160px}

/* Prominent live values for every adjustable slider. */
.parameter-value-detail{display:block;margin-top:2px;font-size:13px;font-weight:500;line-height:1.4;color:#a0c6df}
.design-sidebar .slider-label output{font-size:20px;font-weight:700;line-height:1.2;color:#eef9ff}
#blockoutStrengthReadout{font-size:20px;font-weight:750;font-variant-numeric:tabular-nums;color:#eef9ff}
#parameterInput{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
.layer-opacity{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}
.layer-opacity output{font-size:18px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;color:#eef9ff}
