/* Beta application roles. Three Build/Finalize columns, one task per region. */
.beta-workspace { --beta-card-copy:12px; --beta-detail-copy:11px; }
.beta-workspace .beta-composition > .category { min-height:56px; padding:8px 12px; gap:12px; }
.beta-composition .category-name { font-size:13px; }
.beta-category-icon { width:58px; height:34px; flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }
.beta-category-icon img { display:block; width:auto; max-width:100%; height:auto; max-height:34px; object-fit:contain; }
.beta-category-body img { max-height:calc(34px / 3); width:auto; }
.beta-category-body img:only-child { max-height:24px; }
.beta-build .beta-edit-tools { display:flex; justify-content:space-between; gap:12px; margin:4px 0 0; }
.beta-edit-tools .text-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:6px 2px; flex:none; min-height:var(--ui-target); font-size:var(--ui-compact); }
.beta-edit-tools .text-btn[data-action="reset"] { color:var(--red); }
.beta-starting-ideas h3 { font-size:var(--ui-panel-title); }
.beta-starting-ideas .beta-note { font-size:var(--ui-compact); }
.beta-workspace .beta-editor { border-radius:var(--ui-panel-radius); padding:16px; }
.beta-editor .editor-heading h2 { font-size:var(--ui-section); line-height:1.2; }
.beta-workspace .beta-option-browser .beta-shape { flex-basis:max(90px,calc((100% - 24px)/3.35)); min-width:90px; min-height:138px; padding:10px 7px; gap:7px; }
.beta-workspace .beta-shape > span { font-size:var(--beta-card-copy); line-height:1.3; }
.beta-workspace .beta-shape small { font-size:10px; line-height:1.4; }
.beta-workspace .beta-shape img { max-width:84px; height:44px; }
.beta-fixed-colour { flex-wrap:wrap; gap:10px; }
.beta-colour-item { font-size:var(--ui-compact); }
.beta-fixed-palette .swatch { width:28px; height:28px; max-width:28px; }
.beta-body-category { border-radius:var(--ui-radius); min-height:80px; }
.beta-body-category > span { font-size:13px; }
.beta-body-category > small { font-size:var(--ui-fine); }
.beta-workspace .beta-preview-controls,.beta-build-tabs { border-radius:var(--ui-radius); }
.beta-preview-controls button,.beta-build-tabs button { border-radius:4px; font-size:var(--ui-action); min-height:var(--ui-target); }
.beta-summary .beta-recipe > div { font-size:var(--ui-body); line-height:1.5; }
.beta-recipe strong small { font-size:var(--ui-compact); line-height:1.5; }
.beta-price-rows > p { font-size:var(--ui-body); line-height:1.5; padding:6px 0; margin:0; }
.beta-price-rows small { font-size:var(--ui-compact); }
.beta-framing-controls { gap:4px; flex-wrap:wrap; }
.beta-framing-controls .icon-btn { position:relative; width:var(--ui-target); height:var(--ui-target); min-width:var(--ui-target); min-height:var(--ui-target); display:grid; place-items:center; padding:0; border:0; background:none; }
.beta-framing-controls .icon-btn::before { content:''; position:absolute; inset:6px; border:1px solid currentColor; border-radius:50%; pointer-events:none; }
.beta-framing-controls .text-btn { font-size:var(--ui-compact); padding-inline:6px; }
.beta-build-rulers { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:310; color:var(--red); font-family:inherit; }
.beta-build-rulers path { fill:none; stroke:currentColor; stroke-width:1; vector-effect:non-scaling-stroke; }
.beta-build-rulers text { fill:currentColor; stroke:none; font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.beta-build-rulers .beta-ruler-total { font-weight:600; }
/* Reserve ruler/label lanes before fitting the Build artwork. At intermediate
   three-column widths, the artwork must yield space instead of the ruler. */
.beta-build .beta-stack-motion { padding-inline:44px 72px; }
.beta-measure-scene .measure-heading { padding:0 14px 12px; }
.beta-scale-scene { font-family:inherit; font-variant-numeric:tabular-nums; }
.beta-scale-scene .scale-ruler { fill:none; stroke:var(--red); stroke-width:1; vector-effect:non-scaling-stroke; }
.beta-scale-scene .scale-label { fill:var(--red); font-weight:500; }
.beta-scale-scene .scale-height { font-weight:600; }
.beta-measure-scene > .beta-note { text-align:center; margin:8px 0 0; font-size:var(--ui-compact); }
.beta-checkout .checkout-progress { gap:12px; padding-block:12px; border-block:1px solid var(--line); font-size:var(--ui-compact); }
.beta-checkout .checkout-progress li { line-height:1.5; }
.beta-checkout .checkout-progress [aria-current="step"] { font-weight:600; }
.beta-checkout .order-item-list li { font-size:var(--ui-body); }
.beta-checkout .order-item-list li div span { font-size:var(--ui-compact); }
.beta-checkout .order-total { padding:14px 0; border-top:1px solid var(--line); }
.beta-checkout .beta-transfer-details { display:grid; grid-template-columns:max-content minmax(0, 1fr); gap:8px 18px; padding:14px 0; border-block:1px solid var(--line); }
.beta-checkout .beta-transfer-details dt { color:var(--muted); }
.beta-checkout .beta-transfer-details dd { margin:0; overflow-wrap:anywhere; }
.beta-checkout .proof-upload small { display:block; color:var(--muted); font-size:var(--ui-compact); margin-top:8px; }
.beta-checkout .order-confirm { min-height:var(--ui-target); width:100%; min-width:0; overflow-wrap:anywhere; cursor:pointer; }
.beta-checkout .order-confirm input[type="checkbox"] { display:inline-block; width:18px; height:18px; min-width:18px; max-width:18px; min-height:18px; flex:0 0 18px; margin:2px 0 0; padding:0; appearance:auto; accent-color:var(--red); border:0; background:none; }
.beta-checkout input[type="file"]::file-selector-button { min-height:var(--ui-target); border:1px solid var(--line); border-radius:var(--ui-radius); color:var(--red); background:var(--wash); padding:8px 12px; font:inherit; margin-right:10px; }

@media (min-width:721px) {
  .beta-build .beta-build-tabs { display:none; }
  .beta-build .beta-editor .editor-heading { padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--line); }
  .workspace.beta-preview { grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr); grid-template-rows:auto auto; gap:12px 32px; }
  .beta-preview > .left-column { grid-column:1; grid-row:1; flex-direction:row; justify-content:space-between; align-items:center; gap:20px; position:static; }
  #main .beta-preview .title-block h1 { font-size:clamp(30px,3vw,42px); margin:0; line-height:1.1; }
  .beta-preview .title-block h1 em { display:inline; }
  .beta-preview .title-block > .eyebrow { margin-bottom:6px; }
  .beta-preview .beta-intro { max-width:none; margin:8px 0 0; font-size:var(--ui-compact); }
  .beta-preview .title-block > .text-btn { display:inline-flex; align-items:center; gap:7px; margin-top:2px; }
  .beta-preview .beta-preview-controls { width:228px; flex:none; }
  .beta-preview > .beta-stage { grid-column:1; grid-row:2; width:100%; gap:6px; position:static; }
  .beta-preview .beta-stage-surface { min-height:0; height:clamp(300px,calc(100svh - 310px),650px); }
  .beta-preview .beta-model { height:100%; }
  .beta-preview .beta-stage-surface.beta-stack-surface { height:clamp(300px,calc(100svh - 310px),650px); }
  .beta-preview .beta-stage-surface:has(.beta-measure-scene) { height:auto; overflow:visible; }
  .beta-preview > .workflow-column { grid-column:2; grid-row:1 / 3; align-self:start; }
  .beta-preview .beta-measure-scene svg { display:block; width:100%; max-height:calc(100svh - 350px); min-height:250px; }
}
@media (min-width:721px) and (max-width:1000px) {
  .workspace.beta-preview { grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr); gap:12px 24px; }
  .beta-preview > .left-column { gap:12px; }
  .beta-preview .beta-preview-controls { width:196px; }
  .beta-preview .beta-preview-controls button { padding-inline:6px; font-size:var(--ui-compact); }
}
@media (max-width:720px) {
  .site-header { display:grid; grid-template-columns:104px minmax(0,1fr); gap:8px 12px; min-height:0; padding-bottom:8px; }
  .site-header .brand { grid-column:1; grid-row:1; width:104px; margin:0; }
  .site-header .brand-logo { width:104px; max-height:none; }
  .site-header .product-label { grid-column:2; grid-row:1; width:auto; padding:0; margin:0; font-size:8px; letter-spacing:.65px; line-height:1.6; text-align:right; }
  .site-header .product-label span { margin-inline:3px; }
  .site-header .steps { grid-column:1 / -1; grid-row:2; justify-content:space-between; width:100%; gap:8px; margin:0; padding-top:4px; border-top:1px solid var(--line); }
  .site-header .step { min-height:var(--ui-target); padding-block:4px; gap:6px; }
  .site-header .step-divider { width:12px; flex-shrink:0; }
  .beta-workspace.beta-build { padding-top:16px; }
  .beta-build .beta-stage-surface.beta-stack-surface { height:210px; }
  .beta-build .beta-starting-ideas { display:block; margin-top:4px; }
  .beta-build .beta-composition { display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .beta-build .beta-composition > .label-row { float:none; width:auto; padding:0; flex:none; }
  .beta-build .beta-edit-tools { margin:0; gap:10px; }
  .beta-build .beta-edit-tools .text-btn { flex:none; gap:5px; padding:6px 0; white-space:nowrap; }
  .beta-build-tabs button { display:flex; flex:1; flex-direction:column-reverse; align-items:center; justify-content:center; gap:6px; font-size:var(--ui-compact); min-height:58px; padding:6px; }
  .beta-build-tabs .beta-category-icon { width:44px; height:22px; }
  .beta-build-tabs .beta-category-icon img { max-height:22px; }
  .beta-build-tabs .beta-category-body img:not(:only-child) { max-height:7px; }
  .beta-preview > .left-column { display:contents; }
  .beta-preview .beta-preview-controls { margin:0; min-width:0; width:100%; }
  .beta-preview .beta-stage-surface { min-height:0; }
  .beta-measure-scene .measure-heading { padding-inline:4px; }
  .beta-measure-scene svg { display:block; }
  .beta-summary-art { height:140px; }
  .beta-workspace .beta-option-browser .beta-shape { flex-basis:100px; min-width:100px; }
  .beta-build-rulers text { font-size:10px; }
  .beta-checkout .checkout-progress { gap:8px; font-size:10px; }
}


/* The category buttons and panel keep their geometry while only designs enter. */
.beta-body-designs .beta-colour-slot { min-height:54px; display:flow-root; }
.beta-workspace .beta-body-designs .beta-shape { height:160px; min-height:160px; }
.beta-body-designs .beta-shape > span { min-height:32px; display:flex; align-items:center; justify-content:center; }
.beta-body-category { transition:background-color 220ms ease,border-color 220ms ease; }
.beta-edit-outline { position:absolute; left:calc((100% - var(--part-width)) / 2 - 4px); top:-4px; width:calc(var(--part-width) + 8px); height:calc(100% + 8px); box-sizing:border-box; border:1px dashed var(--red); border-radius:6px; opacity:.55; z-index:250; pointer-events:none; }
@media (prefers-reduced-motion:reduce) { .beta-body-category { transition:none; } }
