/* ROUTANA — CART-F booking wizard (founder ruling 2026-08-12).
   New components only; layout/typography/color come from portal.css tokens.
   House law: orange #d97706, charcoal #1c1917, green #059669 (selected #047857,
   hover #b45309), badges 6px radius, Inter self-hosted, NO blue/teal, NO CDN.

   ═══════════════════════════════════════════════════════════════════════════
   THE FRAME BLOCK (founder order 2026-08-15, verbatim: "fix any tiny frame
   problems too where things dont keep the proper spacing").

   THE DEFECT, measured rather than eyeballed. Every screen of this wizard is
   supposed to sit in the same card, at the same width, with the same gutters,
   and put its Continue button at the same distance from the last thing above
   it. Three of them did not: book_otp.html and book_welcome.html each carried
   an inline `style="text-align:center"` on .step-heading, book.html carried
   four inline `style="margin:16px 0 8px"` labels, and the CTA rows differed
   because .ik-actions only existed on some screens. The result is content that
   jumps as you advance and a button that lands somewhere new each step.

   THE FIX IS AT THE SHARED RULE, never per screen. Everything below is a
   class every screen uses; nothing in the templates sets its own outer
   spacing any more. "improve" never means redesign — the look is the app's
   own, the only thing that changed is that it is now the SAME on every step.
   Pinned by tests/portal_v2/test_cart_f_frame.py so the next screen someone
   adds cannot drift.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* The wizard's own vertical rhythm. One number per role, used everywhere,
     so a screen cannot invent its own gap. */
  --ik-gap: 8px;          /* between repeated option rows */
  --ik-gap-lg: 16px;      /* between groups */
  --ik-cta-h: 48px;       /* EVERY primary/ghost button is exactly this tall */
  --ik-head-gap: 20px;    /* .step-heading -> first control, every screen */
  --ik-actions-gap: 24px; /* last control -> the CTA row, every screen */
}

/* progressive-reveal steps: one active at a time */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: portal-page-enter 0.2s ease-out; }

/* THE FRAME INVARIANT, in three rules.
   1. every screen's heading owns the same gap under it;
   2. every screen's CTA row owns the same gap above it;
   3. no screen may set its own.

   `.ik-screen` rides alongside `.wizard-step` (CART-F2, 2026-08-16). These
   rules were scoped to `.wizard-step` alone, and the RETURNING LANE has no
   `.wizard-step` — it is one page, not a progressive stack — so it received
   none of them. MEASURED on the live card: 16px above "Vehicles for this
   visit" and 0px above "When works for you?", so the grid butted straight
   up against the total. `.ik-screen` is what a screen that is not part of
   the progressive stack says instead, and it takes the identical rhythm. */
.wizard-step > .step-heading,
.ik-screen > .step-heading { margin-bottom: var(--ik-head-gap); }
.wizard-step > .ik-actions,
.ik-screen > .ik-actions { margin-top: var(--ik-actions-gap); }
.wizard-step > .form-label,
.ik-screen > .form-label { margin: var(--ik-gap-lg) 0 var(--ik-gap); }

/* Labels inside a grouped row are part of that row, not of the page rhythm —
   otherwise a 3-up city/prov/postal block opens a 16px hole above each of its
   three tiny labels and the row stops looking like one control. */
.ik-triple .form-label { margin: 0 0 4px; }

/* value line beside the phone (price/value visible at step 1) */
.value-hero {
  background: var(--orange-light);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: var(--ik-gap-lg);
}
.value-hero-title { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.35; }
.value-hero-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* full-width in-step buttons (portal.css bottom-nav btn-next is for the nav bar).
   min-height rather than padding-only: a button whose label wraps to two lines
   used to be taller than its neighbour on the very next screen. */
.ik-primary, .ik-ghost {
  width: 100%; padding: 12px 14px; min-height: var(--ik-cta-h);
  border-radius: var(--radius-lg);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
  display: flex; align-items: center; justify-content: center;
}
/* SET-B: 15px/700 white needed 4.5:1; brand fill gave 3.19:1 -> #b45309 5.02:1.
   :hover rides --orange-hover, which SET-B moved to #92400e so it still differs. */
.ik-primary { background: #b45309; color: #fff; }
.ik-primary:hover:not(:disabled) { background: var(--orange-hover); }
.ik-primary:disabled { background: #e7e5e4; color: var(--muted-strong); cursor: not-allowed; }
.ik-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
  margin-top: var(--ik-gap);
}
/* FABLE-TYPE 2026-09-23: an understated inline link, not a full button --
   ".ik-ghost" above is bordered/full-width and would out-shout the year/
   make/model fields it sits directly under. */
.ik-text-link {
  display: block; width: auto; background: none; border: none; padding: 6px 0;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: underline; cursor: pointer; text-align: left;
}
.ik-text-link:hover { color: var(--orange-hover, var(--primary)); }
.ik-text-link.hidden { display: none; }

/* FABLE-ADDONS 2026-09-24: the vehicle builder's optional-extras checklist. */
#ik-addons { margin-top: var(--ik-gap); }
.ik-addon-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 6px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: border-color .12s;
}
.ik-addon-row:hover { border-color: #d6d3d1; }
.ik-addon-row:has(input:checked) { border-color: var(--green-hover); background: var(--green-light); }
.ik-addon-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.ik-addon-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.ik-addon-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ik-addon-price { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }

/* The same add-ons, itemized under a vehicle's own cart card. */
.vcard-addons { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.vcard-addon-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.ik-ghost:hover { border-color: #d6d3d1; }
.ik-ghost.hidden, .ik-primary.hidden { display: none; }
.ik-actions { margin-top: var(--ik-actions-gap); }

.ik-relative { position: relative; }
.ik-optional { color: var(--muted); font-weight: 600; letter-spacing: 0; }

/* 3-up rows (city/prov/postal, year/make/model). Grid, not flex percentages:
   the columns then hold the same widths at 360px as at 768px instead of the
   postal box collapsing under its own placeholder. */
.ik-triple {
  display: grid; grid-template-columns: 1fr 0.55fr 1fr; gap: var(--ik-gap);
}
.ik-triple .form-group { margin-bottom: 0; }
/* year / make / model: the Make box is typed into, and Chrome's suggestion arrow
   covers the middle of a narrow one. City / province / postal keeps the narrow
   middle column above (two-letter province); this row does not. Doubled class
   so it beats the small-width rule at the bottom of the file. */
.ik-triple.ik-triple--ymm { grid-template-columns: 0.8fr 1.1fr 1fr; }
.ik-triple .form-input, .ik-triple select.form-input { width: 100%; min-width: 0; }

/* chips (vehicle type) */
.chip-row { display: flex; gap: 10px; margin-bottom: var(--ik-gap-lg); }
.chip {
  flex: 1; padding: 16px 8px; text-align: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text);
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.chip small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.chip:hover { border-color: #d6d3d1; }
.chip.selected {
  border-color: var(--green-hover); background: var(--green-light);
  color: var(--green-text);
}
.chip.selected small { color: var(--green-text); }

/* THE RIM PAIR, stacked. The mockup draws these two as full-width cards with
   a sub-line each rather than as a 2-up row — they are still .chip elements
   inside a .chip-row (data-service is a machine key, and the owner's own
   service names are read out of exactly this shape), so the LOOK is one rule
   keyed on the row's id and nothing about the control changed. */
#ik-svc.chip-row { flex-direction: column; gap: var(--ik-gap); }
#ik-svc .chip { text-align: left; padding: 14px 16px; }
#ik-svc .chip small { margin-top: 3px; }
/* FABLE-FIX1-0819: the returning lane's own rim question is the same
   control, `#ik-rebook-svc` instead of `#ik-svc` — it was missing this rule
   entirely (a plain side-by-side chip row) while book.html's got the
   stacked full-width treatment above. Same id-keyed pattern, same reason. */
#ik-rebook-svc.chip-row { flex-direction: column; gap: var(--ik-gap); }
#ik-rebook-svc .chip { text-align: left; padding: 14px 16px; }
#ik-rebook-svc .chip small { margin-top: 3px; }

/* stacked option cards — the rim-state pair, and the access pair on review.
   Same box as .chip so the two never read as different kinds of control. */
.opt-row { display: block; }
.opt-card {
  display: block; width: 100%; text-align: left;
  padding: 14px 16px; margin-bottom: var(--ik-gap);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  font-family: inherit; transition: border-color .12s, background .12s;
}
.opt-card:hover { border-color: #d6d3d1; }
.opt-card b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.opt-card small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.opt-card.selected { border-color: var(--green-hover); background: var(--green-light); }
.opt-card.selected b { color: var(--green-text); }
.opt-card.mini { padding: 10px 12px; margin-bottom: 6px; }
.opt-card.mini b { font-size: 13px; }
.opt-card.mini small { font-size: 11px; margin-top: 2px; }
.access-mini { margin-top: var(--ik-gap); }

/* FABLE-NOTE 2026-09-23 (founder): the review-screen "anything else?" note box
   that replaced the two access chips. Matches .form-input's frame + focus. */
.note-mini { margin-top: var(--ik-gap); }
.note-mini-label { display: block; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px; }
.note-mini-box {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 58px;
  padding: 12px 14px; font-family: inherit; font-size: 15px; line-height: 1.45;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color .12s;
}
.note-mini-box:focus { outline: none; border-color: var(--primary); }
.note-mini-box::placeholder { color: var(--muted); }

/* legacy access options (still used by other screens in this family) */
.access-opt {
  display: block; width: 100%; text-align: left;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer;
  font-family: inherit; transition: border-color .12s, background .12s;
}
.access-opt:hover { border-color: #d6d3d1; }
.access-opt.selected { border-color: var(--green-hover); background: var(--green-light); }
.access-opt-title { font-size: 15px; font-weight: 700; color: var(--text); }
.access-opt.selected .access-opt-title { color: var(--green-text); }
.access-opt-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ── THE CART ────────────────────────────────────────────────────────────
   One card per vehicle, each carrying its own rim chip and its own price.
   The mixed cart the founder asked about is two of these, one green, one
   orange. */
.vcard {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 40px 12px 14px;     /* right gutter reserves the ✕ */
  margin-bottom: var(--ik-gap);
}
/* FABLE-FIX3-0819: flex-wrap added. At 390px a real name ("Honda Civic")
   next to a real price string ("Price unavailable — we'll confirm")
   doesn't fit one line -- without wrap, .vcard-price's own nowrap forced
   .vcard-id (and .vcard-name inside it) into a column too narrow to hold
   the name, so the name broke mid-word and its second line sat under the
   baseline-aligned price instead of below it. Wrapping lets the price drop
   to its own full-width line instead, the same .vcard-top gap already
   applying as the row gap -- desktop has room for one line either way, so
   this is invisible there (see 014-wiz-cart-desktop.png). */
.vcard-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.vcard-name { font-size: 15px; font-weight: 800; color: var(--text); }
.vcard-price { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; }
.vcard-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vcard-x {
  position: absolute; top: 6px; right: 6px;
  width: 32px; height: 32px;          /* a real tap target, not a glyph */
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: #b91c1c; font-size: 14px; font-family: inherit; line-height: 1;
  border-radius: var(--radius-sm);
}
.vcard-x:hover { background: var(--red-bg); }

/* FABLE-WHEEL-0815: photo + tire size, additive only — .vcard/.vcard-top's
   own rules above are untouched. .vcard-id groups the photo with the name so
   .vcard-top's existing space-between still puts exactly two things (this
   group, the price) at opposite ends, same as before this landed. */
.vcard-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* THE CAR, NOT A STAMP. This was 36x36 with `cover`, which is a thumbnail of
   a crop -- on a car that meant a doorhandle. The founder's own words on the
   old build, 2026-09-25: "image was much larger and no stupid car emoji".
   `contain` because a vehicle photographed side-on loses the point of itself
   the moment it is cropped to a square. */
.vcard-photo {
  width: 104px; height: 74px; flex-shrink: 0;
  border-radius: var(--radius-sm); object-fit: contain;
  background: transparent; border: 0;
}
/* The house outline standing in before the real render arrives (or for a car
   we have no render of). Held back so it reads as a placeholder rather than
   competing with the customer's actual car. */
.vcard-photo.is-outline { opacity: .45; }
.vcard-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vcard-name { min-width: 0; overflow-wrap: anywhere; }

.chip-rim {
  display: inline-block; margin-top: 8px;
  background: var(--green-light); border: 1px solid var(--green-border);
  color: var(--green-text);
  border-radius: 999px; padding: 2px 10px;
  font-size: 11px; font-weight: 700;
}
.chip-rim.off { background: #fdf1e7; border-color: #e8b98f; color: #a2521a; }

.addv {
  display: block; width: 100%;
  border: 1px dashed var(--orange); color: var(--orange-text);
  background: var(--surface);
  border-radius: var(--radius-lg); padding: 12px; min-height: 44px;
  text-align: center; font-weight: 700; font-size: 14px;
  font-family: inherit; cursor: pointer;
}
.addv:disabled { border-color: var(--border); color: var(--muted); cursor: not-allowed; }

.cart-total {
  display: flex; justify-content: space-between;
  font-size: 15px; font-weight: 800; color: var(--text);
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
}
.cart-total:empty { display: none; }

/* the sticky bar from the mockup — "2 vehicles · $239.98 · Continue" */
.sticky-bar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #2b2b26; color: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 10px 10px 14px;
  margin-top: var(--ik-gap-lg);
  margin-bottom: calc(env(safe-area-inset-bottom, 0px));
  font-size: 14px; font-weight: 700;
}
.sticky-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* MEASURED DRIFT (CART-F2, 2026-08-16). This button was 40px tall while
   every other screen's CTA was 48px — and on the cart screen it IS the
   Continue control, so the one button on the whole flow that the customer
   taps with a total in front of her was the odd one out at 360, 390 and
   768px alike. It takes --ik-cta-h now, like every other CTA in the wizard;
   the number lives in one place so the next screen cannot invent its own. */
.sticky-go {
  background: #b45309; color: #fff; border: none;
  border-radius: var(--radius); padding: 10px 16px;
  min-height: var(--ik-cta-h);
  font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  white-space: nowrap;
}
.sticky-go:disabled { background: #57534e; color: #d6d3d1; cursor: not-allowed; }

/* the builder's live quote line */
.ik-banner {
  background: var(--green-light); border: 1px solid var(--green-border);
  color: var(--green-text);
  border-radius: var(--radius-lg); padding: 10px 12px;
  font-size: 13px; font-weight: 600; margin-top: var(--ik-gap-lg);
}
.ik-banner.hidden { display: none; }

/* ── THE GRID + its quick-select row ─────────────────────────────────────
   Today the flow preached "broad is better" and then made the customer tap
   fourteen boxes. This row is the one tap that does it. */
.quick-row { display: flex; gap: 6px; margin-bottom: 10px; }
.quick-btn {
  flex: 1; min-height: 40px; padding: 8px 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text);
  transition: border-color .12s, background .12s, color .12s;
}
.quick-btn:hover { border-color: #d6d3d1; }
.quick-btn.on { background: var(--green-light); border-color: var(--green-border); color: var(--green-text); }

.win-grid { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--ik-gap); }
.win-head, .win-row { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.win-head { background: var(--surface2); }
.win-head > div {
  padding: 10px 6px; text-align: center; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted-strong);
}
.win-row { border-top: 1px solid var(--border); }
/* ENGINE FINAL item 2 (2026-10-28): a look-ahead day's row is served hidden and
   shown by book.js only when the brain opens a box on it; the attribute must win. */
.win-row[hidden] { display: none !important; }
.win-day {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px 10px; background: var(--surface);
}
.win-day-dow { font-size: 13px; font-weight: 700; color: var(--text); }
.win-day-date { font-size: 11px; color: var(--muted); }
.win-cell {
  padding: 12px 6px; text-align: center; cursor: pointer;
  border-left: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--muted);
  user-select: none; transition: background .1s, color .1s;
}
.win-cell .tick { visibility: hidden; }
.win-cell.on { background: var(--green-light); color: var(--green-text); }
.win-cell.on .tick { visibility: visible; }
/* TICKS (2026-11-05, his rule 17): no box is marked as recommended any more. */

/* ── SHIP-U (2026-10-10): the grid listens ───────────────────────────────
   The door (docs/BUILD-PROMPTS/SHIP-WHEN-CONTRACT.md) says, for this
   customer, which boxes are open and which are closed (TICKS: never a
   suggested one -- the page shows no mark for it). */
/* CLOSED = looks taken. Hatched and struck through, the way a paper diary
   marks a slot that has gone. It is not hidden and it gives no reason. */
.win-cell.closed {
  cursor: not-allowed; color: var(--muted); text-decoration: line-through;
  background: repeating-linear-gradient(135deg, var(--surface2) 0 6px, #ebe9e7 6px 12px);
}
/* WAITING for the answer: every box rests in one quiet tint. No ticks, no
   words, nothing to tap, and never fourteen green boxes that then change. */
.win-grid.is-loading .win-cell {
  pointer-events: none; color: transparent; background: var(--surface2);
  box-shadow: none; text-decoration: none;
  animation: ik-win-wait 1.4s ease-in-out infinite;
}
.win-grid.is-loading .win-cell .tick { visibility: hidden; }
@keyframes ik-win-wait { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .win-grid.is-loading .win-cell { animation: none; }
}
/* The waiting line is one line; the sentence that replaces it wraps to three
   on a phone. Holding that room while it waits keeps the button below still. */
.win-grid.is-loading + .win-hint { min-height: 52px; }
.quick-btn:disabled {
  background: var(--surface); border-color: var(--border);
  color: var(--muted); cursor: default;
}
.win-hint { font-size: 12px; color: var(--muted); margin: var(--ik-gap) 2px var(--ik-gap-lg); line-height: 1.45; }

/* map-pin confirm (screen 2) — kills Sudbury pins, no external map tile */
.pin-confirm {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 16px; margin-top: 12px; text-align: center;
}
.pin-confirm.hidden { display: none; }
.pin-graphic {
  width: 44px; height: 44px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--orange-light);
  display: flex; align-items: center; justify-content: center;
}
.pin-graphic .dot {
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--orange);
  box-shadow: 0 2px 4px rgba(217,119,6,.4);
}
.pin-q { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pin-addr { font-size: 15px; font-weight: 700; color: var(--text); margin: 4px 0 0; }
/* CUSTFIX (2026-11-12, CUSTOMER-7): the suggestion she tapped is in another
   town than the one she typed - the same card in the page's amber, the town in
   bold. --amber / --amber-text are the front page's own (website site.css, both
   looks); the fallbacks are this file's house orange for a page without them. */
.pin-confirm.is-town-off {
  border-color: var(--amber, #d97706);
  background: rgba(217, 119, 6, .14);
  box-shadow: inset 0 0 0 1px var(--amber, #d97706);
}
.pin-confirm.is-town-off .pin-q { color: var(--amber-text, #b45309); }
.pin-confirm.is-town-off .pin-addr { font-weight: 500; }
.pin-confirm.is-town-off .pin-addr b { font-weight: 800; color: var(--amber-text, #b45309); }
[data-theme="light"] .pin-confirm.is-town-off { background: rgba(217, 119, 6, .09); }

/* ── THE REVIEW SCREEN — an Edit link on every block ─────────────────── */
.rblk {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: var(--ik-gap);
}
.rblk-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted-strong); font-weight: 700; margin-bottom: 6px;
}
.rblk-ed {
  background: none; border: none; padding: 4px 0 4px 12px; margin: -4px 0;
  min-height: 32px;
  color: var(--orange-text); font-family: inherit; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; text-decoration: underline;
}
.rblk .kv {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 14px; color: var(--text); padding: 2px 0;
}
.rblk .kv span:last-child { color: var(--muted); white-space: nowrap; }
.rblk .answer-copy { font-size: 13px; color: #44403c; line-height: 1.5; margin-top: 6px; }

/* the answer card (kept for any screen still rendering the full-page form) */
.answer-card {
  border: 1px solid var(--green-border); background: var(--green-light);
  border-radius: var(--radius-xl); padding: 22px 18px; text-align: center;
  margin-bottom: var(--ik-gap-lg);
}
.answer-card.rigid { border-color: var(--orange-border); background: var(--orange-light); }
.answer-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.answer-lead { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.3px; line-height: 1.25; }
.answer-copy { font-size: 14px; color: #44403c; line-height: 1.55; margin-top: 10px; }
.answer-week {
  display: inline-block; margin-top: 12px; padding: 5px 10px;
  border-radius: var(--radius-sm);            /* 6px badge, not a pill */
  background: #fff; border: 1px solid var(--green-border);
  font-size: 11px; font-weight: 700; color: var(--green-text);
}
.answer-card.rigid .answer-week { border-color: var(--orange-border); color: var(--orange-text); }

/* need-by row */
.needby-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.needby-row label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.needby-row input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit;
  /* 16px so iOS Safari does not zoom the whole page on focus — the same
     reason .form-input is 16px in portal.css. */
  font-size: 16px; color: var(--text);
  background: var(--surface);
}
.needby-req { color: var(--orange-text); }

/* tiny inline spinner for buttons */
.ik-primary.loading { color: transparent; position: relative; }
.ik-primary.loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff;
  border-radius: 50%; animation: shimmer-spin .6s linear infinite;
}
@keyframes shimmer-spin { to { transform: rotate(360deg); } }

/* ── UXP (2026-07-30) ─────────────────────────────────────────────────
   The wizard's per-step error line. Before this block those ids had NO rule
   anywhere on any stylesheet the live wizard loads, so every validation
   message rendered as plain black body text. */
.wizard-step .otp-error:not(:empty),
.otp-error.ik-error:not(:empty) {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--red-bg);
  border: 1px solid #fecaca;
  color: var(--red-text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

/* The green "we service your area" answer, in the app's own green. */
.banner-green {
  background: var(--green-light); border: 1px solid var(--green-border);
  color: var(--green-text); border-radius: var(--radius-lg);
  padding: 10px 12px; font-size: 13px; font-weight: 600; margin-top: 10px;
}

/* ── THE RETURNING FAST LANE ──────────────────────────────────────────
   Same components, so the lane that takes 45 seconds does not look like a
   different product from the one that takes four minutes. */
.pin-row { display: flex; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.pin-box {
  width: 52px; height: 60px; text-align: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 24px; font-weight: 800;
}
.pin-box:focus { outline: none; border-color: var(--orange); }
.pin-box.error { border-color: var(--red); background: var(--red-bg); }

/* the "same as last time" card's own vehicle rows reuse .vcard above */
.rebook-note { font-size: 12px; color: var(--muted); margin: 6px 2px 0; line-height: 1.45; }

/* THE FAST LANE'S VEHICLE ROW. Moved here from a <style> block inside
   book_welcome.html (CART-F2, 2026-08-16, item 6): it is the same card the
   new flow's cart uses, with a checkbox in front of it, so a customer who
   books both ways is looking at ONE component — and a component defined in
   one page's own head is free to drift from the .vcard it must match. */
.rebook-vcheck {
    display: flex; align-items: flex-start; gap: 12px;
    min-height: 44px; padding: 12px 14px; margin-bottom: var(--ik-gap);
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.rebook-vcheck.checked { border-color: var(--green-hover); background: var(--green-light); }
.rebook-vcheck input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
/* The photo sits between the tick and the text, same size and same class as
   the fresh cart's -- one component, both screens (2026-09-25). Centred
   against the row rather than top-aligned: a 74px picture beside a 3-line
   block looks dropped if it hangs off the top. */
.rebook-vcheck .vcard-photo { align-self: center; }
.rebook-vcheck .rv-body { flex: 1; min-width: 0; align-self: center; }
.rebook-vcheck .rv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rebook-vcheck .rv-name { font-weight: 800; color: var(--text); }
.rebook-vcheck .rv-price { font-weight: 800; color: var(--text); white-space: nowrap; }
.rebook-vcheck small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
/* FABLE-FIX1-0819: a vehicle added through the picker now renders in THIS
   row shape too (real name/price/service/minutes/rim chip/photo — item 2 of
   this ticket), not the bare text pill `.rebook-new-chip` used to be. It
   is not checkable (nothing to opt out of — it is only in the cart because
   it was just added), so it carries no input and reuses `.vcard-x` /
   `.vcard-id` / `.vcard-photo` for its remove button and photo — the SAME
   two classes the fresh cart's own rows use, on purpose: one visual
   component, three call sites. `.rebook-new-chip` (the old pill) is
   retired with it; nothing else built one. */
.rebook-vcheck.new { position: relative; padding-right: 40px; cursor: default; }

/* ── FRAME: the two SINGLE-SCREEN pages (CART-F2, 2026-08-16) ─────────
   The code screen and the success screen are wizard screens too, but they
   are not inside a `.wizard-step`, so the three frame rules at the top of
   this file cannot reach them — and that is exactly where the last four
   inline `style=` attributes had survived: three stacked blocks on the
   success page each carrying their own margin-top (10px, 14px, 18px), so
   the page walked down the screen in three different steps, and a
   `text-align:center` on the code screen's heading.

   ONE class, ONE number. `.ik-centered` is now the only way a screen says
   "this heading is centred", and `.success-block` the only way a block
   says "I am stacked under the confirmation". Declared AFTER `.win-hint`
   on purpose: `.win-hint`'s own margin shorthand would otherwise win the
   margin-top by source order and the gap would drift again. */
.ik-centered { text-align: center; }
.success-block { margin-top: var(--ik-gap-lg); }
.success-wrap .win-hint { text-align: center; }
/* The PIN offer is a read-me block, not a banner: its rows are sentences
   and prices, and centred sentences in a bordered card are unreadable. */
.success-wrap .rblk { text-align: left; }

/* ── FRAME: small widths ──────────────────────────────────────────────
   360px is the narrowest real phone this flow sees. Nothing here changes a
   look — it stops the 3-up rows and the sticky bar from overflowing the
   card, which is the "layout that breaks at small widths" half of the
   founder's item. The page body must never scroll sideways. */
@media (max-width: 380px) {
  .ik-triple { grid-template-columns: 1fr 0.6fr 1fr; gap: 6px; }
  .chip-row { gap: 6px; }
  .chip { padding: 14px 4px; font-size: 14px; }
  .quick-btn { font-size: 11px; padding: 8px 2px; }
  .sticky-bar { font-size: 13px; padding-left: 12px; }
  .sticky-go { padding: 10px 12px; }
  .vcard { padding-right: 38px; }
  .vcard-name, .vcard-price { font-size: 14px; }
}
