/* /stats and /admin/stats, on top of legal.css (the same cream and blue). */
:root { --live: #1a7f37; }
main.wide { max-width: 980px; }
.stats-page footer { max-width: 980px; }
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.hero { padding: 6px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.hero-num { display: flex; align-items: center; gap: 16px; font-family: 'Clash Display', 'Satoshi', system-ui, sans-serif; font-weight: 600; font-size: clamp(64px, 14vw, 128px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.live { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(26,127,55,.45); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26,127,55,.45); } 100% { box-shadow: 0 0 0 16px rgba(26,127,55,0); } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }
.hero-label { margin: 8px 0 0; font-size: 20px; font-weight: 700; }
.hero-place { margin: 12px 0 0; font-size: 16px; }
.hero-place span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group { padding: 4px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.group h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.group h2 .muted { text-transform: none; letter-spacing: 0; font-weight: 600; white-space: pre; }
.bigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.big { display: grid; gap: 4px; }
.big b { font-family: 'Clash Display', 'Satoshi', system-ui, sans-serif; font-weight: 600; font-size: clamp(34px, 6.4vw, 60px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big span { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.live.small { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: 1px; animation-duration: 2s; }
@media (max-width: 560px) { .bigs { grid-template-columns: 1fr 1fr; } .big:last-child { grid-column: 1 / -1; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.tile { background: var(--paper); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.tile b { font-family: 'Clash Display', 'Satoshi', system-ui, sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.tile em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.panel { margin: 0 0 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel h2 { margin: 0 0 10px; font-size: 18px; }
.chart { position: relative; }
.chart-wrap { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .ax { font-size: 11.5px; fill: var(--muted); font-family: inherit; }
.chart .hit { cursor: crosshair; }
.chart .tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; }
.chart .tip span { color: #c9c9c9; }
.foot-note { font-size: 14px; color: var(--muted); margin: 26px 0 4px; }
.updated { font-size: 12.5px; margin: 0; }
.stats-page .group:last-of-type { border-bottom: 0; margin-bottom: 4px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } .tile b { font-size: 26px; } .top nav { gap: 12px; font-size: 14px; } }

/* The admin dashboard. */
.ranges { display: inline-flex; gap: 4px; background: var(--paper); border-radius: 10px; padding: 3px; }
.ranges button { font: 700 13px inherit; font-family: inherit; border: 0; background: none; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.ranges button[aria-pressed="true"] { background: var(--card); color: var(--brand); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 24px; }
.list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); position: relative; margin: 0; }
.list li .bar { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.list li b { font-variant-numeric: tabular-nums; }
.list li .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; }
.funnel { display: grid; gap: 6px; font-size: 14px; }
.funnel .row { display: grid; grid-template-columns: minmax(130px, 210px) 1fr 74px; gap: 10px; align-items: center; }
.funnel .track { background: var(--paper); border-radius: 6px; height: 18px; overflow: hidden; }
.funnel .fill { background: var(--brand); height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.funnel .num { text-align: right; font-variant-numeric: tabular-nums; }
.funnel .num small { color: var(--muted); }
table.metrics { display: table; font-size: 14.5px; }
table.metrics td, table.metrics th { padding: 7px 8px; }
table.metrics td:not(:first-child), table.metrics th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.gate { padding: 30px 0; }
