/* Configurator page: two-column (form / preview) grid + widgets.
   The top bar and shell chrome live in layout.css under .nav. */

.app-shell { min-height: 100vh; }

/* ---------- Configurator toolbar (form-column section) -------------- */
.configurator-toolbar { position: relative; }
.configurator-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* Anchor the drafts panel to the toolbar (not the small button) so it
   spans the form column width and can't escape it. */
.configurator-toolbar .history { position: static; }
.configurator-toolbar .history__panel {
  left: 0;
  right: 0;
  max-width: none;
  min-width: 0;
}

/* ---------- History dropdown (drafts) -------------------------------- */
.history { position: relative; }
.history__count {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--bg-surface-sunken);
  color: var(--text-primary);
  min-width: 18px;
  text-align: center;
}
.history__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  max-width: 360px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 40;
}
.history__header { padding: 4px 8px 8px; }
.history__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.history__item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: var(--radius-sm);
}
.history__item:hover { background: var(--bg-surface-raised); }
.history__load {
  flex: 1;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  font-family: var(--font-sans);
  color: inherit;
}
.history__name { font-size: 14px; font-weight: 500; }
.history__when { color: var(--text-muted); }
.history__delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 10px;
  font-size: 18px;
  line-height: 1;
}
.history__delete:hover { color: var(--text-primary); }
.history__empty { padding: 8px; color: var(--text-muted); font-size: 13px; }

/* ---------- Wizard layout ------------------------------------------ */
.wizard-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  gap: 24px;
}

.wizard-page__preview { display: grid; }

.wizard {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 28px 32px 24px;
  box-shadow: var(--shadow-sm);
}

.wizard__progress { margin-bottom: 28px; }
.wizard__progress-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard__steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.wizard__step-pip { position: relative; }
.wizard__step-pip-btn {
  display: grid;
  gap: 6px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--text-muted);
}
.wizard__step-pip-btn:disabled { cursor: default; }
.wizard__step-pip-btn::before {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--border-default);
  transition: background var(--dur-fast) var(--ease-standard);
}

.wizard__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0 auto;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.wizard__step-label {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: inherit;
}

.wizard__step-pip--upcoming .wizard__step-pip-btn { color: var(--text-muted); }
.wizard__step-pip--upcoming .wizard__step-pip-btn::before { background: var(--border-subtle); }

.wizard__step-pip--visited .wizard__step-pip-btn { color: var(--text-secondary); }
.wizard__step-pip--visited .wizard__step-pip-btn::before { background: var(--border-strong); }
.wizard__step-pip--visited .wizard__step-num {
  background: var(--bg-surface-raised);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.wizard__step-pip--complete .wizard__step-pip-btn::before { background: var(--text-primary); }
.wizard__step-pip--complete .wizard__step-num {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-inverse);
}

.wizard__step-pip--current .wizard__step-pip-btn { color: var(--text-primary); font-weight: var(--fw-medium); }
.wizard__step-pip--current .wizard__step-pip-btn::before { background: var(--text-primary); }
.wizard__step-pip--current .wizard__step-num {
  background: var(--bg-surface);
  border-color: var(--text-primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.wizard__panel { display: grid; gap: 24px; }
.wizard__panel[hidden] { display: none; }

.wizard-step__title {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: 0;
}
.wizard-step__lede {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-secondary);
  margin: 1em 0 1em;
}
/* Small gray button, right-aligned below the measurement inputs */
.unit-toggle {
  display: block; margin: 0 0 0 auto; padding: 6px 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--fs-caption); color: var(--text-primary);
}
.unit-toggle:hover { border-color: var(--border-strong); background: var(--bg-surface-sunken); }
.unit-toggle .is-active { font-weight: 700; text-decoration: underline; }
.wizard-step__hint {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 6px 0 24px;
}
.wizard-step__hint strong {
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}
.wizard-step__illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 0 24px;
}
.wizard-step__fields { display: grid; gap: 16px; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
}
.wizard__nav-spacer { flex: 0 0 auto; }
.wizard__nav .btn { min-height: 48px; min-width: 140px; }

.wizard__message { margin-bottom: 12px; }

/* ---------- Measure form ------------------------------------------- */
.measure-form__fields { margin-top: 20px; display: grid; gap: 14px; }
.measure-form__dims {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.measure-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.field-label {
  margin-bottom: 6px;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}
/* Wizard inputs: near-black border, like a selected .opt card */
.input.measure-input,
.input.input--bold {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-inset), var(--shadow-xs);
}
.input.measure-input:hover,
.input.input--bold:hover { border-color: var(--text-primary); }
.input.measure-input:focus,
.input.input--bold:focus {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(28, 26, 23, 0.08);
}
.dim-imperial { display: grid; gap: 6px; }
.dim-imperial select.input {
  padding-right: 12px;
  font-size: 13px;
}
/* These two set their own smaller size, so they need the iOS no-zoom rule
   from components.css repeated here (see the note there). */
@media (pointer: coarse) {
  .dim-imperial select.input,
  textarea.notes-textarea { font-size: 16px; }
}
.weight-imperial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
/* Tucks the dim inputs visually inside the selected option card. */
.opt__price { margin-left: auto; color: var(--text-primary); font-weight: 600; }
.opt__price[hidden] { display: none; }
.opt-group { display: grid; gap: 0; }
/* Expanded: the group draws the only outline. The button and the content
   keep their borders for spacing but paint nothing, hover included. */
.opt-group:has(.opt__extra:not([hidden])) {
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--text-primary);
}
.opt-group:has(.opt__extra:not([hidden])) .opt,
.opt-group:has(.opt__extra:not([hidden])) .opt:hover,
.opt-group:has(.opt__extra:not([hidden])) .opt__extra {
  border-color: transparent;
  box-shadow: none;
}
.opt-group:has(.opt__extra:not([hidden])) .opt {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.opt__extra {
  display: grid;
  gap: 12px;
  padding: 16px 18px 16px 56px;
  margin-top: -1px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--text-primary);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.opt__extra[hidden] { display: none; }
.opt__extra .hole-row__dim { display: grid; gap: 6px; }

/* The Protection step's outside dimensions, in the standard size pages' spec
   table (.customize__dims in marketing.css). */
.case-size-specs { margin-top: 0; }
.case-size-specs dd { white-space: nowrap; }
.case-size-specs__placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular, 400);
  font-size: 12px;
}

/* A stacked fraction for inch readouts. Only halves, quarters and eighths have
   their own characters, so sixteenths are built from a raised numerator, a
   fraction slash and a lowered denominator. */
.frac sup,
.frac sub {
  font-size: 0.7em;
  line-height: 0;
}
.frac sup { vertical-align: 0.42em; }
.frac sub { vertical-align: -0.08em; }

.notes-textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

.unit-toggle__button {
  flex: 1;
  padding: 9px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
}
.unit-toggle__button--active {
  background: var(--bg-ink);
  color: var(--text-inverse);
}

/* ---------- Options panel ------------------------------------------ */
.options-panel__group { margin-top: 20px; }
.options-panel__grid-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.options-panel__row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

/* Single-column option list — every selectable option stacks one per line. */
.options-list { display: grid; gap: 10px; }

/* Holes list + adder */
.holes__list { display: grid; gap: 8px; margin-bottom: 12px; }
.holes__list:empty { display: none; }
.holes__adder { margin-top: 4px; }
.hole-adder { padding: 10px 12px; }
.hole-row {
  position: relative;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  display: grid;
  gap: 8px;
}
.hole-row__head { display: flex; justify-content: space-between; align-items: baseline; }
.hole-row__dims { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hole-row__dim { display: block; }
.hole-row__dim .field-label { margin-bottom: 4px; }
.hole-row__remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
}
.hole-row__remove:hover { color: var(--text-primary); }

/* Big tappable option card: leading radio circle, optional photo, body. */
.opt {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.opt:hover { border-color: var(--border-strong); }
.opt--selected {
  border-color: var(--text-primary);
  background: var(--bg-surface-raised);
  box-shadow: inset 0 0 0 1px var(--text-primary);
}

.opt__radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.opt--selected .opt__radio { border-color: var(--text-primary); }
.opt--selected .opt__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text-primary);
}

.opt__photo {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
}
.opt__photo--wide  { width: 160px; height: 90px; }
.opt__photo--small { width: 150px; height: 150px; }
.opt__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.opt__shape-figure {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  display: block;
}
.opt__shape-figure svg { width: 100%; height: 100%; display: block; }

.opt__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.opt__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.opt__label { font-weight: var(--fw-medium); font-size: 15px; color: var(--text-primary); }
.opt__meta  { color: var(--text-muted); flex-shrink: 0; }
.opt__sub   { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.opt__wide-img { width: 100%; display: block; border-radius: var(--radius-sm); object-fit: cover; margin-top: 6px; }
.opt__examples {
  margin: 6px 0 0;
  padding: 0 0 0 18px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
  columns: 2;
  column-gap: 18px;
}
.opt__examples li { break-inside: avoid; padding: 0; }

/* Shape-card variant has the figure laid out next to copy on desktop */
.options-list--shape { gap: 12px; }
.opt--shape { align-items: center; gap: 18px; }
@media (max-width: 520px) {
  .opt--shape { flex-wrap: wrap; }
  .opt--shape .opt__shape-figure { width: 80px; height: 54px; }
  .opt__examples { columns: 1; }
}

/* Larger unit toggle for the Setup step */
.unit-toggle--lg .unit-toggle__button { padding: 14px 0; font-size: 14px; }

/* Inline section divider inside a step (used between sub-sections) */
.wizard-step__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
}
.wizard-step__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}
.wizard-step__divider .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Intro step's gather-this checklist */
.intro-card {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.intro-card__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--fw-medium);
  margin: 0 0 10px;
  color: var(--text-primary);
}
.intro-card__list {
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.intro-card__list li { padding: 3px 0; }

.accessory {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  cursor: pointer;
}
.accessory__body { flex: 1; }
.accessory__title { font-size: 14px; font-weight: 500; }
.accessory__price { color: var(--text-muted); }

/* ---------- Preview ------------------------------------------------ */
.preview { height: 100%; display: flex; flex-direction: column; }
.preview__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.preview__title {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 22px;
  margin-top: 4px;
  white-space: nowrap;
}
.preview__views { display: flex; gap: 8px; }
.preview__stage {
  flex: 1;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.preview__corner-l { position: absolute; top: 14px; left: 16px; color: var(--text-muted); }
.preview__corner-r { position: absolute; top: 14px; right: 16px; text-align: right; }
.preview__corner-r .caption { color: var(--text-muted); }
.preview__stage svg { width: 100%; height: 100%; display: block; }
.preview__tags {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- Render preview (summary step) -------------------------- */
.case-preview { margin-bottom: 24px; }
.case-preview__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.case-preview__note { color: var(--text-muted); text-align: right; }
.case-preview__stage {
  position: relative;
  /* Plain white: the studio render is a white-background PNG, so a grid
     behind it only shows up as a mismatched frame. */
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Holds its height from the first paint, so the summary below never jumps
     when the render lands. */
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-preview__img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.case-preview__img[hidden] { display: none; }
/* The Closed / Open switch reuses the standard-case gallery's thumbs
   (.pdp__thumbs, marketing.css); display: flex there would beat [hidden]. */
.case-preview__thumbs[hidden] { display: none; }
.case-preview__thumbs { justify-content: center; }
.case-preview__time {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.case-preview__time:empty { display: none; }
.case-preview__placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: var(--text-muted);
  text-align: center;
  max-width: 44ch;
}
.case-preview__placeholder[hidden] { display: none; }
.case-preview__spinner {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid var(--border-default);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  animation: case-preview-spin 0.8s linear infinite;
}
/* The finished-but-empty state: no picture is coming, so stop implying work. */
.case-preview__placeholder--quiet { display: block; }
.case-preview__placeholder--quiet .case-preview__spinner { display: none; }

@keyframes case-preview-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .case-preview__spinner { animation: none; }
}

@media (max-width: 640px) {
  .case-preview__stage { min-height: 200px; }
  .case-preview__img { max-height: 300px; }
}

/* ---------- Quote sent (thank-you page) ---------------------------- */
.quote-sent {
  max-width: var(--width-marketing);
  margin: 0 auto;
  padding: 8px 24px 80px;
}
.quote-sent__missing {
  margin-top: 14px;
  color: var(--text-muted);
}
.quote-sent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.quote-sent__actions .btn { min-height: 48px; min-width: 180px; }

@media (max-width: 560px) {
  .quote-sent { padding: 4px 20px 56px; }
  .quote-sent__actions .btn { flex: 1 1 100%; min-width: 0; }
}

/* ---------- Summary ------------------------------------------------ */
.summary {
  padding: 22px;
  background: #fff;
  border: 1px solid #efefef;
  box-shadow: 0 1px 3px #efefef;
}
.summary__rows {
  margin-top: 14px;
  border: 1px solid var(--summary-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.summary__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 13px;
  gap: 12px;
  color: var(--text-primary);
  background: var(--summary-row-bg);
  border-bottom: 1px solid var(--summary-border);
}
.summary__row:last-child { border-bottom: none; }
/* The label keeps its line and the value takes what is left, wrapping when it
   is long (an object's full name, the notes) instead of running out of the
   card. */
.summary__row-label { font-weight: 600; flex: 0 0 auto; }
.summary__row--muted { color: var(--text-secondary); }
.summary__row--muted .summary__row-label { font-weight: 400; }
.summary__row-value  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary__row-empty {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--text-muted);
  font-size: 12px;
}
.summary__specs { margin: 14px 0 16px; }
/* Values hold their line where they fit and wrap when they are long (an
   object's full name, a hexagon's shape), instead of running out of the card. */
.summary__specs dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.summary__specs dt { flex: 0 0 auto; }
.summary__total {
  border-top: 1px solid var(--border-default);
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.summary__total-amount {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.summary__extra {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--text-secondary);
}
.summary__banner { margin-top: 14px; }
.summary__email { margin-top: 16px; display: grid; gap: 6px; }
.summary__actions { display: grid; gap: 6px; margin-top: 12px; }
.summary__actions .btn { width: 100%; }

/* ---------- Tablet (<= 1024px) --------------------------------------- */
@media (max-width: 1024px) {
  .wizard-page { padding: 24px 16px 56px; }
  .wizard { padding: 24px; }
  .preview__stage { min-height: 280px; }
}

/* ---------- Phone (<= 640px) ----------------------------------------- */
@media (max-width: 640px) {
  /* The wizard runs edge to edge and ends at the bottom of the page: its
     sticky Back/Next row is the last thing there, with no shadow, border or
     empty page beneath it (the configurator has no footer). */
  .wizard-page { padding: 16px 12px 0; gap: 20px; }
  .wizard {
    padding: 20px 18px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
    margin: 0 -12px;
  }

  .wizard__steps { gap: 4px; }
  .wizard__step-label { display: none; }

  .wizard__nav {
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    margin: 12px -18px -16px;
    /* Room under the buttons, plus the home indicator's inset where there is one. */
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-default);
  }
  .wizard__nav .btn { flex: 1; min-width: 0; min-height: 44px; }

  .wizard-step__title { font-size: 24px; }

  .options-panel__grid-2 { grid-template-columns: 1fr; }
  .hole-row__dims { grid-template-columns: 1fr; }

  .preview__head {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .preview__stage { min-height: 220px; }
  .preview__corner-l,
  .preview__corner-r { font-size: 10px; }

  .summary { padding: 18px; }
  .summary__total-amount { font-size: 26px; }
}
