/* ==========================================================================
   SIMM Offers — prototype styles
   Mobile-first. Desktop layout kicks in at 900px.
   ========================================================================== */

:root {
  /* Brand — override --accent at runtime with ?accent=0F766E */
  --accent: #1660E8;
  --accent-hover: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, #fff);
  --accent-ring: color-mix(in srgb, var(--accent) 18%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 30%, #fff);

  /* Neutrals */
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --subtle: #F8FAFD;
  --tray: #E8EDF5;
  --ink: #0E1B3D;
  --ink-2: #3A4660;
  --muted: #55617A;
  --faint: #8590A6;
  --line: #E3E8F1;
  --line-2: #EEF1F6;
  --line-3: #DCE2EC;
  --input-line: #C9D1DE;

  /* Status */
  --success: #17633A;
  --success-strong: #1E8A4C;
  --success-bg: #E6F4EC;
  --success-ink: #17402A;
  --warn: #6B4300;
  --warn-bg: #FFF6E5;
  --danger: #B42318;

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
input::placeholder { color: var(--faint); }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }

.icon { display: inline-flex; flex: none; }
.icon svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Responsive visibility helpers */
@media (min-width: 900px) { .mobile-only { display: none !important; } }
@media (max-width: 899.98px) { .desktop-only { display: none !important; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 20px; min-height: 64px;
}
.site-header--back .site-header__inner { padding-left: 12px; }
.site-header--centered .site-header__inner { justify-content: center; }

.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.brand__name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }

.icon-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--ink); border: 0; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }

.header-phone {
  font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px;
  color: var(--ink-2); text-decoration: none;
}

.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.stepper__dot {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--input-line);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done .stepper__dot { border: 0; background: var(--accent-soft); color: var(--accent); }
.stepper li.is-current { color: var(--ink); font-weight: 700; }
.stepper li.is-current .stepper__dot { border: 0; background: var(--accent); color: #fff; }

.progress { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.progress__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress__bars span { height: 4px; border-radius: 4px; background: var(--line-3); }
.progress__bars span.is-on { background: var(--accent); }
.progress__label { font-size: 13px; font-weight: 600; color: var(--muted); }

@media (min-width: 900px) {
  .site-header__inner,
  .site-header--back .site-header__inner {
    max-width: 1160px; margin: 0 auto; padding: 14px 24px; flex-wrap: wrap;
  }
  .site-header--centered .site-header__inner { justify-content: space-between; }
  .brand__mark { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
  .brand__name { font-size: 18px; }
}

/* ---------- Page shell ---------- */
.page {
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 20px 32px;
}
.page--top { padding-top: 28px; }
.page--narrow { max-width: 640px; margin: 0 auto; width: 100%; }

@media (min-width: 900px) {
  .page { max-width: 1160px; margin: 0 auto; padding: 32px 24px 64px; gap: 24px; }
  .page--top { padding-top: 40px; }
  .page--narrow { max-width: 760px; padding-top: 56px; }
}

.back-link {
  align-self: flex-start; font-size: 14px; font-weight: 700; min-height: 44px;
  display: flex; align-items: center; gap: 6px; text-decoration: none; margin-bottom: -12px;
}

.intro { display: flex; flex-direction: column; gap: 6px; }
.intro__eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.intro h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.intro__lede { font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) {
  .intro h1 { font-size: 36px; }
  .intro__eyebrow, .intro__lede { font-size: 16px; }
}

/* Two-column layout: .main + .side */
.layout { display: flex; flex-direction: column; gap: 18px; }
.layout > .main, .layout > .side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 899.98px) {
  .layout--side-first > .side { order: -1; }
}
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .layout > .main { gap: 20px; }
  .layout > .side { gap: 14px; position: sticky; top: 24px; }
  .layout--side-left { grid-template-columns: 360px minmax(0, 1fr); }
  .layout--side-left > .side { order: -1; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.card--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.card--tight { gap: 12px; }
.card--flush { padding: 8px 20px 12px; gap: 0; }
@media (min-width: 900px) {
  .card { padding: 24px; }
  .card--roomy { padding: 28px; gap: 20px; }
  .card--flush { padding: 12px 24px 16px; }
}
@media (max-width: 899.98px) {
  .card--mobile-bare { background: transparent; border: 0; padding: 0; gap: 10px; }
}
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__title { font-size: 17px; font-weight: 700; }
.card__title--strong { font-weight: 800; }
@media (min-width: 900px) { .card__title { font-size: 18px; font-weight: 800; } }

.text-link { font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 2px; }

/* Row card: icon tile + text + chevron */
.row-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  text-decoration: none; color: var(--ink);
}
a.row-card:hover { color: var(--ink); border-color: var(--line-3); }
.row-card--dashed { border-style: dashed; border-color: #B8C2D3; border-radius: 18px; padding: 18px 16px; }
@media (min-width: 900px) { .row-card--dashed { border-radius: var(--radius-lg); padding: 20px 24px; } }
.row-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.row-card__title { font-size: 16px; font-weight: 700; }
.row-card__meta { font-size: 13px; color: var(--muted); }
.row-card__value { font-size: 15px; font-weight: 700; }

.icon-tile {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile--lg { width: 44px; height: 44px; }
.icon-tile--xl { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile--neutral { background: var(--bg); color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 52px; border-radius: 14px; border: 0; padding: 0 20px;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn--lg { min-height: 56px; }
.btn--outline { background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent-soft); color: var(--accent); }
.btn--dark { background: var(--ink); color: #fff; font-size: 15px; }
.btn--dark:hover { background: #000; }
.btn--ghost-dark { background: var(--surface); border: 1px solid var(--ink); color: var(--ink); font-size: 15px; }
.btn--ghost-dark:hover { background: var(--bg); color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--input-line); color: var(--ink-2); cursor: not-allowed; }
@media (min-width: 900px) { .btn--inline { align-self: flex-start; padding: 0 28px; } }

.link-btn {
  min-height: 44px; border: 0; background: transparent; color: var(--accent);
  font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 4px;
}
.link-btn:hover { color: var(--accent-hover); }

.helper { font-size: 13px; color: var(--muted); }
.helper--center { text-align: center; }

/* ---------- Key/value lists ---------- */
.kv { display: flex; flex-direction: column; }
.kv__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.kv--ruled .kv__row + .kv__row { border-top: 1px solid var(--line-2); }
.kv--tight { gap: 10px; }
.kv--tight .kv__row { padding: 0; }
.kv dt { font-size: 14px; color: var(--muted); }
.kv dd { font-size: 14px; font-weight: 600; text-align: right; }
.kv--strong dd { font-weight: 700; }
.card--accent .kv dt { color: var(--ink-2); }
.kv__sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.kv__stack { display: flex; flex-direction: column; gap: 2px; }
.kv__stack-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.kv__stack-meta { font-size: 13px; color: var(--muted); }
.kv--divided { border-top: 1px solid var(--accent-line); padding-top: 14px; }

.more-details {
  display: flex; flex-direction: column; background: var(--subtle); border-radius: 12px;
  padding: 4px 14px; margin-top: -6px;
}
.more-details .kv__row { padding: 10px 0; }
.more-details dt, .more-details dd { font-size: 13px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 900px) { .stats { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.stat { background: var(--bg); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 900px) { .stat { padding: 16px; } }
.stat__label { font-size: 13px; color: var(--muted); }
.stat__value { font-size: 18px; font-weight: 800; }
.stat__meta { font-size: 13px; color: var(--ink-2); }
@media (min-width: 900px) { .stat__value { font-size: 22px; } }

.balance-box { background: var(--bg); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.balance-box__value { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.big-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.big-amount__value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.big-amount__unit { font-size: 15px; font-weight: 600; color: var(--ink-2); }
@media (min-width: 900px) { .big-amount__value { font-size: 38px; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge--success { background: var(--success-bg); color: var(--success); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--success-bg); color: var(--success); font-size: 13px; font-weight: 700; flex: none;
}
.status-pill--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.notice .icon { margin-top: 1px; }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--info { background: var(--bg); color: var(--ink-2); }
.notice--success { background: var(--success-bg); color: var(--success-ink); font-size: 14px; padding: 14px 16px; border-radius: 16px; align-items: center; gap: 12px; }
.notice--plain { background: var(--surface); border: 1px solid var(--line); color: var(--muted); padding: 14px 16px; border-radius: 14px; }
.notice__icon-box { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #fff; color: var(--success); display: flex; align-items: center; justify-content: center; }

a.notice { text-decoration: none; }
a.notice--success { color: var(--success); }
a.notice--success:hover { color: var(--success-ink); }

.help-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink-2); }
.help-card__title { font-size: 15px; font-weight: 700; color: var(--ink); display: block; }
.help-card__text { font-size: 14px; line-height: 1.5; }

.fineprint { font-size: 12px; line-height: 1.55; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 899.98px) { .site-footer { border-top: 0; padding-top: 4px; } }

.divider-text { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; font-weight: 600; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line-3); }

/* ---------- Offer cards ---------- */
.offers { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.offers__legend { font-size: 18px; font-weight: 800; padding: 0; margin-bottom: 14px; }
@media (max-width: 899.98px) {
  .offers__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
}
.offers__grid { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
  .offers__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
}
.offer {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
}
.offer.is-selected { background: var(--accent-soft); border: 2px solid var(--accent); }
.offer__label { display: flex; gap: 14px; padding: 18px 16px; cursor: pointer; flex: 1; }
.offer__radio { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.offer__body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.offer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.offer__tags:empty { display: none; }
.offer__name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.offer__amount { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.offer__amount-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.offer__amount-unit { font-size: 15px; color: var(--muted); font-weight: 600; }
.offer__sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.offer__details { border-top: 1px solid var(--accent-line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
@media (min-width: 900px) {
  .offer__label { flex-direction: column; gap: 10px; padding: 20px; }
  .offer__radio { margin: 0; }
  .offer__amount-value { font-size: 30px; }
}

.offer-panel { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.offer-panel__info { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.offer-panel__cta { flex: 0 1 280px; white-space: nowrap; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.offer-panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.offer-panel__grid dt { font-size: 13px; color: var(--muted); }
.offer-panel__grid dd { font-size: 16px; font-weight: 700; }

/* Teaser on account page */
.teaser { background: var(--accent-soft); border: 1px solid var(--accent-ring); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.teaser__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.teaser h2 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.teaser p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.teaser strong { color: var(--ink); }
.teaser__expires { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }

/* ---------- Choice controls ---------- */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--tray); border-radius: 14px; }
@media (min-width: 900px) { .segmented { max-width: 420px; } }
.segmented button {
  min-height: 44px; border: 0; border-radius: 11px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 27, 61, 0.12); }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chips--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 900px) { .chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 8px;
}
.chip[aria-checked="true"], .chip.is-selected { border: 2px solid var(--accent); background: var(--accent-soft); }
.chip--tall {
  min-height: 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; padding: 8px 14px; text-align: left;
}
.chip__meta { font-size: 12.5px; font-weight: 400; color: var(--muted); }

.radio-row {
  min-height: 52px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--surface);
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; cursor: pointer;
}
.radio-row.is-selected { border: 2px solid var(--accent); background: var(--accent-soft); }
.radio-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.radio-row__text { display: flex; flex-direction: column; gap: 1px; }
.radio-row__title { font-size: 14px; font-weight: 700; }
.radio-row__meta { font-size: 12.5px; color: var(--muted); }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .radio-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tabs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .tabs-2 { gap: 12px; } }
.tab-card {
  min-height: 56px; border-radius: 14px; border: 1px solid var(--line-3); background: var(--surface);
  font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 10px;
}
.tab-card[aria-selected="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }

.settings-group { display: flex; flex-direction: column; gap: 10px; }
.settings-group + .settings-group { border-top: 1px solid var(--line-2); padding-top: 16px; }
.settings-group__label { font-size: 14px; font-weight: 600; }

/* ---------- Slider ---------- */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row input[type="range"] { flex: 1; min-width: 0; height: 28px; accent-color: var(--accent); }
.step-btn {
  width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line-3);
  background: var(--surface); font-size: 22px; font-weight: 600; cursor: pointer;
}
@media (min-width: 900px) { .step-btn { width: 48px; height: 48px; } }
.slider-limits { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 0 56px; margin-top: -8px; }
@media (min-width: 900px) { .slider-limits { padding: 0 62px; } }
.slider-value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
@media (min-width: 900px) { .slider-value { font-size: 44px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--danger); }
.input, .select {
  min-height: 48px; width: 100%; border: 1px solid var(--input-line); border-radius: 12px;
  padding: 0 14px; font-size: 16px; color: var(--ink); background: var(--surface);
}
.select { padding: 0 12px; font-size: 15px; }
.input[aria-invalid="true"] { border: 2px solid var(--danger); }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-grid__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .form-grid__pair { display: contents; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.option-box {
  min-height: 48px; border: 1px solid var(--input-line); border-radius: 12px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 15px; cursor: pointer;
}
.option-box input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; font-size: 14px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check--divided { padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
@media (min-width: 900px) { .check { font-size: 15px; } }

.legal-box {
  max-height: 200px; overflow-y: auto; padding: 14px; background: var(--bg); border-radius: 12px;
  font-size: 13px; line-height: 1.6; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 900px) { .legal-box { max-height: 240px; padding: 18px; font-size: 14px; } }

/* ---------- Schedule list ---------- */
.schedule { display: flex; flex-direction: column; }
.schedule.is-scroll { max-height: 320px; overflow-y: auto; }
.schedule__head, .schedule__row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 0 12px; align-items: center;
}
.schedule__head { display: none; }
.schedule__row { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.schedule__n {
  min-width: 32px; height: 28px; border-radius: 8px; background: var(--bg);
  font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; justify-content: center;
}
.schedule__date { display: flex; flex-direction: column; gap: 1px; }
.schedule__shift { font-size: 12px; color: var(--warn); }
.schedule__amt { font-weight: 700; text-align: right; }
.schedule__bal { display: none; color: var(--ink-2); text-align: right; }
.schedule__status { font-size: 13px; font-weight: 600; color: var(--muted); }
.schedule__status.is-paid { color: var(--success); }
.schedule__status.is-next { color: var(--accent); }
.schedule--status .schedule__row { grid-template-columns: 40px 1fr auto auto; }
@media (min-width: 900px) {
  .schedule--table { border: 1px solid var(--line-2); border-radius: 12px; }
  .schedule--table .schedule__head,
  .schedule--table .schedule__row { grid-template-columns: 56px 1fr 1fr 1fr; padding: 10px 16px; }
  .schedule--table .schedule__head {
    display: grid; background: var(--subtle); font-size: 13px; font-weight: 700; color: var(--ink-2);
    position: sticky; top: 0; border-bottom: 1px solid var(--line-2);
  }
  .schedule--table .schedule__bal { display: block; }
  .schedule--table .schedule__n { background: transparent; justify-content: flex-start; font-size: 14px; font-weight: 400; color: var(--muted); }
  .schedule--status .schedule__row { grid-template-columns: 48px 1fr auto 90px; padding: 10px 16px; }
  .schedule--status { border: 1px solid var(--line-2); border-radius: 12px; }
}
.schedule__head-r { text-align: right; }

/* ---------- Confirmation / processing ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-bottom: 4px; }
.hero__text { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hero h1 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero__lede { font-size: 15px; color: var(--muted); }
.hero__ref { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; text-align: left; gap: 20px; }
  .hero h1 { font-size: 36px; }
  .hero__lede { font-size: 16px; }
  .hero__text { align-items: flex-start; flex: 1; }
  .stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.success-mark { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--success-bg); display: flex; align-items: center; justify-content: center; }
.success-mark span { width: 52px; height: 52px; border-radius: 50%; background: var(--success-strong); color: #fff; display: flex; align-items: center; justify-content: center; }

.steps-list { display: flex; flex-direction: column; gap: 14px; }
.steps-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.steps-list__n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.progress-bar { height: 8px; border-radius: 8px; background: var(--tray); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }

.processing { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 24px 80px; text-align: center; max-width: 480px; margin: 0 auto; min-height: calc(100vh - 65px); }
.processing h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.ring { position: relative; width: 88px; height: 88px; }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 6px solid var(--accent-ring); }
.ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 6px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); animation: spin 1s linear infinite; }
.task-list { width: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.task-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.task-list li.is-pending { color: var(--muted); }
.task-list__mark { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.is-done .task-list__mark { background: var(--success-bg); color: var(--success); }
.is-active .task-list__mark { background: var(--accent-soft); }
.is-active .task-list__mark::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--accent-ring); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.is-pending .task-list__mark { border: 2px solid var(--line-3); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring::after, .is-active .task-list__mark::after { animation-duration: 3s; } }

/* ---------- Prototype toolbar ---------- */
.demo-bar { position: relative; display: flex; justify-content: center; padding: 8px 20px 28px; font-size: 13px; }
.demo-bar__toggle {
  border: 0; border-radius: 999px; padding: 8px 12px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer; opacity: 0.55;
}
.demo-bar__toggle:hover { opacity: 1; }
.demo-bar__panel {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 72px; width: 260px; z-index: 50; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 10px 30px rgba(14, 27, 61, 0.18);
}
.demo-bar__panel strong { font-size: 13px; }
.demo-bar__panel .select { min-height: 40px; font-size: 14px; }
.demo-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-bar__actions a, .demo-bar__actions button {
  border: 1px solid var(--line-3); background: var(--surface); border-radius: 10px; padding: 7px 10px;
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
}

/* API loading, partner brands, and presenter directory. */
html[data-booting] body > :not(.boot-status):not(script) { visibility: hidden; }
.boot-status { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--muted); z-index: 100; }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__operator { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; max-width: 260px; }
.demo-bar { align-items: center; flex-wrap: wrap; gap: 14px; }
.demo-label { color: var(--muted); font-size: 12px; }
.save-error { position: fixed; inset: auto 16px 16px; z-index: 200; padding: 16px; background: var(--danger); color: white; border-radius: 12px; }
.help-dialog { border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: min(420px, calc(100vw - 32px)); color: var(--ink); }
.help-dialog > * + * { margin-top: 16px; }
.help-dialog::backdrop { background: rgba(14, 27, 61, 0.4); }
.directory-login { max-width: 460px; }
.directory-actions { display: flex; gap: 20px; justify-content: space-between; margin: 0 0 24px; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.demo-card__brand { display: flex; align-items: center; gap: 12px; }
.demo-card h3 { font-size: 20px; }
.demo-qr { width: 200px; height: 200px; align-self: center; }
.demo-url { font-size: 12px; }
@media (max-width: 899.98px) { .brand__operator { max-width: 210px; font-size: 9px; } .brand__name { font-size: 14px; } }
.brand { min-width: 0; }
.brand__name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 899.98px) { .brand__operator { max-width: 100%; } }
