/* Layout: one 70rem ledger column, hairline-separated sections, a 46rem reading measure; green = money that came back */
:root {
  --bg: #ffffff;
  --surface: #faf9f7;
  --ink: #1c1917;
  --ink-2: #3f3a36;
  --muted: #66605a;
  --line: #ebe9e5;
  --faint: #d9d5cf;
  --con: #a29b94;
  --accent: #0f7a55;
  --accent-ink: #0b5f42;
  --accent-soft: #e8f4ee;
  --accent-line: #b5d9c7;
  --mark: #dcefe5;
  --mark-ink: #0b4f37;
  --on-accent: #ffffff;
  --warn-soft: #fbf1df;
  --warn-ink: #7f4c00;
  --bad-soft: #fbe9e7;
  --bad-ink: #9b2c1f;
  --shadow: rgba(28, 25, 23, 0.28);
  --font-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --measure: 46rem;
  --max: 70rem;
  color-scheme: only light;
}



*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
strong { font-weight: 600; color: var(--ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Ribbon (preview builds only) */
.ribbon { background: var(--warn-soft); color: var(--warn-ink); font-family: var(--font-display); font-size: 13px; font-weight: 600; text-align: center; padding-block: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--accent); font-weight: 800; }
.mk-bg { fill: var(--accent); }
.mk-ring { fill: none; stroke: var(--on-accent); stroke-width: 1.4; stroke-dasharray: 2 2.2; }
.mk-tick { fill: none; stroke: var(--on-accent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Type */
.eyebrow { margin: 0 0 12px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.h1 { font-weight: 800; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.025em; }
.h1.sm { font-size: clamp(31px, 4.2vw, 48px); line-height: 1.07; }
.h1 em { font-family: var(--font-body); font-style: italic; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.h2 { font-weight: 800; font-size: clamp(27px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.25; }
.sub { margin-top: 20px; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.intro { max-width: var(--measure); margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.copy { max-width: 42rem; margin-top: 28px; font-size: 19px; color: var(--ink-2); display: flex; flex-direction: column; gap: 16px; }
.meta-line { margin-top: 16px; font-family: var(--font-display); font-size: 13px; line-height: 1.6; color: var(--muted); }
.dim { color: var(--muted); font-style: italic; }
mark { background: var(--mark); color: var(--mark-ink); padding: 1px 5px; border-radius: 5px; }
.mono { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--ink-2); overflow-wrap: anywhere; }

/* Sections */
.sec { padding-block: 56px 8px; }
.sec-rule { border-top: 1px solid var(--line); padding-top: 48px; max-width: 54rem; }
.page-head { padding-block: 40px 8px; }
.page-head .h1 { max-width: 52rem; }
.crumbs { margin-bottom: 18px; font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { padding-block: 52px 24px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.hero-main { flex: 999 1 560px; min-width: 0; }
.hero-side { flex: 1 1 300px; min-width: 0; max-width: 420px; }

/* Author card */
.acard { margin-top: 22px; max-width: 640px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.acard summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 14px; line-height: 1.45; color: var(--muted); }
.acard summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.acard .who { flex: 1 1 220px; min-width: 0; }
.acard .tog { font-weight: 600; color: var(--accent-ink); }
.acard .tog .close, .acard[open] .tog .open { display: none; }
.acard[open] .tog .close { display: inline; }
.acard-body { padding: 4px 16px 18px; font-size: 16px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-family: var(--font-display); font-size: 13px; color: var(--ink-2); }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 12px; margin-top: 32px; }
@media (max-width: 600px) { .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.tile { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
.tile b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile b.hi { color: var(--accent-ink); }
.tile span { display: block; font-family: var(--font-display); font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Receipt card */
.receipt { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--bg); box-shadow: 0 18px 40px -30px var(--shadow); }
.receipt-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.receipt-top .ok { color: var(--accent-ink); }
.receipt .what { margin-top: 16px; font-family: var(--font-display); font-size: 15px; color: var(--ink-2); }
.receipt .amt { margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kv { margin: 14px 0 0; font-family: var(--font-display); font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv dd.hi { color: var(--accent-ink); font-weight: 800; }
.tx { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: var(--surface); font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
.tx a { font-family: var(--font-display); font-weight: 600; }
.receipt .foot { margin-top: 14px; font-size: 15px; font-style: italic; color: var(--muted); }

/* On this page */
.toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 14px; border-block: 1px solid var(--line); font-family: var(--font-display); font-size: 14px; }
.toc > span { color: var(--muted); font-weight: 600; margin-right: 6px; }
.toc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.toc a:hover { border-color: var(--accent-line); color: var(--accent-ink); }

/* Tables */
.tbox { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.ctable { min-width: 940px; }
.crow { display: grid; grid-template-columns: 150px 130px 170px minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 22px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: start; font-size: 16px; line-height: 1.5; }
.crow.head { background: var(--surface); border-top: 0; padding-block: 13px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cname { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
a.cname { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.cfig { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.cfig small { display: block; margin-top: 3px; font-weight: 500; font-size: 13px; color: var(--muted); }
.cfig.big { font-weight: 800; font-size: 21px; color: var(--accent-ink); }
.ltable { min-width: 820px; font-family: var(--font-display); }
.lrow { display: grid; grid-template-columns: 110px 150px 100px 76px 124px minmax(150px, 1fr); gap: 0 14px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; font-variant-numeric: tabular-nums; }
.lrow.head { background: var(--surface); border-top: 0; padding-block: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lrow .w { font-weight: 600; color: var(--ink); }
.lrow .t { color: var(--accent-ink); font-weight: 600; }
.lrow .mono { white-space: nowrap; overflow-wrap: normal; }
.ref { margin: 8px 0 26px; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.ref table { width: 100%; min-width: 600px; border-collapse: collapse; font-family: var(--font-display); font-size: 15px; line-height: 1.5; }
.ref th, .ref td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.ref thead th { background: var(--surface); border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ref tbody th { font-weight: 700; color: var(--ink); }

/* Pills, chips */
.pill { display: inline-block; padding: 5px 10px; border-radius: 999px; font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.35; }
.pill.wait { background: var(--warn-soft); color: var(--warn-ink); }
.pill.ok { background: var(--accent-soft); color: var(--accent-ink); }
.pill.sample { background: var(--warn-soft); color: var(--warn-ink); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bench { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bench span { padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--faint); font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-2); }

/* Review entries */
.entries { margin-top: 20px; max-width: 54rem; }
.entry { padding-block: 44px; border-top: 1px solid var(--line); }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.entry-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; color: var(--faint); font-variant-numeric: tabular-nums; }
.entry h3 { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.entry .body { margin-top: 18px; color: var(--ink-2); }
.bubble { margin-top: 22px; padding: 18px 22px; background: var(--accent-soft); border-radius: 20px 20px 20px 6px; max-width: 40rem; }
.bubble.mine { margin-left: auto; border-radius: 20px 20px 6px 20px; }
.bubble p { font-style: italic; color: var(--mark-ink); line-height: 1.55; }
.stamp { display: block; margin-top: 8px; font-family: var(--font-display); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.pc { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.pc ul { flex: 1 1 260px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pc li { display: flex; gap: 10px; font-family: var(--font-display); font-size: 15px; line-height: 1.45; color: var(--ink); }
.pc li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.pc ul.cons li::before { content: "✕"; color: var(--con); }
.scorebox { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.score-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.scores { font-family: var(--font-display); font-size: 16px; color: var(--ink-2); }
.scores strong { font-weight: 800; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.scores strong.co { color: var(--accent-ink); }
.status { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.spec { margin: 14px 0 0; font-family: var(--font-display); font-size: 15px; }
.spec div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.spec dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--on-accent); filter: brightness(1.07); }
.btn-line { display: inline-flex; align-items: center; min-height: 46px; padding: 12px 22px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent-ink); background: var(--bg); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-line:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Steps, care box, FAQ */
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.steps > li { display: flex; gap: 18px; align-items: flex-start; counter-increment: step; color: var(--ink-2); }
.steps > li::before { content: counter(step); flex: none; width: 36px; height: 36px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.steps > li > div { min-width: 0; }
.after { margin-top: 26px; color: var(--ink-2); }
.care { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 16px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; cursor: pointer; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent-ink); font-size: 22px; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 20px; font-size: 17px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }

/* Newsletter */
.news { max-width: 54rem; padding: 36px clamp(20px, 4vw, 44px); border-radius: 24px; background: var(--accent-soft); text-align: center; }
.news svg { display: block; margin: 0 auto; }
.news h2 { margin-top: 16px; font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.news p { margin: 12px auto 0; max-width: 34rem; color: var(--ink-2); }
.news form { margin: 22px auto 0; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.news input { flex: 1 1 240px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 16px var(--font-display); }
.news .fine { margin-top: 14px; font-family: var(--font-display); font-size: 13px; color: var(--accent-ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; margin-top: 28px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--bg); }
a.card:hover { border-color: var(--accent-line); color: var(--ink); }
.card .k { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.card .go { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-ink); }

/* Leaderboard */
.lb { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); font-family: var(--font-display); }
.lb-row:first-child { border-top: 0; }
.lb-rank { font-weight: 800; font-size: 22px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lb-row:first-child .lb-rank { color: var(--accent); }
.lb-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.lb-note { font-size: 13px; color: var(--muted); }
.lb-min { font-weight: 800; font-size: 22px; color: var(--accent-ink); font-variant-numeric: tabular-nums; text-align: right; }
.bar { grid-column: 2 / 4; height: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.empty { margin-top: 24px; padding: 24px; border: 1.5px dashed var(--faint); border-radius: 18px; color: var(--ink-2); }

/* Review page */
.rv { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; margin-top: 8px; }
.rail { flex: 1 1 200px; max-width: 240px; min-width: 0; font-family: var(--font-display); }
.rail-label { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rail ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; position: relative; }
.rail ol::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.rail a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.3; }
.rail a:hover { color: var(--accent-ink); }
.rail .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--con); }
.rail a.on { color: var(--accent-ink); font-weight: 700; }
.rail a.on .dot { background: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) { .rail { position: sticky; top: 24px; } }
@media (max-width: 899px) {
  .rail { max-width: none; flex-basis: 100%; }
  .rail ol { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .rail ol::before { display: none; }
  .rail a { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .rail .dot { display: none; }
}
.rv-main { flex: 999 1 560px; min-width: 0; max-width: 52rem; }
.byline { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--font-display); font-size: 14px; line-height: 1.5; color: var(--muted); }
.byline strong { color: var(--ink); }
.lead-big { margin-top: 36px; font-family: var(--font-body); font-weight: 600; font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.lead-text { margin-top: 10px; font-size: 20px; color: var(--ink-2); }
.statusline { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 13px; color: var(--ink-2); }
.statusline b { color: var(--accent-ink); }
.verdict { margin-top: 44px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px; }
.verdict .score-top h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.verdict > p { margin-top: 22px; color: var(--ink-2); }
.rv-sec { margin-top: 48px; }
.rv-sec > h2 { font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.rv-sec > p { margin-top: 14px; color: var(--ink-2); }
.tl { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.tl h3 { font-weight: 700; font-size: 20px; }
.tl > p { margin-top: 12px; color: var(--ink-2); }
.math { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: var(--ink); overflow-x: auto; font-variant-numeric: tabular-nums; }
.math .res { color: var(--accent-ink); font-weight: 500; }
.next { margin-top: 34px; padding: 22px 24px; border-radius: 18px; border: 1.5px dashed var(--accent-line); scroll-margin-top: 20px; }
.next-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dots i:nth-child(2) { opacity: 0.6; }
.dots i:nth-child(3) { opacity: 0.3; }
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: blink 1.4s infinite ease-in-out; }
  .dots i:nth-child(2) { animation-delay: 0.2s; }
  .dots i:nth-child(3) { animation-delay: 0.4s; }
  @keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
}
.next p { margin-top: 10px; color: var(--ink-2); }
.sample-flag { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); font-family: var(--font-display); font-size: 14px; font-weight: 600; }

/* Long-form guides */
.article-head { padding-block: 40px 0; }
.article-head .h1 { max-width: 52rem; }
.article-body { padding-block: 24px 24px; }
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.prose h3 { margin-top: 30px; font-weight: 700; font-size: 20px; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose .lead { font-size: 21px; line-height: 1.55; color: var(--ink); }
.prose .care, .prose .tool, .prose .ref { margin-top: 26px; }

/* Tools */
.tool { padding: clamp(16px, 4vw, 24px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.tool h3, .prose .tool h3 { margin-top: 0; font-size: 19px; font-weight: 700; }
.tool > p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.tool-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.tool-grid.wide { grid-template-columns: 1fr; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--faint); border-radius: 10px; background: var(--bg); color: var(--ink); font: 15px var(--font-display); font-variant-numeric: tabular-nums; }
.field textarea, .field input.code { font-family: var(--font-mono); font-size: 13px; }
.field textarea { min-height: 72px; resize: vertical; }
.out { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.out > div { min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.out > div.full { grid-column: 1 / -1; }
.out b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.out span { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 13px; line-height: 1.4; color: var(--muted); }
.out .code { font-family: var(--font-mono); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.verdict-line { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-family: var(--font-display); font-weight: 600; font-size: 15px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.verdict-line.good { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.verdict-line.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }
.example { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.checklist { margin-top: 18px; padding: 0; list-style: none; counter-reset: chk; display: flex; flex-direction: column; gap: 0; }
.checklist > li { counter-increment: chk; padding-block: 20px; border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.checklist input { flex: none; width: 22px; height: 22px; margin-top: 4px; accent-color: var(--accent); }
.checklist .t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.checklist .t::before { content: counter(chk) ". "; color: var(--accent-ink); }
.checklist p { margin-top: 8px; padding-left: 36px; color: var(--ink-2); }
.progress { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.helpline { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.helpline b { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.helpline span { font-size: 16px; }
.copybox { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.copybox code { font-family: var(--font-mono); font-size: 16px; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 32px 44px; }
.fnav { display: flex; flex-wrap: wrap; gap: 0 22px; font-family: var(--font-display); font-size: 14px; font-weight: 500; }
.fnav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.fnav a:hover { color: var(--accent-ink); }
.site-footer p { margin-top: 14px; max-width: 52rem; font-size: 15px; line-height: 1.6; color: var(--muted); }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; margin-right: 8px; padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--ink); vertical-align: middle; }
.copyright { font-family: var(--font-display); font-size: 13px !important; }

/* Report homepage: ledger feed */
.feed { margin: 24px 0 0; padding: 0; list-style: none; max-width: 54rem; border-top: 1px solid var(--line); }
.feed li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 2px 20px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; line-height: 1.5; }
.feed time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.feed .ev { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.feed .ev b a { color: var(--ink); text-decoration-color: var(--accent-line); }
.feed .t { color: var(--accent-ink); font-weight: 600; }
.feed .pill { margin-left: 4px; vertical-align: 1px; }
@media (max-width: 520px) { .feed li { grid-template-columns: 1fr; } }
.crow .pill.sample { display: block; width: max-content; margin-top: 6px; }
.crow.lt { grid-template-columns: 180px 190px 140px minmax(0, 1fr) minmax(0, 1.1fr); }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card.pick h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- six-check system ---------- */
:root { --caution: #a85d00; --fail: #b42318; --on-strong: #ffffff; }


[hidden] { display: none !important; }

.st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; font-family: var(--font-display); font-size: 13px; font-weight: 600; line-height: 1.3; vertical-align: middle; text-align: left; }
.st i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; }
.st.pass { background: var(--accent-soft); color: var(--accent-ink); }
.st.pass i { background: var(--accent); color: var(--on-accent); }
.st.caution { background: var(--warn-soft); color: var(--warn-ink); }
.st.caution i { background: var(--caution); color: var(--on-strong); }
.st.fail { background: var(--bad-soft); color: var(--bad-ink); }
.st.fail i { background: var(--fail); color: var(--on-strong); }
.st.pending { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--faint); }
.st.pending i { color: var(--muted); box-shadow: inset 0 0 0 1px var(--faint); }
.pill.plain { background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

.strip { display: inline-flex; gap: 3px; vertical-align: middle; }
.strip i { width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; }
.strip i.pass { background: var(--accent); color: var(--on-accent); }
.strip i.caution { background: var(--caution); color: var(--on-strong); }
.strip i.fail { background: var(--fail); color: var(--on-strong); }
.strip i.pending { color: var(--muted); box-shadow: inset 0 0 0 1px var(--faint); }
.cardstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.scores .strip { margin-left: 8px; }
.crow .strip + .cfig { display: block; margin-top: 4px; }
.crow .cname + .pill.sample, .mname .pill.sample, .trow .pill.sample { display: block; width: max-content; margin-top: 6px; }

/* Findings */
.finds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 28px; }
.find { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--bg); }
.find:hover { border-color: var(--accent-line); color: var(--ink); }
.find-k { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.find-k .n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.find b { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.find p { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.find small { font-family: var(--font-display); font-size: 13px; line-height: 1.5; color: var(--muted); }
.find .go { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-ink); }

/* Report-card matrix */
.mtable { min-width: 1050px; font-family: var(--font-display); }
.mrow { display: grid; grid-template-columns: 130px repeat(8, minmax(0, 1fr)); gap: 0 6px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: stretch; }
.mrow.head { background: var(--surface); border-top: 0; padding-block: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mrow.head span:not(:first-child) { padding-left: 10px; }
.mname { display: flex; flex-direction: column; gap: 2px; align-self: center; }
.mname small { font-size: 13px; color: var(--muted); }
.mc { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 13px; line-height: 1.35; font-weight: 600; }
.mc i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; }
.mc.pass { background: var(--accent-soft); color: var(--accent-ink); }
.mc.pass i { background: var(--accent); color: var(--on-accent); }
.mc.caution { background: var(--warn-soft); color: var(--warn-ink); }
.mc.caution i { background: var(--caution); color: var(--on-strong); }
.mc.fail { background: var(--bad-soft); color: var(--bad-ink); }
.mc.fail i { background: var(--fail); color: var(--on-strong); }
.mc.pending { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.mc.pending i { box-shadow: inset 0 0 0 1px var(--faint); }
.mc:hover { box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }

/* License summary, problem lists */
.sumrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sumrow .st { font-size: 14px; padding: 5px 12px 5px 5px; }
.probs { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 54rem; }
.probs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-block: 14px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; }
.probs li b { font-size: 16px; }
.probs li > span:last-child { flex-basis: 100%; color: var(--ink-2); line-height: 1.5; }

/* License Tracker */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filters button { min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 14px var(--font-display); cursor: pointer; }
.filters button span { margin-left: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filters button[aria-pressed="true"] span { color: var(--on-accent); opacity: 0.85; }
.ttable { min-width: 980px; font-family: var(--font-display); }
.trow { display: grid; grid-template-columns: 170px 210px 200px 210px minmax(0, 1fr); gap: 0 18px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; align-items: start; }
.trow.head { background: var(--surface); border-top: 0; padding-block: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.trow small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.trow .cname { font-size: 16px; }
.ref th small, .ref td small { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ref td .st { margin-bottom: 2px; }
.ref tr.tot th, .ref tr.tot td { font-weight: 800; }
.spec.defs dt { min-width: 13rem; }

/* Review: report card and check sections */
.rc { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rc li { display: grid; grid-template-columns: 100px 104px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; line-height: 1.45; }
.rc li > a { font-weight: 700; color: var(--ink); }
.rc li > span:last-child { color: var(--ink-2); }
@media (max-width: 560px) { .rc li { grid-template-columns: 1fr auto; } .rc li > span:last-child { grid-column: 1 / -1; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sec-head h2 { font-weight: 800; font-size: clamp(23px, 3vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.rv-sec > .check-line { margin-top: 8px; font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.spec.boxed { margin-top: 18px; padding: 4px 20px; border: 1px solid var(--line); border-radius: 16px; }
.spec.boxed > div:first-child { border-top: 0; }
.spec dd small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--muted); }
.spec dd .chips { justify-content: flex-end; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 18px; }
.vs > div { min-width: 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); }
.vs-a { background: var(--surface); }
.vs-k { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vs-banner { margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.vs .spec { margin-top: 6px; font-size: 14px; }
.mini-h { margin-top: 28px; font-size: 18px; font-weight: 700; }
.tsteps { margin: 12px 0 0 6px; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.tsteps li { position: relative; padding: 0 0 16px 22px; display: flex; flex-direction: column; gap: 2px; }
.tsteps li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.tsteps li:last-child { padding-bottom: 2px; }
.tsteps b { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.tsteps span { color: var(--ink-2); }
.callout { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); font-size: 16px; }
.callout strong { color: inherit; }
.kv.rcard dd { text-align: right; }
.receipt .foot a { font-family: var(--font-display); font-style: normal; font-weight: 700; }

/* Keep visually hidden labels inside their scroll boxes */
.tbox, .ref, .math { position: relative; }
.trow .cname a { color: var(--ink); text-decoration-color: var(--accent-line); text-underline-offset: 4px; }

/* Homepage: what I tested, short answer, report teaser */
.factor h3 { margin-top: 8px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.factor .how { font-family: var(--font-display); font-size: 15px; line-height: 1.5; color: var(--muted); }
.found { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.found-k { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.find.factor .found b { margin-top: 2px; font-size: 30px; }
.found p { font-size: 16px; }
.sa { margin: 12px 0 0; padding: 0; list-style: none; }
.sa li { display: flex; flex-direction: column; gap: 4px; padding-block: 12px; border-top: 1px solid var(--line); }
.sa-k { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.sa-n { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.sa-n:hover { color: var(--accent-ink); }
.sa-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-display); }
.sa-m small { font-size: 13px; color: var(--muted); }
.teaser { margin-top: 24px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); max-width: 54rem; }
.teaser .tiles { margin-top: 0; }
.teaser .tile { background: var(--bg); }
.teaser .btn-row { margin-top: 20px; }
@media (min-width: 840px) { .cards.two > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

.pill.pick { background: var(--accent); color: var(--on-accent); }
.crow .cname + .pill.pick, .crow .pill.pick + .pill.sample { display: block; width: max-content; margin-top: 6px; }
.pick-note { max-width: 54rem; margin-top: 14px; font-family: var(--font-display); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pick-note .pill { margin-right: 4px; vertical-align: 1px; }

/* ---------- Story-first review page ---------- */
.rv-main.story-main { max-width: 46rem; }
.story-main .lead-text + .lead-text { margin-top: 12px; }
.story-main .acard { margin-top: 26px; }
.rv-sec.story > h2 { font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.rv-sec.story > p { margin-top: 14px; color: var(--ink-2); }
.stand { margin-top: 44px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 20px; }
.stand .score-top h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.minis { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-family: var(--font-display); }
.mini:hover { border-color: var(--accent-line); color: var(--ink); }
.mini-k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mini .st { align-self: flex-start; }
.mini-s { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.wb { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px 28px; }
.wb h3 { font-size: 17px; font-weight: 700; }
.pc-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pc-list li { display: flex; gap: 10px; font-family: var(--font-display); font-size: 15px; line-height: 1.45; color: var(--ink); }
.pc-list.won li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.pc-list.bugged li::before { content: "✕"; color: var(--con); font-weight: 800; }
.diary-intro { margin-top: 10px !important; font-family: var(--font-display); font-size: 15px; color: var(--muted) !important; }
.dentry { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.dstamp { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.dentry h3 { margin-top: 6px; font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; }
.dentry > p { margin-top: 14px; color: var(--ink-2); }
.tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { text-decoration: none; }
.tag:hover .st { box-shadow: inset 0 0 0 1.5px currentColor; }
.shot { margin: 20px 0 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; }
.shot-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; max-width: 100%; border: 1.5px dashed var(--faint); border-radius: 14px; background: var(--surface); font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.shot figcaption { margin-top: 8px; font-family: var(--font-display); font-size: 13.5px; font-style: italic; color: var(--muted); }
.tip { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--mark-ink); font-family: var(--font-display); font-size: 15px; line-height: 1.55; }
.tip strong { color: inherit; }
.evs { margin-top: 18px; border-top: 1px solid var(--line); }
.ev { border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.ev > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-height: 56px; padding-block: 14px; cursor: pointer; list-style: none; font-family: var(--font-display); }
.ev > summary::-webkit-details-marker { display: none; }
.ev-t { font-weight: 700; font-size: 17px; color: var(--ink); }
.ev-t::before { content: "+"; display: inline-block; width: 18px; color: var(--accent-ink); font-weight: 700; }
.ev[open] .ev-t::before { content: "−"; }
.ev-b { padding-bottom: 22px; }
.ev-b > .check-line { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.live-box { margin-top: 44px; padding: 24px; border: 1.5px dashed var(--accent-line); border-radius: 20px; scroll-margin-top: 20px; }
.live-box h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.live-box > p { margin-top: 10px; color: var(--ink-2); }
.live-box > p.coming-k { margin-top: 16px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.coming { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.coming li + li { margin-top: 6px; }
.live-box > p.typing { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--font-display); font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .rail li.sub { display: none; } }
.ev:not([open]) > .ev-b { display: none; }
.ev-b { min-width: 0; }
.evs { overflow-x: clip; }

/* Rail sub items (review diary entries, homepage casino entries) */
.rail li.sub { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.rail li.sub a { min-height: 30px; font-size: 13px; color: var(--muted); }
.rail li.sub .dot { width: 7px; height: 7px; margin-left: 1px; }

/* Homepage: sticky sidebar + main column, list first */
.home { display: flex; gap: 48px; align-items: flex-start; }
.home:has(> .ledger-rail) { gap: 36px; }
.home-main { flex: 1 1 0; min-width: 0; container-type: inline-size; }
.home .home-rail { flex: 0 0 212px; max-width: 212px; margin-top: 52px; }
.home .ledger-rail { flex: 0 0 180px; max-width: 180px; margin-top: 56px; }
.home .hero { padding-top: 52px; }
.home .sec-rule, .home .entries { max-width: none; }
.rail-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.rail .rail-checks::before { display: none; }
.rail .rail-checks a { min-height: 32px; gap: 10px; font-size: 13px; }
.rail-checks .n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.rail .rail-go { margin-top: 10px; font-size: 13px; }
.rail .rail-go a { display: inline; min-height: 0; font-weight: 600; color: var(--accent-ink); }
@media (min-width: 900px) {
  .home-rail { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .toc-m { display: none; }
}
@media (max-width: 899px) {
  .home { display: block; }
  .home .home-rail { display: none; }
}

/* How I test: six numbered steps */
.hsteps { margin: 26px 0 0; padding: 0; list-style: none; }
.hsteps li { display: flex; gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.hsteps li:first-child { border-top: 0; padding-top: 4px; }
.hsteps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.hsteps li > div { min-width: 0; }
.hsteps p { margin: 0; color: var(--ink-2); }
.hsteps p strong { color: var(--ink); }
.hsteps .sofar { margin-top: 10px; font-family: var(--font-display); font-size: 15px; line-height: 1.5; }
.hsteps .sofar span { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); vertical-align: 1px; }
.hsteps .sofar b { color: var(--ink); }
.home #how .copy { margin-top: 18px; }

/* Comparison table: 4 columns, stacked cards in a narrow column */
.ctable.cmp { min-width: 700px; }
.cmp .crow { grid-template-columns: 150px 150px minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 20px; padding: 18px 20px; }
.cmp .cfig small b { color: var(--accent-ink); font-weight: 700; }
@container (max-width: 699px) {
  .ctable.cmp { min-width: 0; }
  .cmp .crow.head { display: none; }
  .cmp .crow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 18px; }
  .cmp .crow:nth-child(2) { border-top: 0; }
  .cmp [data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .cmp .crow .c-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .cmp .crow .c-name .pill { display: inline-block; margin-top: 0; }
  .cmp .crow .cname { font-size: 20px; }
}
.bench-h { margin-top: 44px; }

/* Complaints Tracker */
.ktable { min-width: 900px; font-family: var(--font-display); }
.krow { display: grid; grid-template-columns: 190px 120px 120px 150px minmax(0, 1fr) 110px; gap: 0 18px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; align-items: start; }
.krow.head { background: var(--surface); border-top: 0; padding-block: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.krow .cname { display: block; margin-bottom: 6px; }
.krow .pill.sample { display: block; width: max-content; margin-top: 4px; }
.krow small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.krow small b.bad { color: var(--warn-ink); }
.kn { font-weight: 800; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kdate { display: block; margin-bottom: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kgo { font-weight: 600; color: var(--accent-ink); }
.qbars { display: inline-flex; gap: 8px; align-items: flex-end; }
.qb { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qb small { margin: 0; font-size: 11px; }
.qbar { width: 18px; height: 44px; display: flex; flex-direction: column-reverse; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.qbar i { display: block; width: 100%; }
.qbar i.ok { background: var(--accent-line); }
.qbar i.bad { background: var(--warn-ink); }
@media (max-width: 760px) {
  .ktable { min-width: 0; }
  .krow.head { display: none; }
  .krow { grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 20px 18px; }
  .krow:nth-child(2) { border-top: 0; }
  .krow .k-name, .krow .k-go, .krow > span:nth-child(5) { grid-column: 1 / -1; }
  .krow [data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}
.tile .tchip { font-size: 16px; line-height: 1.4; margin-top: 8px; }
.kcases { margin: 18px 0 0; padding: 0; list-style: none; }
.kcases li { padding-block: 18px; border-top: 1px solid var(--line); }
.kcases li:first-child { border-top: 0; padding-top: 4px; }
.kc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--font-display); }
.kc-top .kdate { margin: 0; font-size: 13px; }
.kcases h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.35; }
.kamt { margin-left: 10px; font-weight: 600; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kcases p { margin-top: 6px; color: var(--ink-2); }
.kcases a { display: inline-block; margin-top: 6px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }

/* Wagering Tracker */
.wcards { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.wcard { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 24px; }
.wc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wc-top h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.015em; margin-right: 4px; }
.wc-top h3 a { color: var(--ink); text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.wc-banner { margin-top: 8px; font-family: var(--font-body); font-style: italic; color: var(--muted); }
.wc-grid { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px 22px; }
.wc-grid dt { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wc-grid dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.wc-grid dd b { color: var(--ink); font-weight: 800; font-size: 17px; }
.wc-grid dd small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.wc-grid .wproof { display: block; margin-top: 4px; font-size: 13px; }
.meter { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: 1px; }
.meter i { width: 14px; height: 8px; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); }
.meter i.on { background: var(--warn-ink); border-color: var(--warn-ink); }
.wbar { margin-top: 20px; height: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.wc-foot { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.wc-foot span { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wc-links { margin-top: 10px; font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.mbars { display: inline-flex; flex-direction: column; gap: 4px; }
.mcols { display: inline-flex; align-items: flex-end; gap: 2px; height: 40px; }
.mbar { width: 8px; height: 100%; display: flex; flex-direction: column-reverse; border-radius: 2px; background: var(--surface); overflow: hidden; }
.mbar i { display: block; width: 100%; }
.mbar i.ok { background: var(--accent-line); }
.mbar i.bad { background: var(--warn-ink); }
.mlab { display: flex; justify-content: space-between; }
.mlab small { margin: 0 !important; font-size: 11px !important; }
.krow small.bad { color: var(--warn-ink); font-weight: 700; }
.wc-prog { margin-top: 6px; font-family: var(--font-display); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bench-line { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 14px; color: var(--ink-2); }
.bench-line > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.bench-line b { padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--faint); font-weight: 600; }
.bench-line small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.prose .kcases { padding-left: 0; list-style: none; }
.prose .kcases li { margin: 0; padding-left: 0; }
.prose .kcases li::marker { content: none; }

/* Wagering Tracker table (shares the Complaints Tracker row styles) */
.wtable { min-width: 960px; }
.wrow { grid-template-columns: 180px 110px 120px 150px 130px minmax(0, 1fr) 100px; scroll-margin-top: 24px; }
.wrow .st { margin-top: 2px; }
.wrow .hw { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.wrow .meter { margin: 4px 0 6px; }
.wrow .w-note { grid-column: 2 / -1; margin-top: 12px; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.wrow .w-note i { color: var(--muted); margin-right: 4px; }
.wbar.wbar-s { display: block; margin-top: 8px; height: 6px; max-width: 110px; padding: 0; }
.wrow .mono { white-space: nowrap; font-size: 12px; }
@media (max-width: 760px) {
  .wtable { min-width: 0; }
  .wrow { grid-template-columns: 1fr 1fr; }
  .krow.wrow > span:nth-child(5) { grid-column: auto; }
  .wrow .w-note { grid-column: 1 / -1; margin-top: 0; order: 1; }
  .wrow .k-go { order: 2; }
}

/* Coin category pages (one public wallet per coin) */
.legno { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cmp.catt .crow { grid-template-columns: 150px 170px 175px minmax(0, 1fr); }
.catt .chips { margin-bottom: 6px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.catt small, .crow .c-name + small { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
small.warn, .warn { color: var(--warn-ink); }
.catt .cfig small { font-size: 13px; }
.entry-take { margin-top: 14px; font-family: var(--font-display); font-size: 17px; line-height: 1.45; color: var(--ink); }
.entry-take + .body { margin-top: 12px; }
.entry .body + .body { margin-top: 12px; }
.entry .spec dd .chips { justify-content: flex-end; }
.wallet-box dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wallet-box dt { font-family: var(--font-display); font-size: 12px; color: var(--muted); }
.wallet-box dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet-box dd small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.wallet-box .rail-go span { color: var(--muted); font-size: 12px; }

.chart { position: relative; margin: 26px 0 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 18px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .t { fill: var(--muted); font-family: var(--font-display); font-size: 12px; }
.chart .t.b { font-weight: 700; fill: var(--ink-2); }
.chart .t.note { font-size: 12px; fill: var(--ink-2); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .m { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart .m.warn { fill: var(--warn-ink); }
.chart .m.home { fill: var(--ink); }
.chart .hit { fill: transparent; cursor: pointer; outline: none; }
.chart .hit:focus-visible { stroke: var(--accent-ink); stroke-width: 2; }
.chart figcaption { margin-top: 10px; font-family: var(--font-display); font-size: 13px; line-height: 1.5; color: var(--muted); }
.ctip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-size: 12.5px; line-height: 1.45; white-space: pre-line; pointer-events: none; max-width: 240px; }

.trail { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tr-leg { position: relative; padding: 0 0 22px 46px; }
.tr-leg::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--accent-line); }
.tr-leg:last-child::before { display: none; }
.tr-leg.stuck::before { background: repeating-linear-gradient(to bottom, var(--warn-ink) 0 4px, transparent 4px 8px); }
.tr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tr-n { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.tr-leg.stuck .tr-n { background: var(--warn-soft); color: var(--warn-ink); }
.tr-head .cname { font-size: 18px; }
.tr-d { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.tr-topup { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); font-family: var(--font-display); font-size: 13.5px; }
.tr-steps { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tr-steps b { display: inline-block; min-width: 44px; margin-right: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tr-steps .mono { margin-left: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-steps em { margin-left: 6px; font-style: normal; color: var(--accent-ink); font-weight: 600; }
.tr-steps em::before { content: "→ "; }
.tr-steps li.bad { color: var(--warn-ink); }
.tr-steps .st { transform: scale(0.92); transform-origin: left center; }
.cat-rail .wallet-box { margin: 0 0 26px; padding: 16px; border: 1px solid var(--accent-line); border-top: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-soft); }
.cat-rail .wallet-box .rail-label { color: var(--accent-ink); }
.entry .scorebox .spec > div:first-child { border-top: 0; }
.chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
@media (max-width: 699px) { .chart-scroll svg { min-width: 640px; } .chart { padding: 14px 12px 12px; } }
@container (max-width: 699px) {
  .cmp.catt .crow { grid-template-columns: minmax(0, 1fr); }
  .cmp.catt .crow .legno { flex-basis: 100%; margin-bottom: 0; }
}
.coin-cards { margin-top: 20px; }
.coin-cards .eyebrow { margin-bottom: 10px; }
.coin-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-soft); color: var(--ink-2); text-decoration: none; font-family: var(--font-display); font-size: 14px; line-height: 1.5; }
.coin-card + .coin-card { margin-top: 10px; }
.coin-card .k { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.coin-card b { font-size: 19px; font-weight: 800; color: var(--ink); }
.coin-card .go { font-weight: 600; color: var(--accent-ink); }
.coin-card:hover { border-color: var(--accent); }

/* Review timeline rail (numbered, one date per day, like aigirlfriend.coach) */
.rail.tl ol::before { display: none; }
.rail.tl a { gap: 10px; min-height: 30px; font-size: 14px; color: var(--ink-2); }
.rail.tl .n { flex: none; width: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail.tl li.day a { margin-top: 8px; font-weight: 700; color: var(--ink); }
.rail.tl li.sub:not(.day) a { font-size: 13.5px; }
.rail.tl a.on { color: var(--accent-ink); font-weight: 700; }
.rail.tl a.on .n { color: var(--accent-ink); }
.rail.tl li.mob { display: none; }
@media (min-width: 900px) {
  .rail.tl { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 899px) {
  .rail.tl li.mob { display: list-item; }
  .rail.tl .n { display: none; }
}

/* Diary: one date divider per day, entries show only their time */
.dday { margin-top: 44px; display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); scroll-margin-top: 20px; }
.dday::after { content: ""; flex: 1; height: 1px; background: var(--accent-line); }
.dday + .dentry { margin-top: 14px; padding-top: 0; border-top: 0; }
.dentry .dstamp { font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

/* Eight checks: stages, avoid, limits */
.pill.avoid { background: var(--bad-soft); color: var(--bad-ink); font-weight: 700; }
.crow .pill.avoid { display: block; width: max-content; margin-top: 6px; }
.cmp .crow .c-name .pill.avoid { display: inline-block; margin-top: 0; }
.entry-head .pill.avoid { align-self: center; }
.avoid-line { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-display); font-size: 14px; color: var(--bad-ink); }
.avoid-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bad-soft); color: var(--bad-ink); font-family: var(--font-display); font-size: 15px; line-height: 1.5; }
.avoid-box .pill { margin-right: 8px; background: var(--bad-ink); color: var(--bg); }
.avoid-box strong { color: inherit; }
.mini-stages { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.stage-k { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mini-stage .minis { margin-top: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.stages { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.stage .stage-k { padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--accent-ink); }
.stage .hsteps { margin-top: 10px; }
.dealbreakers { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--bad-soft); color: var(--bad-ink); }
.dealbreakers h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: inherit; }
.dealbreakers ul { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: 15px; line-height: 1.5; }
.cant-box { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cant-box h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.cant-box p { margin-top: 8px; color: var(--ink-2); }
.rv-sec.cant ul { margin: 14px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.rv-sec.cant strong { color: var(--ink); }
.ref th small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.ref td .st { white-space: nowrap; }
.mtable .mc { font-size: 12.5px; }
@media (max-width: 600px) {
  .mini-stage .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mini-stage .mini { padding: 10px 11px; }
  .mini-stage .mini-k { font-size: 10.5px; }
}

/* Review style comparison (preview only) */
.vtabs { position: sticky; top: 0; z-index: 4; margin-top: 22px; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.vtabs [role="tab"] { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 15px; font-weight: 600; cursor: pointer; }
.vtabs [role="tab"] b { margin-right: 6px; color: var(--muted); }
.vtabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vtabs [role="tab"][aria-selected="true"] b { color: var(--accent-line); }
.vpanels { padding-bottom: 40px; }
.vpanel { margin: 26px 0 0; max-width: 46rem; }
.vpanel.audit { max-width: 52rem; }
.vpanel > p { margin-top: 14px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.style-note { margin: 0 0 22px !important; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--faint); font-family: var(--font-display); font-size: 14px !important; line-height: 1.5 !important; color: var(--muted) !important; }
.style-note b { color: var(--ink); }
.v-h2 { margin-top: 40px; font-weight: 800; font-size: 28px; letter-spacing: -0.015em; }
.bubble.theirs { margin-left: 0; background: var(--surface); border: 1px solid var(--line); }
.bubble.theirs p { color: var(--ink-2); }
.bubble .stamp { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.audit-head { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.audit-res { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-display); }
.audit-res b { font-size: 20px; font-weight: 800; color: var(--ink); }
.audit-res span:last-child { flex-basis: 100%; font-size: 15px; color: var(--bad-ink); }
.audit-head .spec { margin-top: 12px; }
.astep { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.astep-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.astep-h .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.astep-h h3 { font-weight: 800; font-size: 23px; letter-spacing: -0.015em; }
.astep-when { margin-top: 6px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.astep h4 { margin-top: 16px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.astep ol { margin: 8px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 5px; font-family: var(--font-display); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.astep .ref, .astep .spec.boxed { margin-top: 8px; }
.astep > p { margin-top: 12px; color: var(--ink-2); }
.astep-grade { margin-top: 14px !important; padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--surface); font-family: var(--font-display); font-size: 15px; }
.audit .ref td small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.audit > .ref { margin-top: 14px; }

.bigbox { margin: 26px 0 30px; padding: 20px 22px; border: 2px solid var(--ink); border-radius: 20px; background: var(--bg); }
.bigbox-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bigbox-top h2 { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.bigbox-why { margin-top: 6px; font-family: var(--font-display); font-size: 15px; color: var(--bad-ink); }
.bigbox-why b { color: var(--ink); }
.bigbox-checks { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bigbox-checks li { display: grid; grid-template-columns: 150px 96px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 14px; line-height: 1.45; }
.bigbox-checks .k { font-weight: 700; color: var(--ink); }
.bigbox-checks .st { justify-self: start; }
.bigbox-checks .v { color: var(--ink-2); }
.bigbox-nums { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bigbox-nums div { padding: 10px 12px; border-radius: 12px; background: var(--surface); font-family: var(--font-display); }
.bigbox-nums b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bigbox-nums span { font-size: 12px; color: var(--muted); }
.bigbox-rx { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.bigbox-limits, .bigbox-next { margin-top: 10px; font-family: var(--font-display); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bigbox-limits b, .bigbox-next b { color: var(--ink); }
.j-date { margin-top: 30px !important; font-family: var(--font-display); font-size: 13px !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink) !important; }
.j-end { margin-top: 26px !important; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .bigbox { padding: 16px; }
  .bigbox-checks li { grid-template-columns: minmax(0, 1fr) auto; }
  .bigbox-checks .v { grid-column: 1 / -1; }
  .bigbox-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vtabs [role="tab"] { padding: 8px 12px; font-size: 14px; }
}
.vpanel > p.lead-big { margin-top: 0; font-size: 34px; line-height: 1.2; color: var(--ink); }

/* Review page tabs: Review | Audit report (underline style) */
.rtabs { position: sticky; top: 0; z-index: 4; margin-top: 22px; display: flex; gap: 30px; background: var(--bg); border-bottom: 1px solid var(--line); }
.rtabs [role="tab"] { position: relative; min-height: 52px; padding: 10px 0 12px; border: 0; background: none; color: var(--muted); font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer; }
.rtabs [role="tab"]:hover { color: var(--ink); }
.rtabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.rtabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.rtabs [role="tab"]:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.rtab-panel { padding-top: 24px; }
.rtab-panel.audit { max-width: 52rem; }
.audit-intro { margin-bottom: 16px; font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.audit-why { flex-basis: 100%; font-size: 15px; color: var(--bad-ink); }
.astage { margin-top: 34px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--accent-ink); }
.astage + .astep { margin-top: 14px; padding-top: 6px; border-top: 0; }
.astep { scroll-margin-top: 70px; }
.rtab-panel .rv-sec { scroll-margin-top: 70px; }
.dentry, .dday { scroll-margin-top: 70px; }
.to-audit { margin-top: 30px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; color: var(--ink-2); }
.to-audit a { font-weight: 700; }
.rail.tl .lbl { display: flex; flex-direction: column; }
.rail.tl .lbl small { font-size: 11.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail.tl a.on .lbl small { color: var(--accent-ink); }
@media (max-width: 600px) { .rtabs { gap: 22px; } .rtabs [role="tab"] { font-size: 17px; } }
.rail.tl .lbl { padding-block: 3px; line-height: 1.3; }

/* Ledger tab */
.rtab-panel.ledger { max-width: 56rem; }
.ltiles { margin-top: 0; }
.ltiles .tile.res b { color: var(--ink); }
.ltiles .tile.res.pos b { color: var(--accent-ink); }
.ltiles .tile.res.neg b { color: var(--bad-ink); }
.wcards2 { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.wcard2 { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-family: var(--font-display); }
.wcard2 .k { font-weight: 800; font-size: 15px; color: var(--ink); }
.wcard2 .chain { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.wcard2 .flow { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wcard2 .flow.usd { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.wcard2 .addr { margin-top: 8px; font-size: 12.5px; }
.lfilters { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.lfilters button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 600; cursor: pointer; }
.lfilters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lrun { margin-top: 26px; scroll-margin-top: 70px; }
.lrun-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lrun-h h3 { font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.lnet { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; color: var(--ink); }
.lnet.pos { color: var(--accent-ink); }
.lnet.neg { color: var(--bad-ink); }
.lrun-sub { margin-top: 4px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.ltab { margin-top: 10px; }
.ltab table { min-width: 720px; font-size: 14px; }
.ltab td { vertical-align: top; }
.ltab td.w { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.ltab td.num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.ltab td.bal { color: var(--ink); font-weight: 600; }
.ltab td small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.ltab th:nth-child(3), .ltab th:nth-child(4), .ltab th:nth-child(5) { text-align: right; }
.ltab .mono { font-size: 12px; white-space: nowrap; }
.lt { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.lt.in { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.lt.bonus { background: var(--accent-soft); color: var(--accent-ink); }
.lt.won { background: var(--accent-soft); color: var(--accent-ink); }
.lt.lost { background: var(--warn-soft); color: var(--warn-ink); }
.lt.req { border: 1px dashed var(--faint); color: var(--ink-2); }
.lt.bad { background: var(--bad-soft); color: var(--bad-ink); }
.lt.out { display: inline-block; margin-top: 0; background: var(--accent); color: var(--on-accent); }
.lt.note { color: var(--muted); border: 1px solid var(--line); }
tr.ev-won td.num:nth-child(3), tr.ev-won td.num:nth-child(4) { color: var(--accent-ink); }
tr.ev-lost td.num:nth-child(3), tr.ev-lost td.num:nth-child(4), tr.ev-bad td.num { color: var(--bad-ink); }
.pill.plain { border: 1px solid var(--line); color: var(--ink-2); }
.ltab th:nth-child(1) { width: 118px; }
.ltab th:nth-child(2) { width: 36%; }
.lt { white-space: nowrap; }
.ltab td small { max-width: 30ch; }
@media (max-width: 640px) {
  .ltab { overflow: visible; }
  .ltab table { min-width: 0; }
  .ltab thead { display: none; }
  .ltab tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .ltab tbody tr:first-child { border-top: 0; }
  .ltab tbody td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal; }
  .ltab tbody td.w, .ltab tbody td.what, .ltab tbody td.proof { grid-column: 1 / -1; }
  .ltab tbody td.w { font-size: 12.5px; }
  .ltab tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .ltab tbody td:empty { display: none; }
  .ltab td small { max-width: none; }
}

/* Homepage sidebar: my ledger, last 30 days */
.home-rail .rail-box.ledger-box { margin-top: 0; padding-top: 0; border-top: 0; }
.ledger-box .lf-tot .pill.sample { font-size: 10px; padding: 1px 6px; }
@media (min-width: 900px) {
  .home .ledger-rail { display: flex; flex-direction: column; overflow: hidden; }
  .ledger-box { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ledger-box .lfeed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
  .ledger-box .rail-go { flex: none; padding-top: 6px; }
}
.lf-tot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-family: var(--font-display); font-size: 12.5px; color: var(--muted); }
.lf-tot b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.lfeed { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rail .lfeed::before { display: none; }
.lfeed li { position: relative; padding: 6px 0 6px 10px; border-top: 1px solid var(--line); font-family: var(--font-display); }
.lfeed li:first-child { border-top: 0; }
.lfeed li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.lfeed li.lf-won::before, .lfeed li.lf-bonus::before { background: var(--accent-line); }
.lfeed li.lf-out::before { background: var(--accent); }
.lfeed li.lf-lost::before { background: var(--warn-ink); }
.lfeed li.lf-bad::before { background: var(--bad-ink); }
.lfeed li.lf-wait::before { background: repeating-linear-gradient(to bottom, var(--warn-ink) 0 3px, transparent 3px 6px); }
.lfeed time { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lfeed p { margin: 1px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.lfeed li.lf-won p, .lfeed li.lf-out p { color: var(--ink); }
.lfeed li.lf-bad p { color: var(--bad-ink); }
.rail .lfeed a { display: inline; min-height: 0; font-size: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rail .lfeed a:hover { color: var(--accent-ink); }
.lf-empty { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.ledger-m { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.ledger-m summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 0; cursor: pointer; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); list-style: none; }
.ledger-m summary::-webkit-details-marker { display: none; }
.ledger-m summary .lf-tot { margin: 0; font-weight: 500; }
.ledger-m .lfeed { padding-bottom: 6px; }
.ledger-m .lfeed a { color: var(--ink); font-weight: 600; }
.ledger-m .rail-go { padding-bottom: 12px; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
@media (min-width: 900px) { .ledger-m { display: none; } }

/* Ledger page: one ledger per coin, then the full history */
.lp-tiles { margin-top: 28px; }
.lcoins { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 24px; }
.lcoin { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); font-family: var(--font-display); scroll-margin-top: 24px; }
.lcoin-h { display: flex; align-items: center; gap: 12px; }
.lcoin-h .tick { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; color: var(--ink); }
.lcoin-h div { min-width: 0; flex: 1; }
.lcoin-h h3 { font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.lcoin-h h3 small { font-weight: 600; font-size: 13px; color: var(--muted); }
.lcoin-h p { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.lcoin-h .pill.sample { align-self: flex-start; font-size: 10px; padding: 2px 7px; }
.lcoin-res { margin-top: 16px; }
.lcoin-res b { display: block; font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.lcoin-res.pos b { color: var(--accent-ink); }
.lcoin-res.neg b { color: var(--bad-ink); }
.lcoin-res span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.spark { display: block; width: 100%; height: 46px; margin-top: 10px; overflow: visible; }
.spark .z { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark polyline { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--muted); }
.spark.pos polyline { stroke: var(--accent); } .spark.pos circle { fill: var(--accent); }
.spark.neg polyline { stroke: var(--bad-ink); } .spark.neg circle { fill: var(--bad-ink); }
.lcoin-kv { margin: 12px 0 0; }
.lcoin-kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.lcoin-kv dt { color: var(--muted); }
.lcoin-kv dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lcoin-kv dd small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.lcoin-w { margin: 6px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.lcoin-w li + li { margin-top: 4px; }
.lcoin-w b { font-weight: 600; color: var(--ink); }
.lcoin-w .dim { font-style: normal; }
.lcoin-w .mono { font-size: 12px; }
.lcoin-go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; }
.lcoin-go a { text-decoration: none; }
.lcoin-go a:hover { text-decoration: underline; }

.lhist-box { margin-top: 20px; }
.lh-bar { position: sticky; top: 0; z-index: 3; padding: 10px 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.lh-bar .lfilters { margin-top: 0; }
.lh-bar .lfilters button span { margin-left: 3px; font-weight: 500; opacity: 0.65; font-variant-numeric: tabular-nums; }
.lh-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 8px; }
.lf-k button { min-height: 34px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.lf-k button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.lh-sel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.lh-sel select { min-height: 34px; padding: 4px 30px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.lh-count { margin-top: 12px; font-family: var(--font-display); font-size: 13.5px; color: var(--muted); }
.lh-count b { color: var(--ink); }
.lh-count .pill.sample { font-size: 10px; padding: 2px 7px; vertical-align: 1px; }
.lhist { margin-top: 10px; }
.lhist table { min-width: 760px; font-size: 14px; }
.lhist thead th:nth-child(1) { width: 64px; }
.lhist thead th:nth-child(2) { width: 22%; }
.lhist thead th:nth-child(4) { text-align: right; width: 150px; }
.lhist thead th:nth-child(5) { width: 150px; }
.lhist td { padding-block: 10px; }
.lhist td.t { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lhist td.cas a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lhist td small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.lhist td.num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lhist td.num small { font-weight: 500; }
.lhist tr.ev-won td.num, .lhist tr.ev-out td.num { color: var(--accent-ink); }
.lhist tr.ev-lost td.num, .lhist tr.ev-bad td.num { color: var(--bad-ink); }
.lhist tr.ev-req td.num, .lhist tr.ev-wait td.num { color: var(--muted); font-weight: 600; }
.lhist .mono { font-size: 12px; white-space: nowrap; }
.lhist .offc { font-size: 12.5px; color: var(--muted); }
.lhist tr.lday th { padding: 9px 16px; background: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.lhist tbody:first-of-type tr.lday th { border-top: 1px solid var(--line); }
.lh-empty { margin-top: 12px; font-family: var(--font-display); font-size: 14px; color: var(--muted); }
.lt.req { white-space: nowrap; }
.lt.wait { background: var(--warn-soft); color: var(--warn-ink); white-space: normal; }
.lp-how ul { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) {
  .lh-bar { position: static; }
  .lh-bar .lfilters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .lh-bar .lfilters::-webkit-scrollbar { display: none; }
  .lh-bar .lfilters button { flex: none; min-height: 36px; padding: 4px 13px; }
  .lh-row2 { display: block; }
  .lh-sel { margin-top: 8px; }
  .lhist { overflow: visible; border-radius: 14px; }
  .lhist table { min-width: 0; }
  .lhist thead { display: none; }
  .lhist tbody, .lhist tr.lday { display: block; }
  .lhist tr.lday th { display: block; }
  .lhist tbody tr:not(.lday) { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .lhist tbody td { display: block; padding: 0 !important; border: 0 !important; }
  .lhist td.t { grid-column: 1 / -1; font-size: 12px; }
  .lhist td.cas { grid-column: 1; grid-row: 2; }
  .lhist td.num { grid-column: 2; grid-row: 2; text-align: right; }
  .lhist td.what { grid-column: 1 / -1; grid-row: 3; }
  .lhist td.proof { grid-column: 1 / -1; }
  .lhist td.proof:empty, .lhist td.proof:has(> .offc:not(.wait)) { display: none; }
  .lhist tr.lday th { width: auto; padding: 8px 14px; }
  .lhist td[data-label]::before { content: none; }
  .lhist tr[hidden], .lhist tbody[hidden] { display: none !important; }
}
@media (max-width: 400px) {
  .lp-tiles { gap: 8px; }
  .lp-tiles .tile { padding: 12px 12px; }
  .lp-tiles .tile b { font-size: 20px; }
}


/* Header: logo, four links, Testing now */
.site-header .nav { margin-left: auto; }
.nav a[aria-current="true"] { color: var(--accent-ink); font-weight: 700; }
a.live { font-family: var(--font-display); text-decoration: none; }
a.live:hover { background: var(--mark); color: var(--accent-ink); }
@media (max-width: 699px) {
  .site-header .wrap { gap: 0 12px; padding-block: 8px 0; }
  .site-header .brand { order: 1; }
  .site-header .live { order: 2; margin-left: auto; }
  .site-header .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 0 18px; }
}
@media (max-width: 380px) { .site-header .nav { gap: 0 14px; font-size: 14px; } }

/* Footer: brand, three short link columns, then the small print */
.site-footer .fgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
.site-footer .fbrand p { margin-top: 10px; max-width: 22rem; font-family: var(--font-display); font-size: 14px; line-height: 1.5; color: var(--muted); }
.site-footer .fhead { margin: 10px 0 4px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fcol ul { margin: 0; padding: 0; list-style: none; }
.fcol a { display: inline-flex; align-items: center; min-height: 36px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.fcol a:hover { color: var(--accent-ink); text-decoration: underline; }
.fbottom { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.site-footer .flegal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; max-width: none; font-family: var(--font-display); font-size: 13px; }
.flegal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); text-decoration: none; }
.flegal a:hover { color: var(--accent-ink); text-decoration: underline; }
.flegal span { margin-left: auto; color: var(--muted); }
@media (max-width: 860px) {
  .site-footer .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .fbrand { grid-column: 1 / -1; }
}
