:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --surface-2: #f2ede6;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #6f6862;
  --line: #e7e0d7;
  --line-strong: #d4cbc0;
  --accent: #a3132b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9ec;
  --accent-hover: #8a0f24;
  --bonus: #8a5a00;
  --bonus-soft: #fff3d1;
  --bonus-line: #f0d68a;
  --ok: #1d6b3a;
  --ok-soft: #e3f4e8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-line: #f5c2bd;
  --info-soft: #eef2f8;
  --shadow: 0 1px 2px rgb(28 25 23 / 6%), 0 4px 16px rgb(28 25 23 / 6%);
  --shadow-lg: 0 10px 40px rgb(28 25 23 / 18%);
  --radius: 18px;
  --radius-sm: 12px;
  --tap: 48px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --maxw: 680px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110f;
    --surface: #211b18;
    --surface-2: #2a231f;
    --ink: #f5efe9;
    --ink-2: #c9bfb5;
    --ink-3: #9a8f85;
    --line: #382f2a;
    --line-strong: #4a3f38;
    --accent: #ec5d73;
    --accent-ink: #1a0b0e;
    --accent-soft: #3a1a20;
    --accent-hover: #f0647a;
    --bonus: #f2c45a;
    --bonus-soft: #33280f;
    --bonus-line: #5c4715;
    --ok: #6fd391;
    --ok-soft: #173222;
    --danger: #ff8a7d;
    --danger-soft: #3a1714;
    --danger-line: #6b2a24;
    --info-soft: #1f2530;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
    --shadow-lg: 0 10px 40px rgb(0 0 0 / 50%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Keep scrolled-to and focused things clear of the sticky header and the fixed action bar. */
  scroll-padding-top: calc(76px + env(safe-area-inset-top));
  scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
@media (max-width: 400px) { .steps:not([hidden]) ~ * .brand-year, .topbar:has(.steps:not([hidden])) .brand-year { display: none; } }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.brand-year { color: var(--accent); }
.steps ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.steps li + li::before { content: ""; width: 12px; height: 2px; background: var(--line-strong); border-radius: 2px; margin-right: 2px; }
.steps .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-strong); font-size: 12px;
}
.steps li.is-done .dot { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.steps li.is-current { color: var(--ink); }
.steps li.is-current .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 420px) { .steps .label { display: none; } .steps li.is-current .label { display: inline; } }

/* ---------- layout ---------- */
main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 20px var(--gutter) calc(120px + env(safe-area-inset-bottom));
  outline: none;
}
.screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; animation: rise .25s ease-out; }
.screen > *, .fact > div, .howto li > div, .item > div, .preview-top > div { min-width: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .toast, .sheet { animation: none !important; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- hero ---------- */
.hero { padding: 8px 2px 0; display: grid; gap: 10px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hero h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.hero p { font-size: 17px; color: var(--ink-2); }
.screen-head { display: grid; gap: 6px; padding: 4px 2px 0; }
.screen-head h1 { font-size: clamp(24px, 6vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.screen-head p { color: var(--ink-2); }

/* ---------- facts ---------- */
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.fact-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2);
}
.fact-icon.is-bonus { background: var(--bonus-soft); color: var(--bonus); }
.fact-icon.is-accent { background: var(--accent-soft); color: var(--accent); }
.fact-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.fact strong { display: block; font-size: 15.5px; }
.fact p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- how-to steps ---------- */
.howto { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.howto li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.howto li::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px;
}
.howto strong { display: block; }
.howto p { font-size: 14.5px; color: var(--ink-2); }
.urlbar-demo {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: 13px; color: var(--ink-2);
}
.urlbar-demo code { overflow-wrap: anywhere; line-height: 1.4; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.urlbar-demo mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 2px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 999px;
  min-height: var(--tap); padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .05s, opacity .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not([disabled]) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover:not([disabled]) { border-color: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-ghost:hover:not([disabled]) { color: var(--ink); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.icon-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover:not([disabled]) { color: var(--ink); border-color: var(--line-strong); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn.is-danger:hover { color: var(--danger); border-color: var(--danger-line); }
.link-btn { appearance: none; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.actionbar-inner { max-width: var(--maxw); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.actionbar-inner .btn-primary { flex: 1; }
.actionbar-meta { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.actionbar-meta strong { color: var(--ink); font-size: 15px; display: block; }

/* ---------- add panel ---------- */
.add-panel { display: grid; gap: 12px; }
.add-panel label.big { font-size: 17px; font-weight: 700; }
.paste-row { display: flex; gap: 8px; }
.input {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); outline: none; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.paste-row .input { flex: 1; min-width: 0; }
.helper { font-size: 13.5px; color: var(--ink-2); }
.helper-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.field-error { color: var(--danger); font-size: 14px; display: flex; gap: 6px; align-items: flex-start; }

/* ---------- notices ---------- */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.notice svg { margin-top: 2px; }
.notice.is-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); }
.notice.is-danger p { color: var(--ink); }
.notice.is-bonus { background: var(--bonus-soft); border: 1px solid var(--bonus-line); }
.notice.is-bonus svg { color: var(--bonus); }
.notice.is-info { background: var(--info-soft); }
.notice.is-ok { background: var(--ok-soft); color: var(--ok); }
.notice.is-ok p { color: var(--ink); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px;
  padding: 2px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge.is-bonus { background: var(--bonus-soft); color: var(--bonus); border: 1px solid var(--bonus-line); }
.badge.is-limit { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.is-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); }

/* ---------- preview (item being added) ---------- */
.preview { padding: 0; overflow: hidden; }
.preview-top { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 16px; }
.preview-img, .item-img {
  aspect-ratio: 5 / 6; width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); position: relative;
}
.preview-img img, .item-img img { width: 100%; height: 100%; object-fit: cover; }
.preview-img .swatch-only, .item-img .swatch-only { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.img-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); }
.preview-title { font-size: 18px; font-weight: 750; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.price { font-weight: 700; }
.price s { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.preview-body { padding: 0 16px 16px; display: grid; gap: 16px; }
.preview-actions { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.preview-actions .btn-primary { flex: 1; }

.opt-label { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.opt-label span:last-child { font-weight: 500; color: var(--ink-2); text-align: right; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  appearance: none; padding: 0; cursor: pointer; position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--ink-3);
  background: var(--surface-2); overflow: hidden;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.sale-colors { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.swatches.is-sale-row { gap: 8px; }
.swatch.is-sale { width: 30px; height: 30px; cursor: not-allowed; }
.swatch.is-sale::after {
  content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--danger); transform: rotate(45deg); border-radius: 2px;
}
.swatch-legend { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  appearance: none; cursor: pointer; min-width: 52px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 650; font-size: 15px;
}
.size[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.size.is-out { color: var(--ink-3); border-style: dashed; }
.size.is-out[aria-checked="true"] { background: var(--ink-2); border-style: solid; color: var(--bg); }
.size.is-missing { color: var(--ink-3); background: var(--surface-2); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { appearance: none; border: 0; background: none; width: 44px; height: 42px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button[disabled] { color: var(--ink-3); opacity: .5; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty.is-sm button { width: 36px; height: 34px; }

.manual-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.manual-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }

/* ---------- loading skeleton ---------- */
.skeleton { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 16px; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
.sk-img { aspect-ratio: 5/6; border-radius: 12px; }
.sk-line { height: 14px; margin-bottom: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- list ---------- */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px; }
.list-head h2 { font-size: 20px; font-weight: 800; }
.items { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; }
.item-rank {
  position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent); color: var(--bg); font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center;
}
.item-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.item-title a { color: inherit; text-decoration: none; }
.item-title a:hover { text-decoration: underline; }
.item-variant { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); margin-top: 4px; flex-wrap: wrap; }
.mini-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: 14px; }
.item-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.item-controls .spacer { min-width: 4px; }
.item.is-flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--accent); } to { box-shadow: var(--shadow); } }

.empty { text-align: center; padding: 28px 18px; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.empty svg { width: 40px; height: 40px; color: var(--ink-3); }

/* ---------- totals ---------- */
.totals { display: grid; gap: 10px; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals-row strong { font-variant-numeric: tabular-nums; }
.totals-row.is-total { font-size: 17px; font-weight: 700; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.review-section.totals { display: grid; gap: 8px; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s; }
.meter.is-over > span { background: var(--danger); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 650; font-size: 15px; }
.field .opt { font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 1.4fr .8fr 1fr; }
@media (max-width: 460px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-3 .city { grid-column: 1 / -1; } }
.choice-group { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; border: 0; padding: 0; margin: 0; }
.choice-group legend { font-weight: 650; font-size: 15px; margin-bottom: 8px; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .choice-card {
  display: grid; gap: 4px; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); height: 100%; transition: border-color .15s, box-shadow .15s;
}
.choice .choice-card svg { color: var(--ink-2); width: 26px; height: 26px; margin-bottom: 2px; }
.choice .choice-card strong { font-size: 15.5px; }
.choice .choice-card span { font-size: 13.5px; color: var(--ink-2); }
.choice input:checked + .choice-card { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.choice input:checked + .choice-card svg { color: var(--accent); }
.choice input:focus-visible + .choice-card { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ---------- review ---------- */
.review-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.review-item { display: grid; grid-template-columns: 26px 52px 1fr; gap: 12px; align-items: center; }
.review-item .n { font-weight: 800; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.review-item .thumb { width: 52px; aspect-ratio: 5/6; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.review-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-item .t { font-weight: 650; font-size: 14.5px; line-height: 1.3; }
.review-item .v { font-size: 13.5px; color: var(--ink-2); }
.kv { display: grid; gap: 2px; }
.kv dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kv dd { margin: 0; white-space: pre-line; }
.review-section + .review-section { border-top: 1px solid var(--line); padding-top: 14px; }
.review-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.send-card { display: grid; gap: 12px; }
.send-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sent-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 4px auto 0; }
.sent-check svg { width: 34px; height: 34px; }
.center { text-align: center; }

/* ---------- bonus browser sheet ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: var(--maxw);
  max-height: 88dvh; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); animation: sheet-up .25s ease-out;
}
@media (min-width: 720px) { .sheet { margin: auto; border-radius: 22px; max-height: 80dvh; } }
.sheet::backdrop { background: rgb(0 0 0 / 45%); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { display: flex; flex-direction: column; max-height: inherit; }
.sheet-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.sheet-head .row { justify-content: space-between; }
.sheet-head h2 { font-size: 19px; }
.sheet-body { overflow-y: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.title-star { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--bonus); }
.filter-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 650; font-size: 14.5px; color: var(--ink-2);
}
.chip span svg { width: 16px; height: 16px; display: none; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:checked + span svg { display: inline; }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.cat { border-bottom: 1px solid var(--line); }
.cat > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 4px 2px; font-weight: 700; font-size: 16px;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::after {
  content: ""; width: 8px; height: 8px; margin: 0 6px 0 auto; flex: none;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.cat[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.cat-count { font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.cat .bonus-links { padding: 0 0 8px 8px; }
.cat .bonus-links li:last-child { border-bottom: 0; }
.empty-filter { padding: 24px 0; text-align: center; }
.bonus-cta {
  appearance: none; width: 100%; cursor: pointer; text-align: left; color: var(--ink);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bonus-soft); border: 1.5px solid var(--bonus-line);
}
.bonus-cta:hover { border-color: var(--bonus); }
.bonus-cta > span:nth-child(2) { flex: 1; display: grid; }
.bonus-cta strong { font-size: 15.5px; }
.bonus-cta > span:nth-child(2) > span { font-size: 13.5px; color: var(--ink-2); }
.bonus-cta > svg { color: var(--bonus); }
.bonus-cta-star { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--bonus); flex: none; }
.bonus-cta-star svg { fill: currentColor; }
.bonus-pill { margin-top: 8px; background: var(--bonus-soft); color: var(--bonus); border-color: var(--bonus-line); }
.bonus-pill:hover { border-color: var(--bonus); }
.bonus-pill svg { fill: currentColor; }
.bonus-links { list-style: none; margin: 0; padding: 0; }
.bonus-links li { border-bottom: 1px solid var(--line); }
.bonus-links a, .bonus-links span.soon {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px;
  color: var(--ink); text-decoration: none; font-size: 15px; min-height: var(--tap);
}
.bonus-links a:hover { color: var(--accent); }
.bonus-links span.soon { color: var(--ink-3); }
.bonus-links svg { color: var(--ink-3); width: 16px; height: 16px; }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 50;
  bottom: calc(92px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 460px);
  display: grid; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: 15px;
  animation: rise .2s ease-out;
}
.toast .toast-msg { flex: 1; }
.toast button { appearance: none; border: 0; background: none; color: var(--bg); font-weight: 800; cursor: pointer; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }

.noscript { padding: 24px; text-align: center; }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .preview-top { grid-template-columns: 150px 1fr; }
  .item { grid-template-columns: 104px 1fr; }
}
