/* Know Your Employer — design system */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --surface-3: #e7ecf3;
  --border: #e2e7ef;
  --border-strong: #cdd5e1;
  --ink: #0e1726;
  --ink-2: #3b4658;
  --ink-3: #6b7689;
  --brand: #0b3b66;
  --brand-2: #1d5fa8;
  --brand-soft: #e6effa;
  --accent: #0f9d76;
  --accent-ink: #0a7a5b;
  --accent-soft: #e3f6ef;
  --red: #d61f45;
  --red-soft: #fde8ec;
  --star: #f2a516;
  --star-empty: #d8dee8;
  --chart: #1d5fa8;
  --chart-2: #8fb3dc;
  --focus: #2b7de9;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06);
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.05), 0 6px 24px rgba(14, 23, 38, 0.06);
  --shadow-lg: 0 12px 40px rgba(14, 23, 38, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111b;
    --surface: #121a27;
    --surface-2: #172133;
    --surface-3: #1e2a3f;
    --border: #233049;
    --border-strong: #31415f;
    --ink: #e8edf5;
    --ink-2: #b7c1d1;
    --ink-3: #8592a8;
    --brand: #8cc0ff;
    --brand-2: #6aa8f0;
    --brand-soft: #16263d;
    --accent: #2fc897;
    --accent-ink: #4fdcaf;
    --accent-soft: #10291f;
    --red: #ff6b88;
    --red-soft: #2e1720;
    --star: #f6b93b;
    --star-empty: #34425c;
    --chart: #6aa8f0;
    --chart-2: #2f5585;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111b; --surface: #121a27; --surface-2: #172133; --surface-3: #1e2a3f; --border: #233049; --border-strong: #31415f;
  --ink: #e8edf5; --ink-2: #b7c1d1; --ink-3: #8592a8; --brand: #8cc0ff; --brand-2: #6aa8f0; --brand-soft: #16263d;
  --accent: #2fc897; --accent-ink: #4fdcaf; --accent-soft: #10291f; --red: #ff6b88; --red-soft: #2e1720; --star: #f6b93b;
  --star-empty: #34425c; --chart: #6aa8f0; --chart-2: #2f5585;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 24px rgba(0, 0, 0, 0.25); --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { flex: 1; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-size: 1.45rem; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.logo-text span { font-size: .66rem; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .menu-toggle { display: none; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown .dd-head { padding: 8px 12px; font-size: .82rem; color: var(--ink-3); border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .header-actions .menu-toggle { display: inline-flex; }
  .header-actions .btn-file span { display: none; }
}
@media (max-width: 520px) { .logo-text span { display: none; } .header-actions .btn-file { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-brand { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn-brand { color: #0b111b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-brand { color: #0b111b; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 8px 10px; }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 10px; }

/* ── Cards & layout ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .layout-side { grid-template-columns: minmax(0, 1fr); } }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-3); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.page-head { padding: 36px 0 18px; }
.page-head p { color: var(--ink-2); max-width: 720px; font-size: 1.05rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; display: inline-block; }

/* ── Hero ── */
.hero { position: relative; padding: 64px 0 56px; background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
  radial-gradient(900px 380px at -10% 0%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 60%); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 820px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 680px; }
.hero-search { margin-top: 26px; max-width: 720px; }
.hero-chips { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.free-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }

/* ── Search box / typeahead ── */
.searchbox { position: relative; }
.searchbox-field { display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 6px 6px 16px; gap: 10px; }
.searchbox-field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 18%, transparent), var(--shadow); }
.searchbox-field svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.searchbox-field input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.08rem; color: var(--ink); flex: 1; min-width: 0; padding: 10px 0; }
.searchbox-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; display: none; max-height: 420px; overflow-y: auto; }
.searchbox-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; color: var(--ink); width: 100%; border: 0; background: none; text-align: left; font: inherit; }
.sr-item:hover, .sr-item.active { background: var(--surface-2); text-decoration: none; }
.sr-item .sr-meta { font-size: .82rem; color: var(--ink-3); }
.sr-foot { padding: 10px 14px; border-top: 1px solid var(--border); font-size: .9rem; background: var(--surface-2); }

/* ── Forms ── */
label { font-weight: 650; font-size: .92rem; display: block; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 5px; }
.input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 10px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.counter { font-size: .78rem; color: var(--ink-3); text-align: right; margin-top: 4px; }
.counter.warn { color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.error-box { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.ok-box { background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.info-box { background: var(--brand-soft); color: var(--ink-2); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; font: inherit; font-weight: 650; font-size: .92rem; color: var(--ink-2); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented.full { display: flex; } .segmented.full button { flex: 1; }

/* ── Chips / tags / badges ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); cursor: default; }
a.chip:hover { text-decoration: none; background: var(--surface-3); }
button.chip { cursor: pointer; font-family: inherit; }
.chip.green { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
button.chip[aria-pressed="true"].green { background: var(--accent); color: #fff; }
button.chip[aria-pressed="true"].red { background: var(--red); color: #fff; }
.chip .n { opacity: .75; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; }
.badge.favorite { background: #fff4d6; color: #8a5a00; }
.badge.redflag { background: var(--red-soft); color: var(--red); }
.badge.new { background: var(--brand-soft); color: var(--brand-2); }
.badge.ai { background: var(--surface-3); color: var(--ink-2); }
.badge.held { background: #fff4d6; color: #8a5a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.favorite, :root:not([data-theme="light"]) .badge.held { background: #3a2c08; color: #f6c453; } }
:root[data-theme="dark"] .badge.favorite, :root[data-theme="dark"] .badge.held { background: #3a2c08; color: #f6c453; }

/* ── Stars ── */
.stars { position: relative; display: inline-block; line-height: 1; font-size: 1rem; letter-spacing: 1px; white-space: nowrap; color: var(--star-empty); vertical-align: middle; }
.stars::before { content: "★★★★★"; }
.stars .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); }
.stars .fill::before { content: "★★★★★"; }
.stars.lg { font-size: 1.5rem; }
.stars.sm { font-size: .85rem; }
.star-input { display: inline-flex; gap: 2px; }
.star-input button { background: none; border: 0; padding: 2px; cursor: pointer; font-size: 2rem; line-height: 1; color: var(--star-empty); transition: transform .08s, color .1s; }
.star-input.sm button { font-size: 1.55rem; }
.star-input button.on { color: var(--star); }
.star-input button:hover { transform: scale(1.12); }
.star-caption { font-size: .85rem; font-weight: 700; color: var(--ink-2); min-width: 90px; display: inline-block; }

/* ── Employer cards ── */
.co-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; box-shadow: var(--shadow-sm); }
.co-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.co-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.co-head > div { min-width: 0; }
.co-name { font-weight: 750; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sub { font-size: .84rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem; flex: none; letter-spacing: -0.02em; }
.avatar.lg { width: 76px; height: 76px; font-size: 2rem; border-radius: 18px; }
.co-score { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.co-score b { font-size: 1.05rem; }
.co-foot { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-3); flex-wrap: wrap; margin-top: auto; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { text-decoration: none; }
.list-row:hover .co-name { color: var(--brand-2); }

/* ── Stats ── */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat-strip > div { padding: 18px 20px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-strip > div:nth-child(2) { border-right: 0; } .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
.stat-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }

/* ── Action cards ── */
.action-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.action-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.action-card .ac-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; }
.action-card h3 { margin: 6px 0 0; }
.action-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.action-card .ac-link { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--brand-2); }

/* ── Lingo ── */
.lingo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lingo-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lingo-item b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.lingo-item span { font-size: .9rem; color: var(--ink-2); }

/* ── Company profile ── */
.profile-head { padding: 28px 0 8px; }
.profile-title { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-title h1 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: .92rem; margin-top: 6px; }
.score-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .score-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.score-big { text-align: center; }
.score-big .num { font-size: 4rem; font-weight: 850; letter-spacing: -0.05em; line-height: 1; }
.score-big .label { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.rec-pill { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.dist-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); margin: 5px 0; }
.bar { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
.cat .cat-label { font-size: .9rem; font-weight: 650; }
.cat .cat-val { font-weight: 800; }
.cat .bar { grid-column: 1 / -1; height: 6px; }
.cat .bar > span { background: var(--brand-2); }
.lowdown { border: 1.5px solid color-mix(in srgb, var(--brand-2) 35%, var(--border)); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }
.lowdown .tagline { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.lowdown ul { margin: 6px 0 0; padding-left: 18px; }
.lowdown li { margin: 3px 0; }
.ai-note { font-size: .78rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.shimmer { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; height: 14px; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 28px 0 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink-3); padding: 12px 16px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters select { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }

/* ── Shift Report card ── */
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.review + .review { margin-top: 14px; }
.review-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.review-top .score { font-weight: 800; }
.review h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.review-meta { font-size: .86rem; color: var(--ink-3); }
.review-co { font-size: .88rem; font-weight: 700; }
.rec { font-size: .82rem; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.rec.yes { color: var(--accent-ink); } .rec.no { color: var(--red); }
.flag-block { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--border-strong); }
.flag-block.green { border-left-color: var(--accent); }
.flag-block.red { border-left-color: var(--red); }
.flag-block.boss { border-left-color: var(--brand-2); }
.flag-block h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.flag-block.green h4 { color: var(--accent-ink); } .flag-block.red h4 { color: var(--red); } .flag-block.boss h4 { color: var(--brand-2); }
.flag-block p { margin: 0; white-space: pre-line; color: var(--ink-2); overflow-wrap: anywhere; }
.review-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.vote { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 700; font-size: .86rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.vote:hover { background: var(--surface-2); }
.vote.up[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.vote.down[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.mini-ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; margin-top: 12px; font-size: .84rem; }
@media (max-width: 600px) { .mini-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-ratings div { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-2); }
details.more summary { cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--brand-2); margin-top: 10px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }

/* ── Wizard ── */
.wizard { max-width: 820px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin: 8px 0 24px; }
.steps .step { flex: 1; }
.steps .step .line { height: 6px; border-radius: 999px; background: var(--surface-3); }
.steps .step.done .line, .steps .step.current .line { background: var(--accent); }
.steps .step span { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); margin-top: 6px; }
.steps .step.current span { color: var(--ink); }
@media (max-width: 600px) { .steps .step span { display: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rating-row:last-child { border-bottom: 0; }
.rating-row .rr-label b { display: block; }
.rating-row .rr-label span { font-size: .84rem; color: var(--ink-3); }
.choice-card { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.choice-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.choice-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.picked { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.remix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 700px) { .remix-grid { grid-template-columns: minmax(0, 1fr); } }
.remix-opt { text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.remix-opt:hover { border-color: var(--border-strong); }
.remix-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.remix-opt .ro-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.remix-opt .ro-head b { font-size: 1rem; }
.remix-opt .ro-blurb { font-size: .8rem; color: var(--ink-3); }
.remix-opt .ro-body { font-size: .86rem; color: var(--ink-2); max-height: 170px; overflow: auto; white-space: pre-line; border-top: 1px dashed var(--border); padding-top: 8px; }
.remix-panel { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.gate { text-align: center; padding: 48px 24px; }
.gate .gate-icon { font-size: 2.6rem; }

/* ── Tables & charts ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); font-weight: 800; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
.hbar-chart { display: flex; flex-direction: column; gap: 4px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: .88rem; padding: 3px 4px; border-radius: 6px; }
.hbar:hover { background: var(--surface-2); }
.hbar .hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar .hb-track { display: block; height: 14px; background: transparent; position: relative; }
.hbar .hb-fill { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .hb-fill.green { background: var(--accent); } .hbar .hb-fill.red { background: var(--red); }
.hbar .hb-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 600px) { .hbar { grid-template-columns: 100px minmax(0, 1fr) 56px; gap: 8px; } }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid-line { stroke: var(--border); stroke-width: 1; }
.chart-svg .axis-text { fill: var(--ink-3); font-size: 11px; }
.chart-svg .col { fill: var(--chart); }
.chart-svg .col:hover { fill: var(--brand); }
.chart-svg .line { fill: none; stroke: var(--chart); stroke-width: 2; }
.chart-svg .dot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: var(--surface); font-size: .82rem; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .1s; max-width: 260px; }
.tooltip.show { opacity: 1; }
.range-bar { position: relative; height: 8px; background: var(--surface-3); border-radius: 999px; min-width: 120px; }
.range-bar span { position: absolute; top: 0; bottom: 0; background: var(--chart-2); border-radius: 999px; }
.range-bar i { position: absolute; top: -3px; width: 3px; height: 14px; background: var(--chart); border-radius: 2px; }

/* ── Misc ── */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .empty-icon { font-size: 2.2rem; margin-bottom: 8px; }
.empty h3 { color: var(--ink); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 480px; }
.toast { background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; font-size: .94rem; }
.toast.error { background: var(--red); color: #fff; }
.toast.ok { background: var(--accent-ink); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 14, 24, .55); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%; padding: 24px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow: auto; }
.loading { display: flex; justify-content: center; padding: 60px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner { background: #fff4d6; color: #6b4600; text-align: center; padding: 10px 16px; font-size: .9rem; font-weight: 600; }
.banner button { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner { background: #3a2c08; color: #f6c453; } }
:root[data-theme="dark"] .banner { background: #3a2c08; color: #f6c453; }
.cta-band { background: linear-gradient(120deg, var(--brand), #0d5a8f); color: #fff; border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: linear-gradient(120deg, #12345a, #0f4a73); } }
:root[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #12345a, #0f4a73); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: 6px 0; }
.auth-card { max-width: 440px; margin: 40px auto; }
.turnstile-slot { min-height: 70px; margin: 12px 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 56px; padding: 40px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.footer-grid a { display: block; color: var(--ink-2); padding: 3px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: .85rem; }
.sr-section { padding: 8px 14px 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--surface-2); border-top: 1px solid var(--border); }

/* ── Shift Talk (comments) ── */
.vote.talk[aria-expanded="true"] { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-2); }
.vote.sm { padding: 3px 10px; font-size: .8rem; }
.thread { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.thread-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.thread-head h4 { margin: 0; font-size: 1rem; }
.talk-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.talk-form textarea { min-height: 70px; font-size: .94rem; }
.cmt { margin-top: 12px; }
.cmt-head { display: flex; align-items: center; gap: 6px; font-size: .88rem; flex-wrap: wrap; }
.cmt-collapse { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: .78rem; cursor: pointer; padding: 0 2px; }
.cmt-main { margin-left: 7px; padding-left: 14px; border-left: 2px solid var(--border); }
.cmt-main:hover { border-left-color: var(--border-strong); }
.cmt-body { margin: 4px 0 6px; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink-2); font-size: .95rem; }
.cmt-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cmt-children.flat { margin-left: -21px; }
.cmt.collapsed > .cmt-main { display: none; }
.privacy-card { border: 1.5px solid color-mix(in srgb, var(--accent) 40%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 75%); }
.privacy-card h3 { margin-bottom: 8px; }
.privacy-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .94rem; }
.privacy-card li { margin: 5px 0; }

/* KYE as a term (like KYC) */
.kye-def { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .95rem; color: var(--ink-2); margin-bottom: 14px; }
.kye-def b { font-weight: 900; letter-spacing: .04em; color: var(--ink); }
.kye-def i { color: var(--ink-3); }
.kye-term { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 18px 0; }
.kye-term .word { font-size: 2rem; font-weight: 900; letter-spacing: .04em; }
.footer-grid a.logo { display: flex; padding: 0; }

/* Google Maps Platform attribution (text form, per Google's guidelines) */
.google-attr { font-family: Roboto, Arial, sans-serif; font-weight: 400; font-size: 12px; color: #5e5e5e; white-space: nowrap; }
.google-attr-row { padding: 6px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .google-attr { color: #fff; } }
:root[data-theme="dark"] .google-attr { color: #fff; }

/* Theme picker */
.theme-menu .dropdown { min-width: 200px; }
.theme-menu .dropdown button { display: flex; align-items: center; gap: 10px; }
.theme-menu .dropdown button[aria-checked="true"] { font-weight: 700; }
.theme-check { margin-left: auto; color: var(--accent-ink); }
