:root {
  --bg: #0a0a0a; --surface: #151515; --surface-2: #1c1c1c; --ink: #f4f4f2; --muted: #9a9a96; --line: #2a2a2a;
  --accent: #f4f4f2; --accent-ink: #0a0a0a; --accent-soft: #1f1f1f; --link: #f4f4f2;
  --warn: #f2a37a; --warn-soft: #2e1f17; --pend: #a5a5a0; --pend-soft: #222222;
  --ok: #7ee2a8; --ok-soft: #13291d; --no: #f19a86; --no-soft: #34191a; --com: #f0c75e; --com-soft: #2d2512;
  --gold: #f0b429; --star: #6d7cff;
  --radius: 10px; --font: Inconsolata, ui-monospace, SFMono-Regular, Menlo, monospace; --mono: var(--font);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fafaf8; --surface: #ffffff; --surface-2: #f3f3f0; --ink: #111111; --muted: #66665f; --line: #e3e3de;
  --accent: #111111; --accent-ink: #ffffff; --accent-soft: #efefea; --link: #111111;
  --warn: #8a3b12; --warn-soft: #fbeee4; --pend: #6b6b66; --pend-soft: #efefea;
  --ok: #1d6b43; --ok-soft: #e1f1e7; --no: #a2321e; --no-soft: #f8e6e2; --com: #6a4c00; --com-soft: #f7efd9;
  --gold: #b7811a; --star: #4152e0;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--link); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.6em 0 0.3em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.05rem; }
code, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--pend-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }
.muted { color: var(--muted); } .small { font-size: 0.86rem; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }

.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.top nav a[aria-current="page"], .top nav a:not(.btn):hover { color: var(--ink); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 0.95rem; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; font-size: 0.88rem; }
.btn-ghost { background: transparent; color: var(--accent); }

.hero { padding: 40px 0 8px; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--accent); font-weight: 700; margin: 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0 8px; }
.stats > div { background: var(--surface); padding: 16px 18px; }
.stat { display: block; font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.label { color: var(--muted); font-size: 0.85rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.3em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.total td { font-weight: 700; }
.bar { display: inline-block; vertical-align: middle; width: 72px; height: 6px; border-radius: 3px; background: var(--pend-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.tick { color: var(--ok); font-weight: 600; } .cross { color: var(--no); font-weight: 600; }

.pill { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--pend-soft); color: var(--pend); margin-right: 4px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.no { background: var(--no-soft); color: var(--no); }
.pill.ver { background: var(--accent-soft); color: var(--accent); } .pill.com { background: var(--com-soft); color: var(--com); }
.pill.pend { background: var(--pend-soft); color: var(--pend); }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.empty h3 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); }
.card.wide { margin-bottom: 12px; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }

.steps { padding-left: 1.2em; } .steps li { margin-bottom: 10px; }
.cta { background: var(--accent-soft); border-radius: var(--radius); padding: 8px 24px 16px; margin: 40px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 18px; min-width: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: 0.88rem; } .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.big { font-size: 2.2rem; font-weight: 700; margin-top: 12px; }
.result { padding: 10px 0; border-bottom: 1px solid var(--line); }
.copy { width: 100%; font: 0.82rem var(--mono); padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); margin-top: 4px; }
.warn { background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: 8px; }
.crumbs { margin: 24px 0 0; font-size: 0.88rem; color: var(--muted); }
.prose { max-width: 740px; } .prose li { margin-bottom: 6px; }
.panel .prose h3, .panel .prose h4 { margin-top: 1em; }
.testlist { columns: 2; padding-left: 1.1em; font-size: 0.9rem; }
.diff { max-height: 560px; font-size: 0.8rem; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea, .pickers select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pickers label { display: grid; gap: 4px; font-weight: 600; font-size: 0.9rem; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; background: var(--surface); }
.foot-in { display: grid; gap: 10px; font-size: 0.9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.theme { font: inherit; font-size: 0.9rem; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 10px; cursor: pointer; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid2, .pickers { grid-template-columns: 1fr; }
  .testlist { columns: 1; }
  .top nav { gap: 2px 12px; }
  .hero { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ---- TrustMRR-inspired layer ---- */
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: 1.15rem; }
.top { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.star { color: var(--star); }
.brand .star { font-size: 1.1rem; }
.btn { border-radius: 8px; font-weight: 700; }
.btn-light { background: var(--ink); color: var(--bg); border-color: var(--ink); white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.hero { text-align: center; margin: 0 auto; padding: 56px 0 24px; max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.1rem); margin: 14px 0 12px; }
.hero .lede { margin: 0 auto; font-size: 1rem; }
.hero .lede a { color: var(--ink); }
.hero-mark { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.1rem; }
.search { display: flex; gap: 10px; max-width: 560px; margin: 28px auto 12px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.search-box:focus-within { border-color: var(--muted); }
.search-box span { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 0.95rem; padding: 10px 0; outline: none; }
.hero-links { display: flex; gap: 24px; justify-content: center; font-size: 0.9rem; margin: 0; }
.hero-links a { color: var(--muted); text-decoration: none; } .hero-links a:hover { color: var(--ink); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 12px; }
.row-head h2 { margin: 0; font-size: 1rem; }
.row-head a { color: var(--muted); text-decoration: none; font-size: 0.88rem; } .row-head a:hover { color: var(--ink); }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { position: relative; background: var(--surface); border-color: var(--line); padding: 16px 16px 14px; gap: 14px; overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); transform: translateY(-1px); }
.card[hidden] { display: none; }
.card-ghost { border-style: dashed; }
.corner { position: absolute; top: 0; right: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; padding: 3px 9px; border-bottom-left-radius: 8px; background: var(--pend-soft); color: var(--pend); }
.corner.ok { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); }
.card-head { display: flex; align-items: center; gap: 12px; padding-right: 64px; }
.card-head strong { display: block; font-size: 1rem; line-height: 1.25; }
.sub { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.card-head > div { min-width: 0; }
.av { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; font-weight: 800; font-size: 1.05rem; color: #fff; background: hsl(var(--h) 55% 42%); }
.av.sm { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metrics .k { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.metrics .v { display: block; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px 12px; margin: 40px 0; }
.leader-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.leader-head h2 { margin: 0; font-size: 1.2rem; }
.select select { font: inherit; font-size: 0.9rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.table-wrap.flat { border: 0; background: transparent; border-radius: 0; }
.board td { vertical-align: middle; }
.board th { text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.rank { width: 44px; font-size: 1.05rem; text-align: center; }
.strong { font-weight: 800; font-size: 1rem; }
.agent-cell { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 220px; max-width: 460px; }
.agent-cell > span:last-child { min-width: 0; }
.agent-cell:hover strong { text-decoration: underline; }
.panel-empty { border: 1px dashed var(--line); border-radius: 10px; padding: 18px; color: var(--muted); }
.panel-empty strong { color: var(--ink); }
.panel-note { margin: 10px 0 0; }
.panel, .table-wrap, .empty, pre { border-color: var(--line); }
.cta { background: var(--surface); border: 1px solid var(--line); text-align: center; }
.foot { background: transparent; }
.top nav a.btn-sm { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill.ver { background: var(--ok-soft); color: var(--ok); }
.bar > span { background: var(--ok); }
@media (max-width: 760px) {
  .search { flex-direction: column; }
  .hero { padding-top: 32px; }
  .cards { grid-template-columns: 1fr; }
}
.corner.com { background: color-mix(in srgb, var(--com) 22%, transparent); color: var(--com); }
/* directory + avatars */
img.av { object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); padding: 0; }
.av.xs { width: 22px; height: 22px; border-radius: 50%; font-size: 0; }
.av.lg { width: 72px; height: 72px; border-radius: 16px; }
.maker { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.maker:hover span { text-decoration: underline; }
.maker-line { margin: 4px 0 0; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.profile-head h1 { margin: 0; }
.agent-cell .sub { max-width: 420px; }
.filters { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; margin: 20px 0 8px; }
.filters select { font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.leader.flat-top { margin-top: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 14px 0 6px; }
.pager button:disabled { opacity: 0.35; cursor: default; }
.stat-cards { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.metrics.one { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search-box { grid-column: 1 / -1; }
  .stat-cards { grid-template-columns: 1fr; }
  .agent-cell .sub { max-width: 200px; }
  .profile-head .av.lg { width: 56px; height: 56px; }
}
@media (max-width: 1000px) { #drows td:nth-child(6), .leader thead th:nth-child(6) { display: none; } }
@media (max-width: 760px) {
  #drows td:nth-child(4), .leader.flat-top thead th:nth-child(4), #drows td:nth-child(3), .leader.flat-top thead th:nth-child(3) { display: none; }
  .board .agent-cell { min-width: 0; }
}
.filters > * { min-width: 0; } .filters select { width: 100%; }
.board .agent-cell .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { display: inline-grid; place-items: center; min-width: 44px; padding: 3px 8px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--pend-soft); color: var(--pend); }
.score.ok { background: var(--ok-soft); color: var(--ok); } .score.ver { background: color-mix(in srgb, var(--star) 22%, transparent); color: color-mix(in srgb, var(--star) 70%, var(--ink)); } .score.com { background: var(--com-soft); color: var(--com); }
.breakdown { display: grid; gap: 8px; margin: 8px 0 6px; }
.bd-row { display: grid; grid-template-columns: 1fr 120px 34px; gap: 10px; align-items: center; font-size: 0.9rem; }
.bd-row .bar { width: 100%; }
.stat-cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stat-cards.four { grid-template-columns: 1fr 1fr; } }
/* niches, plans, newsletter */
.niche-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.niche-tabs a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.niche-tabs a:hover, .niche-tabs a[aria-current="page"] { border-color: var(--ink); }
.card.niche { gap: 10px; }
.niche-top { display: grid; gap: 6px; margin-top: auto; }
.niche-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 28px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 18px; overflow: hidden; }
.plan.hot { border-color: var(--ink); }
.plan .price { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.plan li { margin-bottom: 6px; font-size: 0.93rem; }
.signup { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.signup > div { display: grid; gap: 2px; }
.signup-form { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.signup-form input[type=email] { font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-width: 220px; }
.issue-list li { margin-bottom: 10px; }
.issue-index li { margin-bottom: 8px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .signup-form input[type=email] { min-width: 0; flex: 1; } }
