/* Guided workspace. Load after the canvas and dimension tools. */
.cfg.workspace{height:100dvh;overflow:hidden;grid-template-columns:minmax(0,1fr) 390px;grid-template-rows:64px minmax(0,1fr) 70px}
.workspace [hidden]{display:none!important}
.workspace .cfg-top{grid-row:1;padding:0 22px}
.workspace-mobile{display:none}
.workspace .workspace-viewer{grid-row:2;grid-column:1;padding:0;display:grid;grid-template-rows:42px minmax(0,1fr) 48px;align-items:stretch;justify-content:stretch;min-width:0;min-height:0}
.workspace-heading{display:flex;align-items:center;gap:16px;padding:0 18px;border-bottom:1px solid var(--line);font-size:11px;min-width:0;background:#f8fafb;font-variant-numeric:tabular-nums}
.workspace-heading h1{font-size:13px;letter-spacing:0;margin:0;flex:1;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.workspace-heading>span{white-space:nowrap;color:var(--muted)}
.workspace-scene{position:relative;min-width:0;min-height:0;overflow:hidden}
.workspace-editor,.workspace-layer{width:100%;height:100%;min-width:0;min-height:0}
.workspace-layer{display:flex;align-items:center;justify-content:center;padding:18px 22px;overflow:hidden}
.workspace-editor>.part-svg{padding:45px}
.workspace-editor>.warn{margin:20px}
.workspace-editor .feature-studio.feature-builder{height:100%;max-height:100%;min-height:0;width:100%;border:0}
.workspace-editor .feature-studio .feature-body{display:flex;flex:1;min-width:0;min-height:0}
.workspace-editor .feature-preview{width:100%;flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}
.workspace-views{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 14px;border-top:1px solid var(--line);background:#f8fafb;min-width:0}
.workspace-views .seg button{padding:6px 12px;min-height:34px;font-size:11px;white-space:nowrap}
.workspace-axis{font-size:10px;color:var(--muted);white-space:nowrap}
.workspace .workspace-inspector{grid-row:2;grid-column:2;overflow:hidden;min-width:0;min-height:0}
.workspace-inspector>.step-intro{padding:10px 18px;margin:0;background:#f7f8f8;flex:none;font-size:10px;line-height:1.5;border-bottom:1px solid var(--line)}
.workspace-guide-toggle{display:flex;align-items:center;justify-content:space-between;flex:none;padding:10px 18px;min-height:40px;width:100%;background:white;color:var(--blue);border-bottom:1px solid var(--line);text-align:left;font-size:11px}
.workspace-guide-toggle:after{content:'+';font-size:16px}.workspace-guide-toggle[aria-expanded=true]:after{content:'−'}
.workspace .workspace-guide{padding:16px 18px;flex:0 1 auto;max-height:45%;border-bottom:1px solid var(--line)}
.workspace .workspace-guide-full{flex:1;max-height:none;border-bottom:0}
.workspace-guide h2{font-size:19px;margin:0 0 10px}.workspace-guide p{font-size:12px}
.workspace-guide .field{margin:12px 0}.workspace-guide .construction-toggle{margin:12px 0}.workspace-guide .option{padding:12px}.workspace-guide .opt-main em{font-size:15px}
.workspace-guide .workflow-action{padding:12px;border-radius:5px;margin:10px 0}.workspace-guide .workflow-action span{font-size:11px}
.workspace-editor-inspector{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
.workspace-editor-inspector>.studio-inspector{flex:1;min-height:0;border:0;overflow:hidden}
.workspace-editor-inspector .studio-inspector>nav{padding:0 8px;flex:none;flex-wrap:wrap;justify-content:flex-start}
.workspace-editor-inspector .studio-inspector>nav .btn{font-size:11px;padding:10px 9px;min-height:40px}
.workspace-editor-inspector .feature-controls{padding:18px;border:0;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;font-size:12px}
.workspace-editor-inspector .feature-controls h2{font-size:19px}.workspace-editor-inspector .feature-controls .field{margin:12px 0}
.workspace-editor-inspector .feature-controls .two{gap:12px}.workspace-editor-inspector .feature-controls p{overflow-wrap:anywhere;line-height:1.5}
.workspace-rail{max-height:38%;flex:0 1 auto;overflow:auto;overscroll-behavior:contain}
.workspace-rail .rail{max-height:none;overflow:visible;padding:14px 18px}
.workspace-check{display:flex;align-items:center;gap:10px;padding:9px 18px;border-top:1px solid var(--line);background:#fafbfb;flex:none}
.workspace-check p{font-size:10px;color:var(--muted);line-height:1.5;margin:0;flex:1;max-height:54px;overflow:auto;overflow-wrap:anywhere}
.workspace-check p.checked{color:var(--green)}.workspace-check p[role=alert]{color:var(--danger)}
.workspace-check button{font-size:10px;min-height:36px;flex:none}
.workspace .cfg-foot{grid-row:3;grid-column:1/-1;padding:10px 20px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.workspace .drawing-preview{gap:10px}.workspace .drawing-zoom{position:static;justify-content:center}.workspace .drawing-preview small{font-size:10px}
.workspace .drawing-sheet-scroll img{filter:none}.workspace .laminate-section{padding:12px;max-height:100%}
.workspace .laminate-section .section-key{display:flex}.workspace .laminate-section .section-schedule,.workspace .laminate-section>.btn{display:block}
.workspace.drawing-expanded{grid-template-columns:minmax(0,1fr)}
.workspace button:focus-visible,.workspace summary:focus-visible,.workspace a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(min-width:1500px){.cfg.workspace{grid-template-columns:minmax(0,1fr) 420px}}
@media(max-width:1050px){.cfg.workspace{grid-template-columns:minmax(0,1fr) 350px}.workspace-heading{gap:10px}.workspace-heading>span:last-child{display:none}.workspace-axis{display:none}}
@media(max-width:720px){
  .cfg.workspace,.cfg.workspace.drawing-expanded{grid-template-columns:minmax(0,1fr);grid-template-rows:56px 42px minmax(0,1fr) auto}
  .workspace .cfg-top{padding:0 14px}.workspace .cfg-top .stepper{gap:8px}
  .workspace-mobile{display:flex;grid-row:2;grid-column:1;padding:0 12px;background:#f8fafb;border-bottom:1px solid var(--line);gap:8px}
  .workspace-mobile button{flex:1;min-height:40px;font-size:12px;background:transparent;border-bottom:2px solid transparent;color:var(--muted)}
  .workspace-mobile button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--brand);font-weight:600}
  .workspace .workspace-viewer,.workspace .workspace-inspector{grid-row:3;grid-column:1}
  .workspace .workspace-viewer{grid-template-rows:38px minmax(0,1fr) 46px}
  .workspace[data-pane=controls] .workspace-viewer,.workspace[data-pane=canvas] .workspace-inspector{display:none}
  .workspace[data-pane=controls] .workspace-inspector{display:flex;border-top:0}
  .workspace-heading{padding:0 14px}.workspace-heading h1{font-size:12px}.workspace-heading>span{font-size:10px}
  .workspace-views{padding:5px 10px;justify-content:center}.workspace-views .seg button{font-size:11px;padding:6px 10px;min-height:36px}
  .workspace .cfg-foot,.workspace.drawing-expanded .cfg-foot{grid-row:4;padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom));gap:8px}
  .workspace .cfg-foot .btn{font-size:11px;padding:8px 10px;min-height:42px}.workspace .save-control{max-width:32%}.workspace .save-indicator{display:block;font-size:9px}
  .workspace .workspace-guide{padding:14px 16px;max-height:42%}.workspace .workspace-guide-full{max-height:none}
  .workspace-editor-inspector .feature-controls{padding:16px}.workspace-editor-inspector .feature-controls input,.workspace-editor-inspector .feature-controls select{font-size:16px}
  .workspace-check{padding:6px 16px}.workspace-check p{max-height:43px}.workspace-guide-toggle{padding:8px 16px;min-height:36px}
  .workspace-layer{padding:12px}.workspace .drawing-sheet-picker{font-size:0}.workspace .drawing-sheet-picker select{font-size:12px;padding:7px;max-width:100%}
  .workspace .drawing-preview{gap:8px}.workspace .drawing-preview small{display:block;font-size:9px;text-align:center}.workspace .drawing-zoom .btn{min-height:36px;font-size:11px;padding:6px 10px}
  .workspace .laminate-section>.muted{display:block}.workspace .section-group{grid-template-columns:minmax(85px,1fr) minmax(120px,1.2fr);gap:18px}.workspace .physical-stack>div{height:5px}.workspace .section-group.core .physical-stack>div{height:70px}
  .workspace .stack-callout strong{font-size:12px}.workspace .stack-callout span{font-size:11px}.workspace .section-side{padding:8px 0;font-size:10px}
}
@media(max-height:600px) and (max-width:720px){.cfg.workspace,.cfg.workspace.drawing-expanded{grid-template-rows:50px 40px minmax(0,1fr) auto}.workspace-inspector>.step-intro{padding:6px 16px}.workspace .workspace-viewer{grid-template-rows:32px minmax(0,1fr) 42px}.workspace-check{padding-block:3px}}

/* Laminate exploration shares the fixed workspace and retains the edit session. */
.workspace-inspection{width:100%;height:100%;min-height:0;min-width:0;display:flex;overflow:hidden}
.workspace.inspecting .workspace-heading>span:last-child{display:inline}
@media(max-width:720px){.workspace.inspecting .workspace-heading>span:last-child{display:none}.workspace.inspecting .workspace-views .seg{display:flex}.workspace.inspecting .workspace-views .seg button{padding-inline:8px}}

/* Compact CAD shell: reclaim chrome height, keep property text comfortably readable. */
@media(min-width:721px){
  .cfg.workspace{grid-template-rows:48px minmax(0,1fr) 56px;grid-template-columns:minmax(0,1fr) 370px}
  .workspace .workspace-viewer{grid-template-rows:32px minmax(0,1fr) 40px}
  .workspace .cfg-top{padding:0 16px}.workspace .cfg-foot{padding:6px 16px}
  .workspace .cfg-foot .btn{min-height:40px;padding:8px 16px}
}
.workspace-editor-inspector .feature-controls{padding:12px 14px;font-size:14px}
.workspace-editor-inspector .feature-controls h2{font-size:17px;margin:0 0 10px}
.workspace-editor-inspector .feature-controls .field{font-size:13px;margin:8px 0}
.workspace-editor-inspector .feature-controls .small{font-size:12px;line-height:1.45}
.workspace-editor-inspector .feature-controls input,.workspace-editor-inspector .feature-controls select{min-height:36px;padding:6px 8px;font-size:14px}
.workspace-editor-inspector .studio-inspector>nav{padding:0 6px;flex-wrap:nowrap}
.workspace-editor-inspector .studio-inspector>nav .btn{font-size:12px;padding:8px 9px;min-height:40px}
.workspace-inspector>.step-intro{font-size:12px;padding:7px 14px}
.workspace .workspace-guide{padding:12px 14px}
.workspace-guide-toggle{font-size:12px;padding:7px 14px}
.workspace-editor-inspector .canvas-feature-tree{max-height:27%;padding:0 8px 4px}
.workspace-editor-inspector .feature-tree-heading{font-size:13px;min-height:36px}
.workspace-editor-inspector .canvas-feature-tree .tree-name{font-size:14px;font-weight:500}
.workspace-editor-inspector .canvas-feature-tree .tree-dimensions{font-size:13px}
.workspace-editor-inspector .canvas-feature-tree .feature-row{padding:3px 7px;min-height:40px}
.workspace-editor-inspector .canvas-feature-tree:has(.tree-empty){display:none}
.workspace-editor-inspector .canvas-options .btn{font-size:13px;padding:6px 8px}
.workspace-editor-inspector .selected-feature{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0!important;margin:10px 0 0!important}
.workspace-editor-inspector .selected-feature h3{font-size:15px!important;margin:0 0 8px!important}
.workspace-editor-inspector .selected-feature .canvas-properties .field{font-size:13px}
.workspace .workspace-axis{display:none}
@media(max-width:720px){
  .workspace-editor-inspector .studio-inspector>nav .btn{padding:8px 6px;font-size:12px;flex:1}
  .workspace-editor-inspector .feature-controls input,.workspace-editor-inspector .feature-controls select{font-size:16px;min-height:40px}
  .workspace-editor-inspector .canvas-feature-tree{max-height:28%}
}

.workspace-editor-inspector .feature-controls .cad-slider input[type=range]{min-height:22px;height:22px;padding:0}
.workspace .cfg-foot{display:flex;align-items:center;gap:8px;min-width:0;position:relative}
.workspace-history{display:flex;align-items:center;gap:4px;flex:none;min-width:0}
.workspace .cfg-foot .workspace-history .btn{min-height:34px;padding:4px 8px;font-size:12px}
.workspace .save-as{position:relative}
.save-as-pop{position:absolute;bottom:calc(100% + 8px);left:0;z-index:8;background:#fff;border:1px solid var(--line);border-radius:6px;padding:10px;display:grid;gap:8px;width:min(240px,72vw);box-shadow:0 10px 28px #1a334433}
.save-as-pop input{width:100%;min-height:36px;font-size:16px}
.save-as-pop .row{display:flex;justify-content:flex-end}
.share-pop{width:min(340px,78vw)}
.share-pop p{margin:0}
.share-pop input{font-size:13px}
@media(max-width:720px){
  .workspace .cfg-foot{flex-wrap:wrap;row-gap:6px}
  .workspace-history{flex:1 0 100%;order:-1}
  .workspace .save-control{max-width:none;flex:1;min-width:0}
  .workspace .cfg-foot .btn.primary{margin-left:auto}
  .workspace .save-as{position:static}
  .save-as-pop{left:12px;right:12px;width:auto}
}
.workspace-solid{height:100%;width:100%;min-height:0}
.solid-view{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden;background:#eaf0f3}
.solid-tools{display:flex;gap:6px;padding:8px 12px;background:#f8fafb;border-bottom:1px solid var(--line)}
.solid-tools .btn{min-height:40px;padding:6px 12px;font-size:13px}
.solid-tools .btn[aria-pressed=true]{background:#e0edf5;color:#1a5572}
.solid-stage{min-height:0;min-width:0;overflow:hidden;position:relative}
.solid-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}
/* Checked-solid build in progress: sits over the live model, never blocks dragging. */
.solid-building{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;gap:8px;padding:6px 11px 6px 9px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid #c9d3d9;box-shadow:0 1px 3px rgba(20,32,40,.12);font:600 11px/1.2 inherit;color:var(--ink);font-variant-numeric:tabular-nums;pointer-events:none;animation:gate-in .2s ease-out}
.solid-building[hidden]{display:none}
.solid-spinner{width:11px;height:11px;border-radius:50%;border:2px solid var(--blue);border-right-color:transparent;animation:gate-spin .7s linear infinite;flex:none}
@media(prefers-reduced-motion:reduce){.solid-spinner{animation-duration:2s}.solid-building{animation:none}}
.solid-status{font-size:12px;margin:0;padding:8px 12px;background:#f8fafb;font-variant-numeric:tabular-nums}
.solid-details{font-size:12px;padding:8px 12px;background:#fff;max-height:30vh;overflow:auto;border-top:1px solid var(--line)}
.solid-details summary{cursor:pointer}.solid-details p{margin:8px 0;line-height:1.4}
@media(max-width:720px){.workspace-views .seg button{padding-inline:7px;font-size:10px}.solid-status{font-size:11px}.solid-tools .btn{padding-inline:10px}}
.boundary-detail,.patch-detail{margin-block:16px;padding-top:14px;border-top:1px solid var(--line)}
.boundary-detail h3,.patch-detail h3{margin:0 0 8px;font-size:15px}
.boundary-detail .canvas-options{display:grid;grid-template-columns:1fr;gap:6px}
.boundary-detail .canvas-options .btn{text-align:left;min-height:40px}
.edge-advanced,.patch-schedule{margin:12px 0}
.edge-advanced summary,.patch-schedule summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:600}
.edge-existing{padding-left:18px;font-size:12px;line-height:1.6}
.detail-review{font-size:12px;color:var(--muted);line-height:1.5}
.ply-drop-diagram{padding:10px 0;display:grid;gap:3px;overflow:hidden}
.ply-drop-layer{min-height:24px;padding:4px 6px;background:#dbe8ee;color:#203f51;font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums;text-align:center}
.ply-drop-layer.cover{background:#415665;color:white}.ply-drop-layer.veil{background:#f3e8ba;color:#4e441e}
.feature-types{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.workspace-editor-inspector .patch-detail .consent{align-items:center;min-height:40px;margin:6px 0;font-size:13px;cursor:pointer}
.workspace-editor-inspector .patch-detail .consent input{width:18px;height:18px;min-height:0;flex:none;padding:0;margin:0}
.patch-detail .detail-review{margin-top:8px}
/* Part check and pricing gate: one row per real check (/api/panel, then /api/price). */
.quote-gate{grid-column:1/-1;margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:white;font:11px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace}
.gate-rows{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.gate-row{display:grid;grid-template-columns:14px 74px minmax(0,1fr);align-items:center;gap:8px;position:relative}
.gate-label{text-transform:uppercase;letter-spacing:.06em;font-size:9.5px;color:var(--muted)}
.gate-text{color:#26323a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gate-row.wait .gate-text{color:#9aa6ae}
.gate-mark{width:12px;height:12px;border-radius:50%;border:1.5px solid #c3ccd2;box-sizing:border-box;position:relative}
.gate-row.ok .gate-mark{background:#2f7d5b;border-color:#2f7d5b}
.gate-row.ok .gate-mark::after{content:"";position:absolute;left:3px;top:1px;width:3px;height:6px;border:solid white;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.gate-row.warn .gate-mark{background:#b07a1c;border-color:#b07a1c}
.gate-row.warn .gate-mark::after{content:"!";position:absolute;inset:0;color:white;font:700 8px/9px system-ui;text-align:center}
.gate-row.fail .gate-mark{background:#b3261e;border-color:#b3261e}
.gate-row.fail .gate-text{color:#b3261e}
.gate-row.run .gate-mark{border-color:var(--blue);border-right-color:transparent;animation:gate-spin .7s linear infinite}
.gate-row.run::after{content:"";position:absolute;left:96px;right:0;bottom:-2px;height:1px;background:linear-gradient(90deg,transparent,var(--blue),transparent);background-size:40% 100%;background-repeat:no-repeat;animation:gate-scan 1s ease-in-out infinite}
.gate-row.fresh:is(.ok,.warn,.fail) .gate-mark{animation:gate-tick .28s cubic-bezier(.3,1.4,.5,1) calc(var(--i)*110ms) both}
.gate-row.fresh:is(.ok,.warn,.fail) .gate-text{animation:gate-in .3s ease-out calc(var(--i)*110ms) both}
.gate-foot{margin:8px 0 0;padding-top:7px;border-top:1px dashed var(--line);color:#7b8890;font-size:10px}
@keyframes gate-spin{to{transform:rotate(360deg)}}
@keyframes gate-scan{from{background-position:-40% 0}to{background-position:140% 0}}
@keyframes gate-tick{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
@keyframes gate-in{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:none}}
.price-tips ul{margin:6px 0 0;padding-left:16px}.price-tips li{margin:4px 0;line-height:1.45}
/* Instant price chip in the canvas heading before checkout. */
.estimate-pill{display:inline-flex;align-items:center;gap:8px;flex:none;border:1px solid #c9d3d9;background:white;border-radius:999px;padding:4px 6px 4px 10px;font:600 11px/1.2 inherit;color:var(--ink);cursor:pointer;font-variant-numeric:tabular-nums}
.estimate-pill:hover{border-color:var(--blue)}
.estimate-pill.fail{border-color:#e3b3ae;color:#b3261e}
.pill-dots{display:inline-flex;gap:3px}
.pill-dots i{width:6px;height:6px;border-radius:50%;background:#d3dadf}
.pill-dots i.ok{background:#2f7d5b}.pill-dots i.warn{background:#b07a1c}.pill-dots i.fail{background:#b3261e}
.pill-dots i.run{background:var(--blue);animation:gate-pulse .8s ease-in-out infinite alternate}
.pill-go{font-weight:500;color:white;background:var(--blue);border-radius:999px;padding:3px 8px;font-size:10px}
@keyframes gate-pulse{from{opacity:.35}to{opacity:1}}
@media(max-width:720px){.pill-go{display:none}.gate-row{grid-template-columns:14px 64px minmax(0,1fr)}.gate-row.run::after{left:86px}}
@media(prefers-reduced-motion:reduce){.gate-row .gate-mark,.gate-row .gate-text,.gate-row.run::after,.pill-dots i{animation:none!important}}
.workspace-rail:has(.quote-gate){max-height:62%}
.test-card{border-top:1px solid var(--line);margin:18px 0 6px;padding-top:14px}.test-card h3{margin:0 0 10px}.test-seg{width:100%}.test-seg button{flex:1;padding:8px 6px;font-size:12px}.test-seg button:disabled{color:#a7adb2;cursor:not-allowed}
.sheet-figure{margin:12px 0 4px}.sheet-svg{display:block;width:100%;height:auto;border-radius:4px}.sheet-blank{fill:#d9dee1}.sheet-usable{fill:#eef1f3;stroke:#9aa4ab;stroke-width:4;stroke-dasharray:18 12}.sheet-part{fill:#3d4348;stroke:#1c2023;stroke-width:3;stroke-linejoin:round}.sheet-test{fill:#477d79;stroke:#2c5552;stroke-width:3}.sheet-test.rest{fill:#6f9e99}
.sheet-figure figcaption{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin-top:6px;font-variant-numeric:tabular-nums}.sheet-legend{display:flex;align-items:center;gap:5px}.sheet-legend i{width:9px;height:9px;border-radius:2px;display:inline-block;margin-left:6px}.k-part{background:#3d4348}.k-test{background:#477d79}.k-free{background:#eef1f3;border:1px dashed #9aa4ab}
.test-card .fit-more{margin:2px 0 0;min-height:32px;padding:6px 0}.test-fields .field{margin:10px 0 4px}.test-result{font-variant-numeric:tabular-nums;margin:6px 0}
/* Template draft: save prompt when leaving with changes, and the note after Save. */
.save-draft{width:min(500px,calc(100% - 28px))}
.save-draft footer .btn{white-space:nowrap}
.save-draft h2{margin:0 0 8px;font-size:20px}
.save-draft p{margin:0;line-height:1.5}
.save-draft .save-draft-name{display:grid;gap:6px;margin-top:18px;font-size:12px}
.save-draft .save-draft-name input{min-height:40px;font-size:16px;padding:8px 10px;border:1px solid #c9d3d9;border-radius:6px}
.save-draft footer .grow{flex:1}
.save-note{font-size:11px;color:#2f7d5b;font-weight:600;align-self:center;white-space:nowrap}
@media(max-width:720px){.save-draft footer{flex-wrap:wrap}.save-draft footer .grow{display:none}.save-draft footer .btn{flex:1 1 auto}}

/* ---------- November 4: Design / Laminate / Options / Order ----------
   One navigation (the step tabs), one scrolling side column, price and next step in the footer. */
/* Step tabs: always labelled, always clickable. */
.workspace .cfg-top{gap:16px}
.workspace .cfg-top .stepper{gap:2px;align-self:stretch;align-items:stretch;justify-content:center}
.workspace .cfg-top .stepper li{display:flex}
.workspace .cfg-top .stepper button{height:100%;min-height:0;padding:0 14px;gap:8px;font-size:13px;color:#c3c9ce;border-bottom:3px solid transparent;border-top:3px solid transparent;border-radius:0;cursor:pointer;transition:background-color .15s,color .15s}
.workspace .cfg-top .stepper button:hover{color:white;background:#ffffff14}
.workspace .cfg-top .stepper .current button{color:white;border-bottom-color:var(--brand)}
.workspace .cfg-top .stepper .lbl{display:inline}
.workspace .cfg-top .stepper .dot{width:20px;height:20px;font-size:11px;font-variant-numeric:tabular-nums}
.workspace .cfg-top .stepper .attention .dot{background:#b07a1c;border-color:#b07a1c;color:white;font-weight:700}
.workspace-parts{font-size:12px;color:#d4d6d8;white-space:nowrap}
/* Canvas: name and spec summary, then the view switch, then the part. */
.workspace .workspace-viewer{grid-template-rows:44px 42px minmax(0,1fr)}
.workspace-views{border-top:0;border-bottom:1px solid var(--line)}
.workspace-heading{position:relative;gap:10px}
.workspace-heading h1{flex:0 1 auto;max-width:36%}
.spec-chips{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow:hidden}
.spec-chip{flex:none;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #d5dce1;border-radius:999px;background:white;padding:4px 10px;font:inherit;font-size:11px;color:#3d4a52;font-variant-numeric:tabular-nums;cursor:pointer;transition:border-color .15s,color .15s}
.spec-chip:hover{border-color:var(--blue);color:var(--ink)}
.workspace-heading .workspace-history .btn{min-height:30px;padding:3px 10px;font-size:11px}
.workspace-heading .save-as-pop{bottom:auto;top:calc(100% + 8px);left:auto;right:0}
/* Side panel: a single scroll column. */
.workspace-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;display:flex;flex-direction:column}
.workspace .workspace-scroll>.workspace-guide{flex:none;max-height:none;overflow:visible;border-bottom:0;padding:16px 18px 8px}
.workspace .workspace-scroll>.workspace-after{padding-top:0}
.workspace-scroll>.workspace-editor-inspector{flex:none;overflow:visible}
.workspace-scroll>.workspace-editor-inspector>.studio-inspector,.workspace-scroll>.workspace-editor-inspector>.studio-inspector:has(.feature-controls){flex:none;height:auto;overflow:visible}
.workspace-scroll .studio-inspector>nav{position:sticky;top:0;z-index:3;border-top:1px solid var(--line)}
.workspace-scroll .studio-inspector>.feature-controls{flex:none;overflow:visible}
.workspace-scroll .workspace-editor-inspector .canvas-feature-tree{max-height:none;overflow:visible}
.workspace-scroll>.workspace-rail,.workspace-scroll>.workspace-rail:has(.quote-gate){flex:none;max-height:none;overflow:visible}
.workspace-guide .part-name{margin:0 0 8px}
.workspace-advanced{display:flex;align-items:center;justify-content:space-between;flex:none;width:100%;min-height:44px;padding:10px 18px;background:#f8fafb;color:var(--ink);border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;font-weight:600;text-align:left;cursor:pointer}
.workspace-advanced::after{content:'+';font-size:17px;font-weight:400;color:var(--blue)}
.workspace-advanced[aria-expanded=true]::after{content:'−'}
.surfaces-card{border-top:1px solid var(--line);margin-top:16px;padding-top:4px}
.surfaces-card h3,.order-rail h3{font-size:14px;margin:12px 0 4px}
.surfaces-card .field{margin:10px 0}
/* Order: quantity, then the price for it. */
.workspace-rail .rail.order-rail{display:block;border-top:1px solid var(--line);padding:6px 18px 16px;background:#fafbfb}
.order-rail .qty{gap:0;margin:8px 0 14px}
.order-rail .qty button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #c3cbd0;background:white;font-size:20px;line-height:1;cursor:pointer}
.order-rail .qty button:first-child{border-radius:6px 0 0 6px}.order-rail .qty button:last-child{border-radius:0 6px 6px 0}
.order-rail .qty button:disabled{color:#b3bcc2;cursor:default}
.order-rail .qty input{width:76px;height:44px;border-radius:0;border-left:0;border-right:0;text-align:center;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;padding:0 6px}
.order-rail .each{font-size:30px}
.order-rail .each small{display:block;font-size:12px;margin-top:2px}
.order-rail .ladder{margin:12px 0 4px;border-top:1px solid var(--line)}
.order-rail .ladder button{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:baseline;padding:9px 8px;cursor:pointer}
.order-rail .ladder small{grid-column:1/-1;font-size:11px;color:var(--muted)}
.order-rail .ladder li.on button{background:#fff3e9;color:var(--ink);box-shadow:inset 3px 0 0 var(--brand)}
.order-rail .gate-details{margin-top:12px;font-size:12px}
.order-rail .gate-details .quote-gate{margin:8px 0 0}
.order-next{margin:14px 0 0}
/* Footer: back, the price, the next step. On Order: the drawing check beside the buttons it unlocks. */
.foot-history{display:none}
.workspace .cfg-foot .estimate-pill{padding:6px 7px 6px 12px;gap:9px;min-height:40px}
.pill-price{font-size:15px;font-weight:650}
.pill-qty{font-weight:400;color:var(--muted);font-size:11px}
.cfg-foot .drawing-consent{margin:0;padding:6px 12px;min-height:40px;align-items:center;gap:9px;font-size:12px;line-height:1.3;cursor:pointer;transition:box-shadow .15s,border-color .15s}
.cfg-foot .drawing-consent input{margin:0}
.cfg-foot .drawing-consent small{color:var(--brand-text);font-weight:600}
.cfg-foot .drawing-consent.nudge{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 3px #d86a3233}
/* Cart and send form: where the order stands. */
.order-trail{display:flex;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:0 auto;padding:16px 32px 0;max-width:1320px;font-size:12px;color:var(--muted)}
.order-trail li{display:flex;align-items:center;gap:8px}
.order-trail .dot{width:20px;height:20px;font-size:11px;border-color:#b8c0c6}
.order-trail .current{color:var(--ink);font-weight:600}
.order-trail .current .dot{background:var(--brand);border-color:var(--brand);color:#171717}
.order-trail .done .dot{background:#e3f1ea;border-color:#9cc7b2;color:var(--green)}
.modal .order-trail{padding:0 0 14px;margin:0}
@media(max-width:1050px){.workspace-parts{display:none}.workspace .cfg-top .stepper button{padding:0 10px}}
@media(max-width:720px){
  .workspace .cfg-top .stepper{gap:0;justify-content:space-between}
  .workspace .cfg-top .stepper button{padding:0 7px;gap:5px;font-size:12px}
  .workspace .cfg-top .stepper .dot{width:16px;height:16px;font-size:9px}
  .workspace .cfg-top .stepper .dot svg{width:10px;height:10px}
  .workspace .workspace-viewer{grid-template-rows:auto 44px minmax(0,1fr)}
  .workspace-heading{flex-wrap:wrap;padding:6px 14px;row-gap:4px}
  .workspace-heading h1{max-width:100%;flex:1 0 100%}
  .workspace-heading .workspace-history{display:none}
  .spec-chips{overflow-x:auto;scrollbar-width:none}
  .workspace-scroll>.workspace-guide{padding:14px 16px 8px}
  .workspace-advanced{padding:10px 16px}
  .foot-history{display:flex;flex:1 0 100%;order:-1;min-width:0}
  .foot-history .workspace-history{flex:1;order:0}
  .workspace .cfg-foot .estimate-pill{min-width:0;flex:0 1 auto}
  .workspace .cfg-foot .estimate-pill .pill-dots{display:none}
  .cfg-foot .drawing-consent{flex:1 0 100%;order:-1}
  .workspace[data-step="3"] .foot-history{display:none}
  .order-trail{padding:14px 16px 0}
}
@media(max-width:380px){.workspace .cfg-top .stepper .dot{display:none}.workspace .cfg-top .stepper .attention .dot{display:grid}}
/* Laminate presets: name and thickness on one line so the surface finish stays in view. */
.workspace-scroll .workspace-guide .options{gap:6px}
.workspace-scroll .workspace-guide .option{padding:9px 12px;align-items:center}
.workspace-scroll .workspace-guide .opt-main strong{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.workspace-scroll .workspace-guide .opt-main em{display:inline;margin:0;font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.workspace-scroll .workspace-guide .opt-main small{margin-top:2px;line-height:1.4}
.workspace-scroll .workspace-guide .option .selected-check{display:none}
.workspace-guide .import-settled{border-top:0;margin:0 0 6px;padding-top:0}
.workspace-guide .import-settled>summary{padding:4px 0 10px;color:var(--green);font-weight:500}
/* Status dots are dots: the page-wide .warn / .fail message styles must not reach them. */
.estimate-pill .pill-dots i{display:block;flex:none;width:6px;height:6px;min-width:0;padding:0;margin:0;border:0;border-radius:50%;font-size:0}

/* ---------- November 4 (evening): steps in the side panel, the site bar on top ---------- */
.workspace .cfg-top{justify-content:flex-start;gap:28px}
.workspace-site{display:flex;gap:22px;flex:1;font-size:13px}
.workspace-site a,.workspace .cfg-top .cart-link{color:#d4d6d8;white-space:nowrap}
.workspace-site a:hover,.workspace .cfg-top .cart-link:hover{color:white;text-decoration:none}
.workspace .cfg-top .cart-link{display:flex;align-items:center;gap:7px;font-size:13px}
.workspace .cfg-top .cart-link b{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#ffffff26;display:grid;place-items:center;font-size:11px}
/* Step tabs: the side panel's own top bar. */
.workspace-steps{flex:none;border-bottom:1px solid var(--line);background:#f8fafb}
.workspace-steps .stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0;padding:0;list-style:none}
.workspace-steps .stepper li{display:flex;min-width:0}
.workspace-steps .stepper button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 6px;background:none;color:#59656d;font-size:13px;border-bottom:3px solid transparent;border-radius:0;cursor:pointer;transition:background-color .15s,color .15s}
.workspace-steps .stepper button:hover{color:var(--ink);background:#eef2f4}
.workspace-steps .stepper .current button{color:var(--ink);font-weight:600;border-bottom-color:var(--brand);background:white}
.workspace-steps .stepper .lbl{display:inline;white-space:nowrap}
.workspace-steps .stepper .dot{width:19px;height:19px;font-size:10px;border-color:#aab4bb;color:#59656d;font-variant-numeric:tabular-nums}
.workspace-steps .stepper .current .dot{background:var(--brand);border-color:var(--brand);color:#171717}
.workspace-steps .stepper .done .dot{background:#e3f1ea;border-color:#9cc7b2;color:var(--green)}
.workspace-steps .stepper .attention .dot{background:#b07a1c;border-color:#b07a1c;color:white;font-weight:700}
/* Canvas: one header row (name, summary, view, file actions). */
.workspace .workspace-viewer{grid-template-rows:48px minmax(0,1fr)}
.workspace-heading .workspace-views{display:flex;padding:0;border:0;background:none;flex:none}
.workspace-heading .workspace-views .seg button{min-height:30px;padding:4px 10px}
@media(max-width:1280px){.workspace-heading .spec-chip:nth-child(n+3){display:none}}
@media(max-width:1050px){.workspace-heading .spec-chips{display:none}}
@media(max-width:720px){
  .workspace .cfg-top{gap:14px}.workspace-site{gap:14px;font-size:12px}.workspace-site a:last-child{display:none}.workspace .cfg-top .cart-link>span{display:none}
  .workspace-steps .stepper button{flex-direction:column;gap:2px;min-height:48px;font-size:11px;padding:4px 2px}
  .workspace-steps .stepper .dot{width:16px;height:16px;font-size:9px}
  .workspace .workspace-viewer{grid-template-rows:auto minmax(0,1fr)}
  .workspace-heading{flex-wrap:wrap;padding:6px 12px;row-gap:6px}
  .workspace-heading h1{flex:1 1 auto;max-width:none}
  .workspace-heading .workspace-history{display:flex;order:2}
  .workspace-heading .workspace-views{order:3;flex:1 0 100%}
  .workspace-heading .workspace-views .seg{width:100%}.workspace-heading .workspace-views .seg button{flex:1}
  .workspace-heading .spec-chips{display:none}
}
.workspace-steps .stepper .lbl,.workspace-steps .stepper .current .lbl{color:inherit}
@media(max-width:720px){
  .cfg.workspace,.cfg.workspace.drawing-expanded{grid-template-rows:56px auto minmax(0,1fr) auto}
  .workspace-mobile{flex-direction:column;padding:0;gap:0}
  .workspace-mobile .workspace-steps{border-bottom:1px solid var(--line)}
  .workspace-panes{display:flex;gap:8px;padding:0 12px}
  .workspace-panes button{flex:1;min-height:38px;font-size:12px;background:transparent;border-bottom:2px solid transparent;color:var(--muted)}
  .workspace-panes button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--brand);font-weight:600}
}

/* Keep laminate inspection inside the canvas and step navigation under the controls. */
@media(min-width:721px){
  .cfg.workspace:not([data-step="3"]){grid-template-rows:48px minmax(0,1fr) auto}
  .workspace:not([data-step="3"]) .workspace-viewer{grid-row:2 / 4}
  .workspace:not([data-step="3"]) .cfg-foot{grid-column:2;border-left:1px solid var(--line);padding:10px 14px}
}
.workspace-rail>.estimate-pill{margin:10px 14px;max-width:calc(100% - 28px)}

/* One price location across all four steps, outside the scrolling controls. */
.workspace-price{grid-column:2;grid-row:4;display:flex;align-items:center;min-width:0;height:62px;padding:8px 14px;border-top:1px solid var(--line);border-left:1px solid var(--line);background:#fff;font-size:12px;z-index:2}
.workspace-price .estimate-pill{width:100%;min-width:0;margin:0;justify-content:flex-start;min-height:42px}
.workspace-price .pill-go{margin-left:auto}
@media(min-width:721px){
  .cfg.workspace,.cfg.workspace:not([data-step="3"]){grid-template-rows:48px minmax(0,1fr) auto 62px}
  .workspace .workspace-viewer,.workspace:not([data-step="3"]) .workspace-viewer{grid-row:2 / 5}
  .workspace .cfg-foot{grid-column:2;grid-row:3;flex-wrap:wrap;border-left:1px solid var(--line);padding:10px 14px}
  .workspace .cfg-foot .drawing-consent{flex:1 0 100%;order:-1}
  .workspace.drawing-expanded .cfg-foot,.workspace.drawing-expanded .workspace-price{grid-column:1}
}
@media(max-width:720px){
  .cfg.workspace,.cfg.workspace.drawing-expanded{grid-template-rows:56px auto minmax(0,1fr) auto 62px}
  .workspace-price{grid-column:1;grid-row:5;border-left:0;padding:8px 12px}
}
