/* Beta readiness uses approved assets only; dashed rectangles are not geometry. */
.beta-workspace { align-items:start; padding-top:18px; }
.beta-workspace .left-column { display:flex; gap:24px; }
.beta-workspace .title-block h1 { margin-bottom:18px; }
.beta-intro { color:var(--muted); font-size:12px; line-height:1.6; max-width:220px; margin:0 0 20px; }
.beta-stage { justify-content:flex-start; align-self:start; gap:14px; }
.beta-stage-surface { width:100%; min-height:470px; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:6px; }
.beta-asset-stack { display:flex; flex-direction:column; align-items:center; width:min(100%,285px); gap:12px; transform:scale(var(--asset-zoom,1)); transition:transform 260ms cubic-bezier(.2,.7,.2,1); transform-origin:center; }
.beta-empty-slot { width:100%; min-height:104px; padding:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px dashed var(--line); border-radius:6px; color:var(--muted); font-size:12px; text-align:center; }
.beta-empty-slot .small-label { color:var(--red); }
.beta-part-art { display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; margin:0; }
.beta-part-art img { display:block; width:auto; max-width:100%; max-height:160px; object-fit:contain; }
.beta-part-art figcaption { font-size:10px; color:var(--red); }
.beta-part-art figcaption span { margin-left:8px; color:var(--muted); }
.beta-surface-message { width:min(100%,300px); text-align:center; }
.beta-surface-message > p { color:var(--muted); font-size:12px; line-height:1.6; margin:14px 0; }
.beta-surface-message .beta-empty-slot { min-height:190px; }
.beta-preview-controls,.beta-build-tabs { display:flex; border:1px solid var(--line); border-radius:6px; padding:4px; }
.beta-preview-controls button,.beta-build-tabs button { min-height:44px; flex:1; background:transparent; border:0; border-radius:4px; color:var(--red); font-size:11px; padding:8px; }
.beta-preview-controls .active,.beta-build-tabs .active { background:var(--red); color:var(--cream); }
.beta-build-tabs { margin-bottom:24px; }
.beta-editor .editor-heading { padding-bottom:0; border:0; margin-bottom:20px; }
.beta-editor .field-label > span { color:var(--muted); letter-spacing:0; text-transform:none; font-weight:400; }
.beta-status-list { margin:16px 0 0; border-top:1px solid var(--line); padding-top:8px; }
.beta-status-list > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; font-size:11px; line-height:1.5; }
.beta-status-list dt { color:var(--red); flex-shrink:0; }
.beta-status-list dd { margin:0; color:var(--muted); text-align:right; }
.beta-editor-section { margin-top:24px; }
.beta-note { color:var(--muted); font-size:11px; line-height:1.6; margin:10px 0; }
.beta-category-status { color:var(--muted); font-size:10px; }
.beta-edit-tools { display:flex; gap:8px; margin:0 0 16px; }
.beta-edit-tools button { min-width:0; flex:1; padding:8px; min-height:44px; font-size:11px; }
.beta-starting-ideas { margin-top:auto; padding-top:20px; border-top:1px solid var(--line); }
.beta-shapes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.beta-shape { background:var(--wash); border:1px solid transparent; border-radius:6px; padding:12px; display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--red); font-size:11px; min-height:118px; }
.beta-shape.selected { border-color:var(--red); }
.beta-shape small { font-size:9px; color:var(--muted); }
.beta-shape img { width:100%; max-width:72px; height:50px; object-fit:contain; }
.beta-missing-thumb { width:50px; height:44px; border:1px dashed var(--line); border-radius:4px; }
.beta-summary h3 { font-size:13px; margin:18px 0 0; }
.beta-summary .beta-recipe > div { display:flex; justify-content:space-between; gap:12px; font-size:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.beta-recipe strong { font-weight:500; text-align:right; }
.beta-body-list > div { display:flex; align-items:center; gap:8px; font-size:11px; min-height:44px; border-bottom:1px solid var(--line); }
.beta-body-list span { flex:1; }
.beta-body-list button { width:32px; height:44px; border:0; background:none; color:var(--red); }
.beta-colour-references { display:flex; flex-wrap:wrap; gap:10px; }
.beta-colour-references > span { display:flex; align-items:center; gap:6px; font-size:11px; }
.beta-colour-references i { width:24px; height:24px; border-radius:50%; border:1px solid var(--line); }
.beta-data-overview { border-top:1px solid var(--line); margin-top:4px; }
.beta-data-overview > summary { cursor:pointer; font-size:11px; padding:14px 0; }
.beta-price-rows > p { display:flex; justify-content:space-between; gap:12px; font-size:11px; }
.beta-price-rows strong { font-weight:500; white-space:nowrap; }
.beta-framing-controls { display:flex; align-items:center; justify-content:center; gap:10px; }
.beta-model { width:100%; height:510px; position:relative; -webkit-mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 96%,transparent); mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 96%,transparent); }
.beta-model > canvas { display:block; width:100%; height:100%; cursor:grab; }
.beta-model-loading { position:absolute; top:45%; left:50%; transform:translate(-50%,-50%); font-size:12px; }
.beta-free-rotation { display:none; }
.beta-load-error { color:var(--red); font-size:12px; padding:12px; border:1px solid var(--line); }
.beta-workspace .workflow-actions { margin-top:0; }
.beta-workspace .workflow-column { gap:18px; }
@media (min-width:961px) and (max-height:950px) {
  .beta-workspace { grid-template-columns:minmax(220px,.95fr) minmax(300px,1.35fr) minmax(294px,1fr); }
  .beta-stage-surface { min-height:430px; }
  .beta-model { height:480px; }
}
@media (max-width:960px) and (min-width:721px) {
  .beta-workspace { grid-template-columns:minmax(180px,.8fr) minmax(230px,1.2fr) minmax(220px,1fr); gap:18px; }
  .beta-stage-surface { min-height:400px; }
  .beta-model { height:430px; }
}
@media (max-width:720px) {
  .beta-workspace { display:grid; grid-template-columns:1fr; gap:22px; padding-top:24px; }
  .beta-workspace .left-column { display:contents; }
  .beta-workspace .workflow-column { width:100%; grid-row:4; }
  .beta-workspace .title-block { grid-row:1; }
  .beta-build .beta-stage { grid-row:2; }
  .beta-build .beta-composition { grid-row:3; }
  .beta-build .beta-starting-ideas { grid-row:5; }
  .beta-review .beta-preview-controls { grid-row:2; }
  .beta-review .beta-stage { grid-row:3; }
  .beta-stage { width:100%; min-height:0; padding-bottom:0; }
  .beta-stage-surface { min-height:330px; }
  .beta-asset-stack { max-width:220px; gap:8px; }
  .beta-empty-slot { min-height:82px; }
  .beta-editor { margin-top:0; padding-top:22px; }
  .beta-composition { display:block; }
  .beta-model { height:360px; }
  .beta-free-rotation { display:inline-block; }
  .beta-part-art img { max-height:110px; }
  .beta-note { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { .beta-asset-stack { transition:none; } }

.beta-starting-ideas > .secondary { width:100%; margin:8px 0; }

.beta-fixed-colour { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.beta-fixed-colour > p { font-size:12px; margin:8px 0; line-height:1.5; }
.beta-fixed-colour .beta-reference-name { color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.beta-shape img { max-width:110px; height:62px; }
.beta-shape { min-height:132px; }
.beta-part-art { animation:beta-part-enter 420ms cubic-bezier(.4,0,.2,1) both; }
@keyframes beta-part-enter { from { opacity:0; transform:translateY(7px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (prefers-reduced-motion:reduce) { .beta-part-art { animation:none; } }

.beta-body-categories { margin:0 0 24px; }
.beta-body-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.beta-body-category { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; background:var(--wash); border:1px solid transparent; border-radius:6px; min-height:124px; padding:12px 6px; color:var(--red); }
.beta-body-category.selected { border-color:var(--red); background:transparent; }
.beta-body-category img { width:100%; max-width:83px; height:40px; object-fit:contain; }
.beta-body-category > span { font-size:13px; font-weight:600; }
.beta-body-category > small { font-size:10px; color:var(--muted); white-space:nowrap; }

.beta-fixed-palette { display:flex; gap:22px; margin:14px 0 2px; }
.beta-colour-item { display:flex; flex-direction:column; align-items:center; gap:8px; font-size:11px; color:var(--muted); }
.beta-colour-item .swatch { width:37px; height:37px; max-width:37px; }
.beta-colour-item span.swatch { cursor:default; display:block; }
.beta-recipe strong small { display:block; color:var(--muted); font-size:10px; font-weight:400; margin-top:5px; }
.beta-part-measure { width:min(100%,300px); text-align:center; display:flex; flex-direction:column; gap:16px; }
.beta-part-measure > div { display:flex; flex-direction:column; align-items:center; gap:12px; }
.beta-part-measure strong { font-size:20px; font-weight:500; }
.beta-part-measure > div > span { font-size:11px; color:var(--muted); }
.beta-asset-stack .beta-proportional-art img { width:var(--part-width); max-width:100%; height:auto; max-height:none; }

/* One connected 2D assembly. Contact offsets are SVG presentation metadata. */
.beta-stage-surface.beta-stack-surface { height:470px; min-height:0; }
.beta-stack-motion { display:flex; justify-content:center; align-items:center; width:100%; }
.beta-connected-stack { gap:0; flex-shrink:0; }
.beta-connected-stack .beta-stack-piece { position:relative; gap:0; margin:var(--contact-overlap) 0 0; animation:none; pointer-events:none; }
.beta-stack-piece img { position:relative; z-index:var(--piece-z); width:var(--part-width); max-width:100%; height:auto; max-height:none; }
.beta-piece-select { position:absolute; left:50%; top:0; transform:translateX(-50%); width:var(--part-width); height:100%; padding:0; border:0; background:transparent; z-index:calc(var(--piece-z) + 1); pointer-events:auto; cursor:pointer; }
.beta-piece-select:focus-visible { outline:1px solid var(--red); outline-offset:3px; border-radius:3px; }
.beta-piece-tools { position:absolute; inset:0; z-index:300; pointer-events:none; opacity:0; transition:opacity 160ms ease; }
.beta-stack-piece.is-selected .beta-piece-tools,.beta-stack-piece:hover .beta-piece-tools,.beta-stack-piece:focus-within .beta-piece-tools { opacity:1; }
.beta-stack-piece.is-selected .beta-piece-action,.beta-stack-piece:hover .beta-piece-action,.beta-stack-piece:focus-within .beta-piece-action { pointer-events:auto; }
.beta-piece-action { position:absolute; display:grid; place-items:center; width:28px; height:28px; padding:0; border:1px solid var(--red); border-radius:50%; color:var(--red); background:var(--cream); pointer-events:none; cursor:pointer; }
.beta-piece-action .ui-icon { width:12px; height:12px; }
.beta-piece-action:disabled { pointer-events:none; opacity:.35; }
/* Keep the remove button clear of the total-height ruler and its tick marks. */
.beta-piece-remove { left:max(calc(50% - var(--part-width) / 2 - 36px), 2px); top:50%; transform:translateY(-50%); }
.beta-ghost-base { flex:none; display:grid; place-items:center; width:var(--ghost-width); aspect-ratio:var(--ghost-ratio); padding:4px; margin:0 auto; border:1px dashed var(--red); background:transparent; color:var(--red); font-size:11px; cursor:pointer; }
.beta-ghost-base:focus-visible { outline:2px solid var(--red); outline-offset:3px; }
.beta-category-placeholder { width:42px; height:20px; border:1px dashed var(--line); border-radius:3px; }
.beta-remove-category { display:inline-flex; align-items:center; gap:5px; color:var(--red); margin-left:10px; }
.beta-remove-category .ui-icon { width:12px; height:12px; }
.beta-insert-above,.beta-insert-below { right:calc(50% - var(--part-width) / 2 - 36px); }
.beta-insert-above { top:-14px; }
.beta-insert-below { bottom:-14px; }
.beta-compact-piece .beta-insert-above { top:-27px; }
.beta-compact-piece .beta-insert-below { bottom:-27px; }
.beta-body-row.active { background:var(--wash); }
.beta-body-list .beta-body-select { display:flex; flex:1; align-items:center; gap:10px; width:auto; min-width:0; height:auto; min-height:54px; padding:6px 0; text-align:left; }
.beta-body-select img { width:38px; height:30px; object-fit:contain; }
.beta-body-select span { display:flex; flex-direction:column; gap:3px; }
.beta-body-select small { font-size:9px; color:var(--muted); }
.beta-body-list .beta-body-remove,.beta-body-list .beta-body-add { flex:none; }
.beta-body-list .beta-add-body { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:44px; margin-top:10px; border:1px dashed var(--line); border-radius:6px; }
@keyframes beta-stack-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (min-width:961px) and (max-height:950px) { .beta-stage-surface.beta-stack-surface { height:430px; } }
@media (max-width:960px) and (min-width:721px) { .beta-stage-surface.beta-stack-surface { height:400px; } }
@media (max-width:720px) { .beta-stage-surface.beta-stack-surface { height:330px; } }
@media (prefers-reduced-motion:reduce) { .beta-stack-motion { animation:none; } .beta-piece-tools { transition:none; } }
