/* =====================================================================
   TrustCar — design tokens + base + components
   Light SaaS palette · vibrant blue accent · editorial typographic moves
   ===================================================================== */

:root {
  /* Brand */
  --brand:        oklch(0.58 0.20 252);
  --brand-600:    oklch(0.52 0.21 252);
  --brand-700:    oklch(0.45 0.20 252);
  --brand-100:    oklch(0.95 0.04 252);
  --brand-50:     oklch(0.98 0.02 252);
  --brand-ink:    oklch(0.28 0.12 252);

  /* Neutrals — subtle cool */
  --bg:           oklch(0.985 0.004 250);
  --surface:      #ffffff;
  --surface-2:    oklch(0.97 0.004 250);
  --surface-3:    oklch(0.945 0.006 250);
  --surface-ink:  oklch(0.18 0.02 250);
  --border:       oklch(0.92 0.008 250);
  --border-strong:oklch(0.85 0.012 250);
  --text:         oklch(0.18 0.02 250);
  --text-2:       oklch(0.42 0.02 250);
  --text-3:       oklch(0.58 0.015 250);
  --text-4:       oklch(0.72 0.012 250);

  /* Verdict / rating */
  --v-safe:       oklch(0.62 0.15 152);
  --v-safe-bg:    oklch(0.96 0.05 152);
  --v-safe-ink:   oklch(0.32 0.10 152);
  --v-warn:       oklch(0.72 0.16 70);
  --v-warn-bg:    oklch(0.97 0.06 75);
  --v-warn-ink:   oklch(0.42 0.13 70);
  --v-bad:        oklch(0.6 0.22 25);
  --v-bad-bg:     oklch(0.96 0.05 22);
  --v-bad-ink:    oklch(0.36 0.16 22);
  --v-mute:       oklch(0.55 0 0);
  --v-mute-bg:    oklch(0.96 0 0);

  /* Star + score */
  --star:         oklch(0.78 0.16 75);
  --star-empty:   oklch(0.9 0.01 250);

  /* Ukrainian plate */
  --plate-bg:     #ffffff;
  --plate-ink:    #0a0a0a;
  --plate-strip:  oklch(0.42 0.18 252);
  --plate-flag-y: #ffd400;
  --plate-flag-b: #0057b8;

  /* Geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 0 rgba(15,30,60,.04);
  --shadow-sm: 0 1px 0 rgba(15,30,60,.04), 0 1px 2px rgba(15,30,60,.05);
  --shadow-md: 0 1px 0 rgba(15,30,60,.04), 0 6px 18px -10px rgba(15,30,60,.12);
  --shadow-lg: 0 1px 0 rgba(15,30,60,.04), 0 24px 48px -22px rgba(20,60,140,.20);
  --shadow-hi: 0 1px 0 rgba(15,30,60,.04), 0 40px 80px -32px rgba(20,60,140,.30);
  --ring:      0 0 0 4px color-mix(in oklch, var(--brand) 25%, transparent);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 56px; --sp-16: 80px;

  /* Density */
  --dens: 1;
  --pad-card: calc(20px * var(--dens));
  --gap-card: calc(14px * var(--dens));
  --gap-row:  calc(10px * var(--dens));

  /* Type */
  --font-sans:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif:   "Instrument Serif", ui-serif, Georgia, serif;

  /* Layout */
  --topbar-h:  68px;
  --container: 1240px;

  /* Motion */
  --ease-out:    cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.5,0,.2,1);
}

[data-theme="dark"] {
  --bg:           oklch(0.16 0.012 250);
  --surface:      oklch(0.20 0.014 250);
  --surface-2:    oklch(0.24 0.014 250);
  --surface-3:    oklch(0.28 0.014 250);
  --surface-ink:  oklch(0.96 0.005 250);
  --border:       oklch(0.30 0.018 250);
  --border-strong:oklch(0.40 0.022 250);
  --text:         oklch(0.96 0.005 250);
  --text-2:       oklch(0.78 0.01 250);
  --text-3:       oklch(0.62 0.012 250);
  --text-4:       oklch(0.48 0.012 250);
  --brand-50:     oklch(0.25 0.05 252);
  --brand-100:    oklch(0.30 0.07 252);
  --v-safe-bg:    oklch(0.28 0.07 152);
  --v-warn-bg:    oklch(0.30 0.08 70);
  --v-bad-bg:     oklch(0.30 0.10 25);
  --v-mute-bg:    oklch(0.30 0.002 250);
  --star-empty:   oklch(0.40 0.01 250);
  --shadow-sm:    0 1px 0 rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md:    0 1px 0 rgba(0,0,0,.3), 0 12px 30px -16px rgba(0,0,0,.5);
  --shadow-lg:    0 1px 0 rgba(0,0,0,.3), 0 24px 60px -24px rgba(0,0,0,.55);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.shell { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.tc-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.tc-header-row {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 18px;
}
.tc-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.tc-brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--text);
  color: var(--surface);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
}
.tc-brand-mark::before {
  content: ""; width: 4px; height: 4px;
  background: var(--brand);
  border-radius: 99px;
  position: absolute; transform: translate(8px, 8px);
}
.tc-brand-mark { position: relative; }
.tc-brand .tld { color: var(--text-4); font-weight: 600; }

.tc-nav { display: inline-flex; align-items: center; gap: 2px; }
.tc-nav-link {
  padding: 8px 12px; border-radius: 8px;
  color: var(--text-2);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.tc-nav-link:hover { color: var(--text); background: var(--surface-2); }
.tc-nav-link.is-active { color: var(--brand-ink); background: var(--brand-50); }

.tc-header-search {
  flex: 1; max-width: 360px;
  position: relative;
}
.tc-header-search input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0 12px 0 38px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: all .15s var(--ease-out);
}
.tc-header-search input::placeholder { letter-spacing: 0.04em; text-transform: none; font-family: var(--font-sans); font-weight: 500; color: var(--text-3); }
.tc-header-search input:focus { border-color: var(--brand); background: var(--surface); box-shadow: var(--ring); }
.tc-header-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
}

.tc-lang {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  font-size: 12px;
  font-weight: 700;
}
.tc-lang button {
  padding: 5px 10px; border-radius: 99px;
  color: var(--text-3);
}
.tc-lang button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.tc-theme-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-2);
}
.tc-theme-btn:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all .15s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:active { background: var(--brand-700); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-dark { background: var(--text); color: var(--surface); }
.btn-dark:hover { background: oklch(from var(--text) calc(l + 0.08) c h); }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }

/* ===== Plate (Ukrainian) — proportions match real 520×112mm spec (~4.6:1) ===== */
.ua-plate {
  display: inline-flex;
  align-items: stretch;
  background: var(--plate-bg);
  border: 1.5px solid var(--plate-ink);
  border-radius: 6px;
  overflow: hidden;
  font-family: "Russo One", "Roboto Mono", var(--font-mono);
  font-weight: 400;
  color: var(--plate-ink);
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.05);
  vertical-align: middle;
  user-select: text;
}
.ua-plate-strip {
  background: var(--plate-strip);
  color: white;
  width: 1.45em;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  padding: 0.16em 0;
  position: relative;
}
.ua-plate-strip::after {
  /* subtle vertical seam where strip meets white */
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}
.ua-plate-strip .trident {
  width: 0.72em;
  height: 0.72em;
  flex-shrink: 0;
  color: #ffd400;
}
.ua-plate-strip .ua-label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.40em;
  color: white;
  letter-spacing: 0.06em;
  line-height: 1;
}
.ua-plate-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.20em 0.42em;
  gap: 0;
  white-space: nowrap;
}
.ua-plate-text .group {
  letter-spacing: 0.02em;
  /* very subtle text shadow to imitate embossed stamp */
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
}
.ua-plate-text .gap {
  width: 0.42em;
  flex-shrink: 0;
}
.ua-plate.size-xl { font-size: 56px; border-width: 3px; border-radius: 10px; }
.ua-plate.size-lg { font-size: 38px; border-width: 2.5px; border-radius: 8px; }
.ua-plate.size-md { font-size: 26px; border-radius: 6px; border-width: 2px; }
.ua-plate.size-sm { font-size: 16px; border-radius: 4px; border-width: 1.2px; }
.ua-plate.size-xs { font-size: 12px; border-radius: 3px; border-width: 1px; }
.ua-plate.size-xs .ua-label { display: none; }
.ua-plate.size-xs .trident { width: 0.9em; height: 1.1em; }
.ua-plate.size-xs .ua-plate-strip { width: 1.3em; }

/* Plate-search hero — same DNA, bigger format */
.plate-search {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--plate-bg);
  border: 3px solid var(--plate-ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hi);
  position: relative;
}
.plate-search-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
}
.plate-search-strip {
  background: var(--plate-strip);
  color: white;
  width: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 0;
  font-family: var(--font-sans);
  font-weight: 800;
  position: relative;
}
.plate-search-strip::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
}
.plate-search-strip .trident-lg {
  width: 36px;
  height: 36px;
  color: #ffd400;
}
.plate-search-strip .ua-label {
  font-size: 22px; letter-spacing: 0.06em;
}
.plate-search input {
  flex: 1;
  width: 100%;
  border: 0; outline: 0;
  background: transparent;
  font-family: "Russo One", "Roboto Mono", var(--font-mono);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--plate-ink);
  padding: 22px 24px;
  text-align: center;
}
.plate-search input::placeholder { color: oklch(0.72 0.005 250); }
.plate-search button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: white;
  padding: 0 28px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-left: 3px solid var(--plate-ink);
  gap: 8px;
}
.plate-search button:hover { background: var(--brand-600); }
.plate-search-screws {
  position: absolute; pointer-events: none;
  width: 7px; height: 7px;
  background: radial-gradient(circle, oklch(0.78 0 0), oklch(0.55 0 0));
  border-radius: 99px;
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.3);
}
.plate-search-screws.tl { top: 9px; left: 9px; }
.plate-search-screws.tr { top: 9px; right: 9px; }
.plate-search-screws.bl { bottom: 9px; left: 9px; }
.plate-search-screws.br { bottom: 9px; right: 9px; }

/* ===== Plate-search responsive (mobile) ===== */
@media (max-width: 640px) {
  .plate-search {
    border-width: 2px;
    border-radius: 10px;
    grid-template-columns: 1fr;  /* button уходит вниз */
  }
  .plate-search-inner {
    grid-template-columns: 56px 1fr;
  }
  .plate-search-strip {
    width: 56px;
    padding: 8px 0;
    gap: 4px;
  }
  .plate-search-strip .trident-lg { width: 24px; height: 24px; }
  .plate-search-strip .ua-label { font-size: 14px; letter-spacing: 0.04em; }
  .plate-search input {
    font-size: clamp(22px, 6.8vw, 32px);  /* всегда читаемый минимум 22px */
    padding: 14px 12px;
    letter-spacing: 0.03em;
  }
  .plate-search button {
    border-left: 0;
    border-top: 2px solid var(--plate-ink);
    padding: 14px 18px;
    font-size: 15px;
    width: 100%;
  }
  .plate-search-screws { width: 5px; height: 5px; }
  .plate-search-screws.tl, .plate-search-screws.bl { left: 6px; }
  .plate-search-screws.tr, .plate-search-screws.br { right: 6px; }
  .plate-search-screws.tl, .plate-search-screws.tr { top: 6px; }
  .plate-search-screws.bl, .plate-search-screws.br { bottom: 6px; }

  .hero-examples {
    gap: 6px;
    font-size: 12px;
    margin-top: 14px;
  }
  .hero-examples button {
    font-size: 11px;
    padding: 6px 10px;
  }
}
@media (max-width: 380px) {
  .plate-search input {
    font-size: 20px;
    padding: 12px 8px;
  }
  .plate-search-strip { width: 44px; }
  .plate-search-strip .trident-lg { width: 18px; height: 18px; }
  .plate-search-strip .ua-label { font-size: 12px; }
}

/* ===== Stars ===== */
.stars {
  display: inline-flex; gap: 2px;
  --s-size: 16px;
  --s-fill: var(--star);
  --s-empty: var(--star-empty);
}
.stars svg { width: var(--s-size); height: var(--s-size); display: block; }
.stars.lg { --s-size: 24px; }
.stars.xl { --s-size: 36px; }
.stars.sm { --s-size: 13px; }

/* ===== Tags & verdict pills ===== */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  background: var(--v-mute-bg);
  color: var(--v-mute);
  white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag.t-safe { background: var(--v-safe-bg); color: var(--v-safe-ink); }
.tag.t-warn { background: var(--v-warn-bg); color: var(--v-warn-ink); }
.tag.t-bad  { background: var(--v-bad-bg);  color: var(--v-bad-ink); }
.tag.t-info { background: var(--brand-50); color: var(--brand-ink); }
.tag.outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.tag.lg { padding: 7px 13px; font-size: 13px; }

.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.005em;
}
.verdict::before {
  content: ""; width: 10px; height: 10px; border-radius: 99px;
  background: currentColor;
}
.verdict.v-safe { background: var(--v-safe-bg); color: var(--v-safe-ink); }
.verdict.v-warn { background: var(--v-warn-bg); color: var(--v-warn-ink); }
.verdict.v-bad  { background: var(--v-bad-bg);  color: var(--v-bad-ink); }
.verdict.v-mute { background: var(--v-mute-bg); color: var(--v-mute); }
.verdict.lg { font-size: 15px; padding: 9px 18px 9px 12px; }
.verdict.lg::before { width: 12px; height: 12px; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: var(--pad-card); }
.card.elevated { box-shadow: var(--shadow-md); }
.card.hover { transition: all .2s var(--ease-out); }
.card.hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.card-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.card-title h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.005em; text-transform: uppercase; color: var(--text-3); }

/* ===== Hero (asymmetric editorial split) ===== */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero-left {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px 6px 6px;
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 18px; height: 18px;
  background: var(--v-safe-bg); color: var(--v-safe);
  border-radius: 99px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 900;
}
.hero-eyebrow .live-dot {
  width: 8px; height: 8px;
  background: var(--v-bad);
  border-radius: 99px;
  display: inline-block;
  margin-right: 2px;
  box-shadow: 0 0 0 0 var(--v-bad);
  animation: tc-pulse 1.6s var(--ease-out) infinite;
}
@keyframes tc-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--v-bad) 50%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
  color: var(--text);
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.hero-search { max-width: 600px; margin: 0; }
.hero-examples {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-examples .label { font-weight: 600; }
.hero-examples button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: all .15s var(--ease-out);
}
.hero-examples button:hover { border-color: var(--brand); color: var(--brand); }

/* Live preview card on the right */
.hero-preview {
  position: relative;
  perspective: 1200px;
  z-index: 1;
}
.hero-preview-stack {
  position: relative;
}
.hero-preview-stack::before,
.hero-preview-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  z-index: -1;
}
.hero-preview-stack::before { transform: rotate(-3deg) translate(-12px, 14px); }
.hero-preview-stack::after  { transform: rotate(2deg)  translate(8px, 22px); opacity: 0.7; }
.hero-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hi);
  padding: 22px;
  transform: rotate(-1.5deg);
  transition: transform .3s var(--ease-out);
  cursor: pointer;
  position: relative;
}
.hero-preview-card:hover { transform: rotate(0deg) translateY(-4px); }
.hpc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.hpc-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--v-bad-ink);
  text-transform: uppercase;
}
.hpc-photo {
  aspect-ratio: 4 / 2.4;
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
  position: relative;
  border: 1px solid var(--border);
}
.hpc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.hpc-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.hpc-name .y { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.hpc-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--v-bad-ink);
}
.hpc-score .of { color: var(--text-4); font-size: 0.45em; font-weight: 500; }
.hpc-snippet {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border-left: 3px solid var(--v-bad);
  font-style: italic;
  margin-bottom: 14px;
}
.hpc-snippet .who { display: block; font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 6px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hpc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.hpc-foot .cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--brand);
  font-weight: 700;
}

/* Decorative hero background */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-deco::before, .hero-deco::after {
  content: ""; position: absolute;
  width: 680px; height: 680px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.hero-deco::before { top: -250px; left: -250px; background: var(--brand-100); }
.hero-deco::after  { bottom: -300px; right: -200px; background: var(--v-warn-bg); opacity: 0.45; }
.hero-deco .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-preview { max-width: 420px; margin: 0 auto; }
}

/* ===== Stats strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 56px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip .stat {
  padding: 24px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.stat-strip .stat-num .unit { color: var(--text-3); font-size: 0.55em; margin-left: 4px; }
.stat-strip .stat-label {
  margin-top: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== Section ===== */
section.tc-section { padding: clamp(48px, 6vw, 80px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
  color: var(--text);
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--brand);
}
.section-head .head-meta { color: var(--text-3); font-size: 14px; max-width: 360px; }
.section-head .head-meta strong { color: var(--text); font-weight: 700; }

.kicker {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* ===== Top antirating ===== */
.top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
}
.top-card {
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: all .2s var(--ease-out);
}
.top-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.top-card.hero { grid-row: span 1; }
.top-card .photo {
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.top-card.hero .photo { aspect-ratio: 4 / 2.6; }
.top-card .rank {
  position: absolute; top: 12px; left: 12px;
  background: var(--surface);
  border-radius: 99px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--v-bad-ink);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.top-card .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.top-card .row1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top-card .score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--v-bad-ink);
}
.top-card .name { font-size: 14px; font-weight: 700; color: var(--text); }
.top-card .name .sub { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.top-card .excerpt {
  font-size: 13px; color: var(--text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.top-card.hero .excerpt { -webkit-line-clamp: 3; }
.top-card .meta { font-size: 12px; color: var(--text-3); }

/* ===== Placeholder car photo ===== */
.car-photo {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, transparent 0%, transparent 49.5%, rgba(0,0,0,.04) 49.5%, rgba(0,0,0,.04) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 0%, transparent 49.5%, rgba(0,0,0,.04) 49.5%, rgba(0,0,0,.04) 50.5%, transparent 50.5%),
    var(--surface-3);
  background-size: 16px 16px, 16px 16px, 100% 100%;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.car-photo.v2 { --strip-color: oklch(0.88 0.05 250); background: linear-gradient(180deg, oklch(0.86 0.04 252) 0%, oklch(0.92 0.02 252) 100%); }
.car-photo.v3 { background: linear-gradient(180deg, oklch(0.84 0.05 70) 0%, oklch(0.93 0.03 70) 100%); }
.car-photo.v4 { background: linear-gradient(180deg, oklch(0.40 0.04 250) 0%, oklch(0.55 0.03 250) 100%); color: oklch(0.85 0.01 250); }
.car-photo.v5 { background: linear-gradient(180deg, oklch(0.78 0.10 22) 0%, oklch(0.88 0.06 22) 100%); }
.car-photo .marker {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: white;
  padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== Review card ===== */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.review-card:hover { border-color: var(--border-strong); }
.review-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.review-card .avatar {
  width: 40px; height: 40px;
  border-radius: 99px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.review-card .who { font-size: 14px; font-weight: 700; }
.review-card .meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.review-card .meta .dot-sep { width: 3px; height: 3px; border-radius: 99px; background: var(--text-4); display: inline-block; }
.review-card .body {
  font-size: 14px; line-height: 1.55;
  color: var(--text);
}
.review-card .body strong { color: var(--text); }
.review-card .foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.review-card .foot .spacer { flex: 1; }
.review-card .vote {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px;
  gap: 0;
}
.review-card .vote button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--text-3);
  font-weight: 700; font-size: 12px;
}
.review-card .vote button.is-on.up { background: var(--v-safe-bg); color: var(--v-safe-ink); }
.review-card .vote button.is-on.dn { background: var(--v-bad-bg); color: var(--v-bad-ink); }
.review-card .vote svg { width: 12px; height: 12px; }

/* ===== Avatar gradient ===== */
.av {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 99px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.lg { width: 56px; height: 56px; font-size: 22px; }

/* ===== Regions grid (multi-code aware) ===== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.region-chip {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s var(--ease-out);
}
.region-chip:hover {
  border-color: color-mix(in oklch, var(--brand) 40%, var(--border));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.region-chip.is-multi {
  /* Subtle accent strip on left to signal "multiple series" */
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--brand) 8%, transparent) 0, transparent 60px),
    var(--surface);
}
.region-chip .rc-body {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.region-chip .rc-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.region-chip .rc-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}
.region-chip .rc-plates {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.region-chip .rc-plate {
  display: inline-flex;
  align-items: stretch;
  background: var(--plate-bg);
  border: 1.2px solid var(--plate-ink);
  border-radius: 4px;
  overflow: hidden;
  font-family: "Russo One", var(--font-mono);
  font-weight: 400;
  color: var(--plate-ink);
  cursor: pointer;
  padding: 0;
  transition: all .15s var(--ease-out);
  line-height: 1;
  position: relative;
}
.region-chip .rc-plate:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--brand) 25%, transparent);
  border-color: var(--brand);
  z-index: 2;
}
.region-chip .rc-plate-strip {
  background: var(--plate-strip);
  display: flex; align-items: center; justify-content: center;
  width: 13px;
  position: relative;
}
.region-chip .rc-plate-strip::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.15);
}
.region-chip .rc-trident {
  width: 7px; height: 9px;
  color: #ffd400;
}
.region-chip .rc-plate-code {
  padding: 4px 8px 3px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.region-chip .rc-plate.is-alt {
  opacity: 0.55;
  transform: scale(0.85);
  transform-origin: left center;
  filter: grayscale(0.5);
}
.region-chip:hover .rc-plate.is-alt {
  opacity: 1;
  transform: scale(1);
  filter: none;
}
.region-chip .rc-multi-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all .2s var(--ease-out);
}
.region-chip:hover .rc-multi-hint {
  opacity: 1;
  transform: translateX(0);
}

/* Section head with intro text on right */
.section-head { align-items: flex-end; }

/* ===== Brand grid ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.brand-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  transition: all .2s var(--ease-out);
}
.brand-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.brand-tile .mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  color: var(--text-2);
}
.brand-tile .name { font-weight: 700; font-size: 14px; }
.brand-tile .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }

/* ===== How it works ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.how-card .step {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-4);
  letter-spacing: 0.04em;
}
.how-card .icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.how-card .icon-box svg { width: 24px; height: 24px; }
.how-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.how-card p { color: var(--text-2); margin: 0; font-size: 14px; line-height: 1.55; }

/* ===== Plate detail page ===== */
.pd-hero {
  background: linear-gradient(180deg, var(--brand-50) 0%, transparent 100%);
  padding: 36px 0 32px;
  border-bottom: 1px solid var(--border);
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
.pd-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.pd-breadcrumb a { color: var(--text-3); cursor: pointer; }
.pd-breadcrumb a:hover { color: var(--brand); }
.pd-breadcrumb .sep { color: var(--text-4); }
.pd-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.pd-name {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.pd-name .sub { color: var(--text-3); font-weight: 500; font-size: 0.65em; }
.pd-tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.pd-score-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.pd-score-big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 96px;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--text);
}
.pd-score-big .of { color: var(--text-4); font-size: 0.4em; font-weight: 500; }
.pd-score-info .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.pd-score-info .verdict-line { margin-bottom: 12px; }
.pd-score-info .reviews-count { color: var(--text-2); font-size: 14px; }
.pd-score-info .reviews-count strong { color: var(--text); font-weight: 700; }

.pd-photo-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.pd-photo-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  background: var(--surface-3);
}
.pd-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pd-photo-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.pd-photo-thumb.is-active { outline: 2px solid var(--brand); outline-offset: 1px; }
.pd-photo-thumb:hover { transform: scale(1.02); }
/* Overlay credit pill — bottom-left INSIDE .pd-photo-main (matches mockup) */
.pd-photo-credit {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(2px);
}
.pd-photo-credit svg { flex-shrink: 0; opacity: 0.85; }
.pd-photo-credit.is-illustration { background: rgba(0, 0, 0, 0.42); font-weight: 500; }
a.pd-photo-credit:hover { background: rgba(0, 0, 0, 0.74); }

/* Left-column summary card (facts + actions; rating optional) */
.pd-summary {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.pd-summary-rating {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pd-summary-rating .pd-score-big {
  font-family: var(--font-mono); font-weight: 800;
  font-size: 40px; line-height: 1; letter-spacing: -0.03em;
  color: var(--brand);
}
.pd-summary-rating .of { font-size: 0.4em; color: var(--text-3); font-weight: 600; }
.pd-facts {
  margin: 0;
  display: grid; gap: 9px;
}
.pd-facts > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.pd-facts dt { color: var(--text-3); margin: 0; }
.pd-facts dd { margin: 0; font-weight: 700; color: var(--text); }
.pd-summary .pd-actions {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* check-card extra variants used on the plate page */
.check-card.brand .check-icon { background: color-mix(in oklch, var(--brand) 14%, transparent); color: var(--brand); }
.check-card.neutral .check-icon { background: var(--surface-2); color: var(--text-2); }
.check-card .desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* Plate detail body grid */
.pd-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 40px 0 80px;
  align-items: start;
}
.pd-block { margin-bottom: 32px; }
.pd-block h3 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.pd-block h3 .count {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 600; color: var(--text-3);
  background: var(--surface-2);
  border-radius: 99px; padding: 3px 9px;
  letter-spacing: 0.04em;
}

/* Car info table */
.info-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.info-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 14px;
}
.info-row:nth-child(2n) { border-right: 0; }
.info-row:nth-last-child(-n+2) { border-bottom: 0; }
.info-row .k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  width: 100px;
  flex-shrink: 0;
}
.info-row .v {
  font-weight: 700; font-size: 14px;
  color: var(--text);
}
.info-row .v.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }

/* Checks grid */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.check-card.is-link {
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.check-card.is-link:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
.check-card.is-link .ext-icon {
  margin-left: auto;
  color: var(--text-4);
  opacity: 0;
  transition: opacity .15s var(--ease-out);
}
.check-card.is-link:hover .ext-icon { opacity: 1; }
.check-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.check-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.check-icon svg { width: 18px; height: 18px; }
.check-card.ok .check-icon { background: var(--v-safe-bg); color: var(--v-safe-ink); }
.check-card.warn .check-icon { background: var(--v-warn-bg); color: var(--v-warn-ink); }
.check-card.bad .check-icon { background: var(--v-bad-bg); color: var(--v-bad-ink); }
.check-card .title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.check-card .status { font-size: 13px; }
.check-card.ok .status { color: var(--v-safe-ink); }
.check-card.warn .status { color: var(--v-warn-ink); }
.check-card.bad .status { color: var(--v-bad-ink); }
.check-card .desc { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.45; }

/* History timeline */
.timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
}
.tl-row {
  display: grid;
  grid-template-columns: 110px 22px 1fr;
  gap: 14px;
  padding: 12px 0;
  position: relative;
}
.tl-row + .tl-row { border-top: 1px solid var(--border); }
.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-top: 2px;
}
.tl-date .y { color: var(--text-3); }
.tl-dot {
  display: grid; place-items: center;
  padding-top: 5px;
}
.tl-dot::before {
  content: ""; width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-50);
}
.tl-row:not(:last-child) .tl-dot::after {
  content: ""; position: absolute;
  top: 22px; bottom: -12px; left: 120px; transform: translateX(8px);
  width: 2px; background: var(--border);
}
.tl-text { font-size: 14px; color: var(--text); padding-top: 1px; }
.tl-text .where { color: var(--text-3); font-weight: 500; font-size: 13px; }

/* Filter pills (review tabs) */
.review-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  overflow-x: auto;
}
.review-tab {
  padding: 10px 14px;
  font-weight: 700; font-size: 13px;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
}
.review-tab:hover { color: var(--text); }
.review-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.review-tab .num { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; margin-left: 4px; }

/* Reply form */
.reply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.reply-form-stars {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.reply-form-stars .label { font-weight: 700; font-size: 13px; }
.reply-rate {
  display: inline-flex; gap: 4px;
}
.reply-rate button { display: grid; place-items: center; }
.reply-rate svg { width: 26px; height: 26px; color: var(--star-empty); transition: color .1s var(--ease-out); }
.reply-rate button.is-on svg, .reply-rate button:hover svg, .reply-rate button:hover ~ button.is-on svg { color: var(--star); }
.reply-rate.hovering button:not(:hover):not(.is-on) ~ button svg { color: var(--star-empty); }
.reply-form textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  outline: none;
}
.reply-form textarea:focus { border-color: var(--brand); box-shadow: var(--ring); background: var(--surface); }
.reply-form .tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.reply-form .tag-picker button {
  padding: 5px 10px; border-radius: 99px;
  border: 1px dashed var(--border-strong);
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
}
.reply-form .tag-picker button.is-on { background: var(--brand-50); color: var(--brand-ink); border-style: solid; border-color: var(--brand); }
.reply-form .submit-row { display: flex; align-items: center; gap: 12px; }

/* Sidebar (plate detail right) */
.pd-side .side-card { margin-bottom: 16px; }
.pd-side h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 14px; }

.similar-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: all .12s var(--ease-out);
}
.similar-row + .similar-row { border-top: 1px solid var(--border); }
.similar-row:hover { color: var(--brand); }
.similar-row .info { flex: 1; min-width: 0; }
.similar-row .info .car { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-row .info .meta { font-size: 11px; color: var(--text-3); }
.similar-row .score-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.similar-row .score-pill svg { width: 11px; height: 11px; color: var(--star); }

/* Map (stylized Ukraine) */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  position: relative;
}
.map-svg { width: 100%; display: block; }
.map-svg .country-fill { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; }
.map-svg .dot { fill: var(--brand); }
.map-svg .dot.hot { fill: var(--v-bad); }
.map-legend { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.map-legend i { width: 10px; height: 10px; border-radius: 99px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* Subscribe banner */
.subscribe-card {
  background: linear-gradient(135deg, var(--brand-ink) 0%, oklch(0.18 0.08 252) 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.subscribe-card h4 { color: rgba(255,255,255,.7); }
.subscribe-card .title {
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.subscribe-card .desc {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: 16px;
}
.subscribe-card .btn { background: white; color: var(--brand-ink); }
.subscribe-card::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: oklch(0.5 0.25 252);
  filter: blur(60px);
  border-radius: 99px;
  bottom: -100px; right: -50px;
  opacity: 0.4;
}

/* ===== Search/Catalog ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0 80px;
  align-items: start;
}
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
}
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-group h5 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: -0.005em; }
.filter-checkbox {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.filter-checkbox .ct { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.filter-range { padding: 4px 0; }
.range-row { display: flex; align-items: center; gap: 6px; }
.range-row input {
  flex: 1; width: 0;
  height: 32px; border: 1px solid var(--border); border-radius: 7px;
  padding: 0 8px;
  font-family: var(--font-mono); font-size: 13px; text-align: center;
}
.range-row .sep { color: var(--text-3); font-weight: 700; }

/* Polished filter controls (catalog sidebar) */
.filter-select, .filter-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  transition: border-color .12s var(--ease-out), box-shadow .12s var(--ease-out);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.filter-select {
  /* custom chevron */
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2399a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
  text-overflow: ellipsis;
}
.filter-input::placeholder { color: var(--text-4); font-weight: 500; }
.filter-select:hover, .filter-input:hover { border-color: var(--border-strong); }
.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 16%, transparent);
}
/* active (has value) state */
.filter-select.has-val { border-color: color-mix(in oklch, var(--brand) 45%, var(--border)); color: var(--brand); font-weight: 700; }
.filter-input.has-val { border-color: color-mix(in oklch, var(--brand) 45%, var(--border)); }
.filter-group .lbl {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 0 0 7px;
}
/* loading overlay on results during a filter navigation */
.cat-results.is-loading { position: relative; }
.cat-results.is-loading::after {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in oklch, var(--bg) 55%, transparent);
  backdrop-filter: blur(1px);
  z-index: 5;
}
.cat-spinner {
  position: absolute; left: 50%; top: 80px; transform: translateX(-50%);
  z-index: 6;
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: cat-spin .7s linear infinite;
  display: none;
}
.cat-results.is-loading .cat-spinner { display: block; }
@keyframes cat-spin { to { transform: translateX(-50%) rotate(360deg); } }

.cat-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-toolbar .count {
  font-size: 14px; color: var(--text-2);
}
.cat-toolbar .count strong { color: var(--text); font-weight: 800; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cat-toolbar .grow { flex: 1; }
.cat-sort { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.cat-sort button { padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--text-3); }
.cat-sort button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.cat-view-toggle { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cat-view-toggle button { padding: 7px 10px; color: var(--text-3); }
.cat-view-toggle button.is-on { background: var(--surface-2); color: var(--text); }

/* Catalog cards */
.cat-list { display: grid; gap: 14px; }
.cat-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 100px 200px 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.cat-row:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cat-row .car-thumb {
  width: 100px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cat-row .car-info .name { font-size: 16px; font-weight: 700; }
.cat-row .car-info .meta { font-size: 12px; color: var(--text-3); }
.cat-row .tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-row .score-block { text-align: right; }
.cat-row .score-block .score { font-family: var(--font-mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.cat-row .score-block .of { color: var(--text-4); font-size: 0.55em; }
.cat-row .score-block .meta { font-size: 11px; color: var(--text-3); }

/* ===== Write review flow ===== */
.write-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 80px;
}
.write-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 32px;
}
.write-step {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  position: relative;
}
.write-step.done { background: var(--brand); }
.write-step.cur { background: var(--brand); }
.write-step .label {
  position: absolute; top: 10px; left: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.write-step.done .label, .write-step.cur .label { color: var(--text); }

.write-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.write-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.write-card .lead { color: var(--text-2); margin: 0 0 32px; }
.write-card label { font-weight: 700; font-size: 13px; display: block; margin-bottom: 6px; color: var(--text-2); }
.write-card input[type="text"],
.write-card textarea,
.write-card select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  background: var(--surface);
  outline: none;
}
.write-card textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.write-card input:focus, .write-card textarea:focus, .write-card select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.write-card .field + .field { margin-top: 18px; }
.write-card .tag-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.write-card .tag-bank button {
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
}
.write-card .tag-bank button.is-on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-ink); }
.write-actions {
  display: flex; justify-content: space-between;
  margin-top: 28px;
}
.write-actions .btn { min-width: 140px; justify-content: center; }
.write-rate { display: inline-flex; gap: 8px; padding: 4px 0; }
.write-rate button svg { width: 38px; height: 38px; color: var(--star-empty); }
.write-rate button.is-on svg { color: var(--star); }
.write-upload {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 38px;
  text-align: center;
  color: var(--text-3);
}
.write-upload .big { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }

/* ===== Profile ===== */
.profile-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.profile-head .av.xl { width: 88px; height: 88px; font-size: 36px; }
.profile-head h1 { font-size: 32px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.profile-head .meta { color: var(--text-3); margin-top: 4px; font-size: 14px; }
.profile-stats { display: flex; gap: 22px; }
.profile-stats .stat { text-align: center; }
.profile-stats .num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.profile-stats .lbl { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== Footer ===== */
.tc-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.tc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.tc-footer h5 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.tc-footer a { display: block; color: var(--text-2); padding: 5px 0; font-size: 14px; cursor: pointer; }
.tc-footer a:hover { color: var(--brand); }
.tc-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px;
}

/* ===== Misc ===== */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; }

/* Brand card hover */
.brand-card {
  position: relative;
}
.brand-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
  .top-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-body { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .tc-footer-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top-grid { grid-template-columns: 1fr; }
  .brand-grid, .region-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat { border-bottom: 1px solid var(--border); }
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .checks-grid { grid-template-columns: 1fr; }
  .info-table { grid-template-columns: 1fr; }
  .info-row { border-right: 0 !important; }
  .pd-score-panel { grid-template-columns: 1fr; }
  .write-card { padding: 28px 22px; }
  .cat-row { grid-template-columns: 80px 1fr; grid-template-rows: auto auto; }
  .cat-row .tags-row, .cat-row .score-block { grid-column: 1 / -1; }
  .tc-footer-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   STATS PAGE & CHART PRIMITIVES
   ===================================================================== */

/* Stats hero — huge editorial counters */
.stats-hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.stats-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}
.stats-hero-kicker .live-dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--v-bad);
  box-shadow: 0 0 0 0 var(--v-bad);
  animation: tc-pulse 1.6s var(--ease-out) infinite;
}
.stats-hero h1 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 8px;
  max-width: 18ch;
  text-wrap: balance;
}
.stats-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.stats-hero .lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.5;
}

.bigcount-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.bigcount {
  padding: 28px 4px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.bigcount .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.bigcount .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
  white-space: nowrap;
}
.bigcount .meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.bigcount .meta .trend {
  color: var(--v-safe-ink);
  background: var(--v-safe-bg);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 11px;
}
.bigcount.accent .value { color: var(--brand); }

/* Stats section — every block uses card-shell + heading + body */
.stats-section { padding: clamp(40px, 4vw, 64px) 0; border-bottom: 1px solid var(--border); }
.stats-section:last-child { border-bottom: 0; }
.stats-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.stats-grid-2.cols-58-42 { grid-template-columns: 1.4fr 1fr; }
.stats-grid-2.cols-44-56 { grid-template-columns: 1fr 1.3fr; }
.stats-grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: start; }

.stats-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.stats-h .l { min-width: 0; max-width: 60%; }
.stats-h .k {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.stats-h h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
}
.stats-h h2 em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--brand);
}
.stats-h .meta {
  color: var(--text-3); font-size: 13px; max-width: 360px;
  text-align: right;
}
.stats-h .meta strong { color: var(--text); font-weight: 700; }

/* Stat card shell */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.stat-card .sc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.stat-card .sc-head .title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stat-card .sc-head .sub {
  font-size: 11px; color: var(--text-4); font-family: var(--font-mono);
}

/* HBar list */
.hbar-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.hbar-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr 90px auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 7px;
  transition: background .12s var(--ease-out);
}
.hbar-row:hover { background: var(--surface-2); }
.hbar-row.no-glyph { grid-template-columns: 28px 1fr 90px auto auto auto; }
.hbar-rank {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--text-4);
  letter-spacing: 0.04em;
}
.hbar-glyph {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-2);
}
.hbar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbar-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.hbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  transition: width .4s var(--ease-out);
}
.hbar-count {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.hbar-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  width: 44px;
  text-align: right;
}
.hbar-trend {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 52px;
  text-align: right;
}
.hbar-trend.up { color: var(--v-safe-ink); }
.hbar-trend.dn { color: var(--v-bad-ink); }

/* Donut */
.donut-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.donut-svg path {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.04));
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
  line-height: 1;
}
.donut-center-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}
.donut-center-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.donut-center-sub {
  font-size: 11px; color: var(--text-3);
}
.donut-legend {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.donut-legend li {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  border-radius: 6px;
  transition: background .12s var(--ease-out);
}
.donut-legend li:hover { background: var(--surface-2); }
.donut-legend .legend-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.donut-legend .legend-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.donut-legend .legend-pct {
  font-size: 12px; font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.donut-legend .legend-count {
  font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 70px;
  white-space: nowrap;
}

/* Bar chart */
.bar-chart-wrap { width: 100%; overflow-x: auto; }
.bar-chart { display: block; min-width: 100%; }

/* Line chart */
.line-chart-wrap { width: 100%; }
.line-chart { display: block; width: 100%; }

/* Stacked bar */
.stacked-bar { width: 100%; }
.stacked-bar-track {
  display: flex;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-3);
}
.stacked-bar-seg {
  height: 100%;
  transition: opacity .15s var(--ease-out);
}
.stacked-bar-seg:hover { opacity: 0.85; }
.stacked-bar-legend {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.stacked-bar-leg {
  display: grid;
  grid-template-columns: 12px auto auto auto;
  gap: 8px;
  align-items: baseline;
}
.stacked-bar-leg .dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  align-self: center;
}
.stacked-bar-leg .label {
  font-size: 13px; font-weight: 700;
}
.stacked-bar-leg .value {
  font-size: 13px; font-weight: 700;
  color: var(--text);
}
.stacked-bar-leg .count {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap;
}

/* Country list (import) */
.country-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.country-row {
  display: grid;
  grid-template-columns: 36px 1fr 80px auto;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 7px;
}
.country-row:hover { background: var(--surface-2); }
.country-flag {
  width: 30px; height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.country-row .name {
  font-size: 13px; font-weight: 600;
}
.country-row .pct-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.country-row .pct-bar > span {
  position: absolute; inset: 0 auto 0 0;
  background: var(--brand);
}
.country-row .count {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* TSC list */
.tsc-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.tsc-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
}
.tsc-row:last-child { border-bottom: 0; }
.tsc-rank {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--text-4);
}
.tsc-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tsc-count {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Year highlight callouts (annotations on bar chart) */
.year-annotations {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.year-anno {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface-2);
  border-radius: 99px;
  font-size: 12px;
}
.year-anno .yr {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 99px;
}
.year-anno .desc { color: var(--text-2); }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid-2,
  .stats-grid-2.cols-58-42,
  .stats-grid-2.cols-44-56,
  .stats-grid-3 { grid-template-columns: 1fr; }
  .bigcount-row { grid-template-columns: 1fr; gap: 0; }
  .bigcount { padding: 22px 4px 18px; }
  .stats-h .meta { text-align: left; max-width: 100%; }
}
@media (max-width: 640px) {
  .hbar-row { grid-template-columns: 22px 22px 1fr auto; }
  .hbar-row .hbar-track, .hbar-row .hbar-pct, .hbar-row .hbar-trend { display: none; }
}

/* =====================================================================
   STATS CTA — dark gradient «Что дальше» card
   ===================================================================== */
.stats-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 44px 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-ink) 0%, oklch(0.18 0.10 252) 100%);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.stats-cta .cta-glow {
  position: absolute; top: -100px; right: -50px;
  width: 320px; height: 320px;
  border-radius: 99px;
  background: oklch(0.5 0.25 252);
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.stats-cta .cta-text { position: relative; }
.stats-cta .cta-kicker {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em;
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stats-cta .cta-head {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.stats-cta .cta-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px; line-height: 1.55;
  max-width: 480px;
}
.stats-cta .cta-actions {
  position: relative;
  display: flex; flex-direction: column;
  gap: 10px;
}
.stats-cta .cta-btn {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background .15s var(--ease-out), transform .15s var(--ease-out);
}
.stats-cta .cta-btn:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.stats-cta .cta-btn.primary {
  background: #fff;
  color: var(--brand-ink);
  border-color: #fff;
}
.stats-cta .cta-btn.primary:hover { background: rgba(255, 255, 255, 0.92); }
.stats-cta .cta-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.6;
  font-weight: 700;
}
@media (max-width: 860px) {
  .stats-cta { grid-template-columns: 1fr; padding: 32px 26px; }
}

/* =====================================================================
   PAGINATION
   ===================================================================== */
.pagination {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.pg-total { font-size: 13px; color: var(--text-3); }
.pg-total strong { color: var(--text); font-family: var(--font-mono); font-weight: 700; }
.pg-perpage { display: inline-flex; align-items: center; gap: 4px; }
.pg-perpage .lbl { font-size: 12px; color: var(--text-3); margin-right: 6px; font-weight: 600; }
.pg-perpage button {
  padding: 5px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--text-3);
  border: 1px solid transparent;
}
.pg-perpage button:hover { color: var(--text); background: var(--surface-2); }
.pg-perpage button.is-on {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.pg-spacer { flex: 1; }
.pg-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: all .12s var(--ease-out);
}
.pg-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.pg-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pg-pages { display: inline-flex; gap: 4px; align-items: center; }
.pg-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pg-num:hover { background: var(--surface-2); color: var(--text); }
.pg-num.is-on {
  background: var(--brand);
  color: white;
}
.pg-gap { color: var(--text-4); padding: 0 4px; font-family: var(--font-mono); font-weight: 700; }
.pg-pageof {
  font-size: 13px; color: var(--text-3);
  display: inline-flex; gap: 4px; align-items: center;
}
.pg-pageof strong {
  color: var(--text); font-family: var(--font-mono); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pg-btn[aria-disabled="true"] { opacity: 0.3; pointer-events: none; cursor: not-allowed; }
.pg-jump {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-size: 12px; color: var(--text-3);
}
.pg-jump label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pg-jump input {
  width: 60px; height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  color: var(--text); text-align: center;
  font-variant-numeric: tabular-nums;
}
.pg-jump input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 18%, transparent);
}
.pg-jump button {
  height: 30px; min-width: 30px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--text); color: var(--surface);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: filter .12s var(--ease-out);
}
.pg-jump button:hover { filter: brightness(1.15); }
@media (max-width: 720px) {
  .pagination { gap: 6px; }
  .pg-total, .pg-pageof, .pg-jump, .pg-perpage { display: none; }
}

/* =====================================================================
   BRANDBOOK — design system documentation
   ===================================================================== */
.bb-shell { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 32px 0 96px; align-items: start; }
.bb-nav {
  position: sticky; top: calc(var(--topbar-h) + 24px);
  display: flex; flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.bb-nav .group {
  text-transform: uppercase;
  color: var(--text-4);
  font-size: 10px;
  letter-spacing: 0.10em;
  margin: 16px 0 6px;
}
.bb-nav .group:first-child { margin-top: 0; }
.bb-nav a {
  color: var(--text-2);
  cursor: pointer;
  padding: 5px 0;
  transition: color .12s var(--ease-out);
}
.bb-nav a:hover { color: var(--text); }
.bb-nav a.is-active { color: var(--brand); }
.bb-nav a .num { color: var(--text-4); margin-right: 8px; }

.bb-section { padding: 0 0 64px; scroll-margin-top: calc(var(--topbar-h) + 24px); }
.bb-section + .bb-section { padding-top: 32px; border-top: 1px solid var(--border); }
.bb-section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  line-height: 1;
}
.bb-section h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--brand);
}
.bb-section .bb-sec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bb-section .bb-intro {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 32px;
}

.bb-h3 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 32px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.bb-h3::before {
  content: ""; width: 18px; height: 1px;
  background: var(--text-3);
  display: inline-block;
}

/* Color swatch grid */
.bb-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.bb-swatch {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bb-swatch .chip {
  height: 96px;
  position: relative;
}
.bb-swatch .chip::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px auto;
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.bb-swatch .info {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.bb-swatch .name {
  font-weight: 700;
  font-size: 13px;
}
.bb-swatch .var {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  word-break: break-all;
}
.bb-swatch .hex {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  margin-top: 2px;
}

/* Type specimens */
.bb-typespec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 32px;
  margin-bottom: 12px;
  position: relative;
}
.bb-typespec .ts-meta {
  position: absolute;
  top: 24px; right: 32px;
  display: flex; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
}
.bb-typespec .ts-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bb-typespec .ts-sample { line-height: 1; margin-bottom: 8px; }
.bb-typespec .ts-glyph {
  display: flex; gap: 4px;
  font-size: 22px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bb-type-scale {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.bb-type-scale .lbl {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.bb-type-scale .sample { line-height: 1.1; }

/* Component blocks */
.bb-cmp-row {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}
.bb-cmp-row .lbl {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  color: var(--text-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}

.bb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Tone of voice cards */
.bb-tone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.bb-tone-card .verdict-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bb-tone-card .verdict-line.yes { color: var(--v-safe-ink); }
.bb-tone-card .verdict-line.no { color: var(--v-bad-ink); }
.bb-tone-card .verdict-line::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 99px;
  display: inline-block;
}
.bb-tone-card .verdict-line.yes::before { background: var(--v-safe-bg); border: 2px solid var(--v-safe); }
.bb-tone-card .verdict-line.no::before { background: var(--v-bad-bg); border: 2px solid var(--v-bad); }
.bb-tone-card .example {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--border-strong);
}
.bb-tone-card.no .example { border-left-color: var(--v-bad); }
.bb-tone-card.yes .example { border-left-color: var(--v-safe); }
.bb-tone-card .why {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}

/* Icon grid */
.bb-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.bb-icon-cell {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--text-2);
  transition: all .12s var(--ease-out);
}
.bb-icon-cell:hover { color: var(--brand); border-color: var(--brand); }
.bb-icon-cell svg { width: 22px; height: 22px; }
.bb-icon-cell .name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Plate showcase */
.bb-plate-row {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* Logo block */
.bb-logo-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bb-logo-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  min-height: 180px;
  position: relative;
}
.bb-logo-cell.dark { background: var(--text); }
.bb-logo-cell.dark .tc-brand { color: var(--surface); }
.bb-logo-cell.brand { background: var(--brand); }
.bb-logo-cell.brand .tc-brand { color: white; }
.bb-logo-cell.brand .tc-brand-mark { background: white; color: var(--brand); }
.bb-logo-cell.brand .tc-brand .tld { color: rgba(255,255,255,0.6); }
.bb-logo-cell .meta {
  position: absolute; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  text-transform: uppercase;
  font-weight: 700;
}
.bb-logo-cell.dark .meta, .bb-logo-cell.brand .meta { color: rgba(255,255,255,0.5); }

/* Hero on brandbook */
.bb-hero {
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--border);
}
.bb-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.bb-hero h1 {
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.bb-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--brand);
}
.bb-hero .lead {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.55;
  margin: 0 0 36px;
}
.bb-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bb-hero-meta strong { color: var(--text); font-weight: 700; }

@media (max-width: 1024px) {
  .bb-shell { grid-template-columns: 1fr; gap: 32px; }
  .bb-nav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--border); padding: 14px 0 0; }
  .bb-nav .group { width: 100%; margin-top: 8px; }
  .bb-grid-2, .bb-grid-3, .bb-logo-block { grid-template-columns: 1fr; }
}

/* ===================== DESIGN-BUNDLE DATA-FIRST CSS (catalog/wanted/select/skeletons) ===================== */
/* class display rules beat [hidden]'s UA display:none → force it for grids/menus */
.car-grid[hidden], .cat-list[hidden], .wanted-grid[hidden] { display: none !important; }
/* --- catalog layout (search/catalog + cards) --- */
/* ===== Search/Catalog ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 32px 0 80px;
  align-items: start;
}
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
}
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-group h5 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: -0.005em; }
.filter-checkbox {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.filter-checkbox .ct { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.filter-range { padding: 4px 0; }
.range-row { display: flex; align-items: center; gap: 6px; }
.range-row input {
  flex: 1; width: 0;
  height: 32px; border: 1px solid var(--border); border-radius: 7px;
  padding: 0 8px;
  font-family: var(--font-mono); font-size: 13px; text-align: center;
}
.range-row .sep { color: var(--text-3); font-weight: 700; }

.cat-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cat-toolbar .count {
  font-size: 14px; color: var(--text-2);
}
.cat-toolbar .count strong { color: var(--text); font-weight: 800; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cat-toolbar .grow { flex: 1; }
.cat-sort { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.cat-sort button { padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; color: var(--text-3); }
.cat-sort button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.cat-view-toggle { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cat-view-toggle button { padding: 7px 10px; color: var(--text-3); }
.cat-view-toggle button.is-on { background: var(--surface-2); color: var(--text); }

/* Catalog cards */
.cat-list { display: grid; gap: 14px; }
.cat-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 100px 200px 1fr auto;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: all .15s var(--ease-out);
}
.cat-row:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cat-row .car-thumb {
  width: 100px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cat-row .car-info .name { font-size: 16px; font-weight: 700; }
.cat-row .car-info .meta { font-size: 12px; color: var(--text-3); }
.cat-row .tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-row .score-block { text-align: right; }
.cat-row .score-block .score { font-family: var(--font-mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.cat-row .score-block .of { color: var(--text-4); font-size: 0.55em; }
.cat-row .score-block .meta { font-size: 11px; color: var(--text-3); }


/* --- skeletons + source-photo + car-card + empty-state + custom select --- */
/* =====================================================================
   DATA-FIRST: SKELETONS
   ===================================================================== */
.skeleton {
  display: block;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: tc-shimmer 1.3s ease-in-out infinite;
}
@keyframes tc-shimmer {
  0%   { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
.row-skeleton {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
}

/* =====================================================================
   DATA-FIRST: SOURCE PHOTO + CAR CARD
   ===================================================================== */
.src-photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--surface-2);
}
.src-credit {
  position: absolute;
  bottom: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  background: rgba(0,0,0,0.62);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}
.src-photo.is-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--text-4);
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface-3) 10px 20px);
}
.src-empty-note {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}
.src-empty-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-4);
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), border-color .15s var(--ease-out);
}
.car-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.car-card.is-skeleton { cursor: default; }
.car-card.is-skeleton:hover { transform: none; box-shadow: none; border-color: var(--border); }
.car-card .cc-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.car-card .cc-plate {
  position: absolute;
  bottom: 10px; left: 10px;
}
.car-card .cc-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column;
  gap: 5px;
}
.car-card .cc-title {
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.car-card .cc-make { font-weight: 800; }
.car-card .cc-model { font-weight: 600; color: var(--text-2); }
.car-card .cc-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.car-card .cc-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.cc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px; font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.cc-chip.cc-region {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.cc-swatch {
  width: 10px; height: 10px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}

/* =====================================================================
   DATA-FIRST: EMPTY STATE
   ===================================================================== */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 56px 28px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.empty-state .es-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.empty-state .es-title {
  font-size: 17px; font-weight: 800;
  letter-spacing: -0.015em;
}
.empty-state .es-desc {
  font-size: 14px;
  color: var(--text-3);
  max-width: 42ch;
  line-height: 1.5;
}
.empty-state .es-action { margin-top: 6px; }
.empty-state.tone-bad { background: var(--v-bad-bg); border-color: color-mix(in srgb, var(--v-bad) 35%, transparent); }
.empty-state.tone-bad .es-icon { color: var(--v-bad-ink); border-color: color-mix(in srgb, var(--v-bad) 30%, transparent); }
.empty-state.tone-brand { background: var(--brand-50); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.empty-state.tone-brand .es-icon { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* =====================================================================
   DATA-FIRST: CUSTOM SELECT
   ===================================================================== */
.tc-select { position: relative; width: 100%; }
.tc-select-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 10px 0 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  transition: border-color .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.tc-select.has-value .tc-select-trigger { color: var(--text); border-color: var(--border-strong); }
.tc-select.is-open .tc-select-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.tc-select-val { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-select-chev { color: var(--text-3); transition: transform .15s var(--ease-out); flex-shrink: 0; }
.tc-select.is-open .tc-select-chev { transform: rotate(180deg); }
.tc-select-clear {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  color: var(--text-3);
  flex-shrink: 0;
}
.tc-select-clear:hover { background: var(--surface-3); color: var(--text); }
.tc-select-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: tc-select-in .14s var(--ease-out);
}
@keyframes tc-select-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tc-select-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
}
.tc-select-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--text);
}
.tc-select-list { max-height: 260px; overflow-y: auto; padding: 6px; }
.tc-select-opt {
  width: 100%;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  text-align: left;
}
.tc-select-opt:hover { background: var(--surface-2); color: var(--text); }
.tc-select-opt.is-on { background: var(--brand-50); color: var(--brand-ink); }
.tc-select-opt .opt-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-select-opt .opt-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}
.tc-select-opt.is-on .opt-count { color: var(--brand); }
.opt-swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); flex-shrink: 0; }
.tc-select-noopt { padding: 16px; text-align: center; color: var(--text-4); font-size: 13px; }


/* --- wanted --- */
/* =====================================================================
   WANTED (РОЗШУК)
   ===================================================================== */
.wanted-hero {
  background:
    radial-gradient(120% 140% at 90% -10%, color-mix(in srgb, var(--v-bad) 16%, transparent) 0%, transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
  position: relative;
}
.wanted-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--v-bad-ink);
  padding: 7px 14px;
  background: var(--v-bad-bg);
  border: 1px solid color-mix(in srgb, var(--v-bad) 30%, transparent);
  border-radius: 99px;
  margin-bottom: 22px;
}
.wanted-hero .eyebrow .blink {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--v-bad);
  animation: tc-pulse 1.4s var(--ease-out) infinite;
}
.wanted-hero h1 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.wanted-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--v-bad);
}
.wanted-hero .lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.wanted-hero .bigcount.danger .value { color: var(--v-bad-ink); }

.wanted-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--v-bad);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
}
.wanted-badge .blink {
  width: 6px; height: 6px; border-radius: 99px;
  background: white;
  animation: tc-pulse 1.4s var(--ease-out) infinite;
}

.wanted-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--v-bad) 32%, var(--border));
  border-left: 3px solid var(--v-bad);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.wanted-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--v-bad) 50%, transparent); }
.wanted-card .wc-photo {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.wanted-card .wc-photo .wanted-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.wanted-card .wc-plate { position: absolute; bottom: 10px; left: 10px; }
.wanted-card .wc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.wanted-card .wc-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.wanted-card .wc-title .yr { font-family: var(--font-mono); font-weight: 600; color: var(--text-3); font-size: 13px; }
.wanted-card .wc-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-3); }
.wanted-card .wc-reason {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  color: var(--v-bad-ink);
  background: var(--v-bad-bg);
  padding: 4px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.wanted-card .wc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-3);
}

.disclaimer-card {
  background: var(--v-bad-bg);
  border: 1px solid color-mix(in srgb, var(--v-bad) 30%, transparent);
  border-radius: var(--r-md);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.disclaimer-card .dc-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--v-bad);
  color: white;
  flex-shrink: 0;
}
.disclaimer-card h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; color: var(--v-bad-ink); }
.disclaimer-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; max-width: 70ch; }
.disclaimer-card .dc-phone {
  font-family: var(--font-mono);
  font-size: 30px; font-weight: 700;
  color: var(--v-bad-ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.disclaimer-card .dc-phone span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }


/* --- filter panel drawer + catalog responsive + plate additions --- */
/* =====================================================================
   FILTER PANEL — data-first additions + mobile drawer
   ===================================================================== */
.filter-group .fg-select-stack { display: flex; flex-direction: column; gap: 10px; }
.filter-applied-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--brand); color: white;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
}
.filter-reset {
  width: 100%;
  margin-top: 4px;
  padding: 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.filter-reset:hover { background: var(--surface-3); color: var(--text); }

.year-range-row { display: flex; align-items: center; gap: 10px; }
.year-range-row .tc-select { flex: 1; }
.year-range-row .sep { color: var(--text-4); font-weight: 700; }

.filter-mobile-btn { display: none; }
.filter-drawer-backdrop { display: none; }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr; }
  .filter-mobile-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-weight: 700; font-size: 14px;
    color: var(--text);
  }
  .filter-card.is-drawer {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: min(86vw, 360px);
    z-index: 120;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .26s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .filter-card.is-drawer.is-open { transform: translateX(0); }
  .filter-drawer-backdrop.is-open {
    display: block;
    position: fixed; inset: 0; z-index: 110;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
  }
  .filter-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
  }
}
@media (min-width: 901px) {
  .filter-drawer-head { display: none; }
}

/* Catalog grid responsiveness for car-cards */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1200px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .car-grid { grid-template-columns: 1fr; }
  .wanted-grid { grid-template-columns: 1fr !important; }
  .disclaimer-card { grid-template-columns: 1fr; text-align: left; gap: 14px; }
}

/* Plate page data-first additions */
.facts-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.facts-card .fact { display: flex; flex-direction: column; gap: 3px; }
.facts-card .fact .k {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-4);
}
.facts-card .fact .v { font-size: 14px; font-weight: 700; color: var(--text); }
.facts-card .fact .v.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.deep-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .12s var(--ease-out), background .12s var(--ease-out);
  cursor: pointer;
}
.deep-link:hover { border-color: var(--brand); background: var(--brand-50); }
.deep-link .dl-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
}
.deep-link:hover .dl-icon { background: var(--surface); color: var(--brand); }
.deep-link .dl-body { flex: 1; min-width: 0; }
.deep-link .dl-title { font-size: 14px; font-weight: 700; }
.deep-link .dl-host { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.deep-link .dl-arrow { color: var(--text-4); flex-shrink: 0; }
.deep-link:hover .dl-arrow { color: var(--brand); }

.source-tabs {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.source-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
}
.source-tab.is-on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-50); }
