/* Public booking page. Plain CSS, no build step: live serves this file as committed.
   Tokens and components first, then the page layout (header band, stepper, panel, summary). */
:root {
  --accent: #880F0F;
  --accent-strong: #6E0C0C;
  --accent-dark: #4C0909;
  --accent-tint: #FBF2F2;
  --accent-line: #E7C6C6;
  --canvas: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --ink: #1F2937;
  --text: #374151;
  --muted: #6B7280;
  --line: #E3E6EA;
  --line-strong: #CBD1D8;
  --ok: #17703C;
  --ok-tint: #EAF6EE;
  --warn: #8A5A00;
  --warn-tint: #FFF6DF;
  --info: #1D4E89;
  --info-tint: #EAF2FB;
  --danger: #B42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, 0.07);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* scroll-padding keeps a focused field clear of the sticky Back / Continue bar */
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 120px; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--ink); }
h2 { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }
h3 { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* headings focused by script (step change, panel open) need no ring */
[tabindex="-1"]:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--accent); padding: 0 8px; min-height: 36px; }
.btn-quiet:hover { background: var(--accent-tint); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; border: 1px solid transparent;
}
.badge-full { background: var(--info-tint); color: var(--info); }
.badge-deposit { background: var(--warn-tint); color: var(--warn); }
.badge-free { background: var(--ok-tint); color: var(--ok); }
.badge-neutral { background: var(--surface-2); color: var(--text); }
.badge-off { background: #fff; color: var(--muted); border-color: var(--line-strong); }

/* Form fields */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.input:hover, .select:hover { border-color: #9AA3AE; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .help { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--danger); }
.field.invalid .input, .field.invalid .select { border-color: var(--danger); }

.mock-note {
  background: #FFFBEA; border: 1px solid #F1E3A6; color: #6B5300; border-radius: 10px;
  padding: 10px 14px; font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- booking page ---------- */
.site-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.site-header .in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header img { height: 36px; width: auto; }
.brand-text { font-weight: 600; color: var(--accent); font-size: 18px; letter-spacing: .02em; }
.help-link { font-size: 14px; text-decoration: none; font-weight: 500; }

.page { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
.page-head { display: grid; gap: 4px; margin-bottom: 20px; }

/* Stepper */
.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stepper li { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.stepper .bar { height: 4px; border-radius: 4px; background: var(--line); }
.stepper li.done .bar, .stepper li.now .bar { background: var(--accent); }
.stepper li.now { color: var(--ink); font-weight: 600; }
.stepper li.done { color: var(--text); }
.stepper li.skip .bar { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.stepper .n { font-variant-numeric: tabular-nums; }
.step-now-narrow { display: none; font-size: 14px; margin: 0 0 8px; color: var(--ink); font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.main { min-width: 0; }
.step-head { display: grid; gap: 4px; margin-bottom: 16px; }

/* Step 1 toolbar */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; margin-bottom: 12px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 13px; color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-left: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.crumbs button { background: none; border: 0; padding: 4px 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .here { color: var(--ink); font-weight: 500; }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tile { text-align: left; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.tile:hover { border-color: var(--line-strong); }
.tile .ph { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); font-weight: 600; font-size: 22px; overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .tx { padding: 12px 14px 14px; display: grid; gap: 2px; align-content: start; }
.tile .tx strong { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; }
.tile.cat .tx { padding: 16px; gap: 6px; }
.tile.cat .tx strong { font-size: 17px; }

/* Service rows: no images, by decision */
.svc-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.svc + .svc { border-top: 1px solid var(--line); }
.svc-main { width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.svc-main:hover { background: var(--surface-2); }
.svc.sel { background: var(--accent-tint); }
.svc.sel .svc-main:hover { background: transparent; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; }
.sel > .svc-main .radio, .opt.sel .radio, .pick.sel .radio { border-color: var(--accent); }
.sel > .svc-main .radio::after, .opt.sel .radio::after, .pick.sel .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.svc-name { color: var(--ink); font-weight: 500; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 2px; }
.svc-price { font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }
.svc-price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.opts { padding: 0 16px 16px 50px; display: grid; gap: 8px; }
.opts legend { font-size: 13px; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 6px; }
.opts fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; }
.opt.sel { border-color: var(--accent); }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; display: grid; gap: 8px; justify-items: center; }

/* Pick cards (clinic, doctor) */
.pick-list { display: grid; gap: 12px; }
.pick { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 22px 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.pick:hover { border-color: var(--line-strong); }
.pick.sel { border-color: var(--accent); background: var(--accent-tint); }
.pick .thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--accent); font-weight: 600; }
.pick .thumb.round { border-radius: 50%; }
.pick .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick strong { color: var(--ink); font-weight: 600; display: block; }
.pick .l2 { font-size: 14px; color: var(--text); }
.pick .l3 { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Date & time */
.dt { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.cal { padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { color: var(--ink); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[disabled] { opacity: .4; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid .dow { font-size: 12px; color: var(--muted); text-align: center; padding: 6px 0; }
.day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.day:hover:not([disabled]) { background: var(--surface-2); }
.day[disabled] { color: #B6BCC5; cursor: default; }
.day.today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.day.sel { background: var(--accent); color: #fff; }
.cal-legend { font-size: 12px; color: var(--muted); margin-top: 10px; }
.slots { padding: 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.slot { min-height: 44px; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius-sm); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.slot:hover:not([disabled]) { border-color: var(--accent); }
.slot.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot[disabled] { background: var(--surface-2); color: #A0A7B1; text-decoration: line-through; cursor: default; }

/* Details */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 16px; }
.tab { min-height: 40px; padding: 0 16px; border: 0; background: none; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.form { display: grid; gap: 16px; max-width: 640px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-id { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-weight: 400; cursor: pointer; }
.seg input { accent-color: var(--accent); width: 18px; height: 18px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.signed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Payment */
.lines { display: grid; gap: 0; }
.line { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.line:first-child { border-top: 0; }
.line dt { color: var(--muted); }
.line dd { margin: 0; color: var(--ink); }
.totals { display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.totals .due { font-size: 17px; font-weight: 600; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; display: grid; gap: 2px; }
.notice.full { background: var(--info-tint); color: #173B66; }
.notice.deposit { background: var(--warn-tint); color: #5E3F00; }
.notice.free { background: var(--ok-tint); color: #12502C; }
.stack { display: grid; gap: 16px; }

/* Summary */
.summary { position: sticky; top: 16px; }
.summary h2 { font-size: 16px; margin-bottom: 4px; }
.sum-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.sum-row .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sum-row .v { color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.sum-row .v.todo { color: #9AA3AE; font-weight: 400; }
.sum-row .sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; }
.sum-total div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sum-total .big { font-size: 16px; font-weight: 600; color: var(--ink); }
.summary-toggle { display: none; }

/* Sticky actions */
.actions { position: sticky; bottom: 0; z-index: 5; margin-top: 24px; background: var(--canvas); padding: 12px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.actions .err { color: var(--danger); font-size: 14px; flex: 1; }
.actions .right { display: flex; gap: 12px; margin-left: auto; }

/* Confirmation */
.confirmed { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; }
.confirmed-head { display: grid; gap: 8px; justify-items: start; }
.tick { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; }
.ref { font-size: 15px; }
.ref strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.confirmed-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bring { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; order: -1; }
  .summary-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 0; text-align: left; }
  .summary.closed .sum-body { display: none; }
  .dt { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .tile.cat { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto; }
  .tile.cat .ph { aspect-ratio: auto; height: 100%; min-height: 96px; }
}
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .stepper { gap: 4px; margin-bottom: 16px; }
  .stepper .lbl { display: none; }
  .step-now-narrow { display: block; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .row-id { grid-template-columns: 120px minmax(0, 1fr); }
  .pick { grid-template-columns: 22px 56px minmax(0, 1fr); gap: 12px; }
  .pick .thumb { width: 56px; height: 56px; }
  .opts { padding-left: 16px; }
  .svc-main { grid-template-columns: 22px minmax(0, 1fr); }
  .svc-price { grid-column: 2; text-align: left; }
  .svc-price small { display: inline; margin-right: 4px; }
  .line { grid-template-columns: 100px minmax(0, 1fr); }
  .actions .btn { padding: 0 16px; }
  .actions { flex-wrap: wrap; }
  .actions .err { flex-basis: 100%; }
  .help-link span { display: none; }
}

/* ================= second design pass ================= */
body { background: #F7F3F3; }
.site-header { background: #fff; }
.band { background: linear-gradient(135deg, #4C0909 0%, #760D0D 55%, #880F0F 100%); color: #fff; padding: 36px 0 104px; }
.band-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: grid; gap: 6px; }
.eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #F0CFCF; font-weight: 500; }
.band h1 { color: #fff; font-size: 32px; }
.band-sub { color: #F3DADA; font-size: 15px; max-width: 560px; }
.band :focus-visible { outline-color: #fff; }

.stepper { margin: 28px 0 0; gap: 0; }
.stepper li { position: relative; display: grid; justify-items: start; gap: 8px; color: #E6BDBD; font-size: 13px; font-weight: 400; }
.stepper li::before { content: ''; position: absolute; top: 15px; left: 40px; right: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: #fff; }
.stepper .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.stepper li.done .dot { background: #fff; border-color: #fff; color: var(--accent); }
.stepper li.now .dot { background: #fff; border-color: #fff; color: var(--accent-dark); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.stepper li.now, .stepper li.done { color: #fff; }
.stepper li.now { font-weight: 600; }
.stepper li.skip .dot { border-style: dashed; }
.stepper .by { color: #E6BDBD; font-weight: 400; }
.band .step-now-narrow { color: #fff; margin: 16px 0 0; }

.page { margin-top: -72px; padding-top: 0; position: relative; }
.main { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(76, 9, 9, .07); padding: 28px 28px 0; }
.step-head h2 { font-size: 22px; }
.step-head { margin-bottom: 20px; }
.main .svc-list, .main .pick, .main .tile, .main .card { box-shadow: none; }
.actions { background: #fff; margin: 28px -28px 0; padding: 14px 28px; border-radius: 0 0 16px 16px; }
.btn-primary { box-shadow: 0 1px 2px rgba(76, 9, 9, .25); }
.btn .arr { flex: none; }

.tile, .pick { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.main .tile:hover { border-color: var(--accent-line); box-shadow: 0 8px 20px rgba(76, 9, 9, .07); transform: translateY(-2px); }
.tile.cat .ph { aspect-ratio: 4 / 3; position: relative; }
.tile.cat .ph::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, rgba(30, 4, 4, 0), rgba(30, 4, 4, .85)); }
.tile.cat .over { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.3; }
.tile.cat .tx { gap: 10px; }
.go { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-weight: 500; font-size: 14px; }
.tile:not(.cat) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
.tile:not(.cat) .ph { grid-column: 1 / -1; }
.tile .chev { align-self: center; padding-right: 14px; color: var(--accent); font-size: 20px; }

.mode { display: inline-flex; align-items: center; gap: 6px; }
.mode i { width: 8px; height: 8px; border-radius: 50%; }
.mode.full i { background: var(--info); }
.mode.deposit i { background: #C98A00; }
.mode.free i { background: var(--ok); }
.svc.sel { box-shadow: inset 3px 0 0 var(--accent); }
.pick { padding: 16px; grid-template-columns: 22px 84px minmax(0, 1fr); }
.main .pick.sel { box-shadow: 0 0 0 1px var(--accent); }
.pick .thumb { width: 84px; height: 84px; }

.summary { padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 30px rgba(76, 9, 9, .07); }
.sum-head { background: var(--accent-tint); border-bottom: 1px solid var(--accent-line); padding: 14px 20px; }
.sum-head h2 { margin: 0; font-size: 16px; color: var(--accent-dark); }
.sum-body { padding: 4px 20px 18px; }
.sum-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.sum-row:first-child { border-top: 0; }
.sum-row .ic { color: var(--accent); padding-top: 2px; }
.sum-total .big { font-size: 18px; padding-top: 8px; border-top: 1px dashed var(--line-strong); margin-top: 2px; }
.summary-toggle .tg { color: var(--accent); font-weight: 500; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); flex: none; }

.confirmed { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(76, 9, 9, .07); padding: 28px; max-width: 760px; }
.confirmed h2 { font-size: 24px; }
.confirmed .card { box-shadow: none; }

@media (max-width: 960px) {
  .tile.cat { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .tile.cat .ph { aspect-ratio: 16 / 7; height: auto; min-height: 0; }
  .summary-toggle { margin-top: 2px; }
}
@media (max-width: 640px) {
  .band { padding: 24px 0 92px; }
  .band h1 { font-size: 24px; }
  .stepper { margin-top: 10px; }
  .stepper .dot { width: 26px; height: 26px; font-size: 12px; }
  .stepper li::before { top: 12px; left: 32px; right: 6px; }
  .main { padding: 20px 16px 0; }
  .actions { margin: 20px -16px 0; padding: 12px 16px; }
  .pick { grid-template-columns: 22px 56px minmax(0, 1fr); padding: 14px; }
  .pick .thumb { width: 56px; height: 56px; }
  .confirmed { padding: 20px 16px; }
  .actions .btn .arr { display: none; }
}

/* ---------- pieces the live page adds to the approved design ---------- */
.loading { color: var(--muted); font-size: 14px; padding: 8px 0; }
.code-box { max-width: 420px; display: grid; gap: 16px; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }
.form-msg { color: var(--danger); font-size: 14px; }
.form-ok { color: var(--ok); font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.state-note { border-radius: 10px; padding: 12px 14px; font-size: 14px; display: grid; gap: 2px; }
.state-note.warn { background: var(--warn-tint); color: #5E3F00; }
.state-note.bad { background: #FEF3F2; color: #7A271A; }
.tick.wait { background: var(--warn-tint); color: var(--warn); }
.tick.bad { background: #FEF3F2; color: var(--danger); }
