:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #16171d;
  --ink-soft: #61636f;
  --ink-faint: #93959f;
  --line: #e3e4ea;
  --line-soft: #ececf0;
  --zebra: #f6f6f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 44px 28px 64px; }
header { margin-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-logo { display: block; width: 26px; height: 26px; object-fit: cover; border-radius: 4px; }
.brand-name { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }
.overline { margin: 0 0 8px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.dek { max-width: 62ch; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 40px; }
.stats .stat:first-child { padding-right: 32px; }
.stats .stat + .stat { padding-left: 32px; }
.stat-label { margin: 0 0 6px; color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-value { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 21px; font-variant-numeric: tabular-nums; font-weight: 600; }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.column { min-width: 0; }
.ledger .column:first-child { padding-right: 32px; }
.ledger .column + .column { padding-left: 32px; border-left: 1px solid var(--line); }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.col-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.tally { color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.table-head, .row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 78px 56px; gap: 10px; }
.table-head { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.table-head span:last-child { text-align: right; }
.rows { margin: 0; padding: 0; list-style: none; }
.row { align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row:nth-child(even) { background: var(--zebra); }
.rank { color: var(--ink-faint); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
.name, .agency { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name { display: block; font-size: 13px; font-weight: 500; }
.agency { color: var(--ink-soft); font-size: 12px; }
.value { font-family: "IBM Plex Mono", monospace; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }

@media (max-width: 760px) {
  .ledger, .stats { grid-template-columns: 1fr; }
  .ledger .column:first-child { padding-right: 0; }
  .ledger .column + .column { margin-top: 24px; padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .stats .stat:first-child { padding-right: 0; padding-bottom: 16px; }
  .stats .stat + .stat { padding-top: 0; padding-left: 0; }
}

@media (max-width: 640px) { .wrap { padding: 32px 18px 48px; } }
@media (max-width: 420px) { .table-head, .row { grid-template-columns: 18px minmax(0, 1fr) 68px 52px; gap: 7px; } .agency { font-size: 11px; } }
