/* Leaderboard section. Classes start with lb-. */
.lb-table td.lb-rank, .lb-table th.lb-rank-h { width: 48px; padding-right: 0; color: var(--fg-3); font: 500 13px/1.5 var(--font-mono); }
.lb-table td.lb-name { color: var(--fg-1); font-weight: 500; }
.lb-table tr.is-top td.lb-name { font-weight: 600; }
.lb-table td.lb-name .tag { margin-left: 10px; vertical-align: 1px; }
.lb-table td.lb-harness-cell { color: var(--fg-3); font: 400 13px/1.4 var(--font-mono); }
.lb-sub { display: block; margin-top: 2px; font: 400 12px/1.4 var(--font-mono); color: var(--fg-3); }
.lb-runs { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-3); }
.lb-table td.lb-pass { min-width: 150px; }
.lb-passcell { display: flex; align-items: center; gap: 12px; }
.lb-val { flex: none; width: 3.2em; color: var(--fg-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-track { flex: 1; min-width: 60px; height: 8px; border-radius: var(--r-pill); background: var(--c-ink-200); overflow: hidden; }
.lb-fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.lb-table td.lb-cost { color: var(--fg-2); }

/* On a phone: no harness column, headings wrap, the bar sits under the rate. */
@media (max-width: 640px) {
  .lb-harness-col, .lb-table td.lb-harness-cell { display: none; }
  .lb-table th, .lb-table td { padding-left: 8px; padding-right: 8px; }
  .lb-table th, .lb-table th.num { white-space: normal; letter-spacing: 0; }
  .lb-table th.lb-wrap-h { width: 1%; }
  .lb-table th.lb-pass-h { width: 84px; }
  .lb-runs { display: block; margin: 2px 0 0; }
  .lb-table td.lb-rank, .lb-table th.lb-rank-h { width: 28px; padding-left: 12px; }
  .lb-table td.lb-name .tag { display: block; width: max-content; margin: 4px 0 0; }
  .lb-table td.lb-pass { min-width: 0; }
  .lb-passcell { flex-direction: column; align-items: stretch; gap: 6px; }
  .lb-val { width: auto; }
  .lb-track { flex: none; min-width: 0; width: 100%; }
  .lb-table td:last-child, .lb-table th:last-child { padding-right: 12px; }
}
.lb-val--count { white-space: nowrap; min-width: 0; width: auto; }
