/* PromoPier shopper and admin styles. Mobile-first from 320 px; breakpoints 768 / 1024 / 1280 (spec §5.7).
   Rule: no hard-coded colour, spacing, radius or type size — everything comes from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: var(--fw-regular) var(--fs-16)/var(--lh-16) var(--font); color: var(--color-text); background: var(--color-bg); font-feature-settings: "tnum" 1; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-31); line-height: var(--lh-31); }
h2 { font-size: var(--fs-25); line-height: var(--lh-25); }
h3 { font-size: var(--fs-20); line-height: var(--lh-20); }
p { margin: 0; }
a { color: var(--color-link); text-underline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }
.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; }
.skip { position: absolute; left: var(--sp-4); top: -100px; background: var(--color-primary); color: var(--color-primary-text); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-2); z-index: 100; }
.skip:focus { top: var(--sp-4); }
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); font-size: var(--fs-14); line-height: var(--lh-14); }
.small { font-size: var(--fs-14); line-height: var(--lh-14); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-8); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; }

/* ---- layout ---- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--sp-4)); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--sp-8); } }
@media (min-width: 1280px) { .container { padding: 0 var(--sp-10); } }
.section { padding: var(--sp-8) 0; }
@media (min-width: 1024px) { .section { padding: var(--sp-12) 0; } }
main { min-height: 60vh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { main { padding-bottom: 0; } }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hdr-in { display: flex; align-items: center; gap: var(--sp-4); min-height: 56px; }
@media (min-width: 1024px) { .hdr-in { min-height: var(--header-h); } }
.logo { font-weight: var(--fw-display); font-size: var(--fs-20); letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-2); }
.logo i { width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--color-verified-text); display: inline-block; }
.nav { display: none; gap: var(--sp-6); margin-left: var(--sp-6); }
.nav a { text-decoration: none; color: var(--color-text-muted); font-weight: var(--fw-medium); padding: var(--sp-2) 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--color-text); }
@media (min-width: 1024px) { .nav { display: flex; } }
.search { margin-left: auto; display: flex; flex: 1 1 auto; max-width: 420px; }
.search input { flex: 1; min-width: 0; height: var(--touch); border: 1px solid var(--color-border-strong); border-radius: var(--r-2) 0 0 var(--r-2); padding: 0 var(--sp-3); background: var(--color-surface); }
.search button { height: var(--touch); padding: 0 var(--sp-4); border: 1px solid var(--color-primary); background: var(--color-primary); color: var(--color-primary-text); border-radius: 0 var(--r-2) var(--r-2) 0; cursor: pointer; }
.hdr-links { display: none; gap: var(--sp-4); align-items: center; }
@media (min-width: 1024px) { .hdr-links { display: flex; } }
.lang { font-size: var(--fs-14); color: var(--color-text-muted); text-decoration: none; padding: var(--sp-2); }

/* ---- bottom tab bar (mobile) ---- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--color-surface); border-top: 1px solid var(--color-border); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--color-text-muted); font-size: var(--fs-12); line-height: var(--lh-12); }
.tabbar a[aria-current="page"] { color: var(--color-text); font-weight: var(--fw-semibold); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] svg { fill: currentColor; }
@media (min-width: 768px) { .tabbar { display: none; } }
/* the tab bar hides itself on claim screens (spec §5.9); the claim bar takes its place */
body.has-claimbar .tabbar { display: none; }
body.has-claimbar main { padding-bottom: calc(var(--claimbar-h) + env(safe-area-inset-bottom) + var(--sp-4)); }
@media (min-width: 1024px) { body.has-claimbar main { padding-bottom: 0; } }

/* ---- footer ---- */
.ftr { border-top: 1px solid var(--color-border); background: var(--color-surface-muted); padding: var(--sp-8) 0; margin-top: var(--sp-12); font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.ftr-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 2fr 1fr 1fr; } }
.ftr a { color: var(--color-text-muted); }
.ftr h4, .ftr .ftr-h { font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-subtle); margin-bottom: var(--sp-2); }
.ftr li + li { margin-top: var(--sp-1); }
.disclosure { border-left: 3px solid var(--color-decoration); padding-left: var(--sp-3); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--touch); padding: 0 var(--sp-4); border-radius: var(--r-2); border: 1px solid var(--color-primary); background: var(--color-primary); color: var(--color-primary-text); font-weight: var(--fw-semibold); text-decoration: none; cursor: pointer; transition: background var(--t-state), color var(--t-state); white-space: nowrap; }
.btn:hover { background: var(--ink-700); border-color: var(--ink-700); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-surface-muted); border-color: var(--color-text); }
.btn-text { background: transparent; border-color: transparent; color: var(--color-text); padding: 0 var(--sp-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { background: transparent; border-color: transparent; }
.btn-lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-16); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-14); }
.btn-danger { background: var(--color-danger-text); border-color: var(--color-danger-text); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---- badges and chips: colour + icon + word, never colour alone ---- */
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: var(--fw-medium); padding: 2px var(--sp-2); border-radius: var(--r-1); white-space: nowrap; }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge-verified { color: var(--color-verified-text); background: var(--color-verified-bg); }
.badge-savings { color: var(--color-savings-text); background: var(--color-savings-bg); }
.badge-expiry { color: var(--color-expiry-text); background: var(--color-expiry-bg); border: 1px solid var(--color-expiry-border); }
.badge-danger { color: var(--color-danger-text); background: var(--color-danger-bg); }
.badge-info { color: var(--color-info-text); background: var(--color-info-bg); }
.badge-flash { color: var(--color-flash-text); background: var(--color-flash-bg); }
.badge-neutral { color: var(--color-text-muted); background: var(--color-surface-muted); border: 1px solid var(--color-border); }
.chip { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font-size: var(--fs-14); text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--color-primary); color: var(--color-primary-text); border-color: var(--color-primary); }
.chip .n { color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }

/* ---- hero ---- */
.hero { padding: var(--sp-10) 0 var(--sp-8); border-bottom: 1px solid var(--color-border); }
@media (min-width: 1024px) { .hero { padding: var(--sp-16) 0 var(--sp-12); } }
.hero h1 { font-size: var(--fs-31); line-height: var(--lh-31); max-width: 22ch; }
@media (min-width: 768px) { .hero h1 { font-size: var(--fs-39); line-height: var(--lh-39); } }
@media (min-width: 1024px) { .hero h1 { font-size: var(--fs-49); line-height: var(--lh-49); letter-spacing: -0.02em; } }
.hero p.lead { max-width: 60ch; color: var(--color-text-muted); font-size: var(--fs-16); margin-top: var(--sp-4); }
@media (min-width: 768px) { .hero p.lead { font-size: var(--fs-20); line-height: var(--lh-20); } }
.hero .row { margin-top: var(--sp-6); gap: var(--sp-3); }
.stats { display: grid; gap: var(--sp-3); margin-top: var(--sp-8); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { border: 1px solid var(--color-border); border-radius: var(--r-3); padding: var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.stat b { color: var(--color-text); font-size: var(--fs-16); }
.stat svg { width: 20px; height: 20px; flex: none; }

/* ---- deal grid and tile (the most reused component) ---- */
.grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--r-3); background: var(--color-surface); overflow: hidden; transition: border-color var(--t-state); }
.tile:hover, .tile:focus-within { border-color: var(--color-border-strong); }
.tile-media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: var(--fw-display); font-size: var(--fs-31); letter-spacing: .02em; background: var(--ink-800); position: relative; }
.tile-media .badges { position: absolute; top: var(--sp-2); left: var(--sp-2); display: flex; gap: var(--sp-1); flex-wrap: wrap; }
/* cover picture (first gallery image) replaces the monogram; the brand colour stays behind it while it loads */
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media.has-cover { font-size: 0; }
.tile-count { position: absolute; right: var(--sp-2); bottom: var(--sp-2); display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-semibold); color: var(--white); background: rgba(15, 23, 42, .72); border-radius: var(--r-pill); padding: 2px var(--sp-2); }
.tile-count svg { width: 14px; height: 14px; }
.tile-count svg + svg { margin-left: var(--sp-1); }
.tile-cat { position: absolute; left: var(--sp-2); bottom: var(--sp-2); max-width: 68%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: var(--fw-medium); letter-spacing: 0; color: var(--white); background: rgba(15, 23, 42, .72); border-radius: var(--r-pill); padding: 2px var(--sp-2); }
.tile-merchant-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-type { white-space: nowrap; flex: none; }
.tile-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.tile-merchant { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--sp-2); }
.tile-merchant .dot { width: 8px; height: 8px; border-radius: var(--r-pill); display: inline-block; }
.tile h3 { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: var(--fw-medium); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile h3 a { text-decoration: none; color: inherit; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile-price { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; }
.tile-price .save { font: var(--money-md); color: var(--color-savings-text); }
.tile-price .was { font-size: var(--fs-14); color: var(--color-text-subtle); text-decoration: line-through; }
.tile-price .now { font: var(--money-sm); }
.tile-foot { display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-muted); }
.tile-foot .badge { font-size: var(--fs-12); line-height: var(--lh-12); }
.meter { height: 6px; background: var(--color-surface-muted); border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--color-border); }
.meter i { display: block; height: 100%; background: var(--color-flash-text); }

/* ---- listing layout: filters rail / sheet ---- */
.listing { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .listing { grid-template-columns: var(--rail-w) 1fr; align-items: start; } }
.rail { border: 1px solid var(--color-border); border-radius: var(--r-3); background: var(--color-surface); }
.rail > summary { list-style: none; cursor: pointer; min-height: var(--touch); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--sp-4); font-weight: var(--fw-semibold); }
.rail > summary::-webkit-details-marker { display: none; }
.rail > summary::after { content: "+"; font-size: var(--fs-20); color: var(--color-text-muted); }
.rail[open] > summary::after { content: "–"; }
.rail-body { padding: var(--sp-2) var(--sp-4) var(--sp-4); display: grid; gap: var(--sp-4); }
@media (min-width: 1024px) { .rail { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } .rail > summary { pointer-events: none; } .rail > summary::after { content: none; } .rail-body { display: grid !important; } }
.fgroup h3, .fgroup h4 { font-size: var(--fs-13); line-height: var(--lh-13); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-subtle); margin-bottom: var(--sp-2); }
.fgroup ul { display: flex; flex-direction: column; gap: 2px; }
.fgroup a { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-2); border-radius: var(--r-1); text-decoration: none; color: var(--color-text-muted); font-size: var(--fs-14); }
.fgroup a:hover { background: var(--color-surface-muted); color: var(--color-text); }
.fgroup a[aria-pressed="true"] { background: var(--color-primary); color: var(--color-primary-text); }
.fgroup a[aria-pressed="true"]::before { content: "✓ "; }
.fgroup .n { font-variant-numeric: tabular-nums; opacity: .8; font-size: var(--fs-13); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.sorts { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.sorts a { text-decoration: none; font-size: var(--fs-14); padding: var(--sp-1) var(--sp-2); border-radius: var(--r-1); color: var(--color-text-muted); min-height: 36px; display: inline-flex; align-items: center; }
.sorts a[aria-current="true"] { color: var(--color-text); font-weight: var(--fw-semibold); background: var(--color-surface-muted); }
.active-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }

/* ---- breadcrumbs, pagination, empty states ---- */
.crumbs { font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); margin: var(--sp-4) 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.crumbs li + li::before { content: "/"; margin: 0 var(--sp-1); color: var(--color-decoration); }
.crumbs a { color: var(--color-text-muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-8); }
.empty { border: 1px dashed var(--color-border-strong); border-radius: var(--r-3); padding: var(--sp-8) var(--sp-4); text-align: center; display: grid; gap: var(--sp-3); justify-items: center; }
.empty h3, .empty .empty-h { font-size: var(--fs-20); line-height: var(--lh-20); }
.empty p { max-width: 48ch; color: var(--color-text-muted); }
.page-head { padding: var(--sp-4) 0 var(--sp-6); display: grid; gap: var(--sp-2); }
.page-head p { color: var(--color-text-muted); max-width: 68ch; }

/* ---- offer page ---- */
.offer { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .offer { grid-template-columns: 2fr 1fr; align-items: start; } }
.offer-head { display: grid; gap: var(--sp-3); }
.offer-head h1 { font-size: var(--fs-25); line-height: var(--lh-25); }
@media (min-width: 768px) { .offer-head h1 { font-size: var(--fs-31); line-height: var(--lh-31); } }
.merchant-chip { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--color-text-muted); font-size: var(--fs-14); }
.avatar { width: 32px; height: 32px; border-radius: var(--r-2); display: inline-flex; align-items: center; justify-content: center; color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-13); flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: var(--fs-20); border-radius: var(--r-3); }
.price-block { border: 1px solid var(--color-border); border-radius: var(--r-3); padding: var(--sp-4); display: grid; gap: var(--sp-2); }
.price-block .save { font: var(--money-xl); color: var(--color-savings-text); letter-spacing: -0.02em; }
.price-block .basis { font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.price-block .arith { display: flex; gap: var(--sp-3); align-items: baseline; flex-wrap: wrap; font: var(--money-md); }
.price-block .arith s { color: var(--color-text-subtle); font-weight: var(--fw-regular); }
.badge-cat { color: var(--color-text); background: var(--color-surface-muted); border: 1px solid var(--color-border-strong); text-decoration: none; }
.badge-cat:hover { background: var(--color-border); }

/* ---- offer gallery: pictures (scroll-snap strip + thumbnails), videos (click-to-load), links ---- */
.offer > * { min-width: 0; } /* grid items must be allowed to shrink below the gallery's intrinsic width (320 px reflow) */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); min-width: 0; } /* minmax(0,…): the thumbnail strip must not widen the column */
.gallery-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: var(--sp-2); border-radius: var(--r-3); scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; margin: 0; display: grid; gap: var(--sp-1); }
.gallery-slide a { display: block; aspect-ratio: 4 / 3; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--r-3); overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-slide figcaption { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-muted); }
.gallery-nav { display: flex; align-items: center; gap: var(--sp-2); }
.gallery-thumbs { display: flex; gap: var(--sp-2); overflow-x: auto; padding: 2px; flex: 1; min-width: 0; scrollbar-width: thin; }
.gallery-thumbs a { display: block; flex: none; width: 72px; height: 54px; border-radius: var(--r-2); overflow: hidden; border: 2px solid transparent; opacity: .75; }
.gallery-thumbs a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--color-primary); opacity: 1; }
.gallery-thumbs a:hover { opacity: 1; }
.gallery-arrow { width: 36px; height: 36px; min-height: 36px; flex: none; border-radius: var(--r-pill); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font-size: var(--fs-20); line-height: 1; cursor: pointer; }
.gallery-arrow[hidden] { display: none; }
.gallery-arrow:disabled { opacity: .35; cursor: default; }
.videos { display: grid; gap: var(--sp-3); }
.videos h2, .offer-links h2 { font-size: var(--fs-16); line-height: var(--lh-16); }
.video-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .video-grid:not(.one) { grid-template-columns: repeat(2, 1fr); } }
.video { display: grid; gap: var(--sp-1); min-width: 0; }
.video-poster, .video iframe, .video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-3); border: 1px solid var(--color-border); background: var(--ink-900); overflow: hidden; position: relative; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: var(--r-pill); background: rgba(15, 23, 42, .78); color: var(--white); display: grid; place-items: center; border: 2px solid var(--white); }
.video-poster .play svg { width: 32px; height: 32px; }
.video-poster:hover .play, .video-poster:focus-visible .play { background: var(--color-primary); }
.video-title { font-size: var(--fs-14); line-height: var(--lh-14); }
.linklist { display: grid; gap: var(--sp-2); }
.linklist a { display: grid; grid-template-columns: 1fr auto; column-gap: var(--sp-3); align-items: center; min-height: var(--touch); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); text-decoration: none; color: var(--color-text); background: var(--color-surface); }
.linklist a:hover { border-color: var(--color-border-strong); background: var(--color-surface-muted); }
.linklist a svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--color-text-muted); }
.linklist-title { grid-column: 1; font-weight: var(--fw-medium); }
.linklist-host { grid-column: 1; font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .gallery-strip { scroll-behavior: auto; } }

.panel { border: 1px solid var(--color-border); border-radius: var(--r-3); padding: var(--sp-4); display: grid; gap: var(--sp-3); background: var(--color-surface); }
@media (min-width: 1024px) { .panel.sticky { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.panel h2, .panel h3 { font-size: var(--fs-16); line-height: var(--lh-16); }
.verif { display: grid; gap: var(--sp-1); font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.verif .badge { align-self: start; }
.legal-line { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-14); line-height: var(--lh-14); }
.kv dt { color: var(--color-text-subtle); }
.kv dd { margin: 0; }
.steps { counter-reset: s; display: grid; gap: var(--sp-2); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-2); align-items: start; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--color-surface-muted); border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-13); font-weight: var(--fw-semibold); }
.state { border-radius: var(--r-3); padding: var(--sp-4); display: grid; gap: var(--sp-2); border: 1px solid var(--color-border); }
.state-paused, .state-exhausted { background: var(--color-expiry-bg); border-color: var(--color-expiry-border); }
.state-expired { background: var(--color-surface-muted); }
.state-scheduled { background: var(--color-info-bg); }
.state h2 { font-size: var(--fs-20); }
.claimbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--sp-2) var(--sp-4) calc(var(--sp-2) + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: var(--claimbar-h); }
.claimbar .save { font: var(--money-md); color: var(--color-savings-text); }
@media (min-width: 1024px) { .claimbar { display: none; } }
.countdown { font-variant-numeric: tabular-nums; }
.sheet { border: 1px solid var(--color-border); border-radius: var(--r-3); }
.sheet > summary { list-style: none; cursor: pointer; min-height: var(--touch); display: flex; align-items: center; padding: 0 var(--sp-4); font-weight: var(--fw-medium); }
.sheet > summary::-webkit-details-marker { display: none; }
.sheet-body { padding: 0 var(--sp-4) var(--sp-4); display: grid; gap: var(--sp-3); }
.field { display: grid; gap: var(--sp-1); }
.field label { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: var(--fw-medium); }
.field input, .field select, .field textarea { min-height: var(--touch); border: 1px solid var(--color-border-strong); border-radius: var(--r-2); padding: var(--sp-2) var(--sp-3); background: var(--color-surface); width: 100%; }
.field textarea { min-height: 88px; resize: vertical; }
.field .hint { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-subtle); }
.field .err { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-danger-text); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--color-danger-text); }
.notice { border-radius: var(--r-2); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-14); line-height: var(--lh-14); display: flex; gap: var(--sp-2); align-items: flex-start; }
.notice-ok { background: var(--color-verified-bg); color: var(--color-verified-text); }
.notice-info { background: var(--color-info-bg); color: var(--color-info-text); }
.notice-warn { background: var(--color-expiry-bg); color: var(--color-expiry-text); }
.notice-err { background: var(--color-danger-bg); color: var(--color-danger-text); }

/* ---- home rails / categories / stores ---- */
.rail-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-4); gap: var(--sp-4); }
.cats { display: grid; gap: var(--sp-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cats a { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); min-height: var(--touch); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); text-decoration: none; font-size: var(--fs-14); }
.cats a:hover { border-color: var(--color-border-strong); }
.cats .n { color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.stores-list { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .stores-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stores-list { grid-template-columns: repeat(3, 1fr); } }
.store { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-3); text-decoration: none; }
.store:hover { border-color: var(--color-border-strong); }
.store b { display: block; }
.store span { font-size: var(--fs-13); color: var(--color-text-muted); }
.store .avatar { color: var(--white); }
.promises { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promises h3 { font-size: var(--fs-16); margin-bottom: var(--sp-2); }
.promises p { color: var(--color-text-muted); font-size: var(--fs-14); line-height: var(--lh-14); }
.prose { max-width: 68ch; display: grid; gap: var(--sp-4); }
.prose h2 { font-size: var(--fs-20); line-height: var(--lh-20); margin-top: var(--sp-4); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ol { list-style: decimal; padding-left: var(--sp-6); display: grid; gap: var(--sp-2); }

/* ---- admin: same tokens, denser (spec Q-29) ---- */
body.admin { font-size: var(--fs-14); line-height: var(--lh-14); background: var(--color-surface-muted); }
.adm-bar { background: var(--ink-900); color: var(--white); display: flex; align-items: center; gap: var(--sp-4); padding: 0 var(--sp-4); min-height: 48px; font-size: var(--fs-13); position: sticky; top: 0; z-index: 50; flex-wrap: wrap; }
.adm-bar a { color: var(--ink-300); text-decoration: none; padding: var(--sp-2) 0; }
.adm-bar a:hover, .adm-bar a[aria-current="page"] { color: var(--white); }
.adm-bar .env { background: var(--color-expiry-text); color: var(--white); border-radius: var(--r-1); padding: 0 var(--sp-2); font-weight: var(--fw-semibold); }
.adm-bar .who { margin-left: auto; color: var(--ink-300); display: flex; gap: var(--sp-3); align-items: center; }
.adm-main { padding: var(--sp-4); max-width: 1440px; margin: 0 auto; display: grid; gap: var(--sp-4); }
.adm-main h1 { font-size: var(--fs-20); line-height: var(--lh-20); }
.adm-main h2 { font-size: var(--fs-16); line-height: var(--lh-16); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-2); padding: var(--sp-4); display: grid; gap: var(--sp-3); }
.kpis { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-2); padding: var(--sp-3); display: grid; gap: 2px; text-decoration: none; color: inherit; }
.kpi b { font: var(--money-lg); }
.kpi span { color: var(--color-text-muted); font-size: var(--fs-13); }
.kpi.warn b { color: var(--color-expiry-text); }
.kpi.bad b { color: var(--color-danger-text); }
.tbl-wrap { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-2); }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-13); line-height: var(--lh-13); }
.tbl caption { text-align: left; padding: var(--sp-3) var(--sp-3) 0; font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.tbl th, .tbl td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--color-border); vertical-align: top; height: 32px; }
.tbl th { color: var(--color-text-subtle); font-weight: var(--fw-medium); white-space: nowrap; background: var(--color-surface-muted); position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { color: var(--color-text); }
/* ---- gallery manager (admin console + merchant portal) ---- */
.media-list { display: grid; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.media-row { display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-3); align-items: start; padding: var(--sp-2); border: 1px solid var(--color-border); border-radius: var(--r-2); background: var(--color-surface); }
@media (min-width: 768px) { .media-row { grid-template-columns: 96px 1fr auto; } }
.media-thumb { width: 96px; height: 72px; border-radius: var(--r-1); background: var(--color-surface-muted); border: 1px solid var(--color-border); display: grid; place-items: center; overflow: hidden; position: relative; color: var(--color-text-muted); font-size: var(--fs-13); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .media-kind { position: absolute; inset: auto var(--sp-1) var(--sp-1) auto; background: rgba(15, 23, 42, .78); color: var(--white); border-radius: var(--r-1); padding: 0 var(--sp-1); font-size: var(--fs-12); line-height: var(--lh-12); }
.media-thumb > .media-kind:only-child { position: static; background: none; color: var(--color-text-muted); font-size: var(--fs-13); }
.media-meta { display: grid; gap: var(--sp-1); min-width: 0; }
.media-meta .small a { word-break: break-all; }
.media-caption input { flex: 1; min-width: 160px; }
.media-actions { display: flex; gap: var(--sp-1); align-items: start; }
.media-add h3 { font-size: var(--fs-14); line-height: var(--lh-14); }

.pill { display: inline-block; font-size: var(--fs-12); line-height: var(--lh-12); padding: 1px var(--sp-2); border-radius: var(--r-pill); border: 1px solid var(--color-border); background: var(--color-surface-muted); white-space: nowrap; }
.pill-ACTIVE, .pill-LIVE, .pill-PASS { background: var(--color-verified-bg); color: var(--color-verified-text); border-color: transparent; }
.pill-PAUSED, .pill-PENDING_VERIFICATION, .pill-SCHEDULED { background: var(--color-expiry-bg); color: var(--color-expiry-text); border-color: transparent; }
.pill-REJECTED, .pill-FAIL, .pill-SUSPENDED { background: var(--color-danger-bg); color: var(--color-danger-text); border-color: transparent; }
.pill-DRAFT, .pill-EXPIRED, .pill-ARCHIVED, .pill-EXHAUSTED { color: var(--color-text-muted); }
.form-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .span2 { grid-column: span 2; } .form-grid .span3 { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .form-grid-3 { grid-template-columns: repeat(3, 1fr); } .form-grid-3 .span2 { grid-column: span 2; } .form-grid-3 .span3 { grid-column: span 3; } }
.actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { min-height: 36px; border: 1px solid var(--color-border-strong); border-radius: var(--r-1); padding: 0 var(--sp-2); }
.login-box { max-width: 400px; margin: var(--sp-16) auto; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-3); align-items: start; padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.checklist input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-13); }
.timeline time { color: var(--color-text-subtle); white-space: nowrap; }
.err-list { background: var(--color-danger-bg); color: var(--color-danger-text); border-radius: var(--r-2); padding: var(--sp-3) var(--sp-4); display: grid; gap: var(--sp-1); font-size: var(--fs-14); }
.ok-banner { background: var(--color-verified-bg); color: var(--color-verified-text); border-radius: var(--r-2); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-14); }
.code-cell { font-family: var(--font-mono); background: var(--color-surface-muted); padding: 1px var(--sp-1); border-radius: var(--r-1); }
.diff-json { font-family: var(--font-mono); font-size: var(--fs-12); white-space: pre-wrap; word-break: break-all; color: var(--color-text-muted); max-width: 420px; }

/* ============================================================================================
   Slice 2 — accounts, claim result, consent banner
   ============================================================================================ */
/* header account chrome */
.hdr-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border-radius: var(--r-2); color: var(--color-text-muted); }
.hdr-icon:hover { background: var(--color-surface-muted); color: var(--color-text); }
.hdr-icon svg { width: 22px; height: 22px; }
.n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--color-surface-muted); color: var(--color-text-muted); font-size: var(--fs-12); line-height: 1; font-variant-numeric: tabular-nums; }
.hdr-icon .n { position: absolute; top: 4px; right: 2px; }
.n-alert { background: var(--color-primary); color: var(--color-primary-text); }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--touch); padding: 0 var(--sp-2) 0 0; border-radius: var(--r-pill); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .avatar { background: var(--color-primary); color: var(--color-primary-text); }
.menu-name { font-size: var(--fs-14); font-weight: var(--fw-medium); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 60; display: grid; padding: var(--sp-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-3); box-shadow: var(--shadow-2, 0 8px 24px rgba(0,0,0,.12)); }
.menu-body a, .menu-body button { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-2); text-decoration: none; color: var(--color-text); font-size: var(--fs-14); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.menu-body a:hover, .menu-body button:hover { background: var(--color-surface-muted); }
.menu-body form { border-top: 1px solid var(--color-border); margin-top: var(--sp-1); padding-top: var(--sp-1); }
.hdr-signin { white-space: nowrap; }
.tabbar a { position: relative; }
.tabbar .n { position: absolute; top: 6px; left: calc(50% + 6px); }

/* auth card */
.auth { max-width: 440px; margin: var(--sp-8) auto var(--sp-12); display: grid; gap: var(--sp-6); }
.auth-wide { max-width: 640px; }
.auth-head h1 { font-size: var(--fs-31); line-height: 1.2; margin-bottom: var(--sp-2); }
.auth form .btn-block { margin-top: var(--sp-2); }
.check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-14); line-height: var(--lh-14); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--color-primary); }
.consent-box { display: grid; gap: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); padding: var(--sp-4); margin: 0; }
.consent-box.invalid { border-color: var(--color-danger-text); }
.consent-box .hint { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--color-text-subtle); }
.consent-box .err { font-size: var(--fs-13); color: var(--color-danger-text); }
.notice.dev { border: 1px dashed var(--color-info-text); word-break: break-all; }
input.otp { font-size: 28px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.notice form, .notice .btn { margin-left: auto; flex: 0 0 auto; }
.between { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* account area */
.acct { display: grid; gap: var(--sp-6); padding: var(--sp-6) 0 var(--sp-12); }
.acct-nav { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--color-border-strong); color: var(--color-text); text-decoration: none; font-size: var(--fs-14); white-space: nowrap; }
.acct-nav a[aria-current="page"] { background: var(--color-primary); color: var(--color-primary-text); border-color: var(--color-primary); }
.acct-nav a[aria-current="page"] .n { background: rgba(255,255,255,.25); color: inherit; }
.acct-signout { display: none; }
@media (min-width: 1024px) {
  .acct { grid-template-columns: 240px 1fr; gap: var(--sp-10); }
  .acct-nav { flex-direction: column; overflow: visible; position: sticky; top: calc(var(--header-h) + var(--sp-4)); align-self: start; }
  .acct-nav a { border: 0; border-radius: var(--r-2); min-height: 40px; justify-content: space-between; }
  .acct-nav a[aria-current="page"] { background: var(--color-surface-muted); color: var(--color-text); font-weight: var(--fw-semibold); }
  .acct-nav a[aria-current="page"] .n { background: var(--color-primary); color: var(--color-primary-text); }
  .acct-signout { display: block; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--color-border); }
}
.acct-main .page-head { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.stat { display: grid; gap: 2px; padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--r-3); background: var(--color-surface); text-decoration: none; color: var(--color-text); }
.stat .num { font-size: var(--fs-25); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.stat span:last-child { font-size: var(--fs-13); color: var(--color-text-subtle); }
.stat-hero .num { font-size: 32px; color: var(--color-savings-text); }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.claims li a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); text-decoration: none; color: var(--color-text); }
.claims li a:hover { background: var(--color-surface-muted); }
.claims-main { display: grid; gap: 2px; min-width: 0; }
.claims-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-ISSUED { background: var(--color-info-bg); color: var(--color-info-text); }
.pill-DEAD_REPORTED { background: var(--color-expiry-bg); color: var(--color-expiry-text); }
.pill-CREDITED { background: var(--color-verified-bg); color: var(--color-verified-text); }
.pill-CLEARED { background: var(--color-surface-muted); color: var(--color-text-muted); }
.pill-REVERSED { background: var(--color-danger-bg); color: var(--color-danger-text); }
.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.sessions li { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); }
.sessions li.current { border-color: var(--color-info-text); }
.notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.notifs li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--r-2); }
.notifs li.unread { border-left: 3px solid var(--color-primary); }
.notif-main p { margin: 2px 0; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.tbl td.pos { color: var(--color-savings-text); font-weight: var(--fw-medium); }
.tbl td.neg { color: var(--color-danger-text); }
.panel-danger { border-color: var(--color-danger-text); }
.eyebrow { font-size: var(--fs-13); color: var(--color-text-subtle); margin-bottom: var(--sp-1); }

/* claim result page */
.claim-page { max-width: 720px; margin: 0 auto; display: grid; gap: var(--sp-6); padding: var(--sp-6) 0 var(--sp-12); }
.code-card { display: grid; gap: var(--sp-4); padding: var(--sp-6); border: 2px solid var(--color-primary); border-radius: var(--r-3); background: var(--color-surface); }
.code-card h2 { font-size: var(--fs-20); line-height: 1.3; }
.code-card .save { font-size: var(--fs-20); font-weight: var(--fw-semibold); color: var(--color-savings-text); }
.code-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px dashed var(--color-border-strong); border-radius: var(--r-2); background: var(--color-surface-muted); }
.code-box .label { grid-column: 1 / -1; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-subtle); }
.code-box .code { font-family: var(--font-mono); font-size: 26px; font-weight: var(--fw-semibold); letter-spacing: .08em; user-select: all; word-break: break-all; }
@media (max-width: 480px) { .code-box { grid-template-columns: 1fr; } .code-box .btn { width: 100%; } }

/* save toggle on tiles */
.tile { position: relative; }
.save-toggle { position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2; margin: 0; }
.save-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; background: rgba(255,255,255,.92); color: var(--color-text); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.save-btn svg { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] { color: var(--color-primary); }
.save-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--white); }

/* cookie consent banner (spec §3.8): equal-weight buttons, no pre-ticks, bottom sheet */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 24px rgba(0,0,0,.08); padding: var(--sp-4) 0 calc(var(--sp-4) + env(safe-area-inset-bottom)); }
.consent-in { max-width: var(--container-max, 1280px); margin: 0 auto; padding: 0 var(--sp-4); display: grid; gap: var(--sp-3); }
.consent-in p { margin: var(--sp-1) 0 0; font-size: var(--fs-14); line-height: var(--lh-14); color: var(--color-text-muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (min-width: 768px) { .consent-in { grid-template-columns: 1fr auto; align-items: center; padding: 0 var(--sp-6); } .consent-actions { grid-template-columns: auto auto; } }
body.has-claimbar .consent { display: none; }
@media (max-width: 767px) { .consent { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); } }
/* header must never wrap: the nav keeps its words together and the search gives way first */
.nav a { white-space: nowrap; }
.hdr-links { gap: var(--sp-2); white-space: nowrap; flex: 0 0 auto; }
.search { min-width: 200px; }
@media (max-width: 420px) { .search { min-width: 0; } .search button { padding: 0 var(--sp-2); } .hdr-in { gap: var(--sp-2); } }
@media (min-width: 1024px) and (max-width: 1199px) { .nav { gap: var(--sp-4); margin-left: var(--sp-4); } .menu-name { display: none; } }
.stats { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.notice a { white-space: nowrap; }
.pill-BANNED, .pill-DELETED { background: var(--color-text); color: var(--color-surface); border-color: transparent; }

/* ============================================================================================
   Slice 3 — wallet, referrals, Drops
   ============================================================================================ */
.wallet-widget { display: grid; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--r-3); background: var(--color-surface); }
.wallet-widget .stat { border: 0; padding: 0; }
.wallet-widget.negative .stat-hero .num { color: var(--color-danger-text); }
.wallet-notes { display: grid; gap: var(--sp-2); }
.wallet-notes p { margin: 0; }
@media (min-width: 768px) { .wallet-widget { grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-8); } }
.wallet-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.wallet-filters .field { min-width: 160px; }
.stat-hero .num.neg { color: var(--color-danger-text); }
.stat-hero .num.pos { color: var(--color-savings-text); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--sp-4); border-left: 2px solid var(--color-border); display: grid; gap: var(--sp-2); font-size: var(--fs-14); line-height: var(--lh-14); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--sp-4) - 5px); top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.timeline time { color: var(--color-text-subtle); margin-right: var(--sp-2); }
.claims li .claims-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); }
.share .code-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.share .row { flex-wrap: wrap; }

/* drops */
.dropcard { --drop-color: var(--color-flash-text); display: grid; border: 1px solid var(--color-border); border-radius: var(--r-3); overflow: hidden; background: var(--color-surface); }
.dropcard-band { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); background: var(--drop-color); color: #fff; }
.dropcard-band .badge-flash { background: rgba(255,255,255,.18); color: #fff; }
.dropcard-state { font-size: var(--fs-13); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 6px; }
.dropcard-state.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.dropcard-body { display: grid; gap: var(--sp-3); padding: var(--sp-4); }
.dropcard-body h3 { font-size: var(--fs-20); line-height: var(--lh-20); }
.dropcard-body h3 a { text-decoration: none; color: inherit; }
.dropcard-hero .dropcard-body h3 { font-size: var(--fs-25); line-height: var(--lh-25); }
.dropcard-curator { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-14); margin: 0; }
.dropcard-meta { display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-14); margin: 0; }
.dropcard-meta dt { color: var(--color-text-subtle); }
.dropcard-meta dd { margin: 0; font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.meter-drop i { background: var(--drop-color); }
.dropcard .btn { justify-self: start; }
.dropcard-ended .dropcard-band { background: var(--color-text-muted); }
.drop-head { --drop-color: var(--color-flash-text); display: grid; gap: var(--sp-3); padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1px solid var(--color-border); margin-bottom: var(--sp-6); }
.drop-head h1 { font-size: var(--fs-31); line-height: var(--lh-31); }
.drop-head .lead { font-size: var(--fs-16); color: var(--color-text-muted); margin: 0; }
.drop-status { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-2); background: var(--color-flash-bg); color: var(--color-flash-text); font-size: var(--fs-14); line-height: var(--lh-14); }
.drop-facts { display: grid; gap: var(--sp-3); margin: 0; }
.drop-facts > div { display: grid; gap: 2px; }
.drop-facts dt { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-subtle); }
.drop-facts dd { margin: 0; }
.countdown-lg { font-size: var(--fs-25); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--drop-color); }
@media (min-width: 768px) { .drop-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--sp-10); } }
.drop-layout { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-12); }
@media (min-width: 1024px) { .drop-layout { grid-template-columns: 1fr 320px; gap: var(--sp-10); } }
.curator .prose { white-space: pre-line; }
.drop-chip { margin: var(--sp-2) 0 0; font-size: var(--fs-14); }
.drop-chip a { text-decoration: none; color: var(--color-text); }
.nav-drops { color: var(--color-flash-text) !important; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.acct-main .tbl td:first-child, .acct-main .tbl td:first-child a { white-space: nowrap; }

/* ---- slice 4: admin MFA, approvals, merchant portal ---- */
.btn-link{background:none;border:0;padding:0;color:var(--color-link,var(--brand-600));text-decoration:underline;cursor:pointer;font:inherit}
.approval-row td{vertical-align:top}
.badge-pending{background:var(--amber-100,#fff4d6);color:var(--amber-800,#7a4b00)}
.badge-approved{background:var(--green-100,#dff5e5);color:var(--green-800,#0f5a2a)}
.badge-rejected{background:var(--red-100,#fde3e3);color:var(--red-800,#7a1c1c)}
.unmask-form{display:inline-flex;gap:.5rem;align-items:center;flex-wrap:wrap}
/* merchant portal shell */
body.merchant { background: var(--color-bg); }
.mp-bar { display: flex; align-items: center; gap: var(--sp-4); padding: 0 var(--sp-4); min-height: 52px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.mp-brand { font-weight: var(--fw-semibold); text-decoration: none; color: var(--color-text); }
.mp-brand .env { background: var(--color-info-bg); color: var(--color-info-text); border-radius: var(--r-1); padding: 0 var(--sp-2); font-size: var(--fs-12); }
.mp-who { margin-left: auto; display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; font-size: var(--fs-14); }
.inline { display: inline; }
.mp-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 52px); }
.mp-layout.mp-narrow { grid-template-columns: 1fr; }
.mp-nav { border-right: 1px solid var(--color-border); padding: var(--sp-4) var(--sp-2); display: grid; align-content: start; gap: 2px; background: var(--color-surface); }
.mp-nav a { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); text-decoration: none; color: var(--color-text-muted); }
.mp-nav a:hover { background: var(--color-surface-muted); color: var(--color-text); }
.mp-nav a[aria-current="page"] { background: var(--ink-900); color: var(--white); }
.mp-nav .mp-golive { margin-top: var(--sp-4); border: 1px dashed var(--color-border-strong); color: var(--color-verified-text); }
.mp-main { padding: var(--sp-6) var(--sp-4); max-width: 1100px; width: 100%; display: grid; gap: var(--sp-4); align-content: start; }
.mp-narrow .mp-main { max-width: 560px; margin: 0 auto; }
.mp-main h1 { font-size: var(--fs-24, 24px); line-height: 1.2; }
.mp-main h2 { font-size: var(--fs-16); line-height: var(--lh-16); }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--color-danger-text); color: var(--white); font-size: var(--fs-12); text-align: center; }
.wizard { display: flex; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--fs-13); }
.wizard span { padding: 2px var(--sp-2); border-radius: var(--r-pill); border: 1px solid var(--color-border); color: var(--color-text-muted); }
.wizard span.done { background: var(--color-verified-bg); color: var(--color-verified-text); border-color: transparent; }
.wizard span.now { background: var(--ink-900); color: var(--white); border-color: transparent; }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-2); align-items: start; }
.checklist li.ok::before { content: "✓"; color: var(--color-verified-text); font-weight: 700; }
.checklist li.todo::before { content: "○"; color: var(--color-text-subtle); }
.sla-green { color: var(--color-verified-text); } .sla-amber { color: var(--color-expiry-text); } .sla-red { color: var(--color-danger-text); font-weight: 600; }
.doc-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.doc-list li { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--r-2); background: var(--color-surface); font-size: var(--fs-14); }
.preview-card { border: 1px solid var(--color-border); border-radius: var(--r-3); padding: var(--sp-4); background: var(--color-surface); display: grid; gap: var(--sp-2); max-width: 360px; }
.thread { display: grid; gap: var(--sp-3); }
.thread .msg { padding: var(--sp-3); border-radius: var(--r-2); background: var(--color-surface-muted); }
.thread .msg.staff { background: var(--color-info-bg); }
.thread .msg .by { font-size: var(--fs-13); color: var(--color-text-muted); }
@media (max-width: 760px) { .mp-layout { grid-template-columns: 1fr; } .mp-nav { display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--color-border); } }
/* slice 5: runbooks, status */
.runbook h1 { font-size: var(--fs-24, 24px); margin-bottom: var(--sp-3); } .runbook h2 { margin-top: var(--sp-6); } .runbook h3 { margin-top: var(--sp-4); font-size: var(--fs-16); }
.runbook pre { background: var(--color-surface-muted); padding: var(--sp-3); border-radius: var(--r-2); overflow-x: auto; font-size: var(--fs-13); }
.runbook blockquote { border-left: 3px solid var(--color-border-strong); padding-left: var(--sp-3); color: var(--color-text-muted); }
.runbook ol, .runbook ul { padding-left: 1.4rem; } .runbook li { margin: var(--sp-1) 0; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-8); padding-bottom: var(--sp-12); }
.legal-nav ul { list-style: none; padding: 0; display: grid; gap: var(--sp-1); position: sticky; top: var(--sp-4); }
.legal-nav a { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2); color: var(--color-text-muted); text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--color-surface-muted); color: var(--color-text); font-weight: var(--fw-semibold); }
.legal-body h2 { margin-top: var(--sp-6); font-size: var(--fs-20); } .legal-body p, .legal-body li { max-width: 72ch; }
@media (max-width: 760px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav ul { position: static; display: flex; flex-wrap: wrap; } }
.session-warn { margin-bottom: var(--sp-4); }

/* ---- publishers & users (2026-11-09): follow buttons, following page, For-you rail ---- */
.follow-btn svg { width: 16px; height: 16px; }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.follow-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border); }
.follow-list li:last-child { border-bottom: 0; }
.follow-list li > a { display: flex; align-items: center; gap: var(--sp-3); color: var(--color-text); text-decoration: none; min-width: 0; }
.follow-list li > a > span { display: grid; min-width: 0; }
.follow-list li > a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foryou .foryou-why { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.foryou .foryou-why .chip { min-height: 30px; font-size: var(--fs-13); }
.ask-store { margin-top: var(--sp-2); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.ask-store svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .form-grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; } }

/* ---- message center: list · trail · context (stacks on small screens) ---- */
.msgcenter { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-items: start; }
@media (min-width: 900px) { .msgcenter { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); } .mc-context { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .msgcenter { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 270px); } .mc-context { grid-column: auto; } }
@media (min-width: 1024px) { .acct-wide { max-width: 1480px; grid-template-columns: 200px 1fr; gap: var(--sp-6); } }
.mc-list, .mc-thread, .mc-context { min-width: 0; }
.mc-list, .mc-thread { border: 1px solid var(--color-border); border-radius: var(--r-3); background: var(--color-surface); }
.mc-pane-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--color-border); }
.mc-pane-head h2 { font-size: var(--fs-16); line-height: var(--lh-16); margin: 0; }
.mc-filter { display: flex; gap: var(--sp-1); }
.mc-filter a { font-size: var(--fs-13); padding: 2px var(--sp-2); border-radius: var(--r-pill); color: var(--color-text-muted); text-decoration: none; }
.mc-filter a[aria-current="page"] { background: var(--color-surface-muted); color: var(--color-text); font-weight: var(--fw-medium); }
.mc-items { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow-y: auto; }
.mc-items li { border-bottom: 1px solid var(--color-border); }
.mc-items li:last-child { border-bottom: 0; }
.mc-items a { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); color: var(--color-text); text-decoration: none; }
.mc-items a:hover { background: var(--color-surface-muted); }
.mc-items li.current a { background: var(--color-surface-muted); box-shadow: inset 3px 0 0 var(--color-primary); }
.mc-item-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; flex: 1; }
.mc-item-body > * { min-width: 0; }
.mc-item-top { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: baseline; }
.mc-item-top time { font-size: var(--fs-12); color: var(--color-text-subtle); white-space: nowrap; }
.mc-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fw-medium); }
.mc-subject { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-preview { font-size: var(--fs-13); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-items li.unread .mc-subject, .mc-items li.unread .mc-preview { font-weight: var(--fw-semibold); color: var(--color-text); }
.mc-item-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: 2px; }
.mc-item-meta .badge { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mc-empty, .mc-none { padding: var(--sp-6) var(--sp-4); text-align: center; }
.mc-none svg { width: 40px; height: 40px; color: var(--color-text-subtle); margin-bottom: var(--sp-2); }
.mc-thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; }
.mc-thread-head { align-items: flex-start; }
.mc-thread-head p { margin: 2px 0 0; }
.mc-trail { list-style: none; margin: 0; padding: var(--sp-4); display: grid; gap: var(--sp-3); max-height: 60vh; overflow-y: auto; align-content: start; }
.mc-msg { display: grid; gap: 2px; max-width: 78%; justify-self: start; }
.mc-msg.mine { justify-self: end; text-align: right; }
.mc-msg.system { justify-self: center; text-align: center; max-width: 90%; }
.mc-msg-who { font-size: var(--fs-12); color: var(--color-text-subtle); }
.mc-bubble { background: var(--color-surface-muted); border-radius: var(--r-3); padding: var(--sp-2) var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font-size: var(--fs-14); line-height: var(--lh-14); }
.mc-msg.mine .mc-bubble { background: var(--color-primary); color: var(--color-primary-text); }
.mc-msg.system .mc-bubble { background: transparent; border: 1px dashed var(--color-border-strong); color: var(--color-text-muted); font-size: var(--fs-13); }
.mc-msg time { font-size: var(--fs-12); color: var(--color-text-subtle); }
.mc-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2); align-items: end; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--color-border); }
.mc-reply .field textarea { min-height: 64px; }
.mc-closed-note { margin: var(--sp-3) var(--sp-4) var(--sp-4); }
.mc-compose { padding: var(--sp-4); }
.mc-context { display: grid; gap: var(--sp-4); }
.mc-card { border: 1px solid var(--color-border); border-radius: var(--r-3); padding: var(--sp-4); display: grid; gap: var(--sp-3); background: var(--color-surface); }
.mc-card h3 { font-size: var(--fs-13); line-height: var(--lh-13); text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-subtle); margin: 0; }
.mc-card p { margin: 0; }
.mc-person { display: flex; gap: var(--sp-3); align-items: flex-start; }
.mc-person > div { min-width: 0; display: grid; gap: 2px; }
.mc-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); }
.mc-benefit { font-size: var(--fs-20); line-height: var(--lh-20); font-weight: var(--fw-semibold); color: var(--color-primary); }
.mc-facts { margin: 0; display: grid; gap: var(--sp-1); font-size: var(--fs-14); }
.mc-facts div { display: flex; justify-content: space-between; gap: var(--sp-3); }
.mc-facts dt { color: var(--color-text-muted); }
.mc-facts dd { margin: 0; text-align: right; }
@media (max-width: 899px) { .mc-nothing .mc-thread { display: none; } .msgcenter > .mc-thread { order: -1; } .mc-list .mc-items { max-height: 40vh; } .mc-msg { max-width: 92%; } }

/* ---- sign-up: shopper vs publisher chooser ---- */
.acct-type { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.acct-type-opt { display: grid; gap: 2px; padding: var(--sp-3); border: 1px solid var(--color-border-strong); border-radius: var(--r-2); color: var(--color-text); text-decoration: none; font-size: var(--fs-13); line-height: var(--lh-13); }
.acct-type-opt b { font-size: var(--fs-14); }
.acct-type-opt span { color: var(--color-text-muted); }
.acct-type-opt.on { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); background: var(--color-surface); }
a.acct-type-opt:hover { background: var(--color-surface-muted); }
@media (max-width: 420px) { .acct-type { grid-template-columns: 1fr; } }

/* 2026-11-10: register / forgot entry points, newsletter fieldset */
.auth-alt { display: grid; gap: var(--sp-3); padding-top: var(--sp-6); border-top: 1px solid var(--color-border); }
.consent-box legend { font-weight: var(--fw-medium); padding: 0 var(--sp-1); }
/* 2026-11-10: language menu */
.langmenu .menu-body { min-width: 160px; }
.langmenu > summary { padding: 0; }
.menu-body a[aria-current] { font-weight: var(--fw-medium); }
/* 2026-11-12: admin Upravnik (parameters, email templates) */
.upr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); align-items: start; }
.upr-edit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-4); align-items: start; }
.upr-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--fs-14); background: var(--color-surface-muted); border-radius: var(--r-2); padding: var(--sp-3); margin: 0; }
@media (max-width: 900px) { .upr-edit { grid-template-columns: minmax(0, 1fr); } }
/* 2026-11-13: whose country the lists are for */
.geo-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); font-size: var(--fs-14); color: var(--color-text-muted); padding: var(--sp-3) 0 0; }
.plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4, 16px); }
.plan-item { display: flex; flex-direction: column; gap: 6px; }
.plan-item ul { margin: 0 0 8px; padding-left: 18px; flex: 1; }
.plan-item-price b { font-size: 1.6rem; }
.plan-item .btn { align-self: flex-start; }
.tile-place { display: flex; align-items: center; gap: 4px; font-size: var(--fs-12, 12px); color: var(--color-text-muted); min-width: 0; }
.tile-place svg { width: 13px; height: 13px; flex: none; }
.tile-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-note select { min-height: 32px; padding: 0 var(--sp-6) 0 var(--sp-2); font-size: var(--fs-14); width: auto; }

/* merchant marketing band (home, account profile) and the for-merchants lists (2026-11-30) */
.mband { display: grid; gap: var(--sp-6); padding: var(--sp-6); border-radius: var(--r-3); background: var(--color-surface-muted); border: 1px solid var(--color-border-strong); border-left: 6px solid var(--color-primary); }
.mband h2 { font-size: var(--fs-25); line-height: 1.2; }
.mband-text p { color: var(--color-text-muted); margin-top: var(--sp-2); max-width: 60ch; }
.mband-text ul { margin-top: var(--sp-3); padding-left: 1.2em; display: grid; gap: var(--sp-1); }
.mband-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.mband-more { font-size: var(--fs-14); }
.mband-compact { padding: var(--sp-4); gap: var(--sp-4); }
.mband-compact h2 { font-size: var(--fs-20); }
@media (min-width: 1024px) { .mband { grid-template-columns: 1fr auto; align-items: center; } .mband-cta { flex-direction: column; align-items: stretch; } .mband-more { text-align: center; } .mband-compact .mband-cta { flex-direction: row; } .mband-compact { grid-template-columns: 1fr; } }
.nav a.nav-merchants { font-weight: var(--fw-semibold); }
.mwhat { display: grid; gap: var(--sp-8); }
.mwhat h2 { font-size: var(--fs-20); margin-bottom: var(--sp-3); }
.mwhat ul, .mwhat ol { padding-left: 1.2em; display: grid; gap: var(--sp-2); color: var(--color-text-muted); }
@media (min-width: 768px) { .mwhat { grid-template-columns: 1fr 1fr; } }
