/* fpv-race-pits event hub (batch 4): Overview · Qualifying · Races · Brackets · Results · Pilots. Club tokens only. */
.hub-hero { padding-top: 22px; }
.hub-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-top: 10px; }
.hub-eyebrow { color: var(--brand); font-weight: 600; font-size: 13px; }
.hub-title { margin: 4px 0 10px; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.02; text-wrap: balance; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-stat { min-width: 76px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: color-mix(in oklab, var(--surface) 70%, transparent); text-align: right; }
.hub-stat b { display: block; font-size: 22px; line-height: 1.1; font-weight: 600; }
.hub-stat span { font-size: 12px; color: var(--text-2); }
.hub-tabs { display: flex; gap: 4px; margin-top: 22px; border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; color: var(--text-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hub-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brand); }
.hub-tabs a:hover { color: var(--text); }
.hub-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; padding: 12px 18px; border-radius: 16px; background: var(--glass);
  border: 1px solid color-mix(in oklab, var(--live) 35%, transparent); font-size: 14px; }
.hub-strip .seg { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.hub-strip .seg.next { padding-left: 16px; border-left: 1px solid var(--line-strong); color: var(--text-2); }
.hub-strip .seg.end { margin-left: auto; gap: 10px; }
.hub-strip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: hub-blink 1.2s ease-in-out infinite; }
.hub-strip .live-t { color: var(--live); }
.hub-strip .next-t { color: var(--leader); }
.hub-strip a { color: var(--text); text-decoration: none; font-weight: 600; }
.hub-strip.is-offline { border-color: color-mix(in oklab, var(--leader) 45%, transparent); }
.hub-late { padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--leader) 18%, var(--surface)); color: var(--leader); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hub-live-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--live); color: #111114; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 16px color-mix(in oklab, var(--live) 35%, transparent); }
.hub-live-btn:hover { color: #111114; }
.hub-live-btn.big { min-height: 48px; padding: 0 22px; font-size: 15px; }
.hub-body { padding-top: 22px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.hub-main, .hub-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hub-card { padding: 18px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-2); min-width: 0; }
.hub-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hub-h { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: -0.02em; font-size: 22px; }
.hub-h2 { margin: 32px 0 14px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.hub-more { color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }
.hub-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.hub-chip .ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hub-chip.live { background: var(--live); color: #111114; font-weight: 800; }
.hub-chip.live.sm { padding: 1px 7px; font-size: 10px; }
.hub-chip.next, .hub-chip.deck { background: color-mix(in oklab, var(--leader) 18%, var(--surface)); color: var(--leader); font-weight: 700; }
.hub-chip.cut { background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700; }

/* racing now */
.hub-racing { padding: 16px; border-radius: 18px; border: 1.5px solid var(--live); box-shadow: 0 0 0 4px color-mix(in oklab, var(--live) 10%, transparent), 0 0 34px color-mix(in oklab, var(--live) 18%, transparent);
  background: color-mix(in oklab, var(--surface) 70%, transparent); }
.hub-racing .top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.hub-racing .top a { color: var(--text); text-decoration: none; }
.hub-racing .top .lap { margin-left: auto; color: var(--live); font-size: 13px; }
.hub-racing .lb-livebadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--live); color: #111114; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.hub-racing .lb-livebadge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: hub-blink 1.2s ease-in-out infinite; }
.hub-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hub-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 14px; border-radius: 12px; background: color-mix(in oklab, var(--text) 4%, transparent); }
.hub-row::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--c, var(--line-strong)); }
.hub-row .nm { font-weight: 600; color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.hub-row .lb-av { --s: 30px; }
.hub-row .chips { margin-left: auto; display: flex; gap: 4px; flex: none; }
.lapchip { font-family: var(--font-mono); font-size: 11px; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); border-bottom: 2px solid transparent; }
.lapchip.best { color: var(--text); border-bottom-color: var(--brand); }
.lapchip.pb { color: var(--fastest); border-bottom-color: var(--fastest); background: color-mix(in oklab, var(--fastest) 12%, var(--surface-2)); }
.lapchip.todo { opacity: .45; border: 1px dashed var(--line-strong); background: transparent; }
.lapchip.pop { animation: hub-chip-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; border-bottom-color: var(--brand); }
.hub-row .gap { width: 52px; text-align: right; font-size: 12px; color: color-mix(in oklab, var(--text) 80%, var(--text-2)); flex: none; }
.hub-racing .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.hub-racing .foot .fl { margin-left: auto; }

/* up next and run order */
.hub-next { display: flex; flex-direction: column; gap: 8px; }
.hub-nextrow { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 14px; background: color-mix(in oklab, var(--text) 3%, transparent); color: var(--text); text-decoration: none; }
.hub-nextrow.first { background: color-mix(in oklab, var(--leader) 8%, var(--surface)); }
.hub-nextrow .t { color: var(--text-2); font-size: 13px; white-space: nowrap; min-width: 52px; }
.hub-nextrow .nm { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hub-nextrow .nm span { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avs { display: flex; flex: none; }
.avs .lb-av { --s: 28px; margin-left: -6px; box-shadow: 0 0 0 2px var(--c, var(--brand)), 0 0 0 4px var(--surface); }
.hub-run { list-style: none; margin: 0; padding: 0; }
.hub-run li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.hub-run li:last-child { border-bottom: 0; }
.hub-run .t { color: var(--text-2); font-size: 13px; min-width: 52px; white-space: nowrap; }
.hub-run .dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.hub-run .is-done .dot { background: var(--ok); border-color: var(--ok); }
.hub-run .is-live .dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 8px var(--live); }
.hub-run .is-next .dot { background: var(--leader); border-color: var(--leader); }
.hub-run a { color: var(--text-2); text-decoration: none; }
.hub-run .is-live a { color: var(--text); font-weight: 700; }
.hub-run .note { color: var(--text-2); font-size: 13px; }
.hub-run .hub-chip { margin-left: auto; }

/* qualifying */
.hub-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.hub-pills button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font: 600 14px var(--font-body); color: var(--text-2);
  background: color-mix(in oklab, var(--text) 3%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hub-pills button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--brand); background: color-mix(in oklab, var(--text) 7%, transparent); }
.hub-pills .dot, .hub-entries .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); display: inline-block; }
.hub-pills .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.hub-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); }
.hub-legend .sq { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.hub-legend .sq.fl { background: var(--leader); } .hub-legend .sq.pb { background: var(--fastest); }
.up { color: var(--ok); } .down { color: var(--danger); }
.hub-qhead, .hub-qrow { display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) 76px 92px 46px 112px; align-items: center; gap: 8px; }
.hub-qhead { font-size: 11px; color: var(--text-2); padding: 0 10px 6px; }
.hub-qhead .r, .hub-qrow .r { text-align: right; }
.hub-q, .hub-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hub-qrow { position: relative; min-height: 44px; padding: 0 10px; border-radius: 12px; background: color-mix(in oklab, var(--text) 3%, transparent); font-size: 14px; }
.hub-qrow.is-live { background: color-mix(in oklab, var(--ok) 10%, transparent); }
.hub-qrow.below { opacity: .78; }
.hub-qrow .hub-rk { display: flex; justify-content: center; color: var(--text-2); }
.hub-qrow .mv { font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.hub-qrow .mv.up { color: var(--ok); } .hub-qrow .mv.down { color: var(--danger); }
.hub-qrow .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hub-qrow .who a { color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-qrow .lb-av { --s: 28px; }
.hub-qrow .fl { color: var(--leader); }
.hub-qrow .b3 { font-weight: 600; color: var(--text); }
.hub-qrow .qs { display: flex; gap: 3px; }
.hub-qrow .qs i { font-style: normal; font-family: var(--font-mono); font-size: 10px; padding: 2px 4px; border-radius: 4px; color: var(--text-3); border: 1px dashed var(--line-strong); }
.hub-qrow .qs i.done { color: var(--ok); border: 0; background: color-mix(in oklab, var(--ok) 14%, transparent); }
.hub-qrow .qs i.live { color: var(--live); border-color: var(--live); }
.hub-mini .hub-qrow { grid-template-columns: 30px 26px minmax(0, 1fr) 64px; }
.hub-cut { display: flex; align-items: center; gap: 10px; color: var(--brand); font-size: 11px; font-weight: 700; margin: 6px 0; list-style: none; }
.hub-cut::before, .hub-cut::after { content: ""; flex: 1; border-top: 1.5px dashed color-mix(in oklab, var(--brand) 70%, transparent); }
.hub-cut.glow { animation: hub-glow 1.6s ease-out both; }
.hub-qrow.glow { animation: hub-rowglow 1.6s ease-out both; }
.hub-rounds { display: flex; flex-direction: column; gap: 22px; }
.hub-round h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1rem; }

/* races */
.hub-race { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 8px; }
.hub-race.is-live { border-color: color-mix(in oklab, var(--live) 50%, transparent); }
.hub-race.is-next { border-color: color-mix(in oklab, var(--leader) 45%, transparent); }
.hub-race summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; cursor: pointer; flex-wrap: wrap; }
.hub-race summary::-webkit-details-marker { display: none; }
.hub-race .chev { color: var(--text-2); transition: transform .2s; font-size: 18px; width: 12px; }
.hub-race[open] .chev { transform: rotate(90deg); }
.hub-race .ttl { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hub-race .ttl .t { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.hub-race .names { color: var(--text-2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 140px; }
.hub-race .end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hub-race .body { padding: 0 14px 14px; }
.hub-watch { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--text);
  background: color-mix(in oklab, var(--text) 6%, transparent); border: 1px solid color-mix(in oklab, var(--text) 10%, transparent); }
.hub-watch.pending { color: var(--text-2); border-style: dashed; background: transparent; font-weight: 500; }
.hub-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 16px; }
.hub-filters .f { display: flex; flex-direction: column; gap: 6px; }
.hub-filters .f.grow { flex: 1 1 200px; }
.hub-filters .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); }
.hub-filters .select { min-height: 44px; }
.hub-filters .cnt { margin-left: auto; align-self: center; }
.hub-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.hub-seg button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: color-mix(in oklab, var(--text) 4%, transparent); color: var(--text-2); font: 600 13px var(--font-body); }
.hub-seg button[aria-pressed="true"] { background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--brand); }

/* side cards */
.hub-seedgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hub-seedbox { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: 12.5px; min-width: 0; }
.hub-seedbox b { font-size: 11px; color: var(--text-2); }
.hub-seedbox span { display: flex; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-seedbox i { font-style: normal; color: var(--text-2); width: 16px; flex: none; }
.hub-entries { display: flex; flex-direction: column; gap: 14px; }
.hub-entries .r { display: grid; grid-template-columns: 1fr auto 110px; align-items: center; gap: 12px; font-weight: 600; }
.hub-entries .r .dot { margin-right: 8px; }
.hub-entries .bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.hub-entries .bar i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 2px; }

.hub-body .lb-av { --s: 28px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: var(--text); font-weight: 700;
  font-size: calc(var(--s) * .36); background: radial-gradient(circle at 32% 28%, color-mix(in oklab, var(--c, var(--brand)) 40%, transparent), var(--surface-2) 72%); box-shadow: 0 0 0 2px var(--c, var(--brand)); }
.hub-body .lb-av img { width: 100%; height: 100%; object-fit: cover; }
.hub-body .lb-chan { flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 3px 6px; border-radius: 999px; background: var(--c, var(--surface-3)); color: #111114; white-space: nowrap; }
.hub-body .lb-pos { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: var(--text-2); border: 1px solid var(--line-strong); box-sizing: border-box; }
.hub-body .lb-pos.p1 { background: linear-gradient(180deg, var(--gold), #f2b330 55%, var(--gold-2)); border: 0; color: rgba(5, 8, 15, .82); }
.hub-body .lb-pos.p2 { background: linear-gradient(180deg, var(--silver), #bac6d6 55%, var(--silver-2)); border: 0; color: rgba(5, 8, 15, .82); }
.hub-body .lb-pos.p3 { background: linear-gradient(180deg, var(--bronze), #d9874a 55%, var(--bronze-2)); border: 0; color: rgba(5, 8, 15, .82); }
.hub-body .lb-pos.is-empty { border-style: dashed; }
.hub-swap { animation: hub-fade .2s ease-out both; }

.hub-grid.single { grid-template-columns: minmax(0, 1fr); }
.hub-grid.single .hub-side:empty { display: none; }
.hub-run li a { flex: 1 1 auto; min-width: 0; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .hub-qhead, .hub-qrow { grid-template-columns: 30px 24px minmax(0, 1fr) 70px; }
  .hub-qrow > .r:not(.b3), .hub-qhead > .r:not(:nth-child(5)), .hub-qrow .qs { display: none; }
  .hub-qhead > span:nth-child(4) { display: none; }
  .hub-strip .seg.next { border-left: 0; padding-left: 0; }
  .hub-strip .seg.end { margin-left: 0; width: 100%; }
  .hub-row .chips { display: none; }
  .hub-row .nm { flex: 1 1 auto; }
  .hub-run li { flex-wrap: nowrap; gap: 10px; }
  .hub-run li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-run .note, .hub-run li > .faint { display: none; }
  .hub-nextrow .avs { display: none; }
  .hub-nextrow .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-row { gap: 8px; padding-right: 8px; }
  .hub-row .lb-chan { display: none; }
  .hub-card { padding: 16px 14px; border-radius: 18px; }
  .hub-race .names { display: none; }
  .hub-race .end { margin-left: 0; width: 100%; justify-content: flex-start; }
  .hub-legend { margin-left: 0; }
  .hub-filters .cnt { margin-left: 0; }
  .hub-tabs a { padding: 0 12px; }
  .hub-stat { min-width: 64px; padding: 8px 10px; }
  .hub-stat b { font-size: 18px; }
}
@keyframes hub-blink { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes hub-chip-pop { 0% { transform: scale(.4); opacity: 0 } 60% { transform: scale(1.18); opacity: 1 } 100% { transform: none } }
@keyframes hub-glow { 0% { filter: drop-shadow(0 0 0 transparent) } 30% { filter: drop-shadow(0 0 8px var(--brand)); color: var(--text) } 100% { filter: none } }
@keyframes hub-rowglow { 0% { box-shadow: none } 30% { box-shadow: 0 0 0 1.5px var(--brand), 0 0 24px color-mix(in oklab, var(--brand) 45%, transparent) } 100% { box-shadow: none } }
@keyframes hub-fade { from { opacity: .5 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .hub-body *, .hub-strip * { animation: none !important; } }

/* ───── Phones (artboards 16a Mobile event hub · 16b Mobile qualifying leaderboard · 16c Mobile races list) ─────
   The phone layouts are their own markup (templates/hubmobile_parts.html) shown at ≤ 720 px; desktop never sees them.
   Club tokens only: --brand (signal), --live, --leader (amber), --fastest, the grounds and the text ramp. */
.hm-head, .hm-stack, .hm-qtop, .hm-races { display: none; }
.hm-skel { display: flex; flex-direction: column; gap: 12px; }
.hm-sk { display: block; border-radius: 8px; background-color: var(--surface-2); background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--text) 7%, transparent), transparent);
  background-size: 200px 100%; background-repeat: no-repeat; animation: hm-shimmer 1.4s ease-in-out infinite; }
@keyframes hm-shimmer { from { background-position: -200px 0 } to { background-position: calc(100% + 200px) 0 } }
.hm-skel .card { display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hm-skel .row { display: flex; align-items: center; gap: 8px; }
.hm-skel .pills { display: flex; gap: 6px; }
@media (min-width: 721px) { .hm-skel .card { padding: 20px; } }

@media (max-width: 720px) {
  .has-app-tabs.hub-page .site-header, .has-app-tabs.hub-page .live-strip { display: none; }
  .hub-page { --hm-t1: color-mix(in oklab, var(--text) 72%, var(--text-2)); --hm-amber-soft: color-mix(in oklab, var(--leader) 18%, var(--surface)); }
  .hub-page .hub-hero { padding-top: 14px; }
  .hub-page .hub-hero > .crumbs, .hub-page .hub-top, .hub-page .hub-strip, .hub-page .hm-dup, .hub-page .hub-pills, .hub-page .hub-qhead,
  .hub-page .hub-qgrid > .hub-side { display: none !important; }
  .hm-head { display: flex; flex-direction: column; gap: 6px; }
  .hm-stack, .hm-qtop, .hm-races { display: flex; flex-direction: column; }
  .hm-club { display: flex; align-items: center; gap: 8px; min-height: 28px; }
  .hm-club a { display: inline-flex; align-items: center; gap: 8px; color: var(--hm-t1); font-size: 13px; font-weight: 600; text-decoration: none; min-width: 0; }
  .hm-club a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-club svg, .hm-club img { width: 26px; height: 26px; border-radius: 7px; flex: none; object-fit: contain; }
  .hm-late { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--hm-amber-soft); color: var(--leader); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
  .hm-late[hidden] { display: none; }
  .hm-h1 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: -0.02em; font-size: 36px; line-height: 1.05; text-wrap: balance; }
  .hm-sub { margin: 0; font-size: 13px; color: var(--text-2); }
  .hm-titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .hm-titlerow .hm-sub { font-size: 12px; padding-bottom: 6px; text-align: right; }
  .hm-crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; max-width: 100%; }
  .hm-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* event tabs as pills, full bleed */
  .hub-page .hub-tabs { gap: 6px; margin: 14px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); border-bottom: 0; scroll-padding: 0 var(--gutter); }
  .hub-page .hub-tabs a { min-height: 40px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; margin: 0; font-size: 14px; color: var(--text-2); }
  .hub-page .hub-tabs a[aria-current="page"] { color: var(--text); background: color-mix(in oklab, var(--brand) 14%, transparent); box-shadow: inset 0 0 0 1px var(--brand); }
  .hub-page.hub-tab-qualifying .hub-tabs, .hub-page.hub-tab-races .hub-tabs { display: none; }
  .hub-page .hub-body { padding-top: 14px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* 16a · overview */
  .hm-stack { gap: 12px; margin-bottom: 20px; }
  .hm-live { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; border: 1px solid color-mix(in oklab, var(--live) 45%, transparent);
    background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 95%, transparent), color-mix(in oklab, var(--bg) 96%, transparent)); animation: hm-live-ring 1.8s cubic-bezier(.22, 1, .36, 1) infinite; }
  .hm-live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .hm-live-top .l { display: flex; flex-direction: column; min-width: 0; }
  .hm-live-top .k { font-size: 11.5px; font-weight: 700; color: color-mix(in oklab, var(--live) 62%, var(--text)); }
  .hm-live-t { font-size: 19px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-live-top .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
  .hm-live-top .lap { font-size: 11.5px; color: color-mix(in oklab, var(--live) 62%, var(--text)); }
  .hub-page .hm-live .lb-livebadge, .hub-page .hm-now .lb-livebadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--live); color: #111114; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
  .hub-page .hm-now .lb-livebadge { font-size: 10px; }
  .hub-page .hm-live .lb-livebadge i, .hub-page .hm-now .lb-livebadge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: hub-blink 1.2s ease-in-out infinite; }
  .hm-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
  .hm-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; border-radius: 9px; background: color-mix(in oklab, var(--text) 4%, transparent); box-shadow: inset 3px 0 0 var(--c, var(--line-strong)); }
  .hm-row .lb-pos { width: 20px; height: 20px; font-size: 11px; }
  .hm-row .lb-av { --s: 24px; font-size: 9px; }
  .hm-row .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-row .gap { font-size: 11px; color: var(--text-2); }
  .hm-row .gap.lead { color: var(--text); }
  .hm-watch { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; background: var(--live); color: #111114; font-weight: 700; font-size: 15px; text-decoration: none; }
  .hm-watch:hover { color: #111114; }
  .hm-next { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; border-radius: 16px; background: color-mix(in oklab, var(--hm-amber-soft) 75%, transparent);
    border: 1px solid color-mix(in oklab, var(--leader) 50%, transparent); color: var(--text); text-decoration: none; box-sizing: border-box; }
  .hm-next .b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .hm-next .k { font-size: 11.5px; font-weight: 700; color: var(--leader); }
  .hm-next .t { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-next .s { font-size: 12px; color: var(--hm-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-next svg { color: var(--leader); flex: none; }
  .hm-qcard { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: color-mix(in oklab, var(--surface) 90%, transparent); border: 1px solid color-mix(in oklab, var(--text) 8%, transparent); }
  .hm-qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; color: var(--text); text-decoration: none; }
  .hm-qhead h2 { margin: 0; font-size: 17px; }
  .hm-qhead span { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
  .hm-q.hub-mini { gap: 0; }
  .hm-q .hub-qrow { grid-template-columns: 22px 24px minmax(0, 1fr) auto; min-height: 40px; padding: 0; background: none; border-radius: 0; font-size: 14.5px; }
  .hm-q .hub-qrow .lb-pos { width: 22px; height: 22px; font-size: 12px; }
  .hm-q .hub-rk .mono { display: grid; place-items: center; width: 22px; height: 22px; font-size: 12px; font-weight: 800; border-radius: 50%; border: 1px solid var(--line-strong); box-sizing: border-box; }
  .hm-q .hub-qrow .lb-av { --s: 26px; font-size: 10px; }
  .hm-q .hub-qrow .b3 { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
  .hub-page .hub-qrow .mv:empty::before { content: "–"; color: var(--text-3); font-weight: 400; }

  /* 16b · qualifying */
  .hm-bar { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: -14px calc(-1 * var(--gutter)) 0; padding: 0 8px;
    background: color-mix(in oklab, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid color-mix(in oklab, var(--text) 6%, transparent); }
  .hub-page.hub-tab-qualifying .hub-hero { position: sticky; top: 0; z-index: 6; padding-top: 14px; }
  .hm-bar-t { margin: 0; font: 700 16px var(--font-body); font-style: normal; letter-spacing: 0; }
  .hm-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--brand); flex: none; text-decoration: none; }
  .hm-ago { font-size: 11px; color: var(--text-2); }
  .hub-page .hm-qtop { display: contents; }
  .hm-seg + .hm-dots { margin: 6px 0 2px; }
  .hm-qcols { margin: 8px 0 4px; }
  .hub-page.hub-tab-qualifying .hub-body { padding-top: 8px; }
  .hm-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); }
  .hm-seg button { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 14px var(--font-body); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
  .hm-seg button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); }
  .hm-dots { display: flex; justify-content: center; gap: 5px; }
  .hm-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .25s var(--ease, ease); }
  .hm-dots i.on { width: 18px; background: var(--brand); }
  .hm-pin { position: sticky; top: 52px; z-index: 4; display: flex; align-items: center; gap: 10px; height: 48px; box-sizing: border-box; margin-top: 8px; padding: 0 12px; border-radius: 14px;
    background: color-mix(in oklab, var(--hm-amber-soft) 85%, transparent); border: 1px solid color-mix(in oklab, var(--leader) 50%, transparent); color: var(--text); text-decoration: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .hm-pin[hidden] { display: none; }
  .hm-pin .lb-av { --s: 26px; font-size: 10px; }
  .hm-pin .b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .hm-pin .k { font-size: 11px; font-weight: 700; color: var(--leader); }
  .hm-pin .v { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-pin .v .up { color: var(--ok); font-size: 11px; } .hm-pin .v .down { color: var(--danger); font-size: 11px; }
  .hm-pin .t { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
  .hm-qcols { display: flex; justify-content: space-between; padding: 0 10px; font-size: 11px; color: var(--text-2); }
  .hub-page .hub-board { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
  .hub-page .hub-board .hub-card-head { display: none; }
  .hub-page .hub-board .hub-q { gap: 3px; }
  .hub-page .hub-board .hub-qrow { grid-template-columns: 20px 24px minmax(0, 1fr) auto 50px; gap: 8px; min-height: 34px; height: 34px; padding: 0 10px; border-radius: 9px; background: color-mix(in oklab, var(--text) 3.5%, transparent); font-size: 14px; }
  .hub-page .hub-board .hub-qrow > .r:nth-child(4) { display: block; font-size: 11px; color: var(--text-2); }
  .hub-page .hub-board .hub-qrow > .r.fl { color: var(--fastest); }
  .hub-page .hub-board .hub-qrow .b3 { font-size: 13px; font-weight: 700; }
  .hub-page .hub-board .hub-qrow .hub-rk { font-size: 12.5px; font-weight: 700; color: var(--hm-t1); }
  .hub-page .hub-board .hub-qrow .hub-rk .lb-pos { width: 20px; height: 20px; font-size: 11px; }
  .hub-page .hub-board .hub-qrow .lb-av { --s: 22px; font-size: 9px; }
  .hub-page .hub-board .hub-qrow .who { gap: 8px; }
  .hub-page .hub-board .hub-qrow.is-live { background: color-mix(in oklab, var(--text) 3.5%, transparent); }
  .hub-page .hub-board .hub-qrow .hub-chip.live.sm { padding: 3px 7px; font-size: 10px; letter-spacing: .06em; }
  .hub-page .hub-board .hub-qrow.below { opacity: .85; }
  .hub-page .hub-qrow.is-you { background: color-mix(in oklab, var(--brand) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 60%, transparent); }
  .hub-page .hub-qrow.is-you.flash { animation: hub-rowglow 1.6s ease-out both; }
  .hub-page .hub-board .hub-cut { margin: 0; min-height: 20px; }
  .hub-page.hub-tab-qualifying .hub-h2 { margin-top: 26px; }
  .hub-page.hub-tab-qualifying .hub-main { touch-action: pan-y; }

  /* 16c · races */
  .hm-races { gap: 10px; }
  .hm-now { position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; gap: 10px; height: 64px; box-sizing: border-box; padding: 0 12px; border-radius: 16px; color: var(--text); text-decoration: none;
    background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 97%, transparent), color-mix(in oklab, var(--bg) 97%, transparent)); border: 1px solid color-mix(in oklab, var(--live) 50%, transparent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .5); animation: hm-live-ring 1.8s cubic-bezier(.22, 1, .36, 1) infinite; }
  .hm-now:hover { color: var(--text); }
  .hm-now .b { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .hm-now .t { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-now .s { font-size: 12px; color: var(--hm-t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-now .avs .lb-av, .hm-race .avs .lb-av { --s: 22px; margin: 0; font-size: 9px; box-shadow: 0 0 0 2px var(--c, var(--brand)); }
  .hm-now .avs { gap: 3px; }
  .hm-chips { display: flex; gap: 6px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chips button { flex: none; height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--hm-t1); font: 600 13.5px var(--font-body); cursor: pointer; }
  .hm-chips button[aria-pressed="true"] { background: color-mix(in oklab, var(--brand) 14%, transparent); box-shadow: inset 0 0 0 1px var(--brand); color: var(--text); }
  .hm-list { display: flex; flex-direction: column; gap: 6px; }
  .hm-grp { margin: 0; padding: 6px 4px 0; font: 700 12px var(--font-body); color: var(--text-2); }
  .hm-grp[hidden], .hm-race[hidden] { display: none; }
  .hm-race { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 4px 6px 4px 12px; border-radius: 14px; background: color-mix(in oklab, var(--surface) 90%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 6%, transparent); scroll-margin-top: 140px; }
  .hm-race.is-done { opacity: .8; }
  .hm-race.is-next { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--leader) 45%, transparent); }
  .hm-race .t { min-width: 38px; flex: none; font-size: 12px; color: var(--hm-t1); white-space: nowrap; }
  .hm-race.is-live { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--live) 50%, transparent); }
  .hm-play.live { background: var(--live); color: #111114; box-shadow: 0 0 16px color-mix(in oklab, var(--live) 40%, transparent); }
  .hub-page .disp { font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: -0.02em; }
  .hm-race .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
  .hm-race .nm { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-race .who { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .hm-race .avs { gap: 3px; padding-left: 2px; }
  .hm-race .note { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hm-play { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in oklab, var(--text) 6%, transparent); color: var(--text); }
  .hm-st { flex: none; font-size: 11.5px; color: var(--text-2); padding-right: 6px; }
  .hm-race .hub-chip.next { flex: none; padding: 3px 8px; font-size: 11px; }
  .hm-empty { margin: 8px 4px; }
}
@keyframes hm-live-ring { 0%, 100% { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--live) 95%, transparent), 0 0 0 0 color-mix(in oklab, var(--live) 50%, transparent), 0 0 28px color-mix(in oklab, var(--live) 25%, transparent) }
  60% { box-shadow: 0 0 0 1.5px var(--live), 0 0 0 10px transparent, 0 0 40px color-mix(in oklab, var(--live) 40%, transparent) } }
@media (prefers-reduced-motion: reduce) { .hm-live, .hm-now, .hm-sk, .hm-dots i { animation: none !important; transition: none !important; } }
.hm-skel [role="status"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Every race: the run order's group headings — a round, or a bracket with all its races under it. */
.hub-grp { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; font: 700 13px/1.2 var(--font-body); color: var(--text-2); letter-spacing: 0.01em; }
.hub-grp:first-child { margin-top: 4px; }
.hub-grp.is-bracket { color: var(--brand); }
:root[data-mode="light"] .hub-grp.is-bracket { color: var(--brand-on-light, var(--brand)); }
.hub-grp[hidden] { display: none; }

/* Racing now: "Moth on a PB pace · 20.710" under the live rows. */
.hub-pbpace { display: inline-flex; align-items: center; gap: 6px; font: 650 13px/1.3 var(--font-body); color: var(--pb); }
.hub-pbpace i { width: 8px; height: 8px; border-radius: 2px; background: var(--pb); flex: none; }
.hub-pbpace[hidden] { display: none; }
