/* ============================================================
   Owner markup features (round 2), styled in the original design:
   - larger stage buttons and view chips (m45, m47)
   - representative-vehicle caption, gated poster (m14, m40)
   - next-zone button with progress (m46)
   - vinyl wrapped doors colour picker (m48)
   - chassis size cards with side-profile images (m43)
   Loaded after the original stylesheets.
   ============================================================ */

/* ---------- Stage controls: bigger targets (m45, m47) ---------- */
.stage { container-type: inline-size; }
.view-chip { height: 44px; padding: 0 18px; font-size: var(--fs-sm); }
.tool-btn { height: 48px; min-width: 48px; padding: 0 16px; gap: 8px; font-size: var(--fs-sm); color: var(--text); }
.tool-btn .icon { width: 20px; height: 20px; }
@container (max-width: 640px) {
  .tool-btn { padding: 0; }
  .tool-label { display: none; }
}
@media (max-width: 900px) {
  .view-chip { height: 40px; padding: 0 14px; }
  .tool-btn { padding: 0; height: var(--tap); min-width: var(--tap); }
}
.stage-hint { top: 80px; }

/* Work-in-progress notice, bottom centre of the stage above the caption/tools row (owner markup) */
.stage-wip {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px);
  margin: 0; padding: 7px 14px; border-radius: 999px; pointer-events: none;
  background: rgba(17,17,19,.78); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-2); font-size: var(--fs-xs); line-height: 1.35; text-align: center;
}
.stage-wip .icon { width: 15px; height: 15px; flex: none; color: var(--accent); }
.stage-wip__short { display: none; }
@media (max-width: 900px) {
  .stage-wip { bottom: calc(var(--s-3) + 16px + 52px); padding: 5px 11px; font-size: 11px; white-space: nowrap; }
  .stage-wip .icon { width: 13px; height: 13px; }
  .stage-wip__long { display: none; }
  .stage-wip__short { display: inline; }
  .stage-hint:not([hidden]) ~ .stage-wip,
  .app.is-stage-collapsed .stage-wip { display: none; }
}

/* Empty stage before the ute is chosen (owner markup 2026-12-03) */
.stage-prompt {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: max-content; max-width: calc(100% - 48px); margin: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-caps); font-size: clamp(1.25rem, 3cqi, 2rem); line-height: 1.1;
  color: var(--text-2); text-align: center;
}
.stage-prompt[hidden] { display: none; }

/* Bottom-left of the stage: view chips plus the vehicle caption */
.stage-bottom-left { display: grid; gap: var(--s-2); justify-items: start; min-width: 0; }
.stage-caption {
  max-width: 44ch; padding: 7px 12px; border-radius: var(--r-md);
  background: rgba(17,17,19,.78); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-2); font-size: var(--fs-xs); line-height: 1.4;
}@media (max-width: 900px) {
  .stage-caption { display: none; }
  .app.is-stage-collapsed .stage-top,
  .app.is-stage-collapsed .stage-bottom-left,
  .app.is-stage-collapsed .stage-tools,
  .app.is-stage-collapsed .stage-hint { display: none; }
}

/* Behind the details form: a still of the product on the studio floor, no live 3D yet (m14) */
.stage-poster {
  position: absolute; inset: 0; z-index: 1;
  background: url("../assets/img/combo-1800-1350.webp") center / min(70%, 820px) auto no-repeat, var(--well);
}

/* ---------- Panel text bits ---------- */
.step-count { display: block; margin-bottom: var(--s-2); }
.group-note { font-size: var(--fs-xs); color: var(--text-3); }
.mono { font-variant-numeric: tabular-nums; }
.card-title.mono { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.card-flag {
  position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(11,11,12,.78); color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.hs-pop-zone { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 2px; }
.form-note { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--accent-soft); border-left: 2px solid var(--accent); font-size: var(--fs-xs); color: var(--text-2); }
.size-table { width: 100%; border-collapse: collapse; }

/* ---------- Zone tabs wrap, so every zone (Electrical included, m49) is visible ---------- */
.tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 var(--s-2); }

/* ---------- Next zone (m46) ---------- */
.zone-progress { margin-top: var(--s-5); }
.next-zone-label { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Vinyl wrapped doors (m48) ---------- */
.wrap-block { margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.wrap-body { padding: var(--s-3) 0 0; }
.wrap-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.wrap-swatch {
  display: block; aspect-ratio: 1; min-height: var(--tap); border-radius: var(--r-sm); position: relative;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 -12px 24px rgba(0,0,0,.18);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.wrap-swatch--custom {
  background: var(--surface-3); display: grid; place-items: center; padding: 2px;
  color: var(--text-2); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2;
}
.choice:hover .wrap-swatch { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), inset 0 -12px 24px rgba(0,0,0,.18); }
.choice > input:checked + .wrap-swatch { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent), inset 0 0 0 1px rgba(255,255,255,.14); }
.choice > input:focus-visible + .wrap-swatch { box-shadow: var(--ring); }
/* "Other": shows the colour-wheel pick behind the label (owner markup ST02) */
.wrap-swatch--custom.has-pick { background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.wrap-picker { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-3); }
.wrap-picker__wheel { position: relative; flex: none; width: 52px; height: 52px; cursor: pointer; }
.wrap-picker__wheel input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.wrap-picker__ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.wrap-picker__ring span { position: absolute; inset: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--surface-3); }
.wrap-picker__wheel:has(input:focus-visible) .wrap-picker__ring { box-shadow: var(--ring); }
.wrap-picker__text { display: grid; gap: 2px; font-size: var(--fs-xs); }
.wrap-picker__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.wrap-chosen { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.wrap-chosen strong { font-weight: 600; color: var(--text); }

/* ---------- Layout drawings on the quote step (markups 2026-11-28) ---------- */
.bp { display: grid; gap: var(--s-4); }
.bp-fig { margin: 0; padding: var(--s-3); border-radius: var(--r-lg); border: 1px solid var(--line); background: #0e1622; }
.bp-title { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.bp-cap { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--text-3); }
.bp-svg { display: block; width: 100%; height: auto; font-family: var(--font-body, Inter, system-ui, sans-serif); }
.bp-svg .bp-grid { fill: none; stroke: rgba(120,170,230,.08); stroke-width: 1; }
.bp-svg .bp-line { fill: none; stroke: rgba(170,205,245,.7); stroke-width: 1.4; }
.bp-svg .bp-line--strong { stroke: rgba(205,228,255,.95); stroke-width: 1.8; }
.bp-svg .bp-faint { fill: none; stroke: rgba(170,205,245,.35); stroke-width: 1.2; }
.bp-svg .bp-dash { stroke-dasharray: 5 5; }
.bp-svg .bp-fill { fill: rgba(170,205,245,.12); stroke: none; }
.bp-svg .bp-on { fill: rgba(242,162,58,.2); stroke: var(--accent, #f2a23a); stroke-width: 1.6; }
.bp-svg .bp-off { fill: none; stroke: rgba(170,205,245,.35); stroke-width: 1.1; stroke-dasharray: 4 4; }
.bp-svg .bp-t { fill: #f4f1ea; font-weight: 600; }
.bp-svg .bp-t--muted { fill: rgba(205,228,255,.5); font-weight: 500; }
.bp-svg .bp-dim { fill: rgba(205,228,255,.6); font-size: 10px; letter-spacing: .08em; font-weight: 600; }
