/* ─────────────────────────────────────────────────────────────────────────────
   ONBOARDING SHELL — the v17 "glass" skin shared by every owner-onboarding funnel
   page (Account → Plan → Add-ons → Wallet → Checkout).

   Source of truth: the owner's v17 handoff
     ~/onboarding-handoff-0909/v17/design_handoff_onboarding_billing/README.md
   plus its prototype `design/Onboarding Billing (glass).dc.html` (reference for exact
   values ONLY — its runtime is deliberately NOT ported).

   Linked as <link rel="stylesheet" href="/onboarding-shell.css"> by each funnel page
   and bundled/served the same way /d1-shell.css is (Text module rule + a route in
   src/index.ts). This file carries NO page-specific rules: everything here is either a
   handoff token or a shell class every step wears.

   ⚠️ ONE DELIBERATE DEVIATION FROM THE MOCK (pre-approved, lane F1): the handoff's
   muted-text token `rgba(190,206,240,.55–.6)` measures ~3.8–4.2:1 against the composited
   glass surfaces, i.e. below WCAG AA for body-size text. `--onb-text-muted` is therefore
   rendered at alpha **.68** (see the token below); the mock's literal value is kept as
   `--onb-text-muted-mock` so the original is never lost and a large-text-only surface can
   still reach for it. Nothing else deviates.
   ────────────────────────────────────────────────────────────────────────────── */

:root {
  /* ── Color (README §Design tokens, verbatim) ───────────────────────────── */
  --onb-ground: #070b16;                       /* page ground, behind the modal   */
  --onb-panel: rgba(9, 14, 28, .38);           /* cards                           */
  --onb-panel-deep: rgba(9, 14, 28, .55);      /* inputs, sub-panels              */
  --onb-rail-bg: rgba(9, 14, 28, .34);         /* right column                    */
  --onb-hairline: rgba(94, 234, 212, .2);      /* borders, dividers (.16–.2)      */
  --onb-hairline-soft: rgba(94, 234, 212, .16);
  --onb-hairline-mid: rgba(94, 234, 212, .18);
  --onb-border-active: rgba(94, 234, 212, .42);/* selected / on cards             */
  --onb-accent: #7dead8;                       /* icons, small emphasis           */
  --onb-accent-grad: linear-gradient(160deg, #8ef0dd, #2fc7c0);
  --onb-on-accent: #04252a;                    /* ink on the teal gradient        */
  --onb-text: #f2f6ff;                         /* headings                        */
  --onb-text-strong: #f4f8ff;                  /* display headings                */
  /* ⚠️ a11y bump — the handoff's descriptions token is .68, which measures 4.22–4.38:1
     against the composited glass at the b1 orb's worst animation phase (audit D1) on the
     five pages that put `.onb-sub` over it. At .80 the same worst phase clears AA. */
  --onb-text-body: rgba(200, 214, 246, .8);    /* descriptions                    */
  --onb-text-body-mock: rgba(200, 214, 246, .68); /* the handoff's literal value    */
  --onb-text-label: rgba(200, 214, 246, .72);  /* field labels                    */
  --onb-text-muted-mock: rgba(190, 206, 240, .55); /* the mock's literal meta token */
  --onb-text-muted: rgba(190, 206, 240, .68);  /* ⚠️ a11y bump — see header note   */
  --onb-input-text: #eaf1ff;                   /* input values                    */
  --onb-error: #ff9b9b;                        /* error text on this dark surface */
  --onb-error-border: rgba(255, 138, 138, .62);
  --onb-error-bg: rgba(255, 108, 108, .09);

  /* ── Type ──────────────────────────────────────────────────────────────── */
  --onb-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --onb-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;

  /* ── Radius ────────────────────────────────────────────────────────────── */
  --onb-radius-modal: 26px;
  --onb-radius-card: 18px;
  --onb-radius-panel: 16px;
  --onb-radius-input: 14px;
  --onb-radius-btn: 12px;
  --onb-radius-pill: 999px;

  /* ── Shadow / glow ─────────────────────────────────────────────────────── */
  --onb-card-inner: inset 0 1px 0 rgba(255, 255, 255, .1);
  --onb-card-glow: 0 0 16px rgba(52, 227, 194, .1);
  --onb-active-glow: 0 0 20px rgba(52, 227, 194, .18);
  --onb-input-inset: inset 0 1px 3px rgba(0, 0, 0, .34), 0 0 14px rgba(52, 227, 194, .1);
  --onb-primary-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px rgba(47, 199, 192, .34);
  --onb-modal-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(94, 234, 212, .1),
                      0 0 34px rgba(52, 227, 194, .2), 0 30px 70px rgba(2, 5, 14, .6);

  /* ── Glass ─────────────────────────────────────────────────────────────── */
  --onb-glass-bg: linear-gradient(168deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  --onb-glass-filter: blur(34px) saturate(185%);
}

/* ── base ─────────────────────────────────────────────────────────────────── */
.onb *, .onb *::before, .onb *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.onb-body {
  background: var(--onb-ground);
  font-family: var(--onb-sans);
  color: #e8eeff;
  -webkit-font-smoothing: antialiased;
}
.onb input, .onb button, .onb select, .onb textarea { font-family: inherit; }
.onb input::placeholder { color: rgba(214, 228, 255, .62); }
.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: 400; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
}
/* thin teal scrollbar on every scrollable shell region */
.onb-sc { scrollbar-width: thin; scrollbar-color: rgba(94, 234, 212, .28) transparent; }
.onb-sc::-webkit-scrollbar { width: 8px; }
.onb-sc::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .24); border-radius: 8px; }
.onb-sc::-webkit-scrollbar-track { background: transparent; }

/* ── page decor: the drifting cyan/violet/teal blooms behind the glass ────── */
.onb-decor { position: fixed; inset: 0; overflow: hidden; background: var(--onb-ground); z-index: 0; }
.onb-decor i { position: absolute; display: block; border-radius: 50%; filter: blur(20px); }
.onb-decor i.b1 {
  width: 900px; height: 900px; left: -280px; top: -340px;
  background: radial-gradient(circle, rgba(34, 211, 238, .5) 0%, rgba(34, 211, 238, .14) 42%, transparent 70%);
  animation: onb-drift1 26s ease-in-out infinite;
}
.onb-decor i.b2 {
  width: 1000px; height: 1000px; right: -340px; top: -240px;
  background: radial-gradient(circle, rgba(124, 92, 255, .46) 0%, rgba(124, 92, 255, .12) 44%, transparent 70%);
  animation: onb-drift2 32s ease-in-out infinite;
}
.onb-decor i.b3 {
  width: 820px; height: 820px; left: 32%; bottom: -420px;
  background: radial-gradient(circle, rgba(20, 184, 166, .42) 0%, rgba(20, 184, 166, .1) 46%, transparent 72%);
  animation: onb-drift3 29s ease-in-out infinite;
}
.onb-decor u {
  position: absolute; inset: 0; display: block;
  background: radial-gradient(120% 90% at 50% 40%, transparent 28%, rgba(7, 11, 22, .72) 100%);
}
@keyframes onb-drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(60px,-40px,0) scale(1.12); } }
@keyframes onb-drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-70px,50px,0) scale(1.08); } }
@keyframes onb-drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,60px,0) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .onb-decor i { animation: none !important; } }

/* ── modal frame ──────────────────────────────────────────────────────────── */
.onb-stage {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; color: #e8eeff;
}
.onb-modal {
  width: 100%; max-width: 1240px; height: 820px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  border-radius: var(--onb-radius-modal); overflow: hidden;
  background: var(--onb-glass-bg);
  backdrop-filter: var(--onb-glass-filter);
  -webkit-backdrop-filter: var(--onb-glass-filter);
  border: 1px solid rgba(94, 234, 212, .3);
  box-shadow: var(--onb-modal-shadow);
}

/* ── header: 36px circular mark + wordmark + 5-step stepper ───────────────── */
.onb-header {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--onb-hairline-mid);
  background: rgba(9, 14, 28, .32);
}
.onb-brand { display: flex; align-items: center; gap: 11px; }
.onb-brand-mark {
  width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 50%;
  box-shadow: 0 0 22px rgba(52, 227, 194, .28);
}
.onb-brand-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: #dfe9ff;
}
.onb-stepper { display: flex; align-items: center; flex-wrap: wrap; }
.onb-step-wrap { display: flex; align-items: center; }
/* The stepper is DISPLAY-ONLY (README §Interactions) — movement is via the footer. */
.onb-step {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 126px; height: 36px; border-radius: var(--onb-radius-pill);
  font-size: 12.5px; font-weight: 600; transition: background .14s;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(148, 170, 210, .14);
  color: var(--onb-text-muted);              /* future — the a11y-bumped muted token
                                                (mock: rgba(190,206,240,.5) → measured
                                                4.1:1 on the chip; .6 still measured
                                                4.43:1, so it rides the .68 token) */
}
.onb-step > span:last-child { white-space: nowrap; }
.onb-step-num {
  width: 21px; height: 21px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: rgba(190, 206, 240, .78); background: rgba(255, 255, 255, .08);
}
.onb-step.is-done {
  background: rgba(94, 234, 212, .06);
  border-color: rgba(94, 234, 212, .22);
  color: rgba(206, 220, 252, .8);
}
.onb-step.is-done .onb-step-num {
  color: var(--onb-accent); background: rgba(94, 234, 212, .14);
  border: 1px solid rgba(94, 234, 212, .32);
}
.onb-step.is-current {
  background: rgba(94, 234, 212, .13);
  border-color: rgba(94, 234, 212, .34);
  color: var(--onb-text);
}
.onb-step.is-current .onb-step-num { color: var(--onb-on-accent); background: var(--onb-accent-grad); }
.onb-step-connector {
  width: 18px; height: 2px; flex: none; border-radius: 2px;
  background: rgba(148, 170, 210, .22);
}
.onb-step-connector.is-done { background: linear-gradient(90deg, rgba(94, 234, 212, .7), rgba(94, 234, 212, .45)); }

/* ── body: content column (+ rail from step 2 on) ─────────────────────────── */
.onb-shell-body { flex: 1; min-height: 0; display: flex; }
.onb-main { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 20px; }
.onb-h1 {
  margin: 0 0 4px; font-family: var(--onb-display); font-weight: 500;
  font-size: 21px; letter-spacing: -.02em; color: var(--onb-text-strong);
}
.onb-sub { margin: 0 0 10px; font-size: 13px; color: var(--onb-text-body); }

/* ── grids ────────────────────────────────────────────────────────────────── */
.onb-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.onb-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }

/* ── glass card + numbered header ─────────────────────────────────────────── */
.onb-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 11px 13px; border-radius: var(--onb-radius-card);
  background: var(--onb-panel); border: 1px solid var(--onb-hairline);
  box-shadow: var(--onb-card-inner), var(--onb-card-glow);
}
.onb-card.is-active { background: rgba(94, 234, 212, .09); border-color: var(--onb-border-active); box-shadow: var(--onb-card-inner), var(--onb-active-glow); }
.onb-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.onb-badge {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: var(--onb-accent); background: rgba(94, 234, 212, .13);
  border: 1px solid rgba(94, 234, 212, .32);
}
.onb-card-title { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--onb-text); }

/* ── fields ───────────────────────────────────────────────────────────────── */
.onb-field { min-width: 0; }
.onb-label { display: block; font-size: 11px; font-weight: 600; color: var(--onb-text-label); margin-bottom: 3px; }
/* label row that also carries a right-aligned note (e.g. "from your sign-in") — the
   note must cost NO extra height, so it shares the label's line. */
.onb-label--split { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.onb-label-note { font-size: 11px; font-weight: 500; color: var(--onb-text-muted); white-space: nowrap; }
.onb-control {
  padding: 0 10px; height: 33px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--onb-radius-input);
  background: rgba(9, 14, 28, .42); border: 1px solid var(--onb-hairline);
  box-shadow: var(--onb-input-inset);
  transition: border-color .16s, background .16s;
}
.onb-control:focus-within { border-color: var(--onb-border-active); }
.onb-control input,
.onb-control select {
  width: 100%; min-width: 0; border: 0; outline: none; background: transparent;
  color: var(--onb-input-text); font-size: 13px;
}
/* the country select wears the mock's `expand_more` chevron, so the native one goes */
.onb-control select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.onb-control select option { background: #0b1120; color: var(--onb-input-text); }
.onb-control .onb-chevron { font-size: 19px; color: var(--onb-text-muted); pointer-events: none; }
.onb-control--strong input { font-weight: 600; }

/* locked (SSO-owned) fields: readable, obviously not editable, never a disabled grey-out */
.onb-control.is-locked { background: rgba(9, 14, 28, .62); border-color: rgba(94, 234, 212, .14); }
.onb-control.is-locked input { color: rgba(234, 241, 255, .82); cursor: default; }
.onb-lock { font-size: 16px; flex: none; color: var(--onb-text-muted); }
.onb-hint { font-size: 11.5px; line-height: 1.4; color: var(--onb-text-muted); margin-top: 5px; }

/* ── error state: border + icon + 12px message (never color alone) ────────── */
.onb-control.is-invalid { border-color: var(--onb-error-border); background: var(--onb-error-bg); }
.onb-err {
  display: none; align-items: flex-start; gap: 6px;
  font-size: 12px; line-height: 1.35; color: var(--onb-error); margin-top: 5px;
}
.onb-err .msr { font-size: 14px; flex: none; margin-top: .5px; }
.onb-field.is-invalid .onb-err { display: flex; }

/* ── three-up note strip (informational, no controls) ─────────────────────── */
.onb-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.onb-note {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 8px 10px; border-radius: var(--onb-radius-panel);
  background: var(--onb-panel-deep); border: 1px solid var(--onb-hairline);
}
/* The strip's "font-size 11px" (density contract, 2026-09-18) is set on the two elements
   that actually carry text — .onb-note itself has no text node, so a font-size there would
   be inherited by nothing and read as a live value while changing no pixel. The title
   keeps a half-step of hierarchy over the body, as it did at 13.5/12. */
.onb-note .msr { font-size: 17px; flex: none; color: var(--onb-accent); }
.onb-note-title { font-size: 11.5px; font-weight: 700; color: var(--onb-text); }
.onb-note-body { font-size: 11px; line-height: 1.4; color: rgba(200, 214, 246, .72); margin-top: 2px; }

/* ── inline banner (save failures, setup-incomplete notices) ──────────────── */
.onb-banner {
  display: none; align-items: flex-start; gap: 9px;
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--onb-radius-input);
  background: var(--onb-error-bg); border: 1px solid var(--onb-error-border);
  font-size: 13px; line-height: 1.45; color: #ffd9d9;
}
.onb-banner.is-open { display: flex; }
.onb-banner .msr { font-size: 18px; flex: none; color: var(--onb-error); }
.onb-banner--info { background: rgba(9, 14, 28, .5); border-color: var(--onb-hairline); color: rgba(206, 220, 252, .86); }
.onb-banner--info .msr { color: var(--onb-accent); }

/* ── rail ("Your plan") — hidden on step 1 by design, built here for 2–5 ──── */
.onb-rail {
  flex: none; width: 352px; overflow-y: auto;
  padding: 26px 24px;
  border-left: 1px solid var(--onb-hairline-mid);
  background: var(--onb-rail-bg);
}
.onb-rail-title { margin: 0 0 18px; font-family: var(--onb-display); font-weight: 500; font-size: 21px; color: var(--onb-text-strong); }
.onb-rail-company {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px; border-radius: var(--onb-radius-panel);
  background: var(--onb-panel-deep); border: 1px solid var(--onb-hairline);
  box-shadow: 0 0 16px rgba(52, 227, 194, .12);
}
.onb-rail-avatar {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  color: var(--onb-on-accent); background: linear-gradient(150deg, #8ef0dd, #2fc7c0);
  box-shadow: 0 0 18px rgba(52, 227, 194, .3);
}
.onb-rail-company-name { font-size: 14.5px; font-weight: 700; color: var(--onb-text); }
.onb-rail-owner { font-size: 12.5px; color: var(--onb-text-muted); }
.onb-rail-items { display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.onb-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.onb-line-name { font-size: 14px; font-weight: 650; color: var(--onb-input-text); }
.onb-line-meta { font-size: 12px; color: var(--onb-text-muted); }
.onb-line-amt { font-size: 14px; font-weight: 700; color: var(--onb-input-text); white-space: nowrap; }
.onb-line-amt .onb-per { font-size: 12px; font-weight: 500; color: var(--onb-text-muted); }
.onb-rail-divider { height: 1px; background: var(--onb-hairline-soft); margin: 16px 0; }
.onb-total-row { display: flex; align-items: baseline; justify-content: space-between; }
.onb-total-label { font-size: 15px; font-weight: 700; color: var(--onb-text); }
.onb-total-num { font-family: var(--onb-display); font-weight: 600; font-size: 27px; color: var(--onb-text-strong); }
.onb-onetime {
  margin-top: 16px; padding: 13px 14px; border-radius: var(--onb-radius-input);
  background: var(--onb-panel-deep); border: 1px solid var(--onb-hairline-mid);
}
.onb-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--onb-text-muted); margin-bottom: 9px;
}
.onb-onetime-rows { display: flex; flex-direction: column; gap: 8px; }
.onb-onetime-name { font-size: 13px; color: rgba(206, 220, 252, .8); }
.onb-onetime-amt { font-size: 13.5px; font-weight: 700; color: var(--onb-input-text); white-space: nowrap; }
.onb-fee-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.onb-fee-label { font-size: 13px; color: var(--onb-text-body); }
.onb-fee-amt { font-size: 14px; font-weight: 700; color: var(--onb-input-text); }
.onb-due-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--onb-hairline-soft);
}
.onb-due-label { font-size: 15px; font-weight: 700; color: var(--onb-text); }
.onb-due-num { font-family: var(--onb-display); font-weight: 600; font-size: 25px; color: var(--onb-text-strong); }
.onb-prorate { font-size: 11.5px; line-height: 1.45; color: var(--onb-text-muted); margin-top: 6px; }
.onb-rail-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 18px; padding: 12px 13px; border-radius: var(--onb-radius-input);
  background: var(--onb-panel-deep); border: 1px solid var(--onb-hairline-mid);
  font-size: 12.5px; line-height: 1.5; color: rgba(206, 220, 252, .8);
}
.onb-rail-note .msr { font-size: 18px; color: var(--onb-accent); flex: none; }
.onb-flag-note {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; padding: 12px 13px; border-radius: var(--onb-radius-input);
  background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3);
  font-size: 12.5px; line-height: 1.5; color: #c9fdef;
}
.onb-flag-note .msr { font-size: 18px; color: var(--onb-accent); flex: none; }

/* ── footer: context note + Back ghost + primary gradient ─────────────────── */
.onb-footer {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--onb-hairline-mid);
  background: rgba(9, 14, 28, .32);
}
.onb-footer-note { font-size: 12.5px; color: var(--onb-text-muted); }
.onb-actions { display: flex; align-items: center; gap: 14px; }
.onb-btn-ghost {
  display: flex; align-items: center; gap: 7px;
  /* 14px, not 13px: the two footer controls sit on ONE baseline row and the ghost
     measured 47px against the primary's 50px (layout audit item 5). */
  padding: 14px 20px; border-radius: var(--onb-radius-pill);
  cursor: pointer; white-space: nowrap; font-size: 14px; font-weight: 600;
  color: #cfe0ff; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--onb-hairline);
  transition: background .16s, border-color .16s;
}
.onb-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.onb-btn-ghost .msr { font-size: 19px; }
.onb-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: var(--onb-radius-pill);
  cursor: pointer; white-space: nowrap; font-size: 15px; font-weight: 700;
  color: var(--onb-on-accent); background: var(--onb-accent-grad);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: var(--onb-primary-shadow);
  transition: filter .16s;
}
.onb-btn-primary:hover { filter: brightness(1.07); }
.onb-btn-primary[disabled] { cursor: default; filter: saturate(.55) brightness(.85); }
.onb-btn-primary .msr { font-size: 20px; }

/* keyboard focus is visible on every interactive shell control */
.onb :focus-visible { outline: 2px solid rgba(142, 240, 221, .85); outline-offset: 2px; }

/* ── responsive (README §Responsive) ──────────────────────────────────────────
   🔴 THE .onb-grid-3 LADDER MOVED DOWN (density contract, 2026-09-18): 3-col ≥900px,
   2-col 560–899px, 1-col <560px. It used to drop to 2-col at 1000px and 1-col at 720px,
   which is what made the fields "massive and super wide for no reason" on a laptop — a
   single card spanning half the modal gives a 500px-wide ZIP input. The note strip stays
   a single row of 3 down to 640px for the same reason. The rail's own 1160px hide is
   untouched; the 720px phone block keeps its frame rules and gives up only the two
   size overrides that the new desktop values inverted (see the note inside it). Order
   matters: each narrower rule sits BELOW the one it overrides. */
@media (max-width: 1160px) {
  .onb-rail { display: none !important; }
}
@media (max-width: 1000px) {
  .onb-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .onb-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .onb-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .onb-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .onb-stage { padding: 0; }
  .onb-modal { height: auto; min-height: 100vh; max-height: none; border-radius: 0; border-left: 0; border-right: 0; }
  /* These two were the PHONE-IS-ROOMIER overrides of a 26px/30px desktop. Against the
     2026-09-18 desktop values (16px/20px main padding, 21px h1) they inverted — a phone
     would have got MORE padding and a BIGGER heading than a laptop — so they come down
     with everything else rather than staying as written. */
  .onb-main { padding: 14px 14px; }
  .onb-header, .onb-footer { padding: 14px 16px; }
  .onb-h1 { font-size: 20px; }
  .onb-step { width: auto; padding: 0 12px; }
  .onb-step > span:last-child { display: none; }   /* numbers only once it is this tight */
  .onb-step-connector { width: 10px; }
  .onb-footer { justify-content: center; }
  .onb-actions { width: 100%; }
  .onb-btn-primary { flex: 1; }
}
