/* vetted.reviews — component styles (spec §2). Hand-written CSS, BEM-ish class names. */

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); }
h1, h2, .display { font-family: var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -0.02em; }
h1 { font-size: var(--text-3xl); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); line-height: 1.1; }
h3 { font-size: var(--text-lg); line-height: 1.3; font-weight: 700; }
h4 { font-size: var(--text-base); font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-pale); }
code, pre, .mono { font-family: var(--font-mono); font-size: 13.5px; }
:not(pre) > code { background: var(--surface-alt); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-size: 13px; overflow-wrap: break-word; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: var(--s-6) 0; }
small, .caption { font-size: var(--text-xs); color: var(--ink-3); line-height: 1.5; }
strong, b { font-weight: 700; }
.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; }
[hidden] { display: none !important; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--content-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
.shell, .prose, .card, .grid, .gallery, .profile-layout { min-width: 0; }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.container--mid { max-width: calc(960px + var(--gutter) * 2); }
.section { padding: var(--section-pad) 0; }
.section--tight { padding: calc(var(--section-pad) * .6) 0; }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-10); }
.section__head p { max-width: 560px; font-size: var(--text-md); }
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: var(--s-3); }
.lede { font-size: var(--text-md); color: var(--ink-2); max-width: 620px; overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); } .mt-10 { margin-top: var(--s-10); }
.mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); } .mb-8 { margin-bottom: var(--s-8); }

/* ── Skip link ────────────────────────────────────────────────────────── */
.skip-link { position: absolute; top: -100px; left: var(--s-4); background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: var(--r-btn); z-index: 100; font-weight: 700; }
.skip-link:focus { top: var(--s-4); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  font-weight: 700; font-size: var(--text-base); line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { background: var(--ink); color: var(--ground); }
.btn--dark:hover { background: #1c2c3b; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-hover); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--ground); }
.btn--white { background: #fff; color: var(--green); }
.btn--white:hover { background: var(--green-pale); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn--ghost:hover { background: rgba(16,28,38,.06); }
.btn--sm { height: 40px; padding: 0 16px; font-size: var(--text-sm); }
.btn--lg { height: 52px; padding: 0 26px; font-size: var(--text-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--danger { background: var(--red); color: #fff; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,244,238,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow: visible; }
.nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 72px; gap: var(--s-4); min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); line-height: 1; flex: none; min-width: 0; justify-self: start; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo em { font-style: normal; color: var(--green); }
.logo--light { color: #fff; }
.nav__inner > nav { justify-self: center; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-btn); font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); background: rgba(16,28,38,.06); }
.nav__links a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; justify-self: end; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-btn); flex: none; flex-shrink: 0; border: 1px solid var(--line-3); background: var(--surface); color: var(--ink); }
.nav__toggle:hover { background: rgba(16,28,38,.06); }
.nav__toggle svg { width: 24px; height: 24px; flex: none; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-menu { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }
.nav__user { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 4px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--text-sm); }
.nav__user:hover { background: rgba(16,28,38,.06); }
.nav__logout { display: flex; margin: 0; }
.nav__icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--surface); color: var(--ink-2); flex: none; }
.nav__icon-btn:hover { background: rgba(16,28,38,.06); color: var(--ink); }
.nav__icon-btn svg { width: 18px; height: 18px; }
.nav__mobile-only { display: none; }

/* ── Avatar ───────────────────────────────────────────────────────────── */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-alt); color: var(--green); font-weight: 700; font-size: 14px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.logo-tile { width: 72px; height: 72px; border-radius: 14px; background: var(--surface-alt); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 28px; flex: none; overflow: hidden; border: 1px solid var(--line-2); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; }
.logo-tile--sm { width: 48px; height: 48px; font-size: 18px; border-radius: 10px; }

/* ── Search bar ───────────────────────────────────────────────────────── */
.searchbar { position: relative; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); box-shadow: 0 0 0 6px rgba(11,110,92,.07), 0 14px 36px rgba(16,28,38,.08); padding: 6px 6px 6px 8px; gap: 10px; }
.searchbar:focus-within { border-color: var(--green); box-shadow: 0 0 0 7px rgba(11,110,92,.16), 0 16px 40px rgba(16,28,38,.1); }
.searchbar__glyph { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-alt); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.searchbar__icon { width: 18px; height: 18px; }
.searchbar__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.searchbar input { flex: 1; min-width: 0; width: 100%; height: 44px; border: 0; background: transparent; font-size: var(--text-md); outline: none; }
.searchbar input[type="search"] { -webkit-appearance: none; appearance: none; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar.has-hint input:not(:focus)::placeholder { color: transparent; }
.searchbar__hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: var(--text-md); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.searchbar__hint em { font-style: normal; color: var(--green); font-weight: 700; }
.searchbar__hint.is-out { opacity: 0; transform: translateY(calc(-50% + 6px)); }
.searchbar.is-filled .searchbar__hint, .searchbar:focus-within .searchbar__hint { opacity: 0; }
.searchbar .btn, .searchbar__submit { height: 44px; flex: none; border-radius: var(--r-pill); box-shadow: 0 6px 16px rgba(11,110,92,.28); }
.searchbar__submit-icon { display: none; width: 20px; height: 20px; }
.searchbar--sm { padding: 4px 4px 4px 10px; border-radius: 12px; box-shadow: none; border-width: 1px; }
.searchbar--sm .searchbar__glyph { width: 30px; height: 30px; background: transparent; }
.searchbar--sm input { height: 38px; font-size: var(--text-base); }
.searchbar--sm .searchbar__hint { font-size: var(--text-base); }
.searchbar--sm .btn { height: 38px; box-shadow: none; }
.typeahead { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(16,28,38,.12); padding: 6px; z-index: 40; text-align: left; }
.typeahead[hidden] { display: none; }
.typeahead__group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.typeahead__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.typeahead__item:hover, .typeahead__item[aria-selected="true"] { background: var(--ground); }
.typeahead__item strong { font-weight: 600; }
.typeahead__item small { display: block; }
.typeahead__meta { margin-left: auto; font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; }
.typeahead__empty { padding: 14px 12px; color: var(--ink-3); font-size: var(--text-sm); }

/* ── Pills / chips ────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: var(--r-pill); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); background: transparent; transition: all var(--dur) var(--ease); white-space: nowrap; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active, .pill[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pill--sm { height: 32px; padding: 0 12px; font-size: var(--text-xs); }
.pill--soft { background: var(--surface); }
.pill--mint { background: var(--surface-alt); border-color: transparent; color: var(--green); }
.pill--mint:hover { background: var(--green); color: #fff; border-color: var(--green); }
.pill--eyebrow { height: 34px; background: var(--surface); border-color: var(--line); color: var(--ink-2); font-weight: 600; font-size: var(--text-xs); }
.pill--eyebrow svg { width: 16px; height: 16px; color: var(--green); }
.pill--green { background: var(--surface-alt); border-color: transparent; color: var(--green); }
.pill--green.is-active { background: var(--green); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--surface-alt); color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tag--mono { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 12px; background: var(--ground); color: var(--ink-2); border: 1px solid var(--line); }
.tag--dark { background: var(--ink); color: var(--ground); }

/* ── Stars ────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; line-height: 0; }
.stars svg { width: 18px; height: 18px; color: var(--star-empty); }
.stars svg.is-on { color: var(--star); }
.stars svg.is-half { color: var(--star); }
.stars--sm svg { width: 14px; height: 14px; }
.stars--lg svg { width: 24px; height: 24px; }
.stars--xl svg { width: 30px; height: 30px; gap: 3px; }
.score { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.score--lg { font-size: 44px; }
.score--xl { font-size: 56px; }
.score-label { font-weight: 700; color: var(--ink); }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge--verified { color: var(--green); }
.badge--unverified { color: var(--ink-3); }
.badge--claimed { height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-alt); color: var(--green); }
.badge--unclaimed { height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ground); color: var(--ink-3); border: 1px solid var(--line); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-7); }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: var(--s-5); }
.card--dark { background: var(--dark-surface); color: var(--ground); border-color: transparent; }
.card--dark p, .card--dark li { color: #D5DDE3; }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark .trust-list li { color: #D5DDE3; border-color: rgba(255,255,255,.12); }
.card--dark .trust-list strong { color: #fff; }
.card--dark :not(pre) > code { background: rgba(255,255,255,.12); color: var(--green-pale); }
.card--green { background: var(--surface-alt); border-color: transparent; }
.card--dashed { border-style: dashed; border-color: var(--line-3); background: var(--ground); }
.card__title { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }

/* Review card */
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-7); display: flex; flex-direction: column; gap: 12px; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-card__author { display: flex; align-items: center; gap: 12px; }
.review-card__author strong { display: block; font-weight: 700; font-size: var(--text-sm); }
.review-card__author small { display: block; }
.review-card__meta { display: flex; align-items: center; gap: 10px; font-size: var(--text-xs); color: var(--ink-3); }
.review-card__title { font-size: var(--text-lg); font-weight: 700; line-height: 1.3; color: var(--ink); }
.review-card__body { color: var(--ink-2); font-size: var(--text-base); line-height: 1.6; white-space: pre-line; }
.review-card__body--clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: var(--text-xs); color: var(--ink-3); }
.review-card__footer a:not(.review-card__read) { color: var(--ink); font-weight: 600; }
.review-card__footer a:not(.review-card__read):hover { color: var(--green); }
.review-card__read {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  height: 34px; padding: 0 14px 0 16px; border-radius: var(--r-pill);
  background: var(--green); color: #fff; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.review-card__read:hover { background: var(--green-hover); color: #fff; }
.review-card__read:active { transform: translateY(1px); }
.review-card__read svg { width: 14px; height: 14px; flex: none; }
.review-card__actions { display: flex; gap: 4px; }
.review-card__actions button, .review-card__actions a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.review-card__actions button:hover, .review-card__actions a:hover { background: var(--ground); color: var(--ink); }
.review-card__actions svg { width: 15px; height: 15px; }
.review-card__actions .is-voted { color: var(--green); }
.reply { background: var(--ground); border-radius: 12px; padding: 16px 18px; margin-top: 4px; border-left: 3px solid var(--green-pale); }
.reply__head { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.reply__head svg { width: 14px; height: 14px; color: var(--green); }
.reply__head span { color: var(--ink-3); font-weight: 500; }
.reply p { font-size: var(--text-sm); }
.review-list { display: flex; flex-direction: column; gap: var(--s-4); }

/* ── Stat panel ───────────────────────────────────────────────────────── */
.stat-panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-8) var(--s-10); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.stat__value em { font-style: normal; color: var(--green); }
.stat__label { color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; margin-top: 6px; }

/* ── Invitation funnel (light, for use on cream/white cards) ─────────── */
.funnel-card { padding: var(--s-8); }
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.funnel__value { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.funnel__col--goal .funnel__value { color: var(--green); }
.funnel__label { color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; margin-top: 6px; }
.funnel__track { height: 8px; background: var(--line-2); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.funnel__track span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.funnel__col--goal .funnel__track span { background: var(--green); }

/* ── Step list ────────────────────────────────────────────────────────── */
.steps { list-style: none; display: flex; flex-direction: column; gap: var(--s-6); counter-reset: step; }
.steps--panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-8); }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; flex: none; }
.step__title { font-weight: 700; font-size: var(--text-md); margin-bottom: 4px; color: var(--ink); }
.step p { font-size: var(--text-sm); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band { background: var(--green); color: #fff; border-radius: var(--r-panel); padding: var(--s-12) var(--s-16); display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.cta-band .eyebrow { color: var(--green-pale); }
.cta-band h2 { color: #fff; font-size: 36px; max-width: 620px; }
.cta-band p { color: var(--green-pale); font-size: var(--text-md); }
.cta-band__actions { display: flex; gap: 12px; flex: none; }

/* ── Code panel ───────────────────────────────────────────────────────── */
.code-panel { background: var(--dark-surface); color: #EEF3F6; border-radius: var(--r-card); padding: 20px 72px 20px 22px; position: relative; overflow: auto; min-width: 0; max-width: 100%; }
.code-panel pre { margin: 0; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: break-word; color: #EEF3F6; }
.code-panel .t { color: var(--green-light); }   /* tags */
.code-panel .a { color: #F2C879; }              /* attributes */
.code-panel .s { color: var(--green-pale); }    /* strings */
.code-panel .c { color: #B7C4CD; }              /* comments */
.code-panel__copy { position: absolute; top: 12px; right: 12px; height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.code-panel__copy:hover { background: rgba(255,255,255,.18); }
.code-panel__copy.is-done { background: var(--green); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: var(--s-16) 0 var(--s-10); margin-top: var(--s-16); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--s-10); }
.footer__brand p { font-size: var(--text-sm); max-width: 300px; margin-top: 14px; }
.footer h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer li a { font-size: var(--text-sm); color: var(--ink-2); font-weight: 500; }
.footer li a:hover { color: var(--green); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line-2); font-size: var(--text-xs); color: var(--ink-3); }
.footer__locale { display: inline-flex; align-items: center; gap: 6px; }
.footer__locale svg { width: 15px; height: 15px; }

/* ── Flash messages ───────────────────────────────────────────────────── */
.flash-wrap {
  position: fixed; top: 88px; right: max(20px, calc((100vw - var(--content-max)) / 2));
  z-index: 70; width: min(400px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
}
.flash {
  --flash-accent: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 14px 16px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(16, 28, 38, .14), 0 2px 8px rgba(16, 28, 38, .06);
  overflow: hidden;
  pointer-events: auto;
}
.flash::before {
  content: "";
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: var(--flash-accent);
}
.flash__glow { display: none; }
.flash--toast { margin: 0; }
.flash--inline { box-shadow: 0 8px 24px rgba(16, 28, 38, .06); }
.flash--inline .flash__glow, .flash--inline .flash__kicker { display: none; }
.flash--success { --flash-accent: var(--green); background: #f4faf8; border-color: #d5ebe4; }
.flash--error { --flash-accent: var(--red); background: #fff7f6; border-color: #f0d4d1; }
.flash--info { --flash-accent: var(--ink); }
.flash--warning { --flash-accent: var(--amber); background: var(--amber-pale); border-color: #ead8a8; }
.flash__mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  flex: none; color: var(--flash-accent);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 28, 38, .08);
}
.flash--success .flash__mark { background: var(--surface-alt); box-shadow: none; }
.flash--error .flash__mark { background: var(--red-pale); box-shadow: none; }
.flash--warning .flash__mark { background: #fff6e4; box-shadow: none; }
.flash__mark svg { width: 22px; height: 22px; }
.flash__body { min-width: 0; padding-top: 2px; }
.flash__kicker {
  display: block; margin: 0 0 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--flash-accent);
}
.flash__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.2;
  color: var(--ink);
}
.flash__text {
  margin: 0;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--ink-2); line-height: 1.45;
}
.flash__text a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.flash__text a:hover { color: var(--green-hover); }
.flash__action {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; height: 36px; padding: 0 14px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--ground);
}
.flash__action:hover { background: #1c2c3b; }
.flash--success .flash__action { background: var(--green); color: #fff; }
.flash--success .flash__action:hover { background: var(--green-hover); }
.flash--error .flash__action { background: var(--red); color: #fff; }
.flash--error .flash__action:hover { background: #8f1d17; }
.flash__action svg { width: 16px; height: 16px; }
.flash__close {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-3); margin-top: -4px; margin-right: -4px;
}
.flash__close:hover { background: rgba(16, 28, 38, .08); color: var(--ink); }
.flash__close svg { width: 16px; height: 16px; }
.flash__timer {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--flash-accent); opacity: .45;
  transform-origin: left center;
  animation: flash-timer var(--flash-ms, 7s) linear forwards;
}
.flash.is-paused .flash__timer { animation-play-state: paused; }

/* Toasts — the pop-in cards, not the in-page banners */
.flash--toast {
  isolation: isolate;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px 16px;
  padding: 20px 16px 22px 20px;
  border-radius: 22px;
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(16, 28, 38, .22), 0 4px 16px rgba(16, 28, 38, .08);
}
.flash--toast::before { display: none; }
.flash--toast .flash__glow {
  display: block;
  position: absolute; top: -48px; right: -36px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--flash-accent) 42%, transparent), transparent 70%);
  pointer-events: none; z-index: 0;
}
.flash--toast > *:not(.flash__glow):not(.flash__timer) { position: relative; z-index: 1; }
.flash--toast .flash__mark {
  width: 56px; height: 56px; border-radius: 18px;
  background: color-mix(in srgb, var(--flash-accent) 16%, #fff);
  color: var(--flash-accent);
  box-shadow: none;
}
.flash--toast .flash__mark svg { width: 26px; height: 26px; }
.flash--toast .flash__title { font-size: 24px; margin-bottom: 6px; }
.flash--toast .flash__text { font-size: 14.5px; }
.flash--toast .flash__timer {
  height: 4px; opacity: .9;
  background: linear-gradient(90deg, var(--flash-accent), color-mix(in srgb, var(--flash-accent) 40%, #fff));
}
.flash--toast.flash--success { background: #0f3d34; --flash-accent: #8ee0c8; border-color: #165246; }
.flash--toast.flash--success .flash__title,
.flash--toast.flash--error .flash__title,
.flash--toast.flash--info .flash__title { color: #F6F4EE; }
.flash--toast.flash--success .flash__text,
.flash--toast.flash--error .flash__text,
.flash--toast.flash--info .flash__text { color: rgba(246, 244, 238, .78); }
.flash--toast.flash--success .flash__mark,
.flash--toast.flash--error .flash__mark,
.flash--toast.flash--info .flash__mark { background: rgba(255,255,255,.1); color: var(--flash-accent); }
.flash--toast.flash--success .flash__close,
.flash--toast.flash--error .flash__close,
.flash--toast.flash--info .flash__close { color: rgba(246, 244, 238, .55); }
.flash--toast.flash--success .flash__close:hover,
.flash--toast.flash--error .flash__close:hover,
.flash--toast.flash--info .flash__close:hover { background: rgba(255,255,255,.1); color: #fff; }
.flash--toast.flash--success .flash__action { background: #8ee0c8; color: #0f3d34; }
.flash--toast.flash--success .flash__action:hover { background: #fff; color: #0f3d34; }
.flash--toast.flash--error { background: #3d1410; --flash-accent: #f3b3ab; border-color: #5a2019; }
.flash--toast.flash--error .flash__action { background: #f3b3ab; color: #3d1410; }
.flash--toast.flash--info { background: #101C26; --flash-accent: #7FD1B9; border-color: #1c2c3b; }
.flash--toast.flash--info .flash__action { background: #7FD1B9; color: #101C26; }
.flash--toast.flash--warning { background: #3d2d0c; --flash-accent: #f0c36a; border-color: #5a4214; }
.flash--toast.flash--warning .flash__title { color: #F6F4EE; }
.flash--toast.flash--warning .flash__text { color: rgba(246, 244, 238, .78); }
.flash--toast.flash--warning .flash__mark { background: rgba(240, 195, 106, .16); color: #f0c36a; }
.flash--toast.flash--warning .flash__close { color: rgba(246, 244, 238, .55); }
.flash--toast.flash--warning .flash__close:hover { background: rgba(255,255,255,.1); color: #fff; }

.flash-wrap .flash { animation: flash-in .5s cubic-bezier(.2, .8, .2, 1.15) both; }
.flash-wrap .flash--error { animation-name: flash-in-error; }
.flash-wrap .flash.is-out { animation: flash-out .28s var(--ease) forwards; }
@keyframes flash-in {
  0% { opacity: 0; transform: translateX(32px) translateY(10px) scale(.92); }
  55% { opacity: 1; transform: translateX(-6px) translateY(0) scale(1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes flash-in-error {
  0% { opacity: 0; transform: translateX(24px); }
  40% { opacity: 1; transform: translateX(-8px); }
  58% { transform: translateX(5px); }
  76% { transform: translateX(-3px); }
  100% { transform: none; }
}
@keyframes flash-out {
  to { opacity: 0; transform: translateX(24px) scale(.96); }
}
@keyframes flash-timer { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .flash-wrap .flash, .flash__timer { animation: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: var(--s-20) 0 var(--s-16); text-align: center; }
.hero h1 { font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.03em; max-width: 900px; margin: 22px auto 0; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { margin: 22px auto 0; text-align: center; }
.hero__search { max-width: 720px; margin: 36px auto 0; position: relative; }
.hero__search::before { content: ""; position: absolute; inset: -22px -28px; border-radius: 999px; background: radial-gradient(ellipse at 50% 40%, rgba(127,209,185,.38), transparent 68%); pointer-events: none; z-index: -1; }
.hero__popular { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: var(--text-sm); color: var(--ink-3); font-weight: 600; }
.hero__title { font-size: 56px; margin: 12px 0 0; max-width: none; }
.page-hero { padding: var(--s-12) 0 var(--s-8); }
.page-hero h1 { font-size: 48px; }
.page-hero .lede { margin-top: 16px; }

/* ── Category tiles ───────────────────────────────────────────────────── */
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; font-size: var(--text-sm); transition: border-color var(--dur), transform var(--dur) var(--ease); min-height: 130px; }
.tile:hover { border-color: var(--green); transform: translateY(-2px); }
.tile__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-alt); color: var(--green); display: flex; align-items: center; justify-content: center; }
.tile__icon svg { width: 20px; height: 20px; }
.tile small { display: block; font-weight: 500; }
.tile--all { border-style: dashed; background: transparent; color: var(--ink-2); justify-content: center; align-items: center; text-align: center; }
.tile--all:hover { color: var(--ink); }

/* ── Business listing rows ────────────────────────────────────────────── */
.biz-list { display: flex; flex-direction: column; gap: 12px; }
.biz-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--ink); transition: border-color var(--dur); }
.biz-row:hover { border-color: var(--green); }
.biz-row__name { font-weight: 700; font-size: var(--text-md); display: flex; align-items: center; gap: 10px; }
.biz-row__meta { color: var(--ink-3); font-size: var(--text-xs); margin-top: 2px; }
.biz-row__score { display: flex; align-items: center; gap: 12px; text-align: right; }
.biz-row__score .score { font-size: 26px; }
.biz-row__score small { display: block; white-space: nowrap; }
.biz-row__rank { width: 48px; height: 48px; border-radius: 10px; background: var(--surface-alt); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; list-style: none; font-size: var(--text-xs); color: var(--ink-3); padding: var(--s-6) 0 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-3); }
.breadcrumb [aria-current] { color: var(--ink-3); }

/* ── Business profile ─────────────────────────────────────────────────── */
.profile-header { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s-8); margin-top: var(--s-5); display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-6); align-items: start; }
.profile-header__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-header__name h1 { font-size: 36px; letter-spacing: -0.02em; }
.profile-header__rating { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.profile-header__rating .score { font-size: 40px; }
.profile-header__rating a { color: var(--ink-2); font-weight: 600; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.profile-header__rating a:hover { color: var(--green); }
.profile-header__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: var(--text-sm); color: var(--ink-3); }
.profile-header__meta a { color: var(--ink-2); font-weight: 600; }
.profile-header__meta a:hover { color: var(--green); }
.profile-header__meta > * { display: inline-flex; align-items: center; gap: 5px; }
.profile-header__meta svg { width: 15px; height: 15px; flex: none; }
.profile-header__actions { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.profile-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-8); margin-top: var(--s-8); align-items: start; }
.profile-sidebar { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 92px; }
.profile-sidebar .card { padding: var(--s-6); }
.profile-sidebar h3 { font-size: var(--text-base); margin-bottom: 14px; }
.claim-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-alt); border-radius: 14px; padding: 16px 20px; margin-top: var(--s-5); }
.claim-banner p { color: var(--ink); font-weight: 600; font-size: var(--text-sm); }
.claim-banner small { display: block; font-weight: 500; }

.rating-bars { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rating-bar { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 12px; font-size: var(--text-sm); color: var(--ink-2); font-weight: 600; }
.rating-bar button, .rating-bar a { text-align: left; color: inherit; font-weight: 600; }
.rating-bar button:hover, .rating-bar a:hover { color: var(--green); }
.rating-bar__track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.rating-bar__fill { height: 100%; width: var(--w, 0%); background: var(--green); border-radius: 4px; transition: width .4s var(--ease); }
.rating-bar__pct { text-align: right; color: var(--ink-3); font-size: var(--text-xs); }

.trust-list { list-style: none; display: flex; flex-direction: column; }
.trust-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: var(--text-sm); color: var(--ink-2); }
.trust-list li:first-child { border-top: 0; padding-top: 0; }
.trust-list li:last-child { padding-bottom: 0; }
.trust-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.trust-list strong { color: var(--ink); display: block; }

.about-panel { background: var(--surface-alt); color: var(--ink); border-radius: var(--r-card); padding: var(--s-6); }
.about-panel h3 { color: var(--ink); }
.about-panel p { color: var(--ink-2); font-size: var(--text-sm); }
.about-panel a { color: var(--green); font-weight: 600; }

.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.review-toolbar h2 { font-size: 26px; }
.review-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--ink-3); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: var(--s-4); }
.grid > .field + .field { margin-top: 0; }
.field label, .label { font-weight: 700; font-size: var(--text-sm); color: var(--ink); }
.field .hint { font-size: var(--text-xs); color: var(--ink-3); }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line-3); border-radius: var(--r-input); font-size: var(--text-base); transition: border-color var(--dur); }
.textarea { height: auto; min-height: 160px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,110,92,.12); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .12);
}
.field:has(.field-error) label { color: var(--red); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A5560' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.select--inline { width: auto; height: 40px; font-size: var(--text-sm); font-weight: 600; }
.field-error {
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin-top: 2px; padding: 8px 10px;
  background: var(--red-pale); color: var(--red);
  border-radius: 8px; font-size: 13px; font-weight: 650; line-height: 1.35;
}
.field-error::before {
  content: ""; width: 16px; height: 16px; flex: none; margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 21h20L12 3z'/><path d='M12 10v5m0 3v.01'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 21h20L12 3z'/><path d='M12 10v5m0 3v.01'/></svg>") center / contain no-repeat;
}
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); font-weight: 500; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: var(--s-6); flex-wrap: wrap; }
.char-count { font-size: var(--text-xs); color: var(--ink-3); text-align: right; }
.char-count.is-over { color: var(--red); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: var(--text-xs); margin: var(--s-6) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }

.gate { margin-top: var(--s-6); }
.gate__trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.gate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 10px; }
.gate__img { display: block; width: 220px; height: 72px; border: 1px solid var(--line-3); border-radius: 12px; background: var(--paper); }
.gate__ask { margin: 0; font-weight: 700; font-size: var(--text-md); }
.gate__tools { display: flex; flex-wrap: wrap; gap: 6px; }

/* Star picker (write a review) */
.star-picker { display: inline-flex; gap: 6px; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.star-picker label svg { width: 34px; height: 34px; color: var(--star-empty); transition: color var(--dur), transform var(--dur); }
.star-picker label:hover svg { transform: scale(1.08); }
.star-picker label.is-on svg { color: var(--star); }
.star-picker input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.star-picker__label { font-weight: 700; margin-left: 12px; align-self: center; min-width: 90px; }

/* Auth card — don't use the page gutter (80px) or the form gets crushed */
.auth.container,
.container.auth {
  max-width: 520px;
  padding-left: 24px;
  padding-right: 24px;
  margin: var(--s-16) auto;
}
.auth .card { padding: 40px 36px; width: 100%; }
.auth h1 { font-size: 32px; margin-bottom: 8px; }
.auth__alt { text-align: center; font-size: var(--text-sm); color: var(--ink-3); margin-top: var(--s-6); }
.auth__alt a { color: var(--green); font-weight: 700; }
.btn--oauth { background: var(--surface); border-color: var(--line-3); color: var(--ink); justify-content: center; }
.btn--oauth:hover { border-color: var(--ink); }

/* ── Dropzone / upload ────────────────────────────────────────────────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 148px;
  margin-top: var(--s-4);
  padding: 28px 20px;
  border: 1.5px dashed var(--line-3);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--green); background: var(--surface-alt); }
.dropzone svg { width: 28px; height: 28px; max-width: 28px; color: var(--green); flex: none; }
.dropzone strong { color: var(--green); }
.dropzone__file { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }

/* ── Choice cards (proof step, plan picker) ───────────────────────────── */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { display: block; position: relative; padding: 18px; border: 1.5px solid var(--line-3); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color var(--dur); }
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; }
.choice input:checked ~ .choice__body { color: var(--ink); }
.choice:has(input:checked) { border-color: var(--green); background: var(--surface-alt); }
.choice input:focus-visible ~ .choice__body { outline: 2px solid var(--green); outline-offset: 8px; border-radius: 4px; }
.choice__body strong { display: block; font-size: var(--text-sm); margin-bottom: 4px; }
.choice__body small { color: var(--ink-3); }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan__price { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.plan__price small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-3); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: var(--text-sm); color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.plan--featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.plan .tag { align-self: flex-start; }

/* ── Feature trio / icon list ─────────────────────────────────────────── */
.feature { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-6); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: var(--text-md); }
.feature p { font-size: var(--text-sm); color: var(--ink-2); }

/* ── Widget gallery ───────────────────────────────────────────────────── */
.widget-builder { display: flex; flex-direction: column; gap: var(--s-6); }
.widget-builder__controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.widget-builder__controls .field + .field { margin-top: 0; }
.widget-builder__controls .checkbox { grid-column: 1 / -1; align-self: end; padding-bottom: 8px; }
.color-field { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.color-swatch { position: relative; width: 48px; height: 48px; border: 1px solid var(--line-3); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px; cursor: pointer; flex: none; }
.color-swatch input[type="color"] { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); padding: 0; border: 0; cursor: pointer; background: none; appearance: none; -webkit-appearance: none; }
.color-swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch input[type="color"]::-webkit-color-swatch { border: 0; }
.color-field .input { min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.widget-preview { min-height: 140px; display: flex; align-items: center; justify-content: center; padding: 28px; border: 1.5px dashed var(--line-3); border-radius: 12px; background: var(--ground); overflow: auto; max-width: 100%; }
.widget-preview.is-dark { background: var(--dark-surface); border-color: #2c3b4a; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.gallery__item { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gallery__preview { flex: none; min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 24px; border: 1.5px dashed var(--line-3); border-radius: 12px; background: var(--ground); overflow: hidden; max-width: 100%; min-width: 0; }
.gallery__preview--dark { background: var(--dark-surface); border-color: #2c3b4a; }
.gallery__item--wide .gallery__preview { display: block; overflow: hidden; }
.gallery__preview .vetted-widget[data-type="carousel"],
.widget-preview .vetted-widget[data-type="carousel"] { display: block; width: 100%; max-width: 100%; }
.gallery--embed { grid-template-columns: 1fr; }
.gallery--embed .gallery__item { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.gallery--embed .gallery__head { grid-column: 1 / -1; }
.gallery--embed .gallery__item--wide { grid-template-columns: 1fr; }
.mono-key { word-break: break-all; }

.carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; outline: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.carousel__slide { flex: 0 0 calc(33.333% - 8px); min-width: 240px; scroll-snap-align: start; background: #fff; }
@media (max-width: 1100px) {
  .carousel__slide { flex-basis: calc(50% - 6px); }
}
@media (max-width: 800px) {
  .carousel__slide { flex-basis: 82%; min-width: 0; }
}

/* ── Prose (static/legal pages) ───────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: var(--s-10) 0 var(--s-4); }
.prose h3 { font-size: var(--text-lg); margin: var(--s-8) 0 var(--s-3); }
.prose p, .prose li { font-size: var(--text-md); color: var(--ink-2); line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.prose table th:first-child,
.prose table td:first-child { white-space: nowrap; width: 1%; }
.prose table code { white-space: nowrap; overflow-wrap: normal; }
.prose th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 3px solid var(--green); background: var(--surface); border-radius: 0 12px 12px 0; }

/* ── Empty state / placeholder ────────────────────────────────────────── */
.empty { text-align: center; padding: var(--s-16) var(--s-6); border: 1.5px dashed var(--line-3); border-radius: var(--r-card); color: var(--ink-3); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.empty .btn { margin-top: var(--s-4); }

/* ── Skeletons ────────────────────────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--line-2); border-radius: 8px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ── Dashboard shells (app / admin) ───────────────────────────────────── */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); padding: var(--s-8) 0; align-items: start; }
.shell__main { min-width: 0; }
.shell__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px; }
h2[id], h3[id], .shell [id] { scroll-margin-top: 96px; }
.shell__nav a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); }
.shell__nav a:hover { background: rgba(16,28,38,.06); color: var(--ink); }
.shell__nav a.is-active { background: var(--ink); color: var(--ground); }
.shell__nav svg { width: 18px; height: 18px; }
.shell__nav .shell__group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 16px 14px 6px; font-weight: 700; }
.kpi { padding: var(--s-5); }
.kpi__value { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.kpi__label { font-size: var(--text-xs); color: var(--ink-3); margin-top: 6px; }
.kpi__of { font-size: 18px; color: var(--ink-3); font-weight: 500; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.kpi-grid a.kpi { text-decoration: none; color: inherit; }
.kpi-grid a.kpi:hover { border-color: var(--green); }
.shell__nav a.is-active .nav-count { background: var(--ground); color: var(--ink); }
.tag--warn { background: var(--amber-pale); color: #8A5A00; }
.tag--danger { background: var(--red-pale); color: var(--red); }
.panel-search { display: flex; gap: 10px; margin-bottom: var(--s-5); }
.panel-search .input { max-width: 360px; }
.queue-card h3 { font-size: var(--text-lg); margin: 10px 0 8px; }
.queue-card p { color: var(--ink-2); }
.queue-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.queue-card__actions { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: var(--s-5); align-items: center; }
.queue-card__bar, .queue-card__reject { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; flex: 1 1 auto; min-width: 0; }
.queue-card__aside { display: flex; align-items: center; flex: none; }
.queue-card__actions .input, .queue-card__bar .input, .queue-card__reject .input { width: auto; flex: 1 1 auto; min-width: 0; height: 48px; }
.queue-card__actions .btn { flex: none; height: 48px; }
.proof-list { list-style: none; margin: 12px 0 0; padding: 12px; background: var(--ground); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.proof-list li { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); flex-wrap: wrap; }
.flag-note { margin: 12px 0 0; padding: 12px 16px; background: var(--amber-pale); border-radius: 12px; color: var(--ink); }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.plain-list li { display: flex; flex-direction: column; gap: 2px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.select--sm { height: 36px; padding: 0 10px; font-size: var(--text-sm); width: auto; }
.usage-bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.reply-box { margin-top: var(--s-4); padding: 14px 16px; background: var(--surface-alt); border-radius: 12px; }
.reply-box p { margin: 6px 0; }
.flag-details { margin-top: var(--s-4); }
.flag-details summary { cursor: pointer; font-weight: 700; font-size: var(--text-sm); color: var(--ink-2); }
.mono-key code { font-family: var(--font-mono); font-size: 13px; background: var(--ground); padding: 6px 10px; border-radius: 8px; }
.hint { font-size: var(--text-xs); color: var(--ink-3); }
.kpi.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dir-lede { font-size: var(--text-md); color: var(--ink-2); margin: 0 0 var(--s-5); max-width: 52ch; }
.dir-kpis { margin-bottom: var(--s-5); }
.dir-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: var(--s-4); flex-wrap: wrap; }
.dir-toolbar__search { display: flex; gap: 8px; align-items: center; flex: 1; min-width: min(100%, 280px); background: var(--surface); border: 1px solid var(--line-3); border-radius: var(--r-input); padding: 4px 4px 4px 12px; }
.dir-toolbar__search .input { border: 0; box-shadow: none; height: 40px; padding: 0; background: transparent; }
.dir-toolbar__search .btn { flex: none; height: 40px; }
.dir-toolbar__glyph { color: var(--green); flex: none; display: flex; }
.dir-sort { margin-left: auto; }
.dir-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-6); }
.dir-inbox { background: var(--amber-pale); border-radius: var(--r-card); padding: var(--s-5); margin-bottom: var(--s-5); display: flex; flex-direction: column; gap: 12px; }
.dir-inbox h3 { display: flex; align-items: center; gap: 8px; font-size: var(--text-md); }
.dir-inbox h3 svg { color: #8A5A00; }
.dir-inbox__item { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.dir-add { margin-bottom: var(--s-5); }
.dir-add summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.dir-add summary::-webkit-details-marker { display: none; }
.dir-add[open] summary { margin-bottom: 10px; }
.dir-add__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.dir-add__form .field { margin: 0; }
.dir-add__go { padding-bottom: 2px; }
.dir-list { display: flex; flex-direction: column; gap: 12px; }
.dir-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 16px 18px; align-items: center; padding: 18px 20px; }
.dir-card .avatar { width: 48px; height: 48px; font-size: 16px; }
.dir-card.is-suspended { opacity: .78; }
.dir-card.is-open { border-color: var(--ink); }
.dir-card__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-card__name a:hover { color: var(--green); }
.dir-card__meta, .dir-card__pulse { font-size: var(--text-xs); color: var(--ink-3); margin: 4px 0 0; }
.dir-card__pulse { display: flex; flex-wrap: wrap; gap: 6px; }
.dir-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--ground); font-weight: 700; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.dir-chip--warn { background: var(--amber-pale); color: #8A5A00; }
.dir-card__score { text-align: right; min-width: 88px; }
.dir-card__score .score { font-size: 32px; display: block; }
.dir-card__score small { display: block; color: var(--ink-3); margin-top: 2px; }
.dir-card__score .stars { justify-content: flex-end; margin-top: 4px; }
.dir-card__actions, .dir-action { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dir-manage { margin-bottom: var(--s-5); border-color: var(--ink); }
.dir-manage__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: var(--s-5); }
.dir-manage__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--s-6); }
.dir-manage__stats > div { background: var(--ground); border-radius: 12px; padding: 12px 14px; }
.dir-manage__stats .score { font-size: 28px; }
.dir-manage__stats small { display: block; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 4px; }
.dir-manage__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.dir-manage__form .field { margin: 0; }
.dir-manage__span { grid-column: 1 / -1; }
.dir-manage__tools { margin-top: var(--s-5); justify-content: flex-start; }
.dir-plan { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.dir-plan label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: var(--text-sm); flex: 1; min-width: 220px; }
.dir-plan .input { max-width: 360px; }
.settings-panels { padding-bottom: min(45vh, 320px); }
.settings-delete summary { cursor: pointer; font-weight: 700; color: var(--red); font-size: var(--text-sm); }
.notify-opts { display: grid; gap: 10px; }
.notify-opt { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.notify-opt strong { display: block; color: var(--ink); font-size: 14px; }
.notify-opt small { display: block; margin-top: 3px; color: var(--ink-3, var(--ink-2)); font-weight: 500; line-height: 1.45; }

.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* ── Error page ───────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: var(--s-24) 0; }
.error-page .code { font-family: var(--font-display); font-size: 96px; line-height: 1; color: var(--green); letter-spacing: -0.04em; }
.error-page h1 { margin-top: 12px; }
.error-page p { margin: 16px auto 0; max-width: 480px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--embed { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-header { grid-template-columns: 56px 1fr; }
  .profile-header__actions { grid-column: 1 / -1; flex-direction: row; }
  .profile-header__actions .btn { flex: 1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: var(--s-10); }
  .shell { grid-template-columns: 1fr; gap: var(--s-5); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .shell__nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .shell__nav::-webkit-scrollbar { display: none; }
  .shell__nav a { flex: none; height: 38px; background: var(--surface); border: 1px solid var(--line); }
  .shell__nav a.is-active { border-color: var(--ink); }
  .shell__group { display: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .nav__inner { display: flex; justify-content: space-between; height: 64px; }
  .nav__inner > nav { flex: 1 1 auto; min-width: 0; }
  .nav__links, .nav__actions .btn, .nav__actions .nav__user, .nav__actions .nav__logout { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 64px; background: var(--ground); border-bottom: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-6); gap: 2px; z-index: 60; }
  .nav.is-open .nav__links a { height: 48px; font-size: var(--text-md); }
  .nav.is-open .nav__links .nav__mobile-only { display: block; }
  .logo { font-size: 20px; }
  .hero { padding: var(--s-12) 0 var(--s-10); text-align: left; overflow-x: clip; }
  .hero__search::before { inset: -10px 0; }
  .hero h1, .hero__title { font-size: 36px; line-height: 1.08; margin-left: 0; }
  .hero .lede { text-align: left; margin-left: 0; }
  .hero__popular { justify-content: flex-start; }
  .searchbar { flex-direction: row; align-items: center; padding: 5px 5px 5px 7px; gap: 8px; box-shadow: 0 0 0 5px rgba(11,110,92,.08), 0 12px 28px rgba(16,28,38,.08); }
  .searchbar__glyph { width: 36px; height: 36px; }
  .searchbar input { height: 42px; font-size: 16px; padding: 0; }
  .searchbar__hint { font-size: 16px; }
  .searchbar .searchbar__submit { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
  .searchbar__submit-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .searchbar__submit-icon { display: block; }
  .stat-panel { grid-template-columns: 1fr 1fr !important; gap: 24px 0; padding: var(--s-6); }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat__value { font-size: 28px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .input, .select, .textarea, .searchbar input { font-size: 16px; }
  .btn { white-space: normal; }
  .form-actions { width: 100%; }
  .form-actions .btn { flex: 1 1 auto; }
  .hero .row:has(> .btn) { flex-direction: column; align-items: stretch; width: 100%; }
  .hero .row:has(> .btn) > .btn,
  .cta-band__actions .btn,
  .form-actions .btn,
  .page-hero .btn,
  .claim-banner .btn { width: 100%; min-height: 48px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .hero .card { min-width: 0; }
  .hero .card .row { align-items: flex-start; }
  .container.auth h1, .auth h1 { font-size: 28px !important; }
  .page-hero { padding-top: var(--s-6); }
  .page-hero h1 { overflow-wrap: anywhere; }
  .auth.container, .container.auth { margin: var(--s-8) auto; padding-left: 16px; padding-right: 16px; }
  .auth .card { padding: 28px 20px; }
  .auth h1 { font-size: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .review-toolbar { flex-direction: column; align-items: stretch; }
  .review-toolbar .pills { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px; }
  .pills { max-width: 100%; }
  .profile-header__rating { flex-wrap: wrap; }
  .claim-banner .btn { width: 100%; }
  .star-picker { touch-action: manipulation; flex-wrap: wrap; }
  .tile { padding: 16px 12px; min-height: 110px; font-size: var(--text-xs); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-6); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .footer { padding: var(--s-10) 0 var(--s-8); }
  .page-hero { padding: var(--s-8) 0 var(--s-5); }
  .page-hero h1, .profile-header__name h1 { font-size: 32px; }
  .prose h2 { font-size: 22px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .biz-row { grid-template-columns: 40px 1fr; }
  .biz-row__score { grid-column: 2; justify-content: flex-start; }
  .review-card { padding: var(--s-5); }
  .review-card__actions { flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; }
  .gallery--embed .gallery__item { grid-template-columns: 1fr; }
  .gallery__head { flex-wrap: wrap; }
  .funnel { grid-template-columns: 1fr; gap: var(--s-4); }
  .funnel__value { font-size: 28px; }
  .steps--panel { padding: var(--s-6); }
  .auth .card { padding: var(--s-6); }
  .error-page .code { font-size: 64px; }
  .code-panel { padding: 16px; }
  .code-panel pre { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
  .code-panel__copy { position: static; margin: 0 0 10px auto; display: block; }
  .grid.grid--2, .grid.grid--3, .grid.grid--4 { grid-template-columns: 1fr !important; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dir-card { grid-template-columns: 48px 1fr; }
  .dir-card__score, .dir-card__actions { grid-column: 2; justify-content: flex-start; text-align: left; }
  .dir-card__score .stars { justify-content: flex-start; }
  .dir-manage__stats { grid-template-columns: 1fr 1fr; }
  .dir-manage__form { grid-template-columns: 1fr; }
  .dir-toolbar { flex-direction: column; align-items: stretch; }
  .dir-sort { margin-left: 0; }
  .queue-card__actions { flex-wrap: wrap; }
  .queue-card__bar, .queue-card__reject { flex: 1 1 100%; }
  .queue-card__aside { flex: 1 1 auto; }
  .queue-card__aside .btn { width: 100%; }
  .rating-bar { grid-template-columns: minmax(0, 1fr) minmax(48px, 72px) 36px !important; gap: 8px; }
  .claim-banner { flex-direction: column; align-items: flex-start; }
  .card.row, .card.row--between { flex-direction: column; align-items: stretch; }
  .card.row .btn { width: 100%; }
  .flash-wrap { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
  .flash { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 14px 12px 14px 14px; }
  .flash__mark { width: 40px; height: 40px; border-radius: 10px; }
  .flash__action { width: 100%; justify-content: center; }
  .profile-header { padding: var(--s-5); gap: var(--s-4); }
  .profile-header__actions { min-width: 0; width: 100%; }
  .prose, .card { overflow-wrap: anywhere; }

  .prose table, table.table {
    display: block; width: 100%; margin: 1em 0; border: 0;
  }
  .prose thead, table.table thead { display: none; }
  .prose tbody, table.table tbody { display: block; }
  .prose tr, table.table tbody tr {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px 14px; margin: 0 0 10px;
  }
  .prose td, table.table td {
    display: block; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-2);
    word-break: normal; overflow-wrap: break-word;
  }
  .prose td:first-child, table.table td:first-child { padding-top: 0; font-weight: 700; color: var(--ink); }
  .prose td:last-child, table.table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .prose td::before, table.table td::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px;
  }
  .prose td:not([data-label])::before, .prose td[data-label=""]::before,
  table.table td:not([data-label])::before, table.table td[data-label=""]::before { display: none; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-panel { padding: var(--s-5); }
  .hero h1, .hero__title { font-size: 32px; }
  .profile-header__actions { flex-direction: column; }
  .profile-header__actions .btn { width: 100%; }
}
@media (max-width: 320px) {
  .logo em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
