:root {
  color-scheme: dark;
  --bg: #0b0c0b;
  --bg-raised: #111210;
  --panel: rgba(20, 20, 18, 0.92);
  --panel-solid: #151513;
  --panel-soft: #1d1b18;
  --ink: #f6f1ea;
  --muted: #a7a097;
  --subtle: #766f66;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --orange: #f97316;
  --orange-strong: #ff7a18;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --points-color: var(--orange);
  --gold: #f2b35e;
  --sky: #38bdf8;
  --violet: #a855f7;
  --teal: #2dd4bf;
  --danger: #ff684f;
  --green: #83c47b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

@media (max-width: 560px) {
  .static-stat-grid {
    grid-template-columns: 1fr;
  }

  .static-table-wrap {
    margin-inline: 0;
  }

  .static-table-wrap,
  .stats-analysis-table {
    overflow: visible;
    background: transparent;
  }

  .static-table-wrap table,
  .stats-analysis-table table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .static-table-wrap thead,
  .stats-analysis-table thead {
    display: none;
  }

  .static-table-wrap tbody,
  .stats-analysis-table tbody {
    display: grid;
    gap: 8px;
  }

  .static-table-wrap tr,
  .stats-analysis-table tr {
    display: grid;
    gap: 7px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.055), rgba(85, 199, 165, 0.025)),
      rgba(255, 255, 255, 0.04);
  }

  .static-table-wrap td,
  .stats-analysis-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .static-table-wrap td[data-label] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-height: 28px;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.28;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .static-table-wrap td[data-label]::before {
    flex: 0 0 auto;
    max-width: 48%;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .static-table-wrap td:first-child {
    color: var(--gold);
    font-weight: 950;
    line-height: 1.18;
  }

  .static-table-wrap td[data-label]:first-child {
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding-bottom: 2px;
    color: var(--gold);
    font-size: 0.96rem;
  }

  .static-table-wrap td[data-label]:first-child::before {
    max-width: none;
    padding: 4px 6px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
    font-size: 0.6rem;
  }

  .static-table-wrap td[data-label] a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 40px;
    min-height: 40px;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .static-table-wrap td:not(:first-child) {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .stats-analysis-table table {
    padding: 0 0 12px;
  }

  .stats-analysis-table tbody {
    gap: 7px;
  }

  .stats-analysis-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
  }

  .stats-analysis-table td {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 8px;
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.12;
    text-align: right;
  }

  .stats-analysis-table td::before {
    content: attr(data-label);
    justify-self: start;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .stats-analysis-table td > * {
    justify-self: end;
  }

  .stats-analysis-table td:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    min-height: 44px;
    padding: 7px 9px;
    font-size: 0.96rem;
    font-weight: 950;
    text-align: right;
  }

  .stats-analysis-table td:first-child::before {
    align-self: center;
  }

  .stats-analysis-table td:first-child > :not(:first-child),
  .stats-analysis-table td:first-child > a,
  .stats-analysis-table td:first-child > span {
    justify-self: end;
  }

  .stats-analysis-table .rider-name-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    max-width: 100%;
    text-align: right;
  }

  .stats-analysis-table .course-value,
  .stats-analysis-table .age-group-badge,
  .stats-analysis-table .difficulty-read {
    min-height: 26px;
    max-width: 100%;
  }

  .stats-analysis-table td[colspan] {
    display: block;
    grid-column: 1 / -1;
    min-height: 0;
    padding: 10px;
    color: var(--muted);
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
  }

  .stats-analysis-table td[colspan]::before {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 10%, rgba(56, 189, 248, 0.08), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(168, 85, 247, 0.08), transparent 18rem),
    radial-gradient(circle at 78% 0%, rgba(249, 115, 22, 0.12), transparent 30rem),
    linear-gradient(180deg, #11110f, #090a09 34rem),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

.app-loading {
  overflow: hidden;
}

.app-loading .app-frame {
  opacity: 0;
  pointer-events: none;
}

.app-frame {
  opacity: 1;
  transition: opacity 260ms ease;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 8, 0.96);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.app-loading .app-loader {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.app-loader[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.app-loader[hidden] {
  display: none;
}

.app-loader-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.loader-spinner {
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--orange);
  border-radius: 50%;
}

.app-loader p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
}

button,
input,
select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

button,
input,
select,
.custom-select-button,
.custom-select-option {
  font-size: 1rem;
}

button,
select {
  cursor: pointer;
  touch-action: manipulation;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f0f0d;
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.app-frame {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.nav-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 18, 16, 0.96), rgba(8, 9, 8, 0.98));
}

.brand {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.brand-logo {
  display: block;
  width: min(100%, 188px);
  height: auto;
  pointer-events: none;
}

.brand:focus-visible {
  border-radius: var(--radius);
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.mobile-menu-button,
.mobile-search-button {
  display: none;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  white-space: nowrap;
  text-decoration: none;
}

.rail-nav a span {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 900;
}

.nav-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--orange);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-nav a.active {
  border-color: rgba(249, 115, 22, 0.42);
  outline: 0;
  background: linear-gradient(135deg, var(--orange), #ff9f1c);
  color: #120b06;
}

.rail-nav a:not(.active):hover,
.rail-nav a:not(.active):focus-visible {
  border-color: rgba(242, 179, 94, 0.48);
  outline: 0;
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.18), rgba(56, 189, 248, 0.07) 64%, transparent),
    rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.rail-nav a.active span {
  color: #120b06;
}

.rail-nav a:not(.active):hover span,
.rail-nav a:not(.active):focus-visible span {
  color: #fbbf24;
}

.rail-nav a.active .nav-icon {
  color: #120b06;
}

.rail-nav a:not(.active):hover .nav-icon,
.rail-nav a:not(.active):focus-visible .nav-icon {
  color: #fbbf24;
}

.app-shell {
  width: min(100%, calc(100vw - 232px));
  max-width: 1500px;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.season-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.season-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.season-tabs button {
  min-width: 78px;
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.season-tabs button:last-child {
  border-right: 0;
}

.season-tabs button.active,
.season-tabs button:hover,
.season-tabs button:focus-visible {
  outline: 0;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
}

.season-panel .season-switcher {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.season-dropdown {
  display: grid;
  gap: 6px;
}

.season-dropdown > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.season-dropdown .custom-select,
.season-dropdown .custom-select-button {
  width: 100%;
}

.season-panel .season-tabs {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.season-panel .season-tabs button {
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  align-items: center;
  gap: 18px;
  min-height: 56px;
  padding-bottom: 18px;
}

.global-search,
.search-box {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 42px;
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.07), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 13, 12, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48);
}

.global-search {
  grid-template-columns: 18px minmax(0, 1fr);
  height: 42px;
  padding: 0 13px;
}

.global-search span,
.search-box span {
  position: relative;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 999px;
}

.global-search span::after,
.search-box span::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

.nav-rail.search-open .search-box span {
  align-self: center;
  justify-self: center;
  width: 16px;
  height: 16px;
  border-color: #fff;
  transform: translateY(-1px);
}

.nav-rail.search-open .search-box span::after {
  right: -6px;
  bottom: -3px;
  background: #fff;
}

.global-search input,
.search-box input {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  caret-color: var(--sky);
}

.search-clear {
  box-sizing: border-box;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  line-height: 1;
}

.search-clear[hidden] {
  display: none;
}

.search-clear svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-clear:hover,
.search-clear:focus-visible {
  border-color: var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.global-search:focus-within,
.search-box:focus-within {
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.event-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 152px;
  overflow: hidden;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.94), rgba(10, 10, 8, 0.68) 50%, rgba(10, 10, 8, 0.28)),
    linear-gradient(140deg, transparent 0 54%, rgba(249, 115, 22, 0.22) 54% 56%, transparent 56%),
    radial-gradient(circle at 84% 36%, rgba(249, 115, 22, 0.24), transparent 14rem),
    linear-gradient(160deg, #37312b 0 16%, #151614 16% 44%, #242019 44% 58%, #0d0f0d 58%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.event-meta {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.event-meta strong {
  color: var(--ink);
}

.weekly-header-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  width: min(100%, 680px);
  max-width: 680px;
}

.weekly-header-date,
.weekly-rider-count {
  min-width: 0;
}

.weekly-rider-count {
  color: var(--ink);
  font-weight: 850;
}

.weekly-title-weather {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(85, 199, 165, 0.3);
  border-radius: 999px;
  background: rgba(7, 13, 11, 0.82);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.weekly-title-weather-icon {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.weekly-title-weather-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weekly-header-weather,
.weekly-header-weather-icon {
  display: none;
}

.profile-subheading {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 32px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
}

.event-note {
  display: block;
  color: var(--gold);
}

.event-note {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.race-countdown {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 124px;
  min-height: 124px;
  padding: 14px 18px;
  border: 2px solid rgba(249, 115, 22, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.04)),
    rgba(12, 12, 10, 0.9);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.race-countdown[hidden] {
  display: none;
}

.race-countdown .profile-rank-link {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  outline-offset: 5px;
}

.race-countdown .profile-rank-link:hover strong,
.race-countdown .profile-rank-link:focus-visible strong {
  color: var(--gold);
}

.race-countdown .profile-rank-link:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.78);
}

.race-countdown span,
.race-countdown small {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.race-countdown strong {
  color: var(--orange);
  font-size: 3.15rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(249, 115, 22, 0.36);
}

.race-countdown .race-week-label {
  font-size: clamp(2rem, 3.4vw, 2.62rem);
  text-transform: uppercase;
}

.race-countdown:has(.hero-weather-icon) {
  justify-self: center;
  justify-items: center;
  align-content: center;
  gap: 9px;
  min-width: 118px;
  min-height: 118px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.race-countdown:has(.hero-week-copy) {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 168px;
  min-height: 136px;
  padding: 16px 18px 15px;
  border: 1px solid rgba(249, 115, 22, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(249, 115, 22, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.22), rgba(85, 199, 165, 0.06) 56%, rgba(255, 255, 255, 0.025)),
    rgba(12, 12, 10, 0.94);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-week-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 48px;
  line-height: 1;
}

.hero-week-copy span,
.hero-week-copy small {
  display: block;
  line-height: 1;
}

.race-countdown .hero-week-kicker {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.race-countdown .race-week-number {
  color: var(--orange);
  font-size: clamp(3.82rem, 5.45vw, 5.5rem);
  font-weight: 950;
  line-height: 0.82;
  text-shadow:
    0 0 22px rgba(249, 115, 22, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.36);
}

.race-countdown .hero-week-season {
  color: var(--ink);
  font-size: clamp(1.28rem, 1.82vw, 1.68rem);
  font-weight: 950;
  line-height: 0.95;
}

.hero-weather-inline {
  position: absolute;
  top: 50%;
  right: calc(100% + 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(85, 199, 165, 0.28);
  border-radius: 999px;
  background: rgba(7, 13, 11, 0.82);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
}

.hero-weather-inline .hero-weather-icon {
  flex-basis: 22px;
  width: 22px;
  height: 22px;
}

.hero-weather-inline .hero-weather-svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.hero-weather-inline .hero-weather-copy {
  min-width: 0;
}

.hero-weather-inline .hero-weather-copy strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 14px;
  min-height: calc(100vh - 294px);
  margin-top: 14px;
}

.site-disclaimer {
  margin-top: 18px;
  padding: 0 2px 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-disclaimer p {
  max-width: 960px;
  margin: 0;
}

.site-disclaimer .footer-source {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.data-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  text-decoration: none;
}

.data-source-link:hover,
.data-source-link:focus-visible {
  outline: 0;
  color: var(--orange);
  text-decoration: underline;
}

.dashboard-grid > *,
.content-grid > *,
.profile-panel,
.panel-section {
  min-width: 0;
}

.search-panel,
.season-panel,
.profile-panel,
.panel-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 26, 23, 0.96), rgba(17, 17, 15, 0.96));
  box-shadow: var(--shadow);
}

.search-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 18px;
}

.season-panel {
  padding: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.panel-kicker {
  padding: 6px 8px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: var(--orange-soft);
  font-size: 0.7rem;
  font-weight: 900;
}

.search-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box {
  height: 44px;
  padding: 0 12px;
}

.quick-stats {
  display: contents;
}

.rider-count-pill {
  padding: 6px 10px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.filters {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.filter-control {
  display: grid;
  gap: 6px;
}

.filter-control label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-control select {
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(56, 189, 248, 0.055) 42%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #0d0e0c;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.filter-control select:hover {
  border-color: rgba(56, 189, 248, 0.38);
}

.filter-control select:focus-visible {
  border-color: rgba(56, 189, 248, 0.68);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(56, 189, 248, 0.055) 42%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #0d0e0c;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  text-align: left;
}

.custom-select-button span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-button::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-62%) rotate(45deg);
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.custom-select-button:hover {
  border-color: rgba(56, 189, 248, 0.38);
}

.custom-select-button:focus-visible {
  border-color: rgba(56, 189, 248, 0.68);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.custom-select.open .custom-select-button {
  border-color: rgba(56, 189, 248, 0.68);
}

.custom-select.open .custom-select-button::after {
  border-color: var(--sky);
  transform: translateY(-36%) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 40;
  top: calc(100% + 6px);
  display: grid;
  max-height: min(300px, 54vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.05) 55%, transparent),
    #0c0d0c;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.custom-select-sheet-head {
  display: none;
}

.custom-select-options {
  display: grid;
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-option {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.active {
  border-color: rgba(56, 189, 248, 0.24);
  outline: 0;
  background: rgba(56, 189, 248, 0.1);
}

.custom-select-option.active {
  color: #dff7ff;
  box-shadow: inset 3px 0 0 var(--sky);
}

.empty-list,
.chart-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.empty-list {
  padding: 14px;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li + li {
  margin-top: 4px;
}

.mini-stat {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.mini-stat strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-stat .metric-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 17px;
  height: 17px;
  color: var(--sky);
}

.racer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
  padding-right: 2px;
}

.racer-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.racer-button:hover,
.racer-button:focus-visible {
  border-color: var(--line-strong);
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
}

.racer-button.active {
  border-color: rgba(249, 115, 22, 0.58);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.32), rgba(249, 115, 22, 0.08));
}

.racer-button strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.racer-button strong span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.racer-button strong span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.racer-button > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.racer-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding-top: 8px;
}

.racer-pagination:empty {
  display: none;
}

.racer-pagination button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.racer-pagination button:hover,
.racer-pagination button:focus-visible {
  border-color: rgba(85, 199, 165, 0.55);
  outline: 0;
}

.racer-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.racer-pagination span {
  min-width: 74px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.profile-panel {
  overflow: hidden;
}

.empty-state {
  display: grid;
  align-content: center;
  min-height: 620px;
  max-width: 680px;
  padding: 56px;
}

.empty-state h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.empty-state p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.results-loading-panel {
  grid-column: 1 / -1;
  min-height: 420px;
  padding-bottom: 16px;
}

.results-loading-panel .section-head {
  align-items: start;
}

.results-loading-panel h2 {
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.results-loading-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 16px 14px;
}

.results-loading-skeleton span,
.results-loading-table span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.results-loading-skeleton span {
  min-height: 86px;
}

.results-loading-table {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.results-loading-table span {
  min-height: 42px;
}

.results-loading-skeleton span::after,
.results-loading-table span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.085), transparent);
  content: "";
  transform: translateX(-100%);
  animation: loading-sheen 1.4s ease-in-out infinite;
}

@keyframes loading-sheen {
  to {
    transform: translateX(100%);
  }
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.14), transparent 55%),
    linear-gradient(135deg, #1b1a16, #10110f);
}

.profile-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bib-badge {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  border-radius: var(--radius);
  background: var(--orange);
  color: #150c05;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.18);
}

.profile-title h2 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.profile-title p,
.profile-note {
  margin-bottom: 0;
  color: var(--muted);
}

.scope-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.scope-note strong,
.scope-note span {
  min-width: 0;
}

.scope-note strong {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.scope-note span {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.scope-note.warn {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
}

.page-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.page-context-bar strong,
.page-context-bar span {
  min-width: 0;
}

.page-context-bar strong {
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.page-context-bar span {
  color: var(--muted);
  font-size: 0.84rem;
}

.page-context-bar.warn {
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.08);
}

.profile-note {
  max-width: 360px;
  padding-top: 6px;
  text-align: right;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.stat-row + .stat-row {
  padding-top: 10px;
}

.stat-row-primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-row-secondary {
  grid-template-columns: repeat(auto-fit, minmax(172px, 240px));
  padding-bottom: 2px;
}

.profile-quick-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0 0 2px;
}

.profile-quick-item {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(85, 199, 165, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.profile-quick-pick {
  border-color: rgba(242, 179, 94, 0.28);
  background:
    linear-gradient(145deg, rgba(242, 179, 94, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.profile-quick-button {
  position: relative;
  display: block;
  width: 100%;
  padding-right: 44px;
  color: inherit;
  font: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.profile-quick-button:hover,
.profile-quick-button:focus-visible {
  border-color: rgba(242, 179, 94, 0.56);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(242, 179, 94, 0.12);
  transform: translateY(-1px);
}

.profile-quick-button:disabled {
  cursor: default;
  transform: none;
}

.profile-quick-button .profile-quick-action-icon {
  position: absolute;
  top: 11px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(242, 179, 94, 0.38);
  border-radius: 999px;
  color: var(--gold);
  overflow: visible;
  background: rgba(242, 179, 94, 0.08);
  box-shadow: 0 0 18px rgba(242, 179, 94, 0.12);
  font-size: inherit;
  text-transform: none;
  white-space: normal;
}

.profile-quick-action-icon-svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.profile-quick-button:hover .profile-quick-action-icon,
.profile-quick-button:focus-visible .profile-quick-action-icon {
  border-color: rgba(242, 179, 94, 0.68);
  background: rgba(242, 179, 94, 0.14);
}

.profile-quick-item span,
.profile-quick-item small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-quick-item strong {
  display: block;
  overflow: hidden;
  margin: 7px 0 4px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-quick-item small {
  color: var(--subtle);
  font-size: 0.76rem;
  text-transform: none;
  white-space: normal;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
}

.stat-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  content: "";
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-help {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--subtle);
  cursor: pointer;
}

.metric-help:hover,
.metric-help:focus-visible {
  color: var(--ink);
  outline: 0;
}

.metric-help-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tooltip {
  position: fixed;
  z-index: 2000;
  max-width: min(280px, calc(100vw - 20px));
  padding: 9px 10px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 8px;
  background: rgba(20, 22, 19, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.app-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--orange);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.45rem;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card-button {
  width: 100%;
  cursor: pointer;
}

.stat-card-button:hover,
.stat-card-button:focus-visible {
  outline: 0;
  border-color: rgba(45, 212, 191, 0.45);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.055);
}

.stat-card[data-tone="gold"] {
  background:
    linear-gradient(145deg, rgba(242, 179, 94, 0.13), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.stat-card[data-tone="gold"]::after {
  background: var(--gold);
}

.stat-card[data-tone="gold"] .metric-icon {
  color: var(--gold);
}

.stat-card[data-tone="sky"] {
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.13), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.stat-card[data-tone="sky"]::after {
  background: var(--sky);
}

.stat-card[data-tone="sky"] .metric-icon {
  color: var(--sky);
}

.stat-card[data-tone="violet"] {
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.14), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.stat-card[data-tone="violet"]::after {
  background: var(--violet);
}

.stat-card[data-tone="violet"] .metric-icon {
  color: var(--violet);
}

.stat-card[data-tone="teal"] {
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.stat-card[data-tone="teal"]::after {
  background: var(--teal);
}

.stat-card[data-tone="teal"] .metric-icon {
  color: var(--teal);
}

.stat-card.good strong {
  color: var(--green);
}

.stat-card.warn strong {
  color: var(--gold);
}

.profile-points-stat > strong {
  color: var(--orange);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px 18px 18px;
}

.panel-section {
  position: relative;
  overflow: hidden;
  background: rgba(18, 18, 16, 0.92);
  box-shadow: none;
}

.panel-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.74), rgba(56, 189, 248, 0.5), rgba(168, 85, 247, 0.4), transparent);
  content: "";
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 0;
}

.section-head h3 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.section-head h3 .metric-help,
.stat-label .metric-help {
  color: var(--subtle);
  line-height: 1;
}

.section-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.section-head .metric-help {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  white-space: normal;
}

.section-head h3 .section-head-title-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
}

.weekly-results-section .section-head h3 {
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(1.2rem, 1.02rem + 0.78vw, 1.56rem);
  line-height: 1.05;
}

.weekly-results-section .section-head {
  padding-bottom: 8px;
}

.weekly-results-section .section-head h3 .section-head-title-meta {
  font-size: clamp(0.88rem, 0.82rem + 0.3vw, 1.02rem);
}

.section-head h3.profile-course-mix-heading {
  text-transform: none;
}

.profile-course-mix-heading .section-head-title-meta {
  font-size: 0.92rem;
}

.chart {
  width: 100%;
  height: 290px;
  padding: 8px 14px 14px;
}

.cumulative-points-chart {
  height: 340px;
  padding: 4px 4px 12px;
}

.mobile-chart-block {
  display: grid;
  gap: 10px;
}

.chart-mobile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}

.chart-mobile-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.chart-mobile-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-dasharray: 7 10;
}

.chart-zero-line {
  stroke: rgba(232, 221, 198, 0.24);
  stroke-dasharray: 4 8;
}

.chart-axis-title {
  fill: #a7a097;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chart-area {
  opacity: 0.92;
}

.chart-line-glow {
  paint-order: stroke;
}

.chart-point-halo {
  opacity: 0.18;
}

.cumulative-point {
  cursor: pointer;
  outline: 0;
}

.cumulative-point circle {
  transition:
    r 150ms ease,
    stroke-width 150ms ease,
    filter 150ms ease;
}

.cumulative-point.dropped {
  --point-glow: #8d8275;
  color: #8d8275;
}

.cumulative-point.dropped circle {
  opacity: 0.86;
}

.cumulative-point.dropped text {
  fill: #8d8275;
}

.cumulative-point:hover circle,
.cumulative-point:focus-visible circle {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--point-glow, #f97316) 72%, transparent));
  stroke-width: 5;
}

.chart-point-tooltip {
  opacity: 0;
  animation: none;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.cumulative-point:hover .chart-point-tooltip,
.cumulative-point:focus-visible .chart-point-tooltip {
  opacity: 1;
}

.chart-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.stats-page {
  align-content: start;
}

.stats-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.stats-trend-section .stats-card-row,
.stats-weather-section .stats-card-row {
  padding-top: 4px;
}

.stats-line-chart {
  height: 330px;
}

.stats-line-point {
  outline: 0;
}

.stats-line-point circle {
  transition:
    r 150ms ease,
    stroke-width 150ms ease,
    filter 150ms ease;
}

.stats-line-point:hover circle,
.stats-line-point:focus-visible circle {
  r: 8px;
  stroke-width: 5;
  filter: drop-shadow(0 0 7px rgba(249, 115, 22, 0.45));
}

.stats-line-point .chart-point-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.stats-line-point:hover .chart-point-tooltip,
.stats-line-point:focus-visible .chart-point-tooltip,
.stats-line-point .chart-point-tooltip-pinned {
  opacity: 1;
}

.stats-weather-grid {
  display: grid;
  gap: 14px;
}

.stats-weather-table {
  margin: 0 16px 16px;
  overflow: auto;
}

.weather-combo-wrap {
  display: grid;
  gap: 12px;
}

.weather-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0 18px 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-summary-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.weather-summary-strip strong {
  color: var(--ink);
}

.weather-combo-legend {
  margin-left: auto;
  color: var(--muted);
}

.weather-combo-legend i {
  width: 18px;
  height: 10px;
  border-radius: 999px;
}

.weather-temp-key {
  background: linear-gradient(90deg, #f97316, #f2b35e);
}

.weather-rain-key {
  background: #38bdf8;
}

.stats-weather-combo-chart {
  height: 350px;
}

.weather-temp-bar rect {
  fill: url(#weather-temp-gradient);
  opacity: 0.74;
  transition:
    opacity 140ms ease,
    filter 140ms ease;
}

.weather-temp-bar text {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.weather-temp-bar:hover rect,
.weather-temp-bar:focus-visible rect {
  opacity: 0.96;
  filter: drop-shadow(0 0 10px rgba(242, 179, 94, 0.22));
}

.weather-rain-line {
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.28));
}

.weather-hover-column {
  outline: 0;
}

.weather-hover-column rect {
  fill: transparent;
}

.weather-hover-column .chart-point-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.weather-hover-column:hover .chart-point-tooltip,
.weather-hover-column:focus-visible .chart-point-tooltip {
  opacity: 1;
}

.stats-course-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-course-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-course-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--course-color);
}

.stats-stacked-chart,
.stats-scatter-chart {
  height: 350px;
}

.stats-stacked-week rect {
  transition:
    opacity 140ms ease,
    filter 140ms ease;
}

.stats-stacked-week:hover rect,
.stats-stacked-week:focus-visible rect {
  opacity: 1;
  filter: saturate(1.2);
}

.stats-heatmap {
  display: grid;
  grid-template-columns: minmax(120px, 170px) repeat(var(--week-count), minmax(34px, 1fr));
  gap: 5px;
  padding: 16px;
  overflow-x: auto;
}

.stats-heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.stats-heatmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats-heatmap-legend i {
  position: relative;
  width: 13px;
  height: 13px;
  overflow: hidden;
  border-radius: 4px;
}

.stats-heatmap-corner,
.stats-heatmap-week,
.stats-heatmap-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stats-heatmap-week {
  text-align: center;
}

.stats-heatmap-label {
  display: flex;
  align-items: center;
  min-height: 30px;
  color: var(--ink);
  text-transform: none;
}

.stats-heatmap-cell {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  background: #242424;
  box-shadow:
    inset 0 -10px 18px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.stats-heatmap-count {
  position: relative;
  z-index: 1;
}

.stats-heatmap-cell.heat-none {
  border-color: rgba(255, 255, 255, 0.1);
  background: #242426;
  color: var(--muted);
  text-shadow: none;
}

.stats-heatmap-legend .heat-low,
.stats-heatmap-cell.heat-low {
  border-color: rgba(77, 155, 255, 0.74);
  background: #2467d8;
  color: #f8fbff;
}

.stats-heatmap-legend .heat-medium,
.stats-heatmap-cell.heat-medium {
  border-color: rgba(96, 214, 122, 0.82);
  background: #42c86f;
  color: #070707;
  text-shadow: none;
}

.stats-heatmap-legend .heat-high,
.stats-heatmap-cell.heat-high {
  border-color: rgba(255, 238, 77, 0.95);
  background: #ffeb3b;
  color: #050505;
  text-shadow: none;
}

.difficulty-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
}

.difficulty-read-low {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.14);
  color: #b8f7dc;
}

.difficulty-read-medium {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.difficulty-read-high {
  border-color: rgba(248, 113, 113, 0.46);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.difficulty-read-no-read {
  color: var(--muted);
}

.bar-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.bar-axis-title {
  color: #a7a097;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bar-axis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.bar-legend-male {
  background: var(--orange);
}

.bar-legend-female {
  background: #55c7a5;
}

.course-time-layout {
  align-items: start;
  padding: 16px;
}

.course-time-list {
  display: grid;
  gap: 14px;
}

.course-time-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.course-time-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 0;
}

.course-time-head strong {
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.course-time-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.course-time-body {
  display: grid;
  gap: 8px;
  align-items: start;
}

.course-time-chart {
  height: clamp(330px, 24vw, 430px);
}

.course-time-guide {
  opacity: 0;
  transition: opacity 160ms ease;
}

.course-time-body.show-best-guide .course-time-guide-best,
.course-time-body.show-average-guide .course-time-guide-average,
.course-time-body:has(.course-time-pill.best:hover) .course-time-guide-best,
.course-time-body:has(.course-time-pill.best:focus-visible) .course-time-guide-best,
.course-time-body:has(.course-time-pill.average:hover) .course-time-guide-average,
.course-time-body:has(.course-time-pill.average:focus-visible) .course-time-guide-average {
  opacity: 1;
  filter: drop-shadow(0 0 6px currentColor);
}

.course-time-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}

.course-time-pill {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: default;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.course-time-pill:hover,
.course-time-pill:focus-visible,
.course-time-pill.active {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.course-time-pill.best:hover,
.course-time-pill.best:focus-visible,
.course-time-pill.best.active {
  border-color: rgba(110, 231, 183, 0.9);
}

.course-time-pill.average:hover,
.course-time-pill.average:focus-visible,
.course-time-pill.average.active {
  border-color: rgba(242, 179, 94, 0.9);
}

.course-time-pill span,
.course-time-pill small {
  color: var(--muted);
}

.course-time-pill span {
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-time-pill strong {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1;
}

.course-time-pill small {
  font-size: 0.86rem;
  font-weight: 800;
}

.course-time-pill.best {
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(16, 32, 26, 0.72);
}

.course-time-pill.best strong {
  color: #6ee7b7;
}

.course-time-pill.average {
  border-color: rgba(242, 179, 94, 0.42);
  background: rgba(34, 25, 13, 0.72);
}

.course-time-pill.average strong {
  color: #f2b35e;
}

.rules-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 78px 78px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-row strong {
  color: var(--ink);
}

.rules-info {
  display: grid;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.rules-info p {
  max-width: 920px;
  margin: 0;
}

.standings-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.standings-section-actions {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
}

.standings-full-link {
  gap: 8px;
}

.standings-full-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.standing-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.84rem;
}

.standing-place {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.clickable-rider-row {
  cursor: pointer;
}

.standing-row.clickable-rider-row,
.compact-row.clickable-rider-row,
tr.clickable-rider-row {
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.standing-row.clickable-rider-row:hover,
.standing-row.clickable-rider-row:focus-visible,
.compact-row.clickable-rider-row:hover,
.compact-row.clickable-rider-row:focus-visible {
  border-color: rgba(85, 199, 165, 0.55);
  outline: 0;
  background: rgba(85, 199, 165, 0.1);
  box-shadow: inset 3px 0 0 rgba(85, 199, 165, 0.82);
}

tr.clickable-rider-row:hover,
tr.clickable-rider-row:focus-visible {
  outline: 0;
  background: rgba(242, 179, 94, 0.14);
}

tr.clickable-rider-row:hover td:first-child,
tr.clickable-rider-row:focus-visible td:first-child {
  box-shadow: inset 3px 0 0 rgba(85, 199, 165, 0.82);
}

tr.course-highlight-row {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(85, 199, 165, 0.12)) !important;
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: -2px;
}

tr.course-highlight-row td {
  background: transparent;
  border-top-color: rgba(249, 115, 22, 0.35);
  border-bottom-color: rgba(249, 115, 22, 0.35);
}

tr.course-highlight-row td:first-child {
  box-shadow: inset 4px 0 0 var(--orange);
}

tr.standings-highlight-row {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(85, 199, 165, 0.12)) !important;
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: -2px;
}

tr.standings-highlight-row td {
  background: transparent;
  border-top-color: rgba(249, 115, 22, 0.35);
  border-bottom-color: rgba(249, 115, 22, 0.35);
}

tr.standings-highlight-row td:first-child {
  box-shadow: inset 4px 0 0 var(--orange);
}

.standing-row.active {
  border-color: rgba(249, 115, 22, 0.52);
  background: var(--orange-soft);
}

.standing-row strong {
  display: block;
  color: var(--ink);
}

.standing-row .standing-points {
  color: var(--points-color);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 140px) 1fr 42px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.course-time-range-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.course-time-range-header,
.course-time-range-row {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(220px, 1fr) 72px;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.course-time-range-header {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-time-range-row {
  min-height: 48px;
  color: var(--muted);
}

.course-time-range-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.course-time-range-name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-time-range-name small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-time-range-plot {
  position: relative;
  height: 32px;
  min-width: 0;
}

.course-time-range-plot::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  content: "";
}

.course-time-range-fill {
  position: absolute;
  top: 50%;
  height: 8px;
  min-width: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--course-color), #ef4444);
  box-shadow: 0 0 18px color-mix(in srgb, var(--course-color) 42%, transparent);
  transform-origin: left center;
  transform: translateY(-50%);
  animation: course-range-fill-in 520ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--range-delay, 0ms) both;
}

.course-time-range-row-single .course-time-range-fill {
  width: 8px;
  background: var(--course-color);
  transform: translate(-50%, -50%);
  animation: course-range-single-in 520ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--range-delay, 0ms) both;
}

.course-time-range-endpoint {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.course-time-range-endpoint::before {
  width: 11px;
  height: 11px;
  border: 2px solid #11110f;
  border-radius: 999px;
  background: var(--course-color);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 18px color-mix(in srgb, var(--course-color) 44%, transparent);
  content: "";
}

.course-time-range-endpoint-worst::before {
  background: #ef4444;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 18px rgba(239, 68, 68, 0.34);
}

.course-time-range-endpoint > span,
.course-time-range-endpoint > strong {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: min(168px, 42vw);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -8px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.course-time-range-endpoint > span {
  bottom: calc(100% + 23px);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-time-range-endpoint > strong {
  bottom: calc(100% + 4px);
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(17, 17, 15, 0.96);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.course-time-range-endpoint:hover,
.course-time-range-endpoint:focus,
.course-time-range-endpoint:focus-visible {
  outline: 0;
}

.course-time-range-endpoint:hover::before,
.course-time-range-endpoint:focus::before,
.course-time-range-endpoint:focus-visible::before {
  box-shadow:
    0 0 0 3px rgba(242, 179, 94, 0.34),
    0 0 22px color-mix(in srgb, var(--course-color) 52%, transparent);
}

.course-time-range-endpoint:hover > span,
.course-time-range-endpoint:hover > strong,
.course-time-range-endpoint:focus > span,
.course-time-range-endpoint:focus > strong,
.course-time-range-endpoint:focus-visible > span,
.course-time-range-endpoint:focus-visible > strong {
  opacity: 1;
  transform: translate(-50%, 0);
}

.course-time-range-endpoint-best > span,
.course-time-range-endpoint-best > strong {
  left: 0;
  text-align: left;
  transform: translate(0, -8px);
}

.course-time-range-endpoint-worst > span,
.course-time-range-endpoint-worst > strong {
  right: 0;
  left: auto;
  text-align: right;
  transform: translate(0, -8px);
}

.course-time-range-endpoint-best:hover > span,
.course-time-range-endpoint-best:hover > strong,
.course-time-range-endpoint-best:focus > span,
.course-time-range-endpoint-best:focus > strong,
.course-time-range-endpoint-best:focus-visible > span,
.course-time-range-endpoint-best:focus-visible > strong,
.course-time-range-endpoint-worst:hover > span,
.course-time-range-endpoint-worst:hover > strong,
.course-time-range-endpoint-worst:focus > span,
.course-time-range-endpoint-worst:focus > strong,
.course-time-range-endpoint-worst:focus-visible > span,
.course-time-range-endpoint-worst:focus-visible > strong {
  transform: translate(0, 0);
}

.course-time-range-marker-average {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 4px;
  height: 24px;
  border: 1px solid #11110f;
  border-radius: 999px;
  background: #f2b35e;
  box-shadow: 0 0 0 2px rgba(242, 179, 94, 0.22);
  transform: translate(-50%, -50%);
}

.course-time-range-average {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .course-time-range-header,
  .course-time-range-row {
    grid-template-columns: minmax(92px, 120px) minmax(0, 1fr) 60px;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .course-time-range-list {
    padding: 12px 10px;
  }

  .course-time-range-header,
  .course-time-range-row {
    grid-template-columns: minmax(92px, 108px) minmax(0, 1fr) 54px;
    gap: 8px;
    padding: 2px 0 8px;
  }

  .course-time-range-name strong,
  .course-time-range-average {
    font-size: 0.82rem;
  }
}

@keyframes course-range-fill-in {
  from {
    transform: translateY(-50%) scaleX(0);
  }
  to {
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes course-range-single-in {
  from {
    transform: translate(-50%, -50%) scale(0.72);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.stacked-bar-track {
  display: flex;
}

.stacked-bar-track .bar-fill {
  flex: 0 0 auto;
  min-width: 0;
}

.stacked-bar-track .bar-fill:first-child {
  border-radius: 999px 0 0 999px;
}

.stacked-bar-track .bar-fill:last-child {
  border-radius: 0 999px 999px 0;
}

.stacked-bar-track .bar-fill-solo {
  border-radius: 999px;
}

.bar-fill-male {
  background: linear-gradient(90deg, var(--orange), #f2b35e);
}

.bar-fill-female {
  background: linear-gradient(90deg, #55c7a5, #38bdf8);
}

.results-table-wrap {
  position: relative;
  grid-column: 1 / -1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(90deg, rgba(13, 14, 12, 0.95), rgba(13, 14, 12, 0)) left center / 22px 100% no-repeat,
    linear-gradient(270deg, rgba(13, 14, 12, 0.95), rgba(13, 14, 12, 0)) right center / 42px 100% no-repeat;
  scrollbar-color: rgba(249, 115, 22, 0.62) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.results-table-wrap::-webkit-scrollbar {
  height: 10px;
}

.results-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.results-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(13, 14, 12, 0.9);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

@media (min-width: 821px) {
  .results-table-wrap table th:first-child,
  .results-table-wrap table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--results-row-bg, #10110f);
    background-image: none;
    transition:
      background-color 140ms ease,
      box-shadow 140ms ease;
  }

  .results-table-wrap table th:first-child {
    --results-row-bg: #10110f;
    z-index: 3;
  }
}

.course-context-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  justify-content: flex-start;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid rgba(249, 115, 22, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.085), rgba(85, 199, 165, 0.055)),
    rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.course-context-banner strong {
  color: var(--ink);
}

.course-context-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.course-context-banner a,
.course-context-banner button {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.course-context-banner button {
  cursor: pointer;
  font-family: inherit;
}

.course-context-banner a:hover,
.course-context-banner a:focus-visible,
.course-context-banner button:hover,
.course-context-banner button:focus-visible {
  outline: 0;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.course-context-banner a svg,
.course-context-banner button svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
}

.mobile-result-cards {
  display: none;
}

.profile-weekly-cards,
.standings-mobile-cards,
.course-results-mobile-cards {
  display: none;
}

.all-results-section {
  grid-column: 1 / -1;
  overflow: visible;
}

.stats-analysis-table table {
  min-width: 720px;
}

.course-year-mobile-detail {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.course-year-mobile-detail small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.field-section {
  grid-column: 1 / -1;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 8px 18px;
  align-items: start;
  padding: 0 10px 12px;
}

.field-title-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.field-title-stack h3 {
  margin: 0;
}

.field-gender-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.field-gender-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.field-gender-chip strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.field-gender-chip-male {
  border-color: rgba(249, 115, 22, 0.28);
}

.field-gender-chip-female {
  border-color: rgba(85, 199, 165, 0.28);
}

.gender-compact-list {
  display: grid;
  gap: 8px;
  padding: 10px 16px 6px;
}

.field-grid h4 {
  margin: 8px 10px 0;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.field-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 10px 0;
}

.field-chart-head h4 {
  margin: 0;
}

.field-gender-toggle {
  grid-template-columns: repeat(3, minmax(66px, 1fr));
  flex: 0 0 auto;
}

.field-gender-toggle button {
  min-height: 30px;
  font-size: 0.66rem;
}

.field-age-panel .bar-row {
  grid-template-columns: minmax(max-content, 150px) minmax(150px, 1fr) 32px;
  min-height: 30px;
}

.field-age-panel .bar-row > span {
  white-space: nowrap;
}

.field-section .bar-list {
  gap: 7px;
  padding: 10px;
}

.field-section .bar-axis-row {
  min-height: 24px;
}

.field-section .bar-axis-title {
  font-size: 0.76rem;
}

.field-section .bar-row {
  gap: 8px;
}

.field-section .bar-row > span,
.field-section .bar-row strong {
  font-size: 0.84rem;
}

.field-section .bar-track {
  height: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}

.results-table-wrap tbody tr {
  --results-row-bg: #10110f;
  background-color: var(--results-row-bg);
  background-image: none;
}

.results-table-wrap tbody tr:nth-child(even) {
  --results-row-bg: color-mix(in srgb, #10110f 94%, #fff);
}

.results-table-wrap tbody tr.clickable-rider-row:hover,
.results-table-wrap tbody tr.clickable-rider-row:focus-visible {
  --results-row-bg: color-mix(in srgb, #10110f 86%, var(--gold));
  background-color: var(--results-row-bg);
  background-image: none;
}

.results-table-wrap tbody tr.course-highlight-row {
  --results-row-bg: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(85, 199, 165, 0.12));
  background: var(--results-row-bg);
}

td.numeric,
th.numeric {
  text-align: right;
}

th.status-column,
td.status-column {
  text-align: center;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

th.table-sort-header {
  cursor: pointer;
  user-select: none;
}

th.table-sort-header::after {
  display: inline-block;
  min-width: 1em;
  margin-left: 6px;
  color: var(--subtle);
  content: "↕";
}

th.table-sort-header[aria-sort="ascending"]::after {
  color: var(--ink);
  content: "↑";
}

th.table-sort-header[aria-sort="descending"]::after {
  color: var(--ink);
  content: "↓";
}

th.table-sort-header:hover,
th.table-sort-header:focus-visible,
th.table-sort-header[aria-sort="ascending"],
th.table-sort-header[aria-sort="descending"] {
  color: var(--ink);
}

th.table-sort-header:focus-visible {
  outline: 2px solid rgba(85, 199, 165, 0.8);
  outline-offset: -2px;
}

.generated-warning-table {
  min-width: 920px;
  table-layout: fixed;
}

.generated-warning-table th:nth-child(1),
.generated-warning-table td:nth-child(1) {
  width: 108px;
}

.generated-warning-table th:nth-child(2),
.generated-warning-table td:nth-child(2) {
  width: 96px;
}

.generated-warning-table th:nth-child(3),
.generated-warning-table td:nth-child(3) {
  width: 220px;
}

.generated-warning-row td {
  vertical-align: top;
}

.generated-warning-row td:first-child {
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.78);
}

.generated-warning-issue-cell,
.generated-warning-issue {
  white-space: normal;
}

.generated-warning-issue {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.generated-warning-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.generated-warning-title-row strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.generated-warning-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid rgba(245, 158, 11, 0.46);
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.15);
  color: #f8d68a;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.generated-warning-corrections {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.generated-warning-correction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.generated-warning-when {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.generated-warning-category {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 950;
}

.generated-warning-category-original {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.12);
}

.generated-warning-category-corrected {
  border: 1px solid rgba(85, 199, 165, 0.42);
  background: rgba(85, 199, 165, 0.14);
}

.generated-warning-arrow {
  color: var(--subtle);
  font-weight: 950;
}

.issue-card-section {
  grid-column: 1 / -1;
}

.issue-stat-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.issue-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.issue-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: left;
}

button.issue-card {
  width: 100%;
  cursor: pointer;
}

.issue-card:hover,
.issue-card:focus-visible {
  border-color: rgba(242, 179, 94, 0.48);
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
}

.issue-card-warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.issue-card-fix {
  border-color: rgba(85, 199, 165, 0.22);
}

.issue-card-merge {
  border-color: rgba(56, 189, 248, 0.26);
}

.issue-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.issue-card-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-card-head span,
.issue-card p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.issue-card-head span {
  flex: 0 0 auto;
  text-transform: uppercase;
}

.issue-card p {
  margin: 0;
  line-height: 1.35;
}

.issue-person-list {
  display: grid;
  gap: 7px;
}

.issue-bib-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.issue-person-chip {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  text-align: left;
}

.issue-person-chip:hover,
.issue-person-chip:focus-visible {
  border-color: rgba(242, 179, 94, 0.46);
  outline: 0;
}

.issue-person-chip strong,
.issue-person-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-person-chip strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.issue-person-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.issue-card .generated-warning-issue {
  gap: 0;
}

.issue-card .generated-warning-corrections {
  gap: 6px;
}

.issue-card .generated-warning-correction {
  min-height: 28px;
  max-width: 100%;
  font-size: 0.74rem;
}

.issue-card .generated-warning-category {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-time-review-section {
  grid-column: 1 / -1;
}

.short-time-review-section .section-head,
.issue-card-section .section-head {
  padding-bottom: 10px;
}

.issue-context-note {
  margin: 0;
  padding: 0 16px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.short-time-chart {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.short-time-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 0.9fr);
  gap: 10px 16px;
  align-items: start;
  min-width: 0;
  padding: 14px 88px 14px 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(56, 189, 248, 0.045)),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.short-time-row:hover,
.short-time-row:focus-visible {
  border-color: rgba(245, 158, 11, 0.46);
  outline: 0;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.065)),
    rgba(255, 255, 255, 0.055);
}

.short-time-rider,
.short-time-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.short-time-level-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(248, 214, 138, 0.42);
  border-radius: 999px;
  color: #f8d68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.short-time-rider strong,
.short-time-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.short-time-rider small,
.short-time-meta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .issue-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 0 0 12px;
  }

  .issue-card {
    gap: 8px;
    padding: 12px;
  }

  .issue-card-head strong {
    font-size: 0.95rem;
  }

  .issue-person-chip {
    padding: 8px 9px;
  }

  .issue-bib-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .issue-context-note,
  .short-time-chart {
    padding-right: 10px;
    padding-left: 10px;
  }

  .short-time-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 13px 76px 13px 12px;
  }
}

.course-place-podium {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 950;
}

.course-place-pill {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(242, 179, 94, 0.2);
  box-shadow: 0 0 18px rgba(242, 179, 94, 0.18);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
}

.course-place-plain {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid rgba(214, 208, 198, 0.56);
  border-radius: 999px;
  background: rgba(214, 208, 198, 0.08);
  color: #d8d5ce;
  box-shadow: 0 0 16px rgba(214, 208, 198, 0.08);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.course-place-unavailable,
.dnf-place-pill,
.race-selection-place-pill {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  place-items: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid rgba(214, 208, 198, 0.28);
  border-radius: 999px;
  background: rgba(214, 208, 198, 0.045);
  color: rgba(246, 241, 234, 0.58);
  box-shadow: 0 0 14px rgba(214, 208, 198, 0.045);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.course-place-unavailable,
.dnf-place-pill {
  text-transform: uppercase;
}

.race-selection-place-pill {
  color: rgba(246, 241, 234, 0.82);
  font-style: italic;
}

.course-place-podium-1 .course-place-pill {
  color: #f2b35e;
  background: rgba(242, 179, 94, 0.24);
}

.course-place-podium-2 .course-place-pill {
  color: #dfe5e1;
  background: rgba(214, 208, 198, 0.18);
  box-shadow: 0 0 18px rgba(214, 208, 198, 0.14);
}

.course-place-podium-3 .course-place-pill {
  color: #c98952;
  background: rgba(201, 137, 82, 0.22);
  box-shadow: 0 0 18px rgba(201, 137, 82, 0.14);
}

.rider-name-prize {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-course-prize {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.weekly-prize-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  aspect-ratio: 1;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid rgba(242, 179, 94, 0.42);
  border-radius: 999px;
  color: #d3a45f;
  background: rgba(242, 179, 94, 0.08);
  box-shadow: 0 0 10px rgba(242, 179, 94, 0.1);
}

.weekly-prize-svg {
  width: 14px;
  height: 14px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-result-rider .weekly-prize-icon {
  width: 20px;
  height: 20px;
  border-color: rgba(242, 179, 94, 0.5);
  background: rgba(242, 179, 94, 0.11);
  box-shadow: 0 0 10px rgba(242, 179, 94, 0.12);
  color: var(--gold);
}

.mobile-result-rider .weekly-prize-svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
}

.sort-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  text-align: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}

th.numeric .sort-header-button {
  margin-left: auto;
}

.sort-header-button:focus-visible {
  outline: 2px solid rgba(85, 199, 165, 0.8);
  outline-offset: 4px;
}

.sort-header-button:hover,
th[aria-sort="ascending"] .sort-header-button,
th[aria-sort="descending"] .sort-header-button {
  color: var(--ink);
}

.course-page th {
  vertical-align: bottom;
}

.course-page .sort-header-button {
  white-space: normal;
  line-height: 1.08;
}

.course-page th.status-column,
.course-page td.status-column {
  width: 1%;
  text-align: center;
}

.course-page th.status-column .sort-header-button {
  justify-content: center;
}

.profile-weekly-results th {
  vertical-align: bottom;
  white-space: normal;
  line-height: 1.08;
}

.profile-weekly-results th,
.profile-weekly-results td {
  padding-right: 10px;
  padding-left: 10px;
}

.profile-weekly-results th.status-column,
.profile-weekly-results td.status-column {
  width: 1%;
  text-align: center;
}

.profile-weekly-results th.status-column {
  min-width: 82px;
  white-space: nowrap;
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row {
  --results-row-bg: #10110f;
  background-color: var(--results-row-bg);
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row td {
  border-top-color: rgba(245, 158, 11, 0.72);
  border-bottom: 1px solid rgba(245, 158, 11, 0.72);
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row td:first-child {
  border-left: 1px solid rgba(245, 158, 11, 0.82);
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.82);
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row td:last-child {
  border-right: 1px solid rgba(245, 158, 11, 0.82);
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row:hover,
.profile-weekly-results tbody tr.profile-weekly-prediction-row:focus-visible {
  --results-row-bg: color-mix(in srgb, #10110f 84%, #f59e0b);
}

.profile-weekly-results tbody tr.profile-weekly-prediction-row:hover td:first-child,
.profile-weekly-results tbody tr.profile-weekly-prediction-row:focus-visible td:first-child {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.9);
}

.profile-weekly-prediction-row .time-value,
.profile-weekly-prediction-row .speed-value,
.profile-weekly-prediction-row .gap-value,
.profile-weekly-prediction-row .points-value {
  font-style: italic;
}

.week-value,
.course-value,
.age-group-badge,
.gender-badge,
.fraction-value,
.eligibility-value,
.rank-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.week-value,
.course-value,
.age-group-badge,
.gender-badge {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.week-value {
  border-color: rgba(56, 189, 248, 0.45);
  color: #d7f2ff;
  background: rgba(56, 189, 248, 0.12);
}

.course-value {
  border-color: color-mix(in srgb, var(--course-color, var(--orange)) 50%, transparent);
  color: color-mix(in srgb, var(--course-color, var(--orange)) 72%, #ffffff);
  background: color-mix(in srgb, var(--course-color, var(--orange)) 16%, rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--course-color, var(--orange)) 10%, transparent);
}

.age-group-badge {
  border-color: rgba(56, 189, 248, 0.34);
  color: #d7f2ff;
  background: rgba(56, 189, 248, 0.1);
}

.age-group-badge.muted {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.gender-badge.female {
  border-color: rgba(217, 70, 239, 0.5);
  color: #f5d0fe;
  background: rgba(217, 70, 239, 0.14);
}

.gender-badge.male {
  border-color: rgba(20, 184, 166, 0.48);
  color: #cffaf5;
  background: rgba(20, 184, 166, 0.13);
}

.gender-badge.neutral {
  color: var(--muted);
}

.time-value,
.points-value,
.gap-value,
.signed-value,
.speed-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.time-value {
  color: var(--ink);
  font-weight: 800;
}

.points-value {
  color: var(--points-color);
  font-weight: 800;
}

.gap-value {
  font-weight: 800;
}

.gap-value.leader {
  color: var(--teal);
}

.gap-value.behind {
  color: #d8d0c5;
}

.signed-value {
  font-weight: 800;
}

.signed-value.positive {
  color: var(--teal);
}

.signed-value.negative {
  color: var(--danger);
}

.speed-value {
  color: #d8d0c5;
  font-weight: 750;
}

.fraction-value {
  gap: 3px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.fraction-value strong {
  color: var(--ink);
  font-weight: 800;
}

.fraction-value span {
  color: var(--subtle);
}

.series-place-value {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.series-place-value strong {
  color: var(--ink);
  font-weight: 900;
}

.series-place-value span {
  color: var(--subtle);
}

.rank-value {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid rgba(214, 208, 198, 0.56);
  border-radius: 999px;
  background: rgba(214, 208, 198, 0.08);
  box-shadow: 0 0 16px rgba(214, 208, 198, 0.08);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.rank-value-podium {
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(242, 179, 94, 0.2);
  box-shadow: 0 0 18px rgba(242, 179, 94, 0.18);
  color: var(--gold);
  font-size: 0.98rem;
  line-height: 1;
}

.rank-value-1 {
  color: #f2b35e;
  background: rgba(242, 179, 94, 0.24);
}

.rank-value-2 {
  color: #dfe5e1;
  background: rgba(214, 208, 198, 0.18);
  box-shadow: 0 0 18px rgba(214, 208, 198, 0.14);
}

.rank-value-3 {
  color: #c98952;
  background: rgba(201, 137, 82, 0.22);
  box-shadow: 0 0 18px rgba(201, 137, 82, 0.14);
}

.metric-blank {
  display: inline-block;
  min-width: 2ch;
}

.eligibility-value {
  gap: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.eligibility-value strong {
  display: inline;
  min-width: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.eligibility-value.eligible {
  color: var(--muted);
  background: transparent;
}

.eligibility-value.short {
  color: var(--muted);
  background: transparent;
}

td.status-dnf {
  color: var(--danger);
  font-weight: 900;
}

.weekly-status-symbol {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(85, 199, 165, 0.48);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(85, 199, 165, 0.12);
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1;
}

.weekly-status-dnf {
  border-color: rgba(239, 68, 68, 0.52);
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.weekly-status-pending {
  border-color: rgba(242, 179, 94, 0.58);
  color: var(--orange);
  background: rgba(242, 179, 94, 0.14);
}

.weekly-status-svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link {
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

.rider-name-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    color 140ms ease,
    text-decoration-color 140ms ease;
}

.rider-name-link:hover,
.rider-name-link:focus-visible {
  outline: 0;
  color: var(--orange);
  text-decoration-color: currentColor;
}

.clickable-rider-row .rider-name-link:hover {
  color: var(--ink);
  text-decoration-color: transparent;
}

.rider-name-link.profile-name {
  color: inherit;
  text-transform: inherit;
}

.rider-name-link.profile-name:hover,
.rider-name-link.profile-name:focus-visible {
  color: var(--gold);
}

.standing-name {
  display: inline;
}

.table-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--orange);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
}

.table-link:hover,
.table-link:focus-visible {
  outline: 0;
  text-decoration: underline;
}

.clickable-rider-row .table-link:hover,
.clickable-rider-row .table-link:focus-visible {
  text-decoration: none;
}

table .rider-name-link,
table .table-link,
.static-table-wrap table a,
td.status-dnf {
  font-weight: 800;
}

table .course-place-podium,
table .course-place-pill,
table .weekly-status-symbol,
table .series-place-value strong {
  font-weight: 900;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  color: var(--orange);
  text-decoration: none;
}

.icon-link svg {
  width: 16px;
  height: 16px;
}

.icon-link:hover,
.icon-link:focus-visible {
  outline: 0;
  color: var(--gold);
  background: rgba(249, 115, 22, 0.08);
}

.error-box {
  margin: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 104, 79, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 104, 79, 0.1);
  color: var(--danger);
}

@keyframes mobile-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-rail.menu-open .rail-nav,
  .nav-rail.menu-open .menu-season-panel,
  .nav-rail.search-open .search-panel {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    width: 100%;
  }

  .app-frame {
    grid-template-columns: 1fr;
  }

  .nav-rail {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-nav {
    display: flex;
    overflow-x: auto;
  }

  .rail-nav a {
    flex: 0 0 auto;
  }

}

@media (max-width: 1400px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stat-row-primary,
  .stat-row-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .event-hero:not(.home-hero) {
    grid-template-columns: 1fr;
  }

  .event-hero:not(.home-hero) .race-countdown {
    justify-self: start;
    margin-top: 18px;
    min-height: 118px;
    min-width: 132px;
  }

  .race-countdown:has(.hero-weather-icon) {
    justify-self: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    min-height: auto;
  }

  .search-panel .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-head span {
    display: none;
  }

  .profile-course-mix-heading .section-head-title-meta {
    display: inline-flex;
  }

  .racer-list {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .dashboard-grid,
  .content-grid,
  .field-grid,
  .profile-hero,
  .event-hero,
  .topbar {
    grid-template-columns: 1fr;
  }

  .profile-note {
    text-align: left;
  }

  .stat-row-primary,
  .stat-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    min-height: auto;
  }

  .racer-list {
    max-height: none;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-card-row {
    grid-template-columns: 1fr;
  }

  .stats-filter-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px 10px 32px;
  }

  .nav-rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rail-nav a {
    min-height: 38px;
    padding-inline: 10px;
  }

  .event-hero,
  .profile-hero,
  .stat-row,
  .content-grid,
  .empty-state {
    padding-left: 16px;
    padding-right: 16px;
  }

  .event-hero {
    min-height: 230px;
  }

  .season-switcher,
  .season-link-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .season-tabs {
    width: 100%;
  }

  .season-tabs button {
    min-width: 0;
  }

  .season-link-picker {
    width: 100%;
  }

  h1 {
    font-size: 2.15rem;
  }

  .profile-title {
    align-items: start;
    flex-direction: column;
  }

  .search-panel .filters {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .results-table-wrap {
    overflow-x: auto;
  }
}

/* 2025 rider cockpit refresh */
:root {
  --forest: #55c7a5;
  --forest-soft: rgba(85, 199, 165, 0.14);
  --clay: #dd6f3b;
  --paper: #f8f3ea;
}

body {
  background:
    radial-gradient(circle at 72% 10%, rgba(56, 189, 248, 0.08), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(168, 85, 247, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(85, 199, 165, 0.07), transparent 24rem),
    linear-gradient(180deg, #11130f, #090a09 36rem),
    var(--bg);
}

.app-frame {
  grid-template-columns: 200px minmax(0, 1fr);
}

.nav-rail {
  gap: 16px;
  overflow-y: auto;
  padding: 18px 10px;
}

.nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-header .brand {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-header .menu-season-panel {
  flex: 0 0 auto;
}

.rail-nav {
  grid-template-columns: 1fr 1fr;
}

.rail-nav a {
  min-height: 40px;
}

.app-shell {
  width: min(100%, calc(100vw - 200px));
  max-width: 1680px;
  padding: 20px 22px 34px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
}

.search-panel,
.season-panel {
  min-height: auto;
  padding: 16px;
  border-color: var(--line);
  background: rgba(14, 15, 13, 0.72);
  box-shadow: none;
}

.menu-season-panel {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.menu-season-panel .season-switcher {
  display: block;
  width: auto;
  margin: 0;
}

.menu-season-panel .season-dropdown {
  display: block;
}

.menu-season-panel .custom-select {
  width: auto;
  min-width: 82px;
}

.menu-season-panel .custom-select-button,
.menu-season-panel .static-season-link {
  min-width: 82px;
  min-height: 40px;
  padding: 0 30px 0 11px;
  border-color: rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 64%),
    rgba(255, 255, 255, 0.04);
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
}

.menu-season-panel .custom-select-button::after {
  right: 11px;
}

.menu-season-panel .custom-select-options {
  gap: 8px;
}

.menu-season-panel .static-season-link {
  justify-content: center;
  padding-right: 11px;
}

@media (min-width: 861px) {
  .nav-rail {
    gap: 10px;
  }

  .nav-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    order: 1;
  }

  .nav-header .brand {
    justify-content: start;
    min-height: 88px;
  }

  .nav-header .brand-logo {
    width: min(100%, 176px);
  }

  .nav-header .menu-season-panel {
    width: 100%;
  }

  .menu-season-panel .season-switcher,
  .menu-season-panel .season-dropdown,
  .menu-season-panel .custom-select {
    width: 100%;
  }

  .menu-season-panel .custom-select-button,
  .menu-season-panel .static-season-link {
    min-height: 40px;
    justify-content: center;
    padding: 0 36px 0 14px;
    border-color: rgba(56, 189, 248, 0.42);
    border-radius: 9px;
    background:
      linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(249, 115, 22, 0.045) 58%, rgba(255, 255, 255, 0.025)),
      rgba(14, 15, 13, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
  }

  .menu-season-panel .custom-select-button::after {
    right: 14px;
  }

  .search-panel {
    order: 2;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .search-panel .panel-title {
    display: none;
  }

  .search-panel .search-box {
    height: 42px;
  }

  .rail-nav {
    grid-template-columns: 1fr;
    order: 3;
    gap: 6px;
  }

  .rail-nav a[data-view="home"] {
    order: 1;
  }

  .rail-nav a[data-view="standings"] {
    order: 3;
  }

  .rail-nav a[data-view="weekly"] {
    order: 2;
  }

  .rail-nav a[data-view="courses"] {
    order: 4;
  }

  .rail-nav a[data-view="compare"] {
    order: 5;
  }

  .rail-nav a[data-view="stats"] {
    order: 6;
  }

  .rail-nav a[data-view="issues"] {
    order: 7;
  }

  .rail-nav a[data-view="contact"] {
    order: 8;
  }

  .rail-nav a[href="/about/"] {
    order: 9;
  }

  .rail-nav a {
    justify-content: center;
    min-height: 40px;
    padding: 9px 8px;
    border-color: rgba(255, 255, 255, 0.13);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
      rgba(8, 9, 8, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    font-size: 0.88rem;
  }

	  .rail-nav a:not(.active):hover,
	  .rail-nav a:not(.active):focus-visible {
	    border-color: rgba(242, 179, 94, 0.48);
	    background:
	      linear-gradient(135deg, rgba(242, 179, 94, 0.18), rgba(56, 189, 248, 0.07) 64%, transparent),
	      rgba(255, 255, 255, 0.055);
	    box-shadow:
	      0 8px 18px rgba(242, 179, 94, 0.08),
	      inset 0 1px 0 rgba(255, 255, 255, 0.11);
	    color: var(--ink);
	  }

	  .rail-nav a:not(.active):hover .nav-icon,
	  .rail-nav a:not(.active):focus-visible .nav-icon {
	    color: var(--gold);
	  }

  .rail-nav a.active {
    border-color: rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 84%, #fff), var(--gold));
    box-shadow:
      0 8px 18px rgba(249, 115, 22, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .rail-nav a .nav-icon {
    width: 16px;
    height: 16px;
  }
}

.panel-title {
  margin-bottom: 10px;
}

.panel-kicker {
  display: none;
}

.filters {
  gap: 8px;
}

.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.07), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.compare-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compare-title .eyebrow {
  margin: 0;
}

.compare-controls label {
  align-self: end;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-controls select {
  width: 100%;
  min-height: 34px;
  padding: 0 36px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, transparent 50%, var(--forest) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--forest) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(85, 199, 165, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012)),
    #0d0e0c;
  color: var(--ink);
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.compare-controls select:hover {
  border-color: rgba(85, 199, 165, 0.42);
}

.compare-controls select:focus-visible {
  border-color: rgba(85, 199, 165, 0.64);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(85, 199, 165, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.compare-controls .custom-select-button {
  min-height: 34px;
  background:
    linear-gradient(135deg, rgba(85, 199, 165, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012)),
    #0d0e0c;
  font-size: 0.82rem;
}

.compare-controls .custom-select-button:hover,
.compare-controls .custom-select-button:focus-visible,
.compare-controls .custom-select.open .custom-select-button {
  border-color: rgba(85, 199, 165, 0.64);
}

.compare-controls .custom-select-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(85, 199, 165, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.compare-controls .custom-select-button::after {
  border-color: var(--forest);
}

.compare-controls .custom-select-menu {
  border-color: rgba(85, 199, 165, 0.28);
}

.compare-controls .custom-select-option:hover,
.compare-controls .custom-select-option:focus-visible,
.compare-controls .custom-select-option.active {
  border-color: rgba(85, 199, 165, 0.24);
  background: rgba(85, 199, 165, 0.1);
}

.compare-controls .custom-select-option.active {
  color: #dffcf3;
  box-shadow: inset 3px 0 0 var(--forest);
}

.season-link-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 179, 94, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.season-link-bar .eyebrow {
  margin-bottom: 3px;
}

.season-link-bar strong,
.season-link-bar span {
  display: block;
}

.season-link-bar > div > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.season-link-picker {
  min-width: 190px;
}

.season-link-picker .custom-select {
  width: 100%;
}

.season-link-picker .custom-select-button {
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(242, 179, 94, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 58%),
    rgba(242, 179, 94, 0.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  font-size: 0.98rem;
  font-weight: 950;
}

.season-link-picker .custom-select-button::after {
  border-color: var(--gold);
}

.season-link-picker .custom-select-button:hover,
.season-link-picker .custom-select-button:focus-visible,
.season-link-picker .custom-select.open .custom-select-button {
  border-color: rgba(242, 179, 94, 0.68);
  outline: 0;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.22), transparent 58%),
    rgba(242, 179, 94, 0.12);
}

.season-link-picker .custom-select-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(242, 179, 94, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.season-link-picker .custom-select-menu {
  z-index: 160;
  padding: 7px;
  border-color: rgba(242, 179, 94, 0.34);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(242, 179, 94, 0.08) 58%, transparent),
    #14110d;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.season-link-picker .custom-select-option {
  min-height: 42px;
  padding: 7px 10px;
  background: #14110d;
  font-size: 0.96rem;
  font-weight: 900;
}

.season-link-picker .custom-select-option:hover,
.season-link-picker .custom-select-option:focus-visible,
.season-link-picker .custom-select-option.active {
  border-color: rgba(242, 179, 94, 0.28);
  outline: 0;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(242, 179, 94, 0.08)),
    #21170e;
}

.season-link-picker .custom-select-option.active {
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--orange);
}

.profile-controls-row {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 10px;
  align-items: center;
  justify-content: start;
  padding: 10px 18px 0;
}

.profile-controls-row .season-link-bar {
  width: min(100vw - 36px, 520px);
  min-height: 60px;
  margin: 0;
}

.profile-controls-row .season-link-bar {
  padding: 9px 10px 9px 12px;
}

.profile-controls-row .season-link-bar .eyebrow {
  margin-bottom: 1px;
}

.profile-controls-row .season-link-picker {
  min-width: 168px;
}

  .profile-controls-row .season-link-picker .custom-select-button {
    min-height: 42px;
    font-size: 0.94rem;
  }

.profile-snapshot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 18px 0;
}

.profile-snapshot-grid .profile-quick-summary {
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.profile-snapshot-grid .stat-row-primary {
  grid-column: span 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

.profile-snapshot-grid .profile-quick-item,
.profile-snapshot-grid .stat-card {
  min-height: 74px;
  padding: 10px 11px;
}

.profile-snapshot-grid .profile-quick-item strong {
  margin: 4px 0 2px;
  font-size: 0.9rem;
}

.profile-snapshot-grid .profile-quick-item small {
  font-size: 0.68rem;
  line-height: 1.2;
}

.profile-snapshot-grid .stat-label {
  gap: 7px;
  font-size: 0.66rem;
}

.profile-snapshot-grid .stat-card strong {
  margin-top: 16px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

@media (max-width: 1180px) {
  .profile-controls-row {
    grid-template-columns: 1fr;
  }

  .profile-snapshot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .profile-snapshot-grid .profile-quick-summary,
  .profile-snapshot-grid .stat-row-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .profile-controls-row,
  .profile-snapshot-grid {
    padding: 8px 0 0;
  }

  .profile-snapshot-grid {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .profile-snapshot-grid .profile-quick-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-snapshot-grid .stat-row-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.racer-list {
  max-height: none;
}

.search-panel .search-box {
  height: 40px;
}

@media (min-width: 1181px) {
  .nav-rail .search-panel .search-box > span {
    transform: translateY(-2px);
  }
}

.search-panel .racer-list {
  margin-top: 8px;
}

.search-panel .racer-button {
  min-height: 30px;
  padding: 5px 10px;
}

.search-panel .racer-button strong {
  font-size: 0.78rem;
  line-height: 1.15;
}

.search-panel .racer-button strong span:last-child,
.search-panel .racer-button > span {
  font-size: 0.72rem;
}

.event-hero {
  margin-bottom: 14px;
}

.event-hero.home-hero {
  min-height: 186px;
  padding: 22px 28px;
  background:
    linear-gradient(90deg, rgba(10, 11, 9, 0.96), rgba(10, 11, 9, 0.76) 54%, rgba(10, 11, 9, 0.44)),
    linear-gradient(135deg, rgba(85, 199, 165, 0.2), transparent 36%),
    linear-gradient(160deg, #2a322b 0 18%, #151614 18% 54%, #292019 54% 70%, #0d0f0d 70%);
}

.event-hero.home-hero h1 {
  margin-bottom: 9px;
  max-width: 680px;
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  line-height: 0.96;
}

.event-hero.home-hero .event-meta {
  font-size: 0.88rem;
  line-height: 1.45;
}

.event-hero.home-hero .event-note {
  margin-top: 4px;
  font-size: 0.78rem;
}

.event-hero.home-hero .race-countdown {
  min-width: 120px;
  min-height: 120px;
  padding: 14px 16px;
}

.event-hero.home-hero.view-home .race-countdown,
.event-hero.home-hero.view-courses .race-countdown {
  align-content: center;
  gap: 6px;
  width: clamp(128px, 10vw, 148px);
  min-width: 0;
  min-height: 96px;
  padding: 10px 12px;
}

.event-hero.home-hero.view-home .race-countdown:has(.hero-week-copy),
.event-hero.home-hero.view-courses .race-countdown:has(.hero-week-copy) {
  gap: 7px;
  width: clamp(168px, 13vw, 198px);
  min-height: 140px;
  padding: 14px 16px;
}

.event-hero.home-hero .race-countdown span,
.event-hero.home-hero .race-countdown small {
  font-size: 0.68rem;
}

.event-hero.home-hero .race-countdown strong {
  font-size: 2.58rem;
}

.event-hero.home-hero.view-home .race-countdown strong,
.event-hero.home-hero.view-courses .race-countdown strong {
  font-size: clamp(1.52rem, 2vw, 1.72rem);
  line-height: 0.95;
}

.event-hero.home-hero.view-home .race-countdown .race-week-label,
.event-hero.home-hero.view-courses .race-countdown .race-week-label {
  font-size: clamp(1.44rem, 1.9vw, 1.64rem);
  text-transform: uppercase;
}

.event-hero.home-hero.view-home .race-countdown small,
.event-hero.home-hero.view-courses .race-countdown small {
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  font-weight: 950;
  letter-spacing: 0.015em;
}

.event-hero.home-hero.view-home .race-countdown .hero-week-kicker,
.event-hero.home-hero.view-courses .race-countdown .hero-week-kicker {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.event-hero.home-hero.view-home .race-countdown .race-week-number,
.event-hero.home-hero.view-courses .race-countdown .race-week-number {
  color: var(--orange);
  font-size: clamp(3.82rem, 4.45vw, 4.72rem);
  font-weight: 950;
  line-height: 0.82;
  text-shadow:
    0 0 22px rgba(249, 115, 22, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.36);
}

.event-hero.home-hero.view-home .race-countdown .hero-week-season,
.event-hero.home-hero.view-courses .race-countdown .hero-week-season {
  color: var(--ink);
  font-size: clamp(1.24rem, 1.58vw, 1.52rem);
  font-weight: 950;
  letter-spacing: 0;
}

.event-hero.compact-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 132px;
  padding: 24px 28px;
  background:
    linear-gradient(90deg, rgba(85, 199, 165, 0.16), transparent 52%),
    linear-gradient(135deg, #171914, #10110f);
}

.event-hero.compact-hero.view-profile {
  min-height: 112px;
  padding-block: 18px;
}

.event-hero.compact-hero.view-profile h1 {
  margin-bottom: 6px;
}

.event-hero.view-weekly.compact-hero:has(.hero-weather-icon) {
  grid-template-columns: minmax(0, 1fr);
  padding-right: 196px;
}

.event-hero.compact-hero::before,
.event-hero.compact-hero::after {
  display: none;
}

.event-hero.compact-hero h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.event-hero.compact-hero .race-countdown {
  justify-items: start;
  min-width: 144px;
  min-height: 84px;
  padding: 14px 16px 13px;
  border-width: 1px;
  border-left-width: 5px;
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(255, 255, 255, 0.045)),
    rgba(15, 15, 13, 0.92);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.event-hero.compact-hero .race-countdown .profile-rank-link {
  justify-items: start;
  text-align: left;
}

.event-hero.compact-hero .race-countdown span {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.event-hero.compact-hero .race-countdown strong {
  color: var(--ink);
  font-size: 2.05rem;
  line-height: 0.95;
  text-shadow: none;
}

.event-hero.compact-hero .race-countdown .race-week-label {
  font-size: 1.72rem;
  text-transform: uppercase;
}

.event-hero.compact-hero .race-countdown small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

.event-hero.compact-hero.view-courses .race-countdown small {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.5vw, 1.32rem);
  font-weight: 950;
  letter-spacing: 0.015em;
}

.event-hero.compact-hero .race-countdown .rank-scope {
  max-width: 10rem;
  margin-top: 2px;
  overflow: hidden;
  font-size: 0.62rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-hero.compact-hero .race-countdown:has(.hero-weather-icon) {
  position: absolute;
  top: calc(50% - 18px);
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  width: 154px;
  min-width: 154px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: translateY(-50%);
}

.event-hero.compact-hero .race-countdown:has(.hero-week-copy) {
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: clamp(184px, 14vw, 220px);
  min-width: 128px;
  height: auto;
  min-height: 148px;
  padding: 18px 20px 17px;
  border: 1px solid rgba(249, 115, 22, 0.68);
  border-top-width: 4px;
  border-left-width: 1px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 43%, rgba(249, 115, 22, 0.26), transparent 43%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.2), rgba(85, 199, 165, 0.055) 58%, rgba(255, 255, 255, 0.025)),
    rgba(15, 15, 13, 0.94);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: none;
}

.event-hero.compact-hero .race-countdown:has(.hero-week-copy)::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  pointer-events: none;
}

.event-hero.compact-hero .race-countdown .hero-week-kicker {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0;
}

.event-hero.compact-hero .race-countdown .race-week-number {
  color: var(--orange);
  font-size: clamp(4.08rem, 5vw, 5.2rem);
  font-weight: 950;
  line-height: 0.8;
  text-shadow:
    0 0 22px rgba(249, 115, 22, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.36);
}

.event-hero.compact-hero .race-countdown .hero-week-season {
  color: var(--ink);
  font-size: clamp(1.24rem, 1.62vw, 1.58rem);
  font-weight: 950;
  letter-spacing: 0;
}

.hero-weather-icon {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.hero-weather-svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-weather-copy {
  display: grid;
  min-width: 54px;
  gap: 3px;
  justify-items: center;
}

.event-hero.compact-hero .race-countdown .hero-weather-copy strong {
  font-size: 1.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.event-hero.compact-hero .race-countdown .hero-weather-copy small {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.bib-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid rgba(189, 182, 172, 0.28);
  border-radius: 999px;
  background: rgba(189, 182, 172, 0.08);
  color: #bdb6ac;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 8px;
  max-width: 760px;
  margin-bottom: 12px;
}

.hero-metrics div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-panel {
  border-color: var(--line);
  background: rgba(18, 19, 16, 0.78);
}

.stat-row {
  padding: 16px 18px 2px;
}

.stat-row-primary {
  grid-template-columns: repeat(4, minmax(138px, 1fr));
}

.stat-row-secondary {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.stat-card {
  min-height: 84px;
}

.content-grid,
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 18px 18px;
}

.home-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

.seo-results-section {
  grid-column: 1 / -1;
}

.weekly-results-home {
  grid-column: 1 / -1;
  padding: 0;
}

.seo-results-section .section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.about-panel-section .section-head {
  align-items: flex-start;
  padding: 17px 18px 13px;
}

.about-panel-section .section-head span {
  display: none;
}

.about-panel-section .seo-results-copy {
  color: rgba(246, 241, 234, 0.88);
}

.about-panel-section {
  background:
    linear-gradient(180deg, rgba(26, 26, 23, 0.96), rgba(17, 17, 15, 0.96));
}

.about-panel-section:first-child {
  border-color: rgba(249, 115, 22, 0.22);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.095), rgba(56, 189, 248, 0.035) 48%, transparent),
    linear-gradient(180deg, rgba(26, 26, 23, 0.98), rgba(17, 17, 15, 0.98));
}

.about-contact-action {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  padding-top: 4px;
}

.about-contact-action .contact-form-button {
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .about-panel-section .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .about-contact-action {
    justify-content: stretch;
    width: 100%;
    padding-top: 0;
  }

  .about-contact-action .contact-form-button {
    width: 100%;
    min-height: 48px;
  }
}

.mobile-app-share-panel {
  display: none;
}

.mobile-app-share-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 16px 16px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(56, 189, 248, 0.08)),
    rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-decoration: none;
}

.mobile-app-share-link:hover,
.mobile-app-share-link:focus-visible {
  border-color: rgba(249, 115, 22, 0.72);
  outline: 0;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.12);
}

.mobile-app-share-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mobile-app-share-copy strong {
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.mobile-app-share-copy span {
  color: rgba(246, 241, 234, 0.78);
  font-size: 0.88rem;
  line-height: 1.35;
}

.mobile-app-share-qr {
  display: block;
  width: 112px;
  height: auto;
  max-width: 28vw;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.mobile-app-share-qr-bg {
  fill: #fff;
}

.mobile-app-share-qr-mark {
  fill: #060606;
}

.venue-map-frame {
  overflow: hidden;
  width: auto;
  margin: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  height: clamp(420px, 56vh, 620px);
}

.venue-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.seo-results-copy {
  display: grid;
  gap: 10px;
  max-width: 980px;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-results-copy p {
  margin: 0;
}

.seo-results-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.seo-results-list li {
  padding-left: 4px;
}

.seo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.seo-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.1);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.seo-link-row-stacked {
  display: grid;
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr);
}

.seo-link-row-stacked a {
  width: 100%;
  justify-content: flex-start;
}

.seo-link-row a:hover,
.seo-link-row a:focus-visible {
  border-color: rgba(249, 115, 22, 0.68);
  outline: 0;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
}

.official-link-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.official-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 14, 12, 0.82);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.official-link-card:hover,
.official-link-card:focus-visible {
  border-color: rgba(125, 211, 252, 0.58);
  outline: 0;
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(13, 14, 12, 0.92);
  transform: translateY(-1px);
}

.official-link-card-primary {
  border-color: rgba(249, 115, 22, 0.82);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
}

.official-link-card-primary:hover,
.official-link-card-primary:focus-visible {
  border-color: rgba(255, 247, 237, 0.88);
  background: linear-gradient(135deg, #fb923c, #fde68a);
}

.official-link-card-venue {
  border-color: rgba(125, 211, 252, 0.28);
}

.official-link-card-social {
  border-color: rgba(168, 85, 247, 0.32);
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.11), rgba(255, 255, 255, 0.016)),
    rgba(13, 14, 12, 0.82);
}

.official-link-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.official-link-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.official-link-card-primary .official-link-kicker {
  color: rgba(20, 12, 5, 0.74);
}

.official-link-main strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.12;
}

.official-link-main span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.official-link-card-primary .official-link-main span:last-child {
  color: rgba(20, 12, 5, 0.8);
}

.official-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.seo-landing-hero {
  align-items: end;
}

.seo-landing-hero .eyebrow {
  margin-bottom: 12px;
}

.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
}

.primary-action {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.seo-landing-layout {
  display: grid;
  gap: 14px;
}

.seo-detail-list {
  padding: 16px;
}

.seo-page-frame .nav-rail {
  gap: 16px;
}

.static-seo-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.static-sidebar-panel {
  display: none;
  min-height: auto;
}

.static-seo-layout .seo-results-section,
.static-seo-layout .about-basics-section,
.static-seo-layout .about-panel-section:has(.venue-map-frame) {
  grid-column: 1 / -1;
}

.static-sidebar-copy {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.static-sidebar-action,
.static-season-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.1);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
}

.static-sidebar-action:hover,
.static-sidebar-action:focus-visible,
.static-season-link:hover,
.static-season-link:focus-visible {
  border-color: rgba(249, 115, 22, 0.68);
  outline: 0;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
}

.static-seo-page .panel-section {
  overflow: hidden;
}

.static-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.static-stat {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.static-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.static-stat strong {
  align-self: end;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.static-table-wrap {
  margin: 0 16px 16px;
}

.static-table-wrap th,
.static-table-wrap td {
  white-space: normal;
  vertical-align: top;
}

.static-table-wrap th:first-child,
.static-table-wrap td:first-child {
  width: 24%;
  min-width: 150px;
}

.static-table-wrap a {
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: rgba(249, 115, 22, 0.6);
  text-underline-offset: 3px;
}

.static-table-wrap a:hover,
.static-table-wrap a:focus-visible {
  color: var(--orange);
  outline: 0;
}

.admin-layout {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-refresh-section,
.admin-static-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.admin-static-section {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(28, 29, 25, 0.96), rgba(16, 17, 15, 0.96));
}

.admin-static-section .link-button {
  align-self: start;
  min-height: 34px;
  padding-inline: 12px;
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: var(--radius);
  background: rgba(45, 212, 191, 0.08);
  color: var(--teal);
}

.admin-login-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.admin-refresh-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.admin-refresh-copy p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(249, 115, 22, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-login-form label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d0e0c;
  color: var(--ink);
}

.admin-login-form input:focus-visible {
  border-color: rgba(249, 115, 22, 0.68);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.13);
}

.admin-turnstile {
  min-height: 65px;
}

.admin-login-form button {
  min-height: 48px;
  border: 1px solid rgba(249, 115, 22, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-login-form button:disabled,
.admin-login-form input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-auth-message {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-auth-message.warn {
  color: var(--gold);
}

.contact-panel {
  max-width: 920px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding-top: 12px;
}

.contact-disclaimer {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(85, 199, 165, 0.04)),
    rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

.contact-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(249, 115, 22, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #140c05;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  width: fit-content;
}

@media (max-width: 720px) {
  .contact-form-button {
    width: auto;
  }
}

.admin-refresh-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  justify-items: start;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.18), rgba(45, 212, 191, 0.07) 68%),
    rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.admin-refresh-button .metric-icon {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}

.admin-refresh-button span,
.admin-refresh-button small {
  display: block;
}

.admin-refresh-button span {
  max-width: 100%;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.admin-refresh-button small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.28;
}

.admin-refresh-button:hover,
.admin-refresh-button:focus-visible {
  border-color: rgba(249, 115, 22, 0.84);
  outline: 0;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.28), rgba(45, 212, 191, 0.1)),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.admin-refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-metrics .stat-card {
  min-height: 104px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(249, 115, 22, 0.08) 68%),
    rgba(255, 255, 255, 0.04);
}

.admin-control-section,
.admin-action-log-section {
  display: grid;
  gap: 14px;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-rider-merge-section {
  display: grid;
  gap: 14px;
}

.admin-rider-merge-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-rider-merge-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(249, 115, 22, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.admin-rider-merge-main,
.admin-rider-merge-bibs span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-rider-merge-main > span {
  color: var(--sky);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-rider-merge-main strong,
.admin-rider-merge-bibs strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rider-merge-main small,
.admin-rider-merge-bibs small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rider-merge-bibs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.admin-rider-merge-bibs span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-rider-merge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(85, 199, 165, 0.42);
  border-radius: var(--radius);
  background: rgba(85, 199, 165, 0.12);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-rider-merge-button .metric-icon {
  width: 18px;
  height: 18px;
}

.admin-rider-merge-button:hover,
.admin-rider-merge-button:focus-visible {
  border-color: rgba(85, 199, 165, 0.78);
  outline: 0;
  background: rgba(85, 199, 165, 0.18);
}

.admin-rider-merge-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.admin-details {
  padding-bottom: 16px;
}

.admin-url-section {
  display: grid;
  gap: 14px;
}

.source-url-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.source-url-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(242, 179, 94, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.source-url-row strong {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
}

.source-url-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-url-row span,
.source-url-results h4 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.source-url-row a,
.source-url-results a {
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(249, 115, 22, 0.5);
  text-underline-offset: 3px;
}

.source-url-row small,
.source-url-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.source-url-results {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.source-url-results ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.admin-action-log {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-action-row {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-action-row.success {
  border-color: rgba(45, 212, 191, 0.28);
}

.admin-action-row.failed {
  border-color: rgba(239, 68, 68, 0.34);
}

.admin-action-row div {
  display: grid;
  gap: 4px;
}

.admin-action-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-action-row strong {
  color: var(--ink);
}

.admin-action-row small {
  color: var(--muted);
}

.admin-action-row pre {
  max-height: 138px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-edge-section {
  display: grid;
  gap: 14px;
}

.edge-diagnostic-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  padding: 0 16px 16px;
}

.edge-diagnostic-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.edge-diagnostic-button {
  min-height: 108px;
}

.edge-diagnostic-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.edge-diagnostic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.edge-diagnostic-row.pass {
  border-left-color: var(--green);
}

.edge-diagnostic-row.warn {
  border-left-color: var(--gold);
}

.edge-diagnostic-row.fail {
  border-left-color: var(--danger);
}

.edge-diagnostic-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.edge-diagnostic-main span {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.edge-diagnostic-row.pass .edge-diagnostic-main span {
  border-color: rgba(131, 196, 123, 0.44);
  color: var(--green);
}

.edge-diagnostic-row.warn .edge-diagnostic-main span {
  border-color: rgba(242, 179, 94, 0.5);
  color: var(--gold);
}

.edge-diagnostic-row.fail .edge-diagnostic-main span {
  border-color: rgba(255, 104, 79, 0.5);
  color: var(--danger);
}

.edge-diagnostic-main strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.edge-diagnostic-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.edge-diagnostic-main code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.edge-diagnostic-headers {
  display: grid;
  gap: 7px;
  margin: 0;
}

.edge-diagnostic-headers div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.edge-diagnostic-headers dt {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.edge-diagnostic-headers dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-empty-state {
  margin: 0 16px 16px;
  padding: 18px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.admin-detail-grid div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 68%),
    rgba(255, 255, 255, 0.03);
}

.admin-detail-grid span,
.admin-detail-grid strong {
  display: block;
}

.admin-detail-grid span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-detail-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-detail-grid a {
  color: var(--ink);
  text-decoration-color: rgba(249, 115, 22, 0.55);
  text-underline-offset: 3px;
}

.admin-freshness-section,
.admin-rebuild-section,
.admin-growth-section,
.admin-inventory-section,
.admin-payload-section,
.admin-change-section,
.admin-production-section {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
}

.admin-timeline-list,
.admin-change-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-timeline-row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) minmax(140px, 1fr) minmax(210px, 300px);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-timeline-row.fresh {
  border-color: rgba(45, 212, 191, 0.28);
}

.admin-timeline-row.stale {
  border-color: rgba(242, 179, 94, 0.28);
}

.admin-timeline-row > div:first-child,
.admin-timeline-meta {
  display: grid;
  gap: 4px;
}

.admin-timeline-row strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.admin-timeline-row span,
.admin-timeline-meta small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-timeline-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admin-timeline-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.admin-timeline-row.recent .admin-timeline-track i {
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.admin-timeline-row.stale .admin-timeline-track i,
.admin-timeline-row.unknown .admin-timeline-track i {
  background: linear-gradient(90deg, rgba(242, 179, 94, 0.62), rgba(255, 255, 255, 0.12));
}

.admin-timeline-meta b {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
}

.admin-insight-summary,
.admin-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}

.admin-insight-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-admin-grid {
  padding-top: 0;
}

.admin-health-chart,
.admin-growth-chart {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.06), transparent 62%),
    rgba(255, 255, 255, 0.025);
}

.admin-health-chart line,
.admin-growth-chart line {
  stroke: #34322d;
  stroke-width: 2;
}

.admin-health-bar rect {
  fill: rgba(45, 212, 191, 0.78);
}

.admin-health-bar.failed rect {
  fill: rgba(255, 104, 79, 0.88);
}

.admin-health-bar text,
.admin-growth-chart text {
  fill: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-growth-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.admin-growth-stepper {
  display: inline-grid;
  grid-template-columns: 38px minmax(136px, auto) 38px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-growth-stepper button,
.admin-growth-week-strip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 950;
}

.admin-growth-stepper button {
  display: grid;
  min-height: 40px;
  place-items: center;
}

.admin-growth-stepper button:first-child {
  border-right: 1px solid var(--line);
}

.admin-growth-stepper button:last-child {
  border-left: 1px solid var(--line);
}

.admin-growth-stepper .metric-icon {
  width: 18px;
  height: 18px;
}

.admin-growth-stepper div {
  display: grid;
  min-height: 40px;
  align-content: center;
  gap: 2px;
  padding: 0 12px;
}

.admin-growth-stepper strong,
.admin-growth-stepper small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-growth-stepper strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.admin-growth-stepper small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.admin-growth-week-strip {
  display: flex;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.admin-growth-week-strip button {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.76rem;
}

.admin-growth-stepper button:hover,
.admin-growth-stepper button:focus-visible,
.admin-growth-week-strip button:hover,
.admin-growth-week-strip button:focus-visible,
.admin-growth-week-strip button.active {
  outline: 0;
  border-color: rgba(249, 115, 22, 0.42);
  background: var(--forest-soft);
  color: #dffcf3;
}

.admin-growth-stepper button:disabled {
  cursor: not-allowed;
  color: rgba(166, 158, 145, 0.42);
}

.admin-chart-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.admin-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.admin-starts-key,
.admin-growth-starts {
  fill: rgba(249, 115, 22, 0.78);
  background: var(--orange);
}

.admin-riders-key {
  background: var(--teal);
}

.admin-weeks-key,
.admin-growth-weeks {
  fill: rgba(56, 189, 248, 0.78);
  background: #38bdf8;
}

.admin-growth-riders-line {
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-growth-rider-point {
  fill: #151513;
  stroke: var(--teal);
  stroke-width: 3;
}

.admin-change-row {
  display: grid;
  grid-template-columns: 80px repeat(3, minmax(92px, 1fr)) minmax(170px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-change-row strong {
  color: var(--gold);
  font-weight: 950;
}

.admin-change-row span,
.admin-change-row small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.admin-verification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.admin-verification-grid a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-decoration: none;
}

.admin-verification-grid a:hover,
.admin-verification-grid a:focus-visible {
  border-color: rgba(249, 115, 22, 0.58);
  outline: 0;
}

.admin-verification-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-verification-grid strong {
  overflow-wrap: anywhere;
}

.admin-verification-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-seo-section {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.admin-seo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(180px, 0.9fr));
  gap: 12px;
  padding: 0 16px;
}

.admin-seo-preview,
.admin-seo-icons,
.admin-seo-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.admin-seo-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  grid-row: span 2;
}

.admin-seo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius);
  object-fit: cover;
  background: #000;
}

.admin-seo-preview span,
.admin-seo-icons span,
.admin-seo-card span,
.admin-seo-indexing h4 {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-seo-preview a,
.admin-seo-card a,
.admin-seo-indexing a {
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(249, 115, 22, 0.62);
  text-underline-offset: 3px;
}

.admin-seo-preview a:hover,
.admin-seo-preview a:focus-visible,
.admin-seo-card a:hover,
.admin-seo-card a:focus-visible,
.admin-seo-indexing a:hover,
.admin-seo-indexing a:focus-visible {
  color: var(--orange);
  outline: 0;
}

.admin-seo-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.admin-seo-icons div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-seo-icons img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: #000;
}

.admin-seo-icons code,
.admin-seo-indexing code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-seo-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-color: rgba(56, 189, 248, 0.18);
}

.admin-seo-card small {
  color: var(--muted);
  line-height: 1.4;
}

.admin-seo-indexing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 0 16px;
}

.admin-seo-indexing > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-seo-indexing h4 {
  margin: 0 0 10px;
}

.admin-seo-indexing ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.admin-seo-indexing li {
  min-width: 0;
}

.leaderboard-section {
  grid-row: span 2;
}

.leaderboard-section {
  overflow: visible;
}

.standings-leaderboard {
  grid-column: 1 / -1;
  overflow: hidden;
  border-color: rgba(242, 179, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.08), transparent 24%),
    rgba(12, 13, 12, 0.78);
}

.leader-age-list {
  display: grid;
  gap: 10px;
  padding: 8px 12px 14px;
}

.leader-age-header,
.leader-age-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.24fr) repeat(2, minmax(0, 0.5fr));
  column-gap: 18px;
  row-gap: 8px;
  min-width: 0;
}

.leader-age-header {
  align-items: end;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-age-header strong {
  min-width: 0;
  padding: 0 14px 2px;
  color: #fff8ea;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leader-age-header strong:first-of-type {
  grid-column: 2;
  color: #8fbdff;
}

.leader-age-header strong:last-of-type {
  grid-column: 3;
  color: #ff9fca;
}

.leader-age-row {
  align-items: stretch;
}

.leader-age-title {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.leader-age-title h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.leader-age-winners {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.leader-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.leader-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
  opacity: 0.78;
}

.leader-card-f {
  border-color: rgba(255, 159, 202, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 159, 202, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.leader-card-f::before {
  background: linear-gradient(180deg, #ff9fca, #f2b35e);
}

.leader-card-m {
  border-color: rgba(143, 189, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(143, 189, 255, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.leader-card-m::before {
  background: linear-gradient(180deg, #8fbdff, #f2b35e);
}

.leader-rank {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-width: 64px;
  min-height: 32px;
  padding: 4px 14px;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.leader-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.12;
}

.leader-gender {
  display: none;
}

.leader-points {
  display: grid;
  gap: 2px;
  justify-items: end;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.leader-points strong {
  color: var(--points-color);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.leader-points span {
  color: var(--points-color);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.leader-card-empty {
  min-height: 54px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  opacity: 0.5;
}

.leader-card-empty::before {
  display: none;
}

.standings-gender-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.standings-gender-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  border-top: 1px solid var(--line);
}

.standings-gender-head h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.standings-gender-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.standings-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 8px;
}

.standings-category-grid .results-table-wrap {
  grid-column: auto;
}

.standings-card .section-head {
  padding: 10px 12px 0;
}

.standings-card .section-head h3 {
  font-size: 0.82rem;
}

.standings-card th,
.standings-card td {
  padding: 7px 9px;
  font-size: 0.8rem;
}

.standings-card th {
  font-size: 0.64rem;
}

.standings-mobile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  text-align: left;
}

.standings-mobile-card:focus-visible {
  border-color: rgba(249, 115, 22, 0.72);
  outline: 2px solid rgba(249, 115, 22, 0.3);
  outline-offset: 2px;
}

.standings-mobile-card.standings-highlight-row {
  border-color: rgba(249, 115, 22, 0.58);
  background:
    linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(85, 199, 165, 0.12)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 4px 0 0 var(--orange),
    0 0 0 1px rgba(249, 115, 22, 0.18);
}

.standings-mobile-rank {
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  min-width: 68px;
}

.standings-mobile-rank .rank-value {
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
}

.standings-mobile-rider {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.standings-mobile-rider strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-mobile-rider small,
.standings-mobile-points small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.standings-mobile-rider small {
  text-transform: none;
}

.standings-mobile-points small {
  text-transform: uppercase;
}

.standings-mobile-points {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.standings-mobile-points .points-value {
  color: var(--points-color);
  font-size: 0.98rem;
}

.standings-mobile-eligibility {
  grid-column: 2 / 4;
}

.standings-mobile-eligibility .eligibility-value {
  justify-content: flex-start;
}

.standings-pagination {
  border-bottom: 1px solid var(--line);
}

.standings-card .standings-pagination {
  padding: 8px 10px 10px;
}

.leaderboard-row {
  min-height: 58px;
}

.leaderboard-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  gap: 10px;
  align-items: end;
  padding: 14px 16px 0;
}

.all-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.all-results-course-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.all-results-course-filter span {
  font-size: 0.76rem;
}

.all-results-course-filter .custom-select {
  width: min(260px, 48vw);
}

.all-results-course-filter .custom-select-button {
  min-height: 34px;
}

.all-results-pagination {
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 0;
}

.all-results-pagination button {
  min-height: 32px;
  padding: 0 10px;
}

.all-results-pagination span {
  font-size: 0.84rem;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.segmented-control:has(button:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(72px, 1fr));
}

.segmented-control button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gender-segmented-control button,
.weekly-gender-control button,
.stats-gender-control button {
  text-transform: none;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.active,
.segmented-control button:hover,
.segmented-control button:focus-visible {
  outline: 0;
  background: var(--forest-soft);
  color: #dffcf3;
}

.gender-label-short {
  display: none;
}

.home-category-filter {
  display: grid;
  gap: 6px;
}

.home-category-filter span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-category-filter select {
  min-height: 38px;
  padding: 0 38px 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(242, 179, 94, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #0d0e0c;
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.home-category-filter select:hover {
  border-color: rgba(242, 179, 94, 0.42);
}

.home-category-filter select:focus-visible {
  border-color: rgba(242, 179, 94, 0.66);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(242, 179, 94, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-category-filter .custom-select-button {
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    #0d0e0c;
}

.home-category-filter .custom-select-button:hover,
.home-category-filter .custom-select-button:focus-visible,
.home-category-filter .custom-select.open .custom-select-button {
  border-color: rgba(242, 179, 94, 0.66);
}

.home-category-filter .custom-select-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(242, 179, 94, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-category-filter .custom-select-button::after {
  border-color: var(--gold);
}

.home-category-filter .custom-select-menu {
  border-color: rgba(242, 179, 94, 0.28);
}

.home-category-filter .custom-select-option:hover,
.home-category-filter .custom-select-option:focus-visible,
.home-category-filter .custom-select-option.active {
  border-color: rgba(242, 179, 94, 0.24);
  background: rgba(242, 179, 94, 0.1);
}

.home-category-filter .custom-select-option.active {
  color: #fff1da;
  box-shadow: inset 3px 0 0 var(--gold);
}

.filter-reset-button {
  align-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(242, 179, 94, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 179, 94, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.035);
  color: var(--gold);
}

.filter-reset-button:hover,
.filter-reset-button:focus-visible {
  border-color: rgba(242, 179, 94, 0.7);
  outline: 0;
  background: rgba(242, 179, 94, 0.14);
}

.filter-reset-button:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--subtle);
  cursor: not-allowed;
  opacity: 0.56;
}

.filter-reset-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaderboard-table {
  padding: 12px 16px 0;
}

.leaderboard-table table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.standings-results-table {
  padding: 0;
}

.standings-results-table table {
  border: 0;
  border-radius: 0;
}

.table-subtle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.table-head-detail,
.table-cell-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}

.table-cell-detail {
  color: var(--subtle);
  font-size: 0.86rem;
}

.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 16px;
}

.leaderboard-pagination button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.leaderboard-pagination button:hover,
.leaderboard-pagination button:focus-visible {
  border-color: rgba(85, 199, 165, 0.55);
  outline: 0;
}

.leaderboard-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.leaderboard-pagination span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.weekly-controls-section,
.weekly-course-summary {
  grid-column: 1 / -1;
}

.weekly-controls-section::before,
.weekly-course-summary::before {
  display: none;
}

.weekly-controls-section {
  z-index: 20;
  overflow: visible;
}

.weekly-controls-section .custom-select-menu {
  z-index: 60;
}

.weekly-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) auto minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 10px 14px 12px;
}

.weekly-week-picker {
  display: grid;
  grid-template-columns: 56px minmax(9rem, 1fr) 56px;
  gap: 8px;
  align-items: stretch;
}

.age-filter-picker {
  display: grid;
  grid-template-columns: 44px minmax(9rem, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
}

.age-filter-picker .custom-select {
  min-width: 0;
}

.age-filter-picker .custom-select-button {
  height: 100%;
}

.weekly-week-picker > button,
.age-filter-picker > button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34px;
  border: 1px solid rgba(242, 179, 94, 0.34);
  border-radius: var(--radius);
  background: rgba(242, 179, 94, 0.08);
  color: var(--gold);
}

.weekly-week-picker > button:hover,
.weekly-week-picker > button:focus-visible,
.age-filter-picker > button:hover,
.age-filter-picker > button:focus-visible {
  border-color: rgba(242, 179, 94, 0.66);
  outline: 0;
  background: rgba(242, 179, 94, 0.14);
}

.weekly-week-picker > button:disabled,
.age-filter-picker > button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.weekly-week-picker svg,
.age-filter-picker svg {
  width: 18px;
  height: 18px;
}

  .weekly-toolbar .custom-select-button span {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 950;
    text-align: center;
  }

  .weekly-week-picker .custom-select-button span {
    font-size: 0.98rem;
  }

.weekly-toolbar .home-category-filter .custom-select-button {
  justify-content: center;
  padding-right: 42px;
  padding-left: 42px;
}

.weekly-week-picker .custom-select-option {
  text-align: center;
}

.age-filter-picker .custom-select-option {
  text-align: center;
}

.weekly-gender-control {
  grid-template-columns: repeat(3, minmax(74px, 1fr));
}

.weekly-gender-icon {
  width: 21px;
  height: 21px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weekly-stat-row {
  grid-column: 1 / -1;
  padding-top: 0;
}

.weekly-course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 10px 14px 12px;
}

.weekly-course-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 10px;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-align: left;
}

.weekly-course-card > span {
  grid-row: 1 / -1;
  align-self: stretch;
  border-radius: 999px;
  background: var(--course-color, var(--orange));
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.2);
}

.weekly-course-card strong,
.weekly-course-card small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekly-course-card strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.weekly-course-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.weekly-course-card:hover,
.weekly-course-card:focus-visible {
  border-color: var(--course-color, var(--orange));
  outline: 0;
  background: rgba(249, 115, 22, 0.1);
  background: color-mix(in srgb, var(--course-color, var(--orange)) 13%, transparent);
}

.weekly-course-card.active {
  border-color: var(--course-color, var(--orange));
  outline: 0;
  background: rgba(249, 115, 22, 0.1);
  background: color-mix(in srgb, var(--course-color, var(--orange)) 18%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--course-color, var(--orange)) 44%, transparent),
    0 0 26px color-mix(in srgb, var(--course-color, var(--orange)) 18%, transparent);
}

.weekly-course-card.active > span {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--course-color, var(--orange)) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--course-color, var(--orange)) 44%, transparent);
}

.mobile-course-picker {
  display: none;
}

.mobile-course-picker-stepper {
  display: none;
}

.mobile-course-picker-stepper > button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(242, 179, 94, 0.34);
  border-radius: var(--radius);
  background: rgba(242, 179, 94, 0.08);
  color: var(--gold);
}

.mobile-course-picker-stepper > button:hover,
.mobile-course-picker-stepper > button:focus-visible {
  border-color: rgba(242, 179, 94, 0.66);
  outline: 0;
  background: rgba(242, 179, 94, 0.14);
}

.mobile-course-picker-stepper > button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.mobile-course-picker-stepper > button .metric-icon {
  width: 18px;
  height: 18px;
}

.mobile-course-picker-overlay {
  display: none;
}

.mobile-course-picker-trigger,
.mobile-course-picker-option {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--course-color, var(--orange)) 16%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
}

.mobile-course-picker-trigger {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
}

.mobile-course-picker-trigger:hover,
.mobile-course-picker-trigger:focus-visible,
.mobile-course-picker-option:hover,
.mobile-course-picker-option:focus-visible,
.mobile-course-picker-option.active {
  border-color: color-mix(in srgb, var(--course-color, var(--orange)) 68%, rgba(255, 255, 255, 0.12));
  outline: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--course-color, var(--orange)) 24%, transparent), transparent 64%),
    rgba(255, 255, 255, 0.06);
}

.mobile-course-picker-color {
  align-self: stretch;
  width: 12px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--course-color, var(--orange));
  box-shadow: 0 0 18px color-mix(in srgb, var(--course-color, var(--orange)) 36%, transparent);
}

.mobile-course-picker-copy {
  display: grid;
  min-width: 0;
}

.mobile-course-picker-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.mobile-course-picker-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-course-picker-trigger-action {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.mobile-course-picker-trigger-action .metric-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-course-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(4, 5, 4, 0.72);
  backdrop-filter: blur(10px);
}

.mobile-course-picker-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - max(22px, env(safe-area-inset-top)) - max(22px, env(safe-area-inset-bottom)));
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(26, 26, 23, 0.98), rgba(14, 15, 13, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.mobile-course-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.mobile-course-picker-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-course-picker-head button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.mobile-course-picker-head button:hover,
.mobile-course-picker-head button:focus-visible {
  border-color: rgba(242, 179, 94, 0.66);
  outline: 0;
  color: var(--gold);
}

.mobile-course-picker-head .metric-icon,
.mobile-course-picker-check .metric-icon {
  width: 18px;
  height: 18px;
}

.mobile-course-picker-options {
  display: grid;
  align-content: start;
  gap: 8px;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 14px 14px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-course-picker-option {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
}

.mobile-course-picker-check {
  display: grid;
  place-items: center;
  color: var(--gold);
}

body.mobile-course-picker-lock {
  overflow: hidden;
}

body.mobile-course-picker-lock .app-frame {
  animation: none;
  transform: none;
}

body.mobile-course-picker-lock .event-hero,
body.mobile-course-picker-lock .profile-panel,
body.mobile-course-picker-lock .profile-panel > *,
body.mobile-course-picker-lock .home-layout,
body.mobile-course-picker-lock .content-grid,
body.mobile-course-picker-lock .course-page,
body.mobile-course-picker-lock .course-page > *,
body.mobile-course-picker-lock .home-layout > *,
body.mobile-course-picker-lock .content-grid > * {
  animation: none;
  transform: none;
}

.race-selection-desktop-table {
  min-width: 860px;
}

.race-selection-table-section {
  border: 1px solid rgba(245, 158, 11, 0.72);
  outline: 1px solid rgba(245, 158, 11, 0.82);
  outline-offset: -1px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.16),
    0 0 30px rgba(245, 158, 11, 0.2);
}

.race-selection-table-section .section-head {
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: rgba(245, 158, 11, 0.32);
}

.race-selection-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(245, 158, 11, 0.72);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: race-selection-pill-outline-pulse 3.8s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.weekly-results-section .section-head > .race-selection-header-pill {
  display: inline-flex;
  color: #fbbf24;
  font-size: 11px;
  white-space: nowrap;
}

.race-results-section-head {
  align-items: center;
}

.race-results-section-head h3 {
  min-width: 0;
}

.race-compare-toggle {
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  min-width: 154px;
  border-radius: 999px;
}

.race-compare-toggle button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.race-comparison-desktop-table .time-value {
  font-weight: 950;
}

.race-comparison-predicted-time {
  color: rgba(246, 241, 234, 0.72);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: 0;
}

.race-comparison-predicted-time.is-unavailable,
.race-comparison-no-prediction {
  color: rgba(246, 241, 234, 0.62);
  font-style: italic;
  font-weight: 750;
}

.race-comparison-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(214, 208, 198, 0.22);
  border-radius: 999px;
  background: rgba(214, 208, 198, 0.065);
  color: rgba(246, 241, 234, 0.84);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.race-comparison-time-offset {
  min-width: 70px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.race-comparison-time-offset.is-negative {
  border-color: rgba(45, 212, 191, 0.38);
  background: rgba(45, 212, 191, 0.12);
  color: #bffcf2;
}

.race-comparison-time-offset.is-positive {
  border-color: rgba(249, 115, 22, 0.38);
  background: rgba(249, 115, 22, 0.12);
  color: #ffd1ad;
}

.race-comparison-delta.is-better {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.11);
  color: #bffcf2;
}

.race-comparison-delta.is-worse {
  border-color: rgba(242, 179, 94, 0.34);
  background: rgba(242, 179, 94, 0.1);
  color: #f4d4a7;
}

.race-comparison-delta.is-match {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.09);
  color: #c8ecff;
}

.race-comparison-delta.is-unavailable {
  color: rgba(246, 241, 234, 0.56);
  font-style: italic;
  font-weight: 750;
}

.race-comparison-mobile-card .mobile-result-points-line span {
  flex: 0 0 auto;
}

.race-comparison-mobile-card .race-comparison-no-prediction {
  color: rgba(246, 241, 234, 0.7);
}

.race-comparison-outcome {
  color: var(--ink);
  font-weight: 950;
}

.race-comparison-time-delta {
  color: var(--muted);
  font-weight: 900;
}

.race-comparison-time-direction {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.race-comparison-time-direction-faster span:first-child {
  color: #8ff4df;
}

.race-comparison-time-direction-slower span:first-child {
  color: var(--gold);
}

.race-selection-confidence-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 50px;
  min-height: 24px;
  color: #f2dda4;
}

.race-selection-confidence-cell {
  text-align: center;
}

.race-selection-confidence-dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(242, 221, 164, 0.62);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(242, 221, 164, 0.08);
}

.race-selection-confidence-dot.is-solid {
  background: #f2dda4;
  border-color: #f2dda4;
  box-shadow: 0 0 12px rgba(242, 221, 164, 0.16);
}

.race-selection-confidence-dot.is-hollow {
  background: transparent;
  opacity: 0.78;
}

.race-selection-desktop-table .time-value,
.race-selection-desktop-table .speed-value,
.race-selection-desktop-table .gap-value,
.race-selection-desktop-table .points-value {
  font-style: italic;
}

.race-selection-mobile-card .mobile-result-place,
.race-selection-mobile-card .mobile-result-time,
.race-selection-mobile-card .mobile-result-points {
  font-style: italic;
}

.weekly-results-section table {
  min-width: 760px;
}

.weekly-results-section table.race-selection-desktop-table {
  min-width: 860px;
}

.race-selection-desktop-table thead th {
  background: #10110f;
}

.race-selection-desktop-table tbody tr.clickable-rider-row:hover,
.race-selection-desktop-table tbody tr.clickable-rider-row:focus-visible {
  --results-row-bg: color-mix(in srgb, #10110f 78%, #f59e0b);
}

.race-selection-desktop-table tbody tr.clickable-rider-row:hover td:first-child,
.race-selection-desktop-table tbody tr.clickable-rider-row:focus-visible td:first-child {
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.82);
}

.point-play-controls {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 10px;
  align-items: center;
  margin: 12px 16px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.point-play-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.point-play-controls button:hover,
.point-play-controls button:focus-visible {
  border-color: rgba(85, 199, 165, 0.55);
  outline: 0;
}

.point-play-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.point-play-controls svg {
  width: 18px;
  height: 18px;
}

.point-play-controls div {
  min-width: 0;
  text-align: center;
}

.point-play-controls strong,
.point-play-controls span {
  display: block;
}

.point-play-controls strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.point-play-controls span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compact-list {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.compact-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-row strong {
  color: var(--forest);
}

.point-play-card {
  position: relative;
  --point-course-color: var(--forest);
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border-color: color-mix(in srgb, var(--point-course-color) 32%, rgba(255, 255, 255, 0.2));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--point-course-color) 9%, transparent), transparent 44%),
    rgba(255, 255, 255, 0.03);
}

.point-play-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--point-course-color), var(--gold), var(--cyan));
  content: "";
}

.standings-list .point-play-card:first-child {
  border-color: color-mix(in srgb, var(--point-course-color) 46%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--point-course-color) 12%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.point-play-card-step-up {
  border-color: rgba(242, 179, 94, 0.36);
  background:
    linear-gradient(90deg, rgba(242, 179, 94, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.025);
}

.point-play-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.point-play-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.point-play-heading {
  display: grid;
  gap: 3px;
  min-width: min(100%, 180px);
  margin-right: 4px;
}

.point-play-title strong {
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.1;
}

.point-play-title small {
  display: block;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.point-play-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid rgba(85, 199, 165, 0.28);
  border-radius: 999px;
  background: rgba(242, 179, 94, 0.12);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.point-play-title .point-play-rank {
  width: 34px;
  height: 34px;
  border-color: color-mix(in srgb, var(--point-course-color) 54%, rgba(255, 255, 255, 0.16));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--point-course-color) 24%, transparent), rgba(56, 189, 248, 0.08)),
    rgba(255, 255, 255, 0.045);
  color: color-mix(in srgb, var(--point-course-color) 86%, #ffffff);
  font-size: 0.92rem;
}

.point-play-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.point-play-tags span {
  min-height: 24px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
}

.point-play-tags span:nth-child(1) {
  border-color: color-mix(in srgb, var(--point-course-color) 38%, rgba(255, 255, 255, 0.13));
  background: color-mix(in srgb, var(--point-course-color) 12%, rgba(255, 255, 255, 0.03));
}

.point-play-tags span:nth-child(2) {
  border-color: rgba(56, 189, 248, 0.26);
  background: rgba(56, 189, 248, 0.07);
}

.point-play-tags span:nth-child(3) {
  border-color: rgba(242, 179, 94, 0.28);
  background: rgba(242, 179, 94, 0.08);
}

.point-play-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
}

.point-play-scoreboard-single {
  grid-template-columns: minmax(0, 1fr);
}

.point-play-scoreboard div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(242, 179, 94, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(242, 179, 94, 0.16), rgba(249, 115, 22, 0.08)),
    rgba(255, 255, 255, 0.035);
  text-align: right;
}

.point-play-scoreboard div:nth-child(2) {
  border-color: color-mix(in srgb, var(--point-course-color) 34%, rgba(56, 189, 248, 0.22));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--point-course-color) 18%, transparent), rgba(56, 189, 248, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.point-play-card-step-up .point-play-scoreboard div {
  border-color: rgba(242, 179, 94, 0.28);
  background:
    linear-gradient(160deg, rgba(242, 179, 94, 0.17), rgba(168, 85, 247, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.point-play-card-step-up .point-play-scoreboard strong {
  color: var(--gold);
}

.point-play-scoreboard span,
.point-play-scoreboard strong {
  display: block;
}

.point-play-scoreboard span {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.point-play-scoreboard strong {
  color: var(--gold);
  font-size: 1.34rem;
  font-weight: 950;
  line-height: 1;
}

.point-play-scoreboard div:nth-child(2) strong {
  color: color-mix(in srgb, var(--point-course-color) 86%, #ffffff);
}

.point-play-footnote {
  margin: 0 16px 16px;
  padding: 12px 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.5;
}

.suggestion-follow-up-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-color: rgba(85, 199, 165, 0.26);
  background:
    linear-gradient(90deg, rgba(85, 199, 165, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.03);
}

.suggestion-follow-up-main {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.suggestion-follow-up-main strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.1;
}

.suggestion-follow-up-main .suggestion-follow-up-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.compact-row .suggestion-course-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 1.45em;
  margin: 0 0.12em;
  padding: 0.04em 0.34em 0.08em;
  border: 1px solid rgba(242, 179, 94, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(249, 115, 22, 0.18), rgba(242, 179, 94, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.1);
  color: #ffad66;
  font-weight: 950;
  line-height: 1;
}

.compact-row .suggestion-course-highlight-actual {
  border-color: rgba(85, 199, 165, 0.48);
  background:
    linear-gradient(180deg, rgba(85, 199, 165, 0.18), rgba(85, 199, 165, 0.07)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgba(85, 199, 165, 0.1);
  color: #7ee7d8;
}

.suggestion-follow-up-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.suggestion-follow-up-metrics span {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(242, 179, 94, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(242, 179, 94, 0.11), rgba(249, 115, 22, 0.05)),
    rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.suggestion-follow-up-metrics b,
.suggestion-follow-up-metrics small,
.suggestion-follow-up-metrics strong {
  display: block;
  min-width: 0;
}

.suggestion-follow-up-metrics b {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: uppercase;
}

.suggestion-follow-up-metrics strong {
  overflow-wrap: anywhere;
  color: var(--orange);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.05;
}

.suggestion-follow-up-metrics small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.standings-break {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.standings-break span {
  height: 1px;
  background: var(--line);
}

.chart-pill {
  paint-order: stroke;
}

.profile-compare-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  padding: 14px 18px 0;
}

.profile-controls-row .profile-compare-bar {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-controls-row .profile-compare-actions {
  gap: 6px;
}

.profile-compare-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.compare-slot-button,
.compare-open-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-slot-button {
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  line-height: 1.05;
}

.compare-slot-button small {
  display: block;
  max-width: 118px;
  overflow: hidden;
  color: currentColor;
  font-size: 0.66rem;
  font-weight: 850;
  opacity: 0.82;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.compare-slot-label {
  display: block;
}

.profile-controls-row .compare-slot-button,
.profile-controls-row .compare-open-button {
  min-height: 38px;
  padding: 0 10px;
}

.compare-slot-button:hover,
.compare-slot-button:focus-visible,
.compare-open-button:hover,
.compare-open-button:focus-visible {
  border-color: rgba(85, 199, 165, 0.55);
  outline: 0;
}

.compare-slot-button.active {
  border-color: rgba(249, 115, 22, 0.62);
  background: var(--orange-soft);
  color: var(--paper);
}

.compare-open-button {
  border-color: rgba(85, 199, 165, 0.48);
  background: var(--forest-soft);
  color: #dffcf3;
}

.compare-open-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.rules-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}

.rules-details summary span {
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rules-details summary small {
  color: var(--muted);
  font-size: 0.8rem;
}

.comparison-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 0;
}

.compare-empty-page {
  padding: 18px;
}

.compare-empty-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: 18px;
  min-height: 0;
  padding: 22px;
}

.compare-empty-card::before {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.78), rgba(85, 199, 165, 0.62), transparent);
}

.compare-empty-copy {
  max-width: 560px;
}

.compare-empty-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.compare-empty-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.5;
}

.compare-empty-selectors {
  display: grid;
  gap: 12px;
}

.compare-empty-slot {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.04);
}

.compare-empty-slot:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(85, 199, 165, 0.08), transparent 50%),
    rgba(255, 255, 255, 0.04);
}

.compare-empty-slot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.compare-empty-slot-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 50%;
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
}

.compare-empty-slot:nth-child(2) .compare-empty-slot-icon {
  border-color: rgba(85, 199, 165, 0.42);
  color: var(--teal);
  background: rgba(85, 199, 165, 0.1);
}

.compare-empty-slot-icon .metric-icon {
  width: 20px;
  height: 20px;
}

.compare-empty-slot-head div {
  min-width: 0;
}

.compare-empty-slot-head div > span,
.compare-empty-slot label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-empty-slot-head strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-empty-slot label {
  margin-bottom: -6px;
}

.compare-empty-slot .custom-select-button {
  min-height: 46px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 54%),
    #10110f;
  font-weight: 950;
}

.compare-rider-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.compare-rider-card.accent-a {
  border-color: rgba(249, 115, 22, 0.45);
}

.compare-rider-card.accent-b {
  border-color: rgba(85, 199, 165, 0.48);
}

.compare-rider-card span,
.compare-rider-card small {
  display: block;
  color: var(--muted);
}

.compare-rider-card span {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-rider-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.comparison-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .comparison-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .comparison-stat-row {
    grid-template-columns: 1fr;
  }
}

.compare-chart {
  height: 340px;
}

.compare-explain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.compare-explain p {
  max-width: 660px;
}

.compare-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compare-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.compare-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-a {
  background: #f97316;
}

.legend-b {
  background: #55c7a5;
}

.compare-table-note {
  padding: 8px 16px 0;
}

.comparison-race-cards {
  display: none;
}

.comparison-race-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.comparison-race-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.comparison-race-card-head span,
.comparison-race-rider span,
.comparison-race-summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.comparison-race-card-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
  text-align: right;
}

.comparison-race-riders {
  display: grid;
  gap: 8px;
}

.comparison-race-rider {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.comparison-race-rider.accent-a {
  border-color: rgba(249, 115, 22, 0.35);
}

.comparison-race-rider.accent-b {
  border-color: rgba(85, 199, 165, 0.36);
}

.comparison-race-rider span,
.comparison-race-rider strong,
.comparison-race-rider .table-cell-detail {
  display: block;
}

.comparison-race-rider strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.05;
}

.comparison-race-rider .table-cell-detail {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.comparison-race-summary {
  display: grid;
  grid-template-columns: minmax(74px, max-content) minmax(0, 1fr);
  gap: 5px 10px;
  padding-top: 2px;
}

.comparison-race-summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.course-page {
  display: grid;
  gap: 14px;
}

.course-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(105deg, rgba(45, 212, 191, 0.07), transparent 48%),
    linear-gradient(135deg, #1b1a16, #10110f);
}

.course-map-copy {
  align-self: center;
}

.course-map-copy h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.course-map-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.course-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.course-map-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-map-meta .course-map-meta-points {
  border-color: color-mix(in srgb, var(--orange) 72%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--orange) 34%, transparent), rgba(249, 115, 22, 0.1)),
    rgba(249, 115, 22, 0.12);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--orange) 20%, transparent);
  color: #fff7ed;
  text-transform: none;
}

.course-map-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    rgba(8, 10, 8, 0.66);
  background-size: 24px 24px, 24px 24px, auto;
  opacity: 0.86;
}

.course-map-svg {
  width: 88%;
  height: auto;
}

.course-map-contour,
.course-map-gridline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 2;
}

.course-map-gridline {
  stroke-dasharray: 7 9;
}

.course-map-route-shadow,
.course-map-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-map-route-shadow {
  stroke: rgba(0, 0, 0, 0.65);
  stroke-width: 12;
}

.course-map-route {
  stroke: var(--course-color);
  stroke-width: 5;
  filter: url(#courseGlow);
}

.course-map-start {
  fill: var(--orange);
  stroke: #160c05;
  stroke-width: 2;
}

.course-profile-section {
  overflow: hidden;
}

.course-profile-section .course-map-panel {
  border-bottom: 0;
}

.course-profile-stat-row {
  padding: 0 16px 16px;
}

.course-record-grid,
.course-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.course-breakdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-record-card,
.course-breakdown-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--course-color, var(--orange)) 10%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.035);
}

.course-record-card span,
.course-record-card small,
.course-breakdown-card h4,
.course-breakdown-row span,
.course-breakdown-row b {
  min-width: 0;
}

.course-record-card span,
.course-breakdown-card h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.course-record-card strong {
  overflow: hidden;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.course-record-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.course-breakdown-list {
  display: grid;
  gap: 9px;
}

.course-breakdown-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

.course-breakdown-row i {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--bar-width, 0%);
  height: 3px;
  background: var(--course-color, var(--orange));
  box-shadow: 0 0 16px color-mix(in srgb, var(--course-color, var(--orange)) 42%, transparent);
}

.course-breakdown-row span,
.course-breakdown-row b {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-breakdown-row span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.course-breakdown-row b {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
}

.course-detail-table {
  min-width: 760px;
}

.course-results-intro {
  margin: 4px 18px -4px;
  padding: 12px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--orange) 38%, var(--line));
}

.course-results-intro .section-head {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .course-record-grid,
  .course-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .course-record-card strong {
    font-size: 1.02rem;
  }
}

.course-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px;
}

.course-button-grid button {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  text-align: left;
}

.course-button-grid button span {
  width: 13px;
  height: 38px;
  border-radius: 999px;
  background: var(--course-color);
}

.course-button-grid button strong,
.course-button-grid button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-button-grid button strong {
  font-size: 1.04rem;
}

.course-button-grid button small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.course-button-grid button.active,
.course-button-grid button:hover,
.course-button-grid button:focus-visible {
  border-color: rgba(249, 115, 22, 0.48);
  outline: 0;
  background: rgba(249, 115, 22, 0.1);
}

.course-page > .course-button-grid {
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 4px;
}

.course-page > .course-button-grid button {
  grid-template-columns: 13px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 66px;
  padding: 13px 18px;
}

.course-page > .course-button-grid button span {
  width: 13px;
  height: 38px;
}

.course-page > .course-button-grid button strong {
  font-size: 1.06rem;
}

.course-page > .course-button-grid button small {
  font-size: 0.84rem;
}

.stats-course-button-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 30px 18px;
}

.stats-course-button-grid button {
  grid-template-columns: 10px minmax(0, 1fr);
}

.stats-filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(240px, 360px) auto;
  gap: 12px;
  align-items: end;
  padding: 0 18px 14px;
}

.stats-filter-toolbar {
  grid-template-columns: minmax(240px, 420px) minmax(240px, 1fr) auto;
  padding: 0 30px 24px;
}

.stats-filters-section,
.stats-filters-section .stats-filter-controls,
.stats-age-filter,
.stats-age-filter .custom-select {
  overflow: visible;
}

.stats-filters-section {
  z-index: 30;
}

.stats-age-filter .custom-select.open {
  z-index: 80;
}

.stats-age-filter .custom-select-menu {
  z-index: 90;
}

.stats-gender-control {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.stats-age-filter {
  display: grid;
  gap: 6px;
}

.course-toolbar {
  grid-template-columns: minmax(180px, 240px) minmax(190px, 250px) minmax(220px, 340px) minmax(180px, 240px) auto;
  padding-top: 0;
}

.course-toolbar .segmented-control {
  width: 100%;
}

.course-toolbar .home-category-filter,
.course-toolbar .custom-select {
  align-self: stretch;
}

.course-toolbar .custom-select-button {
  height: 100%;
}

.course-stat-row {
  padding-top: 0;
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: 100%;
  }

  .nav-rail {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
  }

  .nav-header {
    justify-content: start;
  }

  .rail-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .search-panel .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .racer-list {
    max-height: none;
  }
}

@media (max-width: 920px) {
  .static-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-layout,
  .admin-seo-layout,
  .admin-seo-indexing,
  .admin-refresh-section,
  .admin-static-section,
  .admin-login-section,
  .admin-metrics,
  .admin-control-grid,
  .admin-rider-merge-card,
  .admin-action-row,
  .admin-detail-grid,
  .admin-insight-summary,
  .admin-inventory-grid,
  .admin-timeline-row,
  .admin-change-row,
  .admin-verification-grid,
  .source-url-row,
  .edge-diagnostic-summary,
  .edge-diagnostic-row,
  .leaderboard-toolbar,
  .weekly-toolbar,
  .comparison-head,
  .course-time-body,
  .profile-compare-bar,
  .course-toolbar,
  .leader-age-row,
  .point-play-card,
  .suggestion-follow-up-card {
    grid-template-columns: 1fr;
  }

  .profile-quick-summary,
  .results-loading-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .point-play-scoreboard {
    align-self: stretch;
  }

  .admin-rider-merge-bibs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suggestion-follow-up-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .suggestion-follow-up-card {
    gap: 14px;
    padding: 16px 14px;
  }

  .suggestion-follow-up-main {
    gap: 8px;
  }

  .suggestion-follow-up-metrics span {
    min-height: 66px;
    padding: 11px 10px;
  }

  .course-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-time-body {
    padding-right: 0;
  }

  .course-time-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .profile-compare-actions {
    justify-content: start;
  }

  .compare-explain {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-legend {
    justify-content: flex-start;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-nav {
    grid-template-columns: 1fr 1fr;
  }

  .leader-age-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
  }

  .leader-age-header span {
    display: none;
  }

  .leader-age-header strong:first-of-type,
  .leader-age-header strong:last-of-type {
    grid-column: auto;
  }

  .leader-age-winners {
    grid-column: 1;
  }

  body.custom-select-lock {
    overflow: hidden;
  }

  body.custom-select-lock .app-frame {
    animation: none;
    transform: none;
  }

  body.custom-select-lock .event-hero,
  body.custom-select-lock .nav-rail,
  body.custom-select-lock .nav-rail.menu-open .menu-season-panel,
  body.custom-select-lock .nav-rail.menu-open .rail-nav,
  body.custom-select-lock .profile-panel,
  body.custom-select-lock .profile-panel > *,
  body.custom-select-lock .content-grid,
  body.custom-select-lock .content-grid > * {
    animation: none;
    transform: none;
  }

  .custom-select[data-mobile-select-sheet].open {
    z-index: 900;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: none;
    padding:
      max(16px, env(safe-area-inset-top))
      14px
      max(16px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.18), transparent 18rem),
      linear-gradient(180deg, rgba(20, 21, 18, 0.99), rgba(7, 8, 7, 0.99));
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  body.custom-select-lock .nav-rail {
    pointer-events: none;
  }

  .custom-select[data-mobile-select-sheet].open .custom-select-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .custom-select[data-mobile-select-sheet] .custom-select-sheet-title {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-sheet-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid rgba(242, 179, 94, 0.34);
    border-radius: var(--radius);
    background: rgba(242, 179, 94, 0.08);
    color: var(--gold);
  }

  .custom-select[data-mobile-select-sheet] .custom-select-sheet-close:hover,
  .custom-select[data-mobile-select-sheet] .custom-select-sheet-close:focus-visible {
    border-color: rgba(242, 179, 94, 0.66);
    outline: 0;
    background: rgba(242, 179, 94, 0.14);
  }

  .custom-select[data-mobile-select-sheet] .custom-select-sheet-close .metric-icon {
    width: 20px;
    height: 20px;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-options {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 14px 0 0;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-option {
    min-height: 58px;
    padding: 13px 16px;
    border-color: var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(56, 189, 248, 0.045) 56%, transparent),
      rgba(255, 255, 255, 0.035);
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 950;
    text-align: center;
  }

  .custom-select[data-mobile-select-sheet] .custom-select-option:hover,
  .custom-select[data-mobile-select-sheet] .custom-select-option:focus-visible,
  .custom-select[data-mobile-select-sheet] .custom-select-option.active {
    border-color: rgba(242, 179, 94, 0.58);
    outline: 0;
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(56, 189, 248, 0.06) 56%, transparent),
      rgba(255, 255, 255, 0.055);
  }

  .custom-select[data-mobile-select-sheet] .custom-select-option.active {
    box-shadow:
      inset 4px 0 0 var(--gold),
      0 0 0 1px rgba(242, 179, 94, 0.18);
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 8px 6px 24px;
  }

  .dashboard-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .official-link-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .official-link-action {
    width: fit-content;
  }

  .event-hero.home-hero,
  .event-hero.compact-hero {
    margin-bottom: 8px;
    padding: 14px 14px;
  }

  .hero-metrics,
  .stat-row-primary,
  .stat-row-secondary,
  .search-panel .filters,
  .course-button-grid {
    grid-template-columns: 1fr;
  }

  .admin-rider-merge-bibs {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-map-panel {
    grid-template-columns: minmax(0, 1fr) minmax(102px, 132px);
    padding: 10px 14px;
  }

  .race-countdown {
    display: none;
  }

  .event-hero.view-weekly.compact-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather {
    gap: 3px;
    min-height: 24px;
    padding: 3px 7px;
    font-size: 0.72rem;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather-icon,
  .event-hero.view-weekly.compact-hero .weekly-title-weather-svg {
    width: 13px;
    height: 13px;
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather-icon {
    flex-basis: 13px;
  }

  .event-hero.view-weekly.compact-hero:has(.hero-weather-icon) {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 98px;
  }

  .event-hero.view-weekly.compact-hero .race-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 74px;
    min-height: 48px;
    padding: 7px 9px;
    border-width: 1px;
    border-left-width: 3px;
    border-radius: 10px;
  }

  .event-hero.view-weekly.compact-hero .race-countdown:has(.hero-weather-icon) {
    top: calc(50% - 4px);
    right: 12px;
    flex-direction: row;
    gap: 7px;
    justify-content: center;
    width: 74px;
    min-width: 74px;
    height: 32px;
    min-height: 32px;
    padding: 0;
  }

  .event-hero.view-weekly.compact-hero .race-countdown:has(.hero-week-copy) {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: auto;
    min-width: 74px;
    height: auto;
    min-height: 48px;
    padding: 7px 9px;
    border-width: 1px;
    border-left-width: 3px;
    border-top-width: 1px;
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(249, 115, 22, 0.17), rgba(85, 199, 165, 0.06)),
      rgba(15, 15, 13, 0.92);
  }

  .event-hero.view-weekly.compact-hero .race-countdown:has(.hero-week-copy)::before {
    display: none;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-inline {
    right: calc(100% + 8px);
    gap: 5px;
    min-width: 58px;
    padding: 6px 8px;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-inline .hero-weather-icon,
  .event-hero.view-weekly.compact-hero .hero-weather-inline .hero-weather-svg {
    width: 18px;
    height: 18px;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-inline .hero-weather-icon {
    flex-basis: 18px;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-inline .hero-weather-copy strong {
    font-size: 0.98rem;
  }

  .event-hero.view-weekly.compact-hero .race-countdown span:not(.hero-weather-icon):not(.hero-weather-copy):not(.hero-week-copy):not(.hero-weather-inline),
  .event-hero.view-weekly.compact-hero .race-countdown small {
    display: none;
  }

  .event-hero.view-weekly.compact-hero .race-countdown strong,
  .event-hero.view-weekly.compact-hero .race-countdown .hero-weather-copy strong {
    font-size: 1.28rem;
    font-weight: 760;
    line-height: 1;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-icon,
  .event-hero.view-weekly.compact-hero .hero-weather-svg {
    width: 24px;
    height: 24px;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-icon {
    flex-basis: 24px;
  }

  .event-hero.view-weekly.compact-hero .hero-weather-copy {
    justify-items: center;
    min-width: 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .all-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .all-results-course-filter .custom-select {
    width: min(260px, calc(100vw - 84px));
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .nav-rail {
    display: grid;
    grid-template-columns: minmax(168px, 210px) minmax(0, 1fr);
    grid-template-areas:
      "brand controls"
      "brand search"
      "nav nav";
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .nav-header {
    display: contents;
  }

  .nav-header .brand {
    grid-area: brand;
    min-height: 86px;
  }

  .nav-header .brand-logo {
    width: min(100%, 168px);
  }

  .nav-header .menu-season-panel {
    grid-area: controls;
    width: 100%;
  }

  .search-panel {
    grid-area: search;
  }

  .rail-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .rail-nav a {
    gap: 7px;
    min-height: 38px;
    padding: 8px 7px;
    font-size: 0.82rem;
  }

  .app-shell {
    padding: 14px 16px 30px;
  }

  .event-hero,
  .event-hero.home-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    min-height: 156px;
    padding: 22px 28px;
  }

  .event-hero.home-hero h1 {
    font-size: clamp(2.1rem, 4.1vw, 2.75rem);
  }

  .event-hero.home-hero .race-countdown {
    justify-self: end;
    margin-top: 0;
  }

  .profile-panel {
    padding: 14px;
  }

  .weekly-results-home.content-grid {
    width: 100%;
  }

  .weekly-course-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
  }

  .weekly-course-card {
    min-height: 48px;
    padding: 10px;
  }

  .weekly-toolbar,
  .course-toolbar {
    grid-template-columns: minmax(230px, 1fr) minmax(210px, 0.76fr) minmax(230px, 1fr) 42px;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .weekly-toolbar .home-category-filter:first-child,
  .weekly-toolbar .segmented-control,
  .weekly-toolbar .home-category-filter:not(:first-child),
  .weekly-toolbar .filter-reset-button {
    grid-column: auto;
  }

  .weekly-week-picker {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .age-filter-picker {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .weekly-toolbar .age-filter-picker > button {
    display: grid;
  }

  .weekly-toolbar .segmented-control button,
  .weekly-toolbar .home-category-filter .custom-select-button,
  .weekly-week-picker > button,
  .age-filter-picker > button,
  .weekly-toolbar .filter-reset-button {
    min-height: 42px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    overflow-x: hidden;
    background:
      radial-gradient(circle at 16% 0%, rgba(249, 115, 22, 0.14), transparent 18rem),
      radial-gradient(circle at 92% 8%, rgba(85, 199, 165, 0.1), transparent 16rem),
      linear-gradient(180deg, #11130f, #090a09 34rem),
      var(--bg);
  }

  body::before {
    background-size: 34px 34px;
  }

  .app-frame {
    display: block;
  }

  .nav-rail {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(84px, max-content);
    column-gap: 4px;
    row-gap: 12px;
    width: 100%;
    overflow: visible;
    padding: max(12px, env(safe-area-inset-top)) 10px 12px;
    background: rgba(9, 10, 9, 0.96);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
  }

  .nav-rail.menu-open {
    position: fixed;
    inset: 0;
    z-index: 420;
    align-content: start;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.16), transparent 18rem),
      linear-gradient(180deg, rgba(9, 10, 9, 0.99), rgba(7, 8, 7, 0.99));
    overscroll-behavior: contain;
  }

  .nav-rail.search-open {
    position: fixed;
    inset: 0;
    z-index: 420;
    align-content: start;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.14), transparent 18rem),
      linear-gradient(180deg, rgba(9, 10, 9, 0.99), rgba(7, 8, 7, 0.99));
    overscroll-behavior: contain;
  }

  body.mobile-menu-lock {
    overflow: hidden;
  }

  .brand {
    justify-content: start;
    min-height: 46px;
    min-width: 0;
  }

  .nav-header {
    grid-column: 1;
  }

  .nav-header .menu-season-panel {
    display: none;
  }

  .nav-rail.menu-open .nav-header {
    display: contents;
  }

  .nav-rail.menu-open .brand {
    grid-column: 1;
    order: 1;
  }

  .nav-rail.menu-open .mobile-search-button,
  .nav-rail.search-open .mobile-search-button {
    grid-column: 2;
    justify-self: end;
    order: 2;
  }

  .nav-rail.menu-open .mobile-menu-button {
    grid-column: 3;
    justify-self: end;
    order: 3;
  }

  .nav-rail.search-open .nav-header {
    display: contents;
  }

  .nav-rail.search-open .brand {
    grid-column: 1;
    order: 1;
  }

  .nav-rail.search-open .mobile-menu-button {
    grid-column: 3;
    justify-self: end;
    order: 3;
  }

  .nav-rail.menu-open .nav-header .menu-season-panel {
    grid-column: 1 / -1;
    display: flex;
    order: 4;
    position: relative;
    z-index: 30;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .nav-rail.menu-open .menu-season-panel .season-switcher,
  .nav-rail.menu-open .menu-season-panel .season-dropdown,
  .nav-rail.menu-open .menu-season-panel .custom-select {
    width: 100%;
  }

  .nav-rail.menu-open .menu-season-panel .season-dropdown {
    display: grid;
    grid-template-columns: auto minmax(96px, 140px);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    padding: 8px 10px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(249, 115, 22, 0.045)),
      rgba(255, 255, 255, 0.035);
  }

  .nav-rail.menu-open .menu-season-panel .season-dropdown > span.sr-only {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: var(--muted);
    white-space: normal;
  }

  .nav-rail.menu-open .static-menu-season .season-dropdown::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
    content: "Season";
  }

  .nav-rail.menu-open .menu-season-panel .custom-select-button,
  .nav-rail.menu-open .menu-season-panel .static-season-link {
    min-height: 40px;
    padding: 0 38px 0 14px;
    border-color: rgba(56, 189, 248, 0.54);
    justify-content: center;
    background:
      linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(249, 115, 22, 0.08) 58%, rgba(255, 255, 255, 0.035)),
      rgba(14, 15, 13, 0.78);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 18px rgba(56, 189, 248, 0.08);
    border-radius: 8px;
    font-size: 0.86rem;
  }

  .brand-logo {
    width: clamp(132px, 44vw, 188px);
    max-width: 100%;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid rgba(249, 115, 22, 0.42);
    border-radius: var(--radius);
    background: rgba(249, 115, 22, 0.12);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .mobile-menu-button .nav-icon {
    color: inherit;
  }

  .mobile-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--gold);
  }

  .mobile-search-button .nav-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.36));
  }

  .mobile-menu-button:hover,
  .mobile-menu-button:focus-visible,
  .nav-rail.menu-open .mobile-menu-button {
    border-color: rgba(249, 115, 22, 0.72);
    outline: 0;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: #140c05;
  }

  .mobile-search-button:hover,
  .mobile-search-button:focus-visible,
  .nav-rail.search-open .mobile-search-button {
    border-color: rgba(249, 115, 22, 0.72);
    outline: 0;
    background:
      radial-gradient(circle at center, rgba(249, 115, 22, 0.34), rgba(249, 115, 22, 0.14) 58%, rgba(249, 115, 22, 0.08)),
      rgba(255, 255, 255, 0.035);
    box-shadow:
      inset 0 0 0 1px rgba(242, 179, 94, 0.12),
      0 0 18px rgba(249, 115, 22, 0.18);
    color: #fff;
  }

  .mobile-menu-button:hover .nav-icon,
  .mobile-menu-button:focus-visible .nav-icon,
  .nav-rail.menu-open .mobile-menu-button .nav-icon {
    color: #140c05;
  }

  .mobile-search-button:hover .nav-icon,
  .mobile-search-button:focus-visible .nav-icon,
  .nav-rail.search-open .mobile-search-button .nav-icon {
    color: #fff;
    filter:
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 16px rgba(249, 115, 22, 0.68));
  }

  .rail-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nav-rail.menu-open .rail-nav {
    display: grid;
    grid-template-columns: 1fr;
    order: 6;
    padding-top: 8px;
    animation: mobile-panel-enter 180ms ease-out both;
  }

  .nav-rail.menu-open .rail-nav a[data-view="home"] {
    order: 1;
  }

  .nav-rail.menu-open .rail-nav a[data-view="standings"] {
    order: 2;
  }

  .nav-rail.menu-open .rail-nav a[data-view="weekly"] {
    order: 3;
  }

  .nav-rail.menu-open .rail-nav a[data-view="courses"] {
    order: 4;
  }

  .nav-rail.menu-open .rail-nav a[data-view="compare"] {
    order: 5;
  }

  .nav-rail.menu-open .rail-nav a[data-view="stats"] {
    order: 6;
  }

  .nav-rail.menu-open .rail-nav a[data-view="issues"] {
    order: 7;
  }

  .nav-rail.menu-open .rail-nav a[data-view="contact"] {
    order: 8;
  }

  .nav-rail.menu-open .rail-nav a[href="/about/"] {
    order: 9;
  }

  .rail-nav a {
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.92rem;
    line-height: 1.1;
    white-space: normal;
  }

  .nav-rail.menu-open .rail-nav a {
    min-height: 56px;
    padding: 13px 14px;
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
      rgba(8, 9, 8, 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      inset 0 -1px 0 rgba(0, 0, 0, 0.42);
    font-size: 1.08rem;
  }

	  .nav-rail.menu-open .rail-nav a:not(.active):hover,
	  .nav-rail.menu-open .rail-nav a:not(.active):focus-visible {
	    border-color: rgba(242, 179, 94, 0.56);
	    background:
	      linear-gradient(135deg, rgba(242, 179, 94, 0.2), rgba(56, 189, 248, 0.075) 64%, transparent),
	      rgba(255, 255, 255, 0.06);
	    box-shadow:
	      0 12px 28px rgba(242, 179, 94, 0.09),
	      inset 0 1px 0 rgba(255, 255, 255, 0.12);
	    color: var(--ink);
	  }

	  .nav-rail.menu-open .rail-nav a:not(.active):hover .nav-icon,
	  .nav-rail.menu-open .rail-nav a:not(.active):focus-visible .nav-icon {
	    color: var(--gold);
	  }

  .nav-rail.menu-open .rail-nav a.active {
    border-color: rgba(249, 115, 22, 0.66);
    background: linear-gradient(135deg, var(--orange), var(--gold));
    box-shadow:
      0 12px 28px rgba(249, 115, 22, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  .nav-rail.menu-open .rail-nav a .nav-icon {
    width: 22px;
    height: 22px;
  }

  .rail-nav a span {
    display: none;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .search-panel,
  .season-panel {
    display: none;
    grid-column: 1 / -1;
    padding: 12px;
  }

  .search-panel {
    max-height: calc(100dvh - 132px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-rail.search-open .search-panel {
    min-height: 0;
    max-height: none;
    padding: 4px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-rail.menu-open .search-panel .panel-title {
    display: none;
  }

  .nav-rail.search-open .search-panel,
  .nav-rail.menu-open .season-panel {
    display: flex;
  }

  .nav-rail.search-open .search-panel {
    order: 4;
    overflow: visible;
    animation: mobile-panel-enter 180ms ease-out both;
  }

  .nav-rail.search-open .racer-list {
    max-height: clamp(260px, calc(100dvh - 230px), 640px);
    margin-bottom: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-rail.menu-open .season-panel:not(.menu-season-panel) {
    order: 6;
  }

  .nav-rail.menu-open .season-panel {
    overflow: visible;
  }

  .nav-rail.menu-open .menu-season-panel {
    overflow: visible;
    animation: mobile-panel-enter 180ms ease-out both;
  }

  .static-seo-page .nav-rail {
    grid-template-columns: minmax(0, 1fr) 48px minmax(84px, max-content);
  }

  .seo-page-frame .nav-rail {
    column-gap: 4px;
    row-gap: 12px;
  }

  .static-seo-page .rail-nav {
    display: none;
  }

  .static-seo-page .nav-rail.menu-open .rail-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .static-seo-page .rail-nav .menu-season-panel {
    grid-column: auto;
    display: flex;
    padding: 0;
  }

  .panel-title {
    margin-bottom: 10px;
  }

  .panel-title h2 {
    font-size: 1rem;
  }

  .mini-stat {
    padding: 10px;
  }

  .mini-stat strong {
    font-size: 1.08rem;
  }

  .racer-list {
    max-height: 230px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-shell {
    padding: 12px 6px 28px;
  }

  .season-switcher {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .season-tabs {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    width: 100%;
  }

  .season-tabs button {
    min-width: 0;
  }

  .event-hero,
  .event-hero.home-hero,
  .event-hero.compact-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 16px;
  }

  .event-hero.home-hero {
    min-height: 140px;
  }

  .event-hero.compact-hero {
    margin-bottom: 0;
  }

  .event-hero.compact-hero h1 {
    gap: 8px;
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1;
  }

  .static-landing-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .mobile-app-share-panel {
    display: block;
  }

  .event-hero.view-weekly.compact-hero {
    margin-bottom: 8px;
    padding-bottom: 20px;
  }

  .event-hero.view-weekly.compact-hero h1 {
    align-items: baseline;
    column-gap: 7px;
    row-gap: 5px;
    margin-bottom: 8px;
    font-size: clamp(1.55rem, 6.8vw, 2.15rem);
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather {
    gap: 3px;
    min-height: 20px;
    padding: 2px 6px;
    font-size: 0.62rem;
    line-height: 1;
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather-icon,
  .event-hero.view-weekly.compact-hero .weekly-title-weather-svg {
    width: 11px;
    height: 11px;
  }

  .event-hero.view-weekly.compact-hero .weekly-title-weather-icon {
    flex-basis: 11px;
  }

  .event-hero.home-hero.view-profile,
  .event-hero.compact-hero.view-profile {
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 48%),
      linear-gradient(165deg, rgba(45, 212, 191, 0.08), transparent 54%),
      rgba(17, 18, 16, 0.88);
  }

  .event-hero.home-hero.view-profile h1,
  .event-hero.compact-hero.view-profile h1 {
    gap: 7px;
    margin-bottom: 5px;
    font-size: clamp(1.3rem, 8vw, 1.85rem);
    line-height: 1;
  }

  .event-hero.home-hero.view-profile .profile-subheading,
  .event-hero.compact-hero.view-profile .profile-subheading {
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  h1,
  .empty-state h2 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    line-height: 1;
  }

  .course-map-copy h2 {
    margin-bottom: 0;
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
    line-height: 1.05;
  }

  .event-meta {
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .race-countdown,
  .event-hero.compact-hero .race-countdown {
    display: none;
  }

  .event-hero.home-hero.view-profile .race-countdown,
  .event-hero.compact-hero.view-profile .race-countdown {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    min-width: 0;
    min-height: 0;
    margin-top: 4px;
    padding: 6px 8px;
    border-width: 1px;
    border-left-width: 2px;
    border-radius: 8px;
  }

  .event-hero.home-hero.view-profile .race-countdown .profile-rank-link,
  .event-hero.compact-hero.view-profile .race-countdown .profile-rank-link {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
    min-height: 0;
    text-align: left;
  }

  .event-hero.home-hero.view-profile .race-countdown span,
  .event-hero.compact-hero.view-profile .race-countdown span {
    color: var(--gold);
    font-size: 0.55rem;
    white-space: nowrap;
  }

  .event-hero.home-hero.view-profile .race-countdown strong,
  .event-hero.compact-hero.view-profile .race-countdown strong {
    font-size: 1.08rem;
    line-height: 1;
  }

  .event-hero.home-hero.view-profile .race-countdown small,
  .event-hero.compact-hero.view-profile .race-countdown small {
    max-width: none;
    color: var(--muted);
    font-size: 0.55rem;
    white-space: nowrap;
  }

  .bib-pill {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .hero-metrics,
  .stat-row,
  .stat-row-primary,
  .stat-row-secondary,
  .admin-metrics,
  .admin-control-grid,
  .admin-action-row,
  .admin-detail-grid,
  .admin-insight-summary,
  .admin-inventory-grid,
  .admin-timeline-row,
  .admin-change-row,
  .admin-verification-grid,
  .source-url-row,
  .comparison-head,
  .course-time-pills,
  .search-panel .filters {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    max-width: none;
  }

  .course-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-stat-row .stat-card {
    min-height: 96px;
  }

  .profile-hero,
  .content-grid,
  .home-layout,
  .admin-layout,
  .stat-row,
  .course-time-layout,
  .compact-list,
  .leaderboard-table,
  .leader-age-list {
    padding: 12px;
  }

  .profile-panel,
  .panel-section:not(.results-table-wrap) {
    overflow: visible;
  }

  .profile-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .profile-hero,
  .content-grid,
  .home-layout,
  .admin-layout,
  .course-time-layout {
    padding: 0;
  }

  .weekly-results-page.content-grid {
    gap: 8px;
  }

  .weekly-results-home.content-grid {
    gap: 8px;
  }

  .panel-section {
    border: 0;
    border-radius: 0;
  }

  .panel-section:not(.results-table-wrap) {
    background: rgba(18, 18, 16, 0.72);
  }

  .weekly-course-cards,
  .stats-card-row,
  .compact-list,
  .leaderboard-table,
  .leader-age-list,
  .seo-results-copy,
  .official-link-list,
  .seo-link-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  .weekly-course-cards,
  .leaderboard-table,
  .leader-age-list,
  .field-grid,
  .field-section .bar-list,
  .issue-card-grid,
  .short-time-chart,
  .comparison-head,
  .standings-list,
  .official-link-list,
  .seo-link-row,
  .seo-results-copy {
    padding-right: 0;
    padding-left: 0;
  }

  .mobile-course-picker {
    display: block;
    padding: 0 10px 12px;
  }

  .mobile-course-picker-stepper {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: stretch;
    padding: 0 10px 12px;
  }

  .mobile-course-picker-stepper .mobile-course-picker {
    min-width: 0;
    padding: 0;
  }

  .mobile-course-picker-stepper .mobile-course-picker-trigger {
    min-width: 0;
    max-width: 100%;
  }

  .weekly-course-summary .mobile-course-picker {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .weekly-course-summary .weekly-mobile-course-stepper {
    grid-template-columns: 86px minmax(9rem, 1fr) 86px;
    gap: 6px;
    padding: 0 0 8px;
  }

  .course-page .course-results-mobile-course-stepper {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 12px;
    padding: 0 10px 18px;
  }

  .course-page .course-results-mobile-course-stepper > button,
  .course-page .course-results-mobile-course-stepper .mobile-course-picker-trigger {
    min-height: 64px;
    border-radius: 18px;
  }

  .course-page .course-results-mobile-course-stepper .mobile-course-picker-trigger {
    grid-template-columns: 14px minmax(0, 1fr) 40px;
    padding: 10px 14px;
  }

  .course-page .course-results-mobile-course-stepper .mobile-course-picker-color {
    width: 14px;
    min-height: 42px;
  }

  .course-page > .mobile-course-picker,
  .stats-mobile-course-picker {
    padding-top: 0;
    padding-bottom: 0;
  }

  .all-results-course-filter .mobile-course-picker {
    padding: 0;
  }

  .all-results-course-filter .custom-select {
    display: none;
  }

  .course-picker-source {
    display: none;
  }

  .mobile-course-picker.open .mobile-course-picker-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    padding:
      env(safe-area-inset-top)
      0
      env(safe-area-inset-bottom);
    overflow: hidden;
  }

  .mobile-course-picker.open .mobile-course-picker-sheet {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .weekly-toolbar,
  .leaderboard-toolbar,
  .course-toolbar,
  .stats-filter-controls,
  .section-head {
    padding-right: 10px;
    padding-left: 10px;
  }

  .profile-title {
    gap: 12px;
  }

  .profile-title > div,
  .season-link-bar > div,
  .course-map-copy {
    min-width: 0;
  }

  .profile-title h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .profile-quick-summary,
  .results-loading-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-quick-item {
    padding: 10px;
  }

  .profile-quick-item span {
    font-size: 0.66rem;
  }

  .profile-quick-item strong {
    font-size: 0.92rem;
  }

  .profile-quick-item small {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .bib-badge {
    width: 58px;
    height: 58px;
    font-size: 1.15rem;
  }

  .season-link-bar,
  .profile-compare-bar {
    margin: 8px 10px 0;
    padding: 10px;
  }

  .all-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .season-link-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    border-radius: 10px;
  }

  .season-link-bar .eyebrow {
    margin-bottom: 1px;
    font-size: 0.6rem;
  }

  .season-link-bar > div > span {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .season-link-picker {
    min-width: 118px;
  }

  .season-link-picker .custom-select-button {
    min-height: 38px;
    padding-right: 32px;
    padding-left: 12px;
    border-radius: 9px;
    font-size: 0.9rem;
  }

  .season-link-picker .custom-select-button::after {
    right: 10px;
  }

  .profile-compare-bar {
    justify-content: stretch;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .profile-compare-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .compare-slot-button,
  .compare-open-button {
    min-height: 42px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 0.68rem;
  }

  .compare-open-button small {
    display: none;
  }

  .compare-slot-button small {
    display: block;
    max-width: min(26vw, 104px);
    font-size: 0.62rem;
  }

  .compare-slot-button strong,
  .compare-open-button strong {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .profile-compare-actions,
  .leaderboard-pagination,
  .racer-pagination {
    align-items: stretch;
  }

  .profile-compare-actions button,
  .leaderboard-pagination button,
  .racer-pagination button {
    flex: 1 1 0;
  }

  .leaderboard-toolbar,
  .weekly-toolbar,
  .course-toolbar,
  .stats-filter-controls {
    gap: 12px;
    padding: 12px 12px 0;
  }

  .weekly-toolbar {
    grid-template-columns: minmax(164px, 1fr) minmax(118px, 0.8fr) 42px;
    align-items: stretch;
    gap: 6px;
    padding: 0 0 8px;
  }

  .weekly-course-summary + .weekly-controls-section {
    margin-top: 0;
  }

  .weekly-toolbar .home-category-filter:first-child {
    grid-column: 1 / -1;
  }

  .weekly-toolbar .segmented-control {
    grid-column: 1 / 2;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) {
    grid-column: 2 / 3;
  }

  .weekly-toolbar .filter-reset-button {
    grid-column: 3 / 4;
  }

  .weekly-week-picker {
    grid-template-columns: 86px minmax(9rem, 1fr) 86px;
  }

  .course-page .course-filter-toolbar {
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .course-page .course-filter-toolbar .weekly-week-picker {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 12px;
  }

  .course-page .course-filter-toolbar .weekly-week-picker > button,
  .course-page .course-filter-toolbar .weekly-week-picker .custom-select-button {
    min-height: 64px;
    border-radius: 18px;
  }

  .age-filter-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .leaderboard-toolbar .age-filter-picker > button {
    display: none;
  }

  .weekly-toolbar .age-filter-picker > button {
    display: none;
  }

  .weekly-toolbar .segmented-control,
  .weekly-toolbar .home-category-filter {
    width: 100%;
  }

  .weekly-toolbar .home-category-filter .custom-select,
  .weekly-toolbar .home-category-filter .custom-select-button {
    width: 100%;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) .custom-select-button {
    justify-content: center;
    padding-right: 26px;
    padding-left: 26px;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) .custom-select-button span {
    font-size: 0.98rem;
  }

  .weekly-toolbar .segmented-control button,
  .weekly-toolbar .home-category-filter .custom-select-button,
  .weekly-week-picker > button,
  .age-filter-picker > button,
  .weekly-toolbar .filter-reset-button {
    min-height: 44px;
  }

  .weekly-course-summary .mobile-course-picker-trigger,
  .weekly-course-summary .mobile-course-picker-stepper > button,
  .weekly-toolbar .custom-select-button,
  .weekly-week-picker > button,
  .age-filter-picker > button,
  .weekly-toolbar .segmented-control,
  .weekly-toolbar .filter-reset-button {
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(242, 179, 94, 0.08), rgba(85, 199, 165, 0.035) 58%, transparent),
      linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
      #11120f;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 -1px 0 rgba(0, 0, 0, 0.46);
  }

  .weekly-course-summary .mobile-course-picker-trigger {
    min-height: 44px;
    padding: 7px 10px;
  }

  .weekly-course-summary .mobile-course-picker-copy {
    align-content: center;
  }

  .weekly-course-summary .mobile-course-picker-color {
    min-height: 26px;
  }

  .weekly-course-summary .mobile-course-picker-copy strong {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .weekly-course-summary .mobile-course-picker-trigger:hover,
  .weekly-course-summary .mobile-course-picker-trigger:focus-visible,
  .weekly-course-summary .mobile-course-picker-stepper > button:hover,
  .weekly-course-summary .mobile-course-picker-stepper > button:focus-visible,
  .weekly-toolbar .custom-select-button:hover,
  .weekly-toolbar .custom-select-button:focus-visible,
  .weekly-toolbar .custom-select.open .custom-select-button,
  .weekly-week-picker > button:hover,
  .weekly-week-picker > button:focus-visible,
  .age-filter-picker > button:hover,
  .age-filter-picker > button:focus-visible,
  .weekly-toolbar .segmented-control:has(button:hover),
  .weekly-toolbar .segmented-control:has(button:focus-visible) {
    border-color: rgba(242, 179, 94, 0.52);
    outline: 0;
    background:
      linear-gradient(135deg, rgba(242, 179, 94, 0.13), rgba(85, 199, 165, 0.045) 58%, transparent),
      linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
      #11120f;
  }

  .weekly-toolbar .custom-select-button::after {
    right: 18px;
    border-color: var(--gold);
  }

  .weekly-week-picker svg,
  .age-filter-picker svg,
  .mobile-course-picker-trigger-action .metric-icon {
    color: var(--gold);
    stroke-width: 2.4;
  }

  .weekly-toolbar .segmented-control button {
    border-color: rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--muted);
  }

  .weekly-toolbar .segmented-control button.active {
    background: rgba(85, 199, 165, 0.2);
    color: #dffcf3;
  }

  .weekly-toolbar .segmented-control button:hover,
  .weekly-toolbar .segmented-control button:focus-visible {
    background: rgba(242, 179, 94, 0.1);
    color: var(--ink);
  }

  .weekly-gender-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gender-segmented-control .gender-label-full,
  .weekly-gender-control .gender-label-full,
  .stats-gender-control .gender-label-full {
    display: none;
  }

  .gender-segmented-control .gender-label-short,
  .weekly-gender-control .gender-label-short,
  .stats-gender-control .gender-label-short {
    display: inline;
  }

  .weekly-gender-control button {
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .stats-filter-controls {
    grid-template-columns: minmax(132px, 0.9fr) minmax(112px, 1fr) 44px;
    align-items: stretch;
    gap: 8px;
    padding: 8px 6px 10px;
  }

  .stats-filter-controls .stats-gender-control {
    grid-column: 1 / 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .stats-filter-controls .stats-age-filter {
    grid-column: 2 / 3;
    min-width: 0;
  }

  .stats-filter-controls .filter-reset-button {
    grid-column: 3 / 4;
    width: 44px;
    min-width: 44px;
  }

  .stats-filter-controls .segmented-control,
  .stats-filter-controls .home-category-filter,
  .stats-filter-controls .home-category-filter .custom-select,
  .stats-filter-controls .home-category-filter .custom-select-button {
    width: 100%;
  }

  .stats-filter-controls .home-category-filter .custom-select-button {
    justify-content: flex-start;
    min-width: 0;
    padding-right: 24px;
    padding-left: 9px;
  }

  .stats-filter-controls .home-category-filter .custom-select-button span {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stats-filter-controls .segmented-control button,
  .stats-filter-controls .home-category-filter .custom-select-button,
  .stats-filter-controls .filter-reset-button {
    height: 46px;
    min-height: 46px;
  }

  .stats-filter-controls .segmented-control button {
    min-width: 0;
    padding-inline: 4px;
    font-size: 0.84rem;
  }

  .stats-filter-controls .custom-select-button,
  .stats-filter-controls .segmented-control,
  .stats-filter-controls .filter-reset-button,
  .stats-filters-section .mobile-course-picker-trigger {
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(242, 179, 94, 0.08), rgba(85, 199, 165, 0.035) 58%, transparent),
      linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
      #11120f;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 -1px 0 rgba(0, 0, 0, 0.46);
  }

  .stats-filters-section .mobile-course-picker-trigger {
    min-height: 52px;
    padding: 7px 9px;
  }

  .stats-filters-section .mobile-course-picker {
    padding: 0 6px 6px;
  }

  .stats-filters-section .mobile-course-picker-color {
    width: 10px;
    min-height: 30px;
  }

  .stats-filters-section .mobile-course-picker-copy small {
    font-size: 0.66rem;
  }

  .stats-filters-section .mobile-course-picker-copy strong {
    font-size: 0.94rem;
  }

  .stats-page {
    gap: 8px;
  }

  .stats-trend-section .stats-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 10px 8px;
  }

  .stats-trend-section .stat-card {
    min-height: 84px;
    padding: 9px 8px 11px;
  }

  .stats-trend-section .stat-label {
    gap: 5px;
    font-size: 0.6rem;
    line-height: 1.08;
  }

  .stats-trend-section .metric-icon {
    width: 14px;
    height: 14px;
  }

  .stats-trend-section .stat-card strong {
    margin-top: 7px;
    font-size: 1rem;
    line-height: 1.05;
  }

  .stats-trend-section .stat-card small {
    margin-top: 6px;
    font-size: 0.58rem;
    line-height: 1.05;
  }

  .stats-line-chart.mobile-chart,
  .stats-weather-combo-chart {
    height: 252px;
    padding: 4px 8px 10px;
  }

  .weather-summary-strip {
    gap: 5px 9px;
    padding: 0 10px 2px;
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .weather-combo-legend {
    margin-left: 0;
  }

  .field-grid {
    gap: 6px;
    padding: 0 8px 10px;
  }

  .field-title-stack {
    gap: 7px;
  }

  .field-gender-chips {
    gap: 5px;
  }

  .field-gender-chip {
    min-height: 25px;
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .field-gender-chip strong {
    font-size: 0.78rem;
  }

  .field-grid h4,
  .field-chart-head {
    margin-top: 6px;
    margin-right: 4px;
    margin-left: 4px;
  }

  .field-section .bar-list {
    gap: 5px;
    padding: 7px 0 3px;
  }

  .field-age-panel .bar-row,
  .field-section .bar-row {
    grid-template-columns: minmax(82px, 108px) minmax(0, 1fr) 28px;
    gap: 6px;
    min-height: 24px;
  }

  .field-section .bar-row > span,
  .field-section .bar-row strong {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .field-section .bar-track {
    height: 9px;
  }

  .stats-heatmap-legend {
    gap: 8px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .stats-heatmap {
    grid-template-columns: minmax(92px, 104px) repeat(var(--week-count), 32px);
    gap: 4px;
    padding: 10px 8px 8px;
  }

  .stats-heatmap-corner,
  .stats-heatmap-week,
  .stats-heatmap-label {
    font-size: 0.66rem;
    line-height: 1.05;
  }

  .stats-heatmap-label {
    position: sticky;
    left: 0;
    z-index: 2;
    min-height: 28px;
    padding-right: 5px;
    background: rgba(18, 18, 16, 0.95);
  }

  .stats-heatmap-cell {
    min-width: 32px;
    min-height: 28px;
    border-radius: 5px;
    font-size: 0.72rem;
  }

  .stats-filter-controls .custom-select-button:hover,
  .stats-filter-controls .custom-select-button:focus-visible,
  .stats-filter-controls .custom-select.open .custom-select-button,
  .stats-filter-controls .segmented-control:has(button:hover),
  .stats-filter-controls .segmented-control:has(button:focus-visible),
  .stats-filters-section .mobile-course-picker-trigger:hover,
  .stats-filters-section .mobile-course-picker-trigger:focus-visible {
    border-color: rgba(242, 179, 94, 0.52);
    outline: 0;
    background:
      linear-gradient(135deg, rgba(242, 179, 94, 0.13), rgba(85, 199, 165, 0.045) 58%, transparent),
      linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
      #11120f;
  }

  .stats-filter-controls .custom-select-button::after {
    right: 18px;
    border-color: var(--gold);
  }

  .segmented-control {
    width: 100%;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
    padding: 13px 12px 0;
  }

  .weekly-results-section .section-head {
    padding: 9px 12px 8px;
  }

  .weekly-results-section .section-head h3 .section-head-title-meta {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .weekly-results-section .section-head .race-selection-header-pill {
    display: inline-flex;
    font-size: 11px;
    white-space: nowrap;
  }

  .race-selection-table-section {
    border-color: rgba(255, 255, 255, 0.1);
    outline: 0;
    background:
      linear-gradient(135deg, rgba(245, 158, 11, 0.055), rgba(255, 255, 255, 0.018)),
      #10110f;
    box-shadow: none;
  }

  .race-selection-table-section .section-head {
    align-items: flex-start;
    padding: 10px 12px 9px;
    text-align: left;
  }

  .race-selection-table-section .section-head h3 {
    justify-content: flex-start;
    text-align: left;
  }

  .race-selection-table-section .section-head .race-selection-header-pill {
    align-self: flex-start;
  }

  .section-head span {
    display: block;
    white-space: normal;
  }

  .short-time-review-section .section-head,
  .issue-card-section .section-head {
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }

  .short-time-review-section .section-head h3,
  .issue-card-section .section-head h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .short-time-review-section .section-head span,
  .issue-card-section .section-head span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .weekly-course-summary .section-head {
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .weekly-course-summary .section-head h3,
  .weekly-course-summary .section-head span {
    min-width: 0;
    line-height: 1.15;
    white-space: nowrap;
  }

  .weekly-course-summary .section-head h3 {
    flex: 0 0 auto;
  }

  .weekly-course-summary .section-head span {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .weekly-course-summary .mobile-course-picker {
    padding-top: 0;
    padding-bottom: 0;
  }

  .stat-card {
    min-height: 64px;
    padding: 10px;
  }

  .course-stat-row {
    gap: 8px;
    padding: 8px 10px 0;
  }

  .course-stat-row .stat-card {
    min-height: 70px;
    padding: 9px 10px;
  }

  .stat-row-primary,
  .stat-row-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-extra-stat,
  .profile-gap-stat {
    display: none;
  }

  .stat-card strong {
    font-size: 1.08rem;
  }

  .course-stat-row .stat-card strong {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.12;
  }

  .stat-card small {
    font-size: 0.64rem;
  }

  .stat-label {
    align-items: start;
    gap: 8px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .stat-label .metric-icon {
    width: 17px;
    height: 17px;
  }

  .course-stat-row .stat-label {
    gap: 6px;
    font-size: 0.64rem;
  }

  .course-stat-row .stat-label .metric-icon {
    width: 15px;
    height: 15px;
  }

  .chart {
    height: 280px;
    padding: 8px 10px 12px;
  }

  .cumulative-points-chart {
    height: 260px;
    padding: 4px 2px 2px;
  }

  .cumulative-points-chart.mobile-chart {
    overflow: visible;
  }

  .chart-mobile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 14px;
  }

  .chart-mobile-summary span {
    min-height: 48px;
  }

  .chart-mobile-summary strong {
    font-size: 0.95rem;
  }

  .course-time-body {
    gap: 0;
  }

  .course-time-layout {
    padding: 10px;
  }

  .course-time-list {
    gap: 10px;
  }

  .course-time-card {
    border-radius: 12px;
  }

  .course-time-head {
    display: grid;
    align-items: start;
    gap: 5px;
    padding: 11px 12px 0;
  }

  .course-time-head strong {
    font-size: 1rem;
  }

  .course-time-head span {
    font-size: 0.76rem;
    line-height: 1.2;
    white-space: normal;
  }

  .course-time-chart {
    height: 178px;
    padding: 0 8px 8px;
  }

  .course-time-chart.mobile-chart {
    overflow: visible;
  }

  .compare-chart {
    height: 320px;
  }

  .course-time-pills {
    padding: 0 12px 12px;
  }

  .course-time-pill {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    border-radius: var(--radius);
  }

  .course-time-pill small {
    grid-column: 1 / -1;
  }

  .course-map-panel {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 10px 12px;
  }

  .course-map-copy p {
    line-height: 1.5;
  }

  .course-map-art {
    display: none;
  }

  .course-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px;
  }

  .course-button-grid button {
    grid-template-columns: 9px minmax(0, 1fr);
    min-height: 46px;
    padding: 10px;
  }

  .course-button-grid button span {
    width: 9px;
  }

  .course-button-grid button strong {
    font-size: 0.86rem;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.12;
  }

  .course-button-grid button small {
    display: none;
  }

  .event-meta .link,
  .course-map-copy .link,
  .seo-results-copy a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .admin-refresh-section,
  .admin-static-section,
  .admin-login-section {
    padding: 16px;
  }

  .admin-refresh-button {
    min-height: 68px;
  }

  .results-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: rgba(249, 115, 22, 0.55) rgba(255, 255, 255, 0.08);
  }

  .results-table-wrap table {
    min-width: 720px;
  }

  .course-page .course-trend-section,
  .course-page .course-regulars-section {
    overflow: visible;
    background: rgba(18, 18, 16, 0.72);
  }

  .course-page .course-records-section .course-record-grid {
    gap: 8px;
    padding: 12px 0 0;
  }

  .course-page .course-audience-section .course-breakdown-grid {
    gap: 8px;
    padding: 12px 0 0;
  }

  .course-page .course-detail-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .course-page .course-detail-table thead {
    display: none;
  }

  .course-page .course-detail-table tbody {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .course-page .course-detail-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.055), rgba(85, 199, 165, 0.025)),
      rgba(255, 255, 255, 0.05);
  }

  .course-page .course-detail-table tr.clickable-rider-row {
    cursor: pointer;
  }

  .course-page .course-detail-table tr.clickable-rider-row:hover,
  .course-page .course-detail-table tr.clickable-rider-row:focus-visible {
    border-color: rgba(249, 115, 22, 0.52);
    outline: 0;
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(85, 199, 165, 0.045)),
      rgba(255, 255, 255, 0.06);
  }

  .course-page .course-detail-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .course-page .course-detail-table td::before {
    flex: 0 0 auto;
    max-width: 48%;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .course-page .course-detail-table td:first-child,
  .course-page .course-detail-table td[data-label="Winner"],
  .course-page .course-detail-table td[data-label="Rider"] {
    grid-column: 1 / -1;
  }

  .course-page .course-detail-table td:first-child {
    color: var(--gold);
    font-size: 0.96rem;
    font-weight: 950;
  }

  .course-page .course-detail-table td:first-child::before {
    max-width: none;
    color: var(--orange);
  }

  .course-page .course-detail-table td[data-label="Winner"],
  .course-page .course-detail-table td[data-label="Rider"] {
    justify-content: flex-start;
    padding-top: 1px;
    color: var(--ink);
    font-size: 0.94rem;
  }

  .course-page .course-detail-table td[data-label="Winner"]::before,
  .course-page .course-detail-table td[data-label="Rider"]::before {
    min-width: 56px;
  }

  .course-page .course-detail-table td[data-label="Rider"]::before {
    display: none;
    content: none;
  }

  .course-page .course-detail-table td.course-detail-empty {
    grid-column: 1 / -1;
    display: block;
    color: var(--muted);
    font-weight: 850;
    text-align: left;
  }

  .course-page .course-detail-table td.course-detail-empty::before {
    display: none;
  }

  .course-page .course-trend-section .course-detail-table tbody {
    gap: 10px;
  }

  .course-page .course-trend-section .course-detail-table tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "week starts"
      "winner winner"
      "win avg"
      "median gap";
    gap: 8px 12px;
    padding: 11px 12px 12px;
  }

  .course-page .course-trend-section .course-detail-table td {
    min-height: 28px;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"] {
    grid-area: week;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Starts"] {
    grid-area: starts;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Winner"] {
    grid-area: winner;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Win Time"] {
    grid-area: win;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Field Avg"] {
    grid-area: avg;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Median"] {
    grid-area: median;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Typical Gap"] {
    grid-area: gap;
  }

  .course-page .course-trend-section .course-detail-table td:first-child,
  .course-page .course-trend-section .course-detail-table td[data-label="Winner"] {
    grid-column: 1 / -1;
  }

  .course-page .course-trend-section .course-detail-table td:first-child {
    grid-column: auto;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"],
  .course-page .course-trend-section .course-detail-table td[data-label="Starts"] {
    align-items: start;
    min-height: 34px;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"] {
    justify-content: start;
    text-align: left;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"]::before,
  .course-page .course-trend-section .course-detail-table td[data-label="Starts"]::before {
    padding-top: 2px;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"]::before {
    display: none;
    content: none;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Week"] {
    color: var(--gold);
    font-size: 1.02rem;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Starts"] {
    min-width: 96px;
    color: var(--ink);
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Winner"] {
    justify-content: space-between;
    padding: 7px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--ink);
    font-size: 1rem;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Winner"]::before {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    min-height: 28px;
    padding: 3px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(242, 179, 94, 0.24);
    box-shadow: 0 0 18px rgba(242, 179, 94, 0.18);
    color: #f2b35e;
    content: "1st";
    font-size: 0.86rem;
    line-height: 1;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Winner"] a {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .course-page .course-trend-section .course-detail-table td[data-label="Win Time"],
  .course-page .course-trend-section .course-detail-table td[data-label="Field Avg"],
  .course-page .course-trend-section .course-detail-table td[data-label="Median"],
  .course-page .course-trend-section .course-detail-table td[data-label="Typical Gap"] {
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .weekly-results-section .desktop-results-table,
  .all-results-section .desktop-results-table,
  .course-page .desktop-course-table,
  .profile-weekly-results table,
  .standings-card table,
  .standings-results-table table {
    display: none;
  }

  .weekly-results-section .mobile-result-cards,
  .all-results-section .mobile-result-cards,
  .course-page .course-results-mobile-cards,
  .profile-weekly-cards,
  .standings-mobile-cards {
    display: grid;
    gap: 8px;
  }

  .weekly-results-section .section-head + .mobile-result-cards,
  .course-page .section-head + .course-results-mobile-cards {
    margin-top: 4px;
  }

  .weekly-results-home > .weekly-results-section + .weekly-results-section {
    margin-top: 14px;
  }

  .course-page .section-head + .course-context-banner + .course-results-mobile-cards {
    margin-top: 8px;
  }

  .profile-weekly-results .section-head + .profile-weekly-cards {
    margin-top: 12px;
  }

  .profile-weekly-results .section-head > span {
    display: none;
  }

  .mobile-result-card {
    display: grid;
    grid-template-areas:
      "place rider time"
      "place meta time"
      "place category time";
    grid-template-columns: minmax(68px, max-content) minmax(0, 1fr) minmax(66px, auto);
    gap: 6px 12px;
    align-items: start;
    width: 100%;
    min-height: 82px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--ink);
    text-align: left;
  }

  .mobile-result-card:focus-visible {
    border-color: rgba(249, 115, 22, 0.72);
    outline: 2px solid rgba(249, 115, 22, 0.32);
    outline-offset: 2px;
  }

  .course-mobile-card {
    grid-template-columns: minmax(68px, max-content) minmax(0, 1fr) minmax(68px, auto);
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.055), rgba(85, 199, 165, 0.025)),
      rgba(255, 255, 255, 0.05);
  }

  .course-mobile-card.course-highlight-row {
    border-color: rgba(249, 115, 22, 0.62);
    background:
      linear-gradient(90deg, rgba(249, 115, 22, 0.22), rgba(85, 199, 165, 0.12)),
      rgba(255, 255, 255, 0.055);
    box-shadow:
      inset 4px 0 0 var(--orange),
      0 0 0 1px rgba(249, 115, 22, 0.18);
  }

  .race-selection-mobile-card {
    border-color: rgba(245, 158, 11, 0.78);
    background: rgba(255, 255, 255, 0.055);
    box-shadow:
      0 0 0 1px rgba(245, 158, 11, 0.12),
      0 0 18px rgba(245, 158, 11, 0.1);
  }

  .mobile-result-place {
    grid-area: place;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
  }

  .race-selection-mobile-place {
    min-width: 64px;
    min-height: 32px;
    padding: 4px 14px;
    border: 1px solid rgba(214, 208, 198, 0.28);
    border-radius: 999px;
    background: rgba(214, 208, 198, 0.045);
    color: rgba(246, 241, 234, 0.82);
    box-shadow: 0 0 14px rgba(214, 208, 198, 0.045);
  }

  .mobile-result-place-podium {
    min-width: 68px;
  }

  .mobile-result-rider {
    grid-area: rider;
    align-self: start;
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
  }

  .mobile-result-rider strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-rider-name {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
  }

  .mobile-result-bib {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 650;
  }

  .standings-mobile-bib {
    color: var(--muted);
    font-weight: 900;
  }

  .mobile-result-rider strong .weekly-prize-icon {
    margin-block: 1px;
  }

  .mobile-result-rider > small,
  .mobile-result-category-line,
  .mobile-result-meta,
  .mobile-result-points,
  .mobile-result-gap {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .mobile-result-rider > small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-category-line {
    display: inline-flex;
    gap: 5px;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-category-meta {
    grid-area: category;
    grid-column: auto;
    margin-top: 0;
  }

  .mobile-result-category-rank {
    white-space: nowrap;
  }

  .mobile-result-time-stack {
    grid-area: time;
    align-self: start;
    display: grid;
    gap: 3px;
    justify-items: end;
    padding-top: 1px;
    white-space: nowrap;
  }

  .mobile-result-time {
    justify-self: end;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.08;
  }

  .mobile-result-meta {
    grid-area: meta;
    grid-column: auto;
    display: inline-flex;
    gap: 5px;
    align-items: baseline;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .race-results-section-head {
    align-items: center;
    gap: 8px;
  }

  .race-results-section-head h3 {
    flex: 1 1 auto;
  }

  .weekly-results-section .race-results-section-head {
    align-items: stretch;
    gap: 12px;
    padding: 14px 12px 10px;
  }

  .weekly-results-section .race-results-section-head h3 {
    align-items: center;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 4px 0 2px;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1;
    text-align: center;
    text-wrap: balance;
  }

  .weekly-results-section .race-results-section-head h3 .section-head-title-meta {
    font-size: 0.9rem;
    letter-spacing: 0;
    line-height: 1.15;
  }

  .race-compare-toggle {
    min-width: 132px;
  }

  .weekly-results-section .race-compare-toggle {
    width: 100%;
    min-width: 0;
  }

  .race-compare-toggle button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .race-comparison-mobile-card {
    min-height: 84px;
  }

  .race-comparison-mobile-card .mobile-result-meta,
  .race-comparison-mobile-card .race-comparison-meta {
    flex-wrap: wrap;
    row-gap: 2px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .race-comparison-mobile-card .race-comparison-meta {
    color: var(--muted);
  }

  .mobile-result-rank-value {
    color: inherit;
    font-weight: inherit;
  }

  .mobile-result-points {
    justify-self: end;
    color: var(--points-color);
  }

  .race-selection-mobile-card .mobile-result-gap,
  .race-selection-mobile-card .mobile-result-points-line,
  .race-selection-mobile-speed {
    font-style: italic;
  }

  .race-selection-mobile-card .race-selection-confidence-dots {
    justify-self: end;
    gap: 4px;
    min-width: 0;
    min-height: 12px;
    margin-top: 1px;
  }

  .race-selection-mobile-card .race-selection-confidence-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .mobile-result-gap {
    justify-self: end;
    color: #a79f97;
  }

  .mobile-result-points-line {
    margin-top: 0;
    color: var(--points-color);
  }

  .race-selection-mobile-metrics {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .mobile-result-empty {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 800;
  }

  .profile-weekly-card {
    --weekly-accent: #f97316;
    --weekly-accent-rgb: 249, 115, 22;
    --profile-week-col: 66px;
    position: relative;
    display: grid;
    grid-template-columns: var(--profile-week-col) auto minmax(0, 1fr) auto;
    gap: 7px 10px;
    align-items: center;
    width: 100%;
    padding: 8px 9px 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 2px solid var(--weekly-accent);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014)),
      rgba(17, 18, 16, 0.92);
    color: var(--ink);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  }

  .profile-weekly-card.has-weekly-place {
    grid-template-columns: var(--profile-week-col) auto minmax(0, 1fr) auto;
  }

  .profile-weekly-card.has-weekly-place.has-weekly-prize {
    grid-template-columns: var(--profile-week-col) auto 28px minmax(0, 1fr) auto;
  }

  .profile-weekly-card.no-weekly-place {
    grid-template-columns: var(--profile-week-col) auto minmax(0, 1fr) auto;
  }

  .profile-weekly-card-year {
    --profile-week-col: 98px;
  }

  .profile-weekly-card.no-weekly-place .profile-weekly-main {
    grid-column: 3;
  }

  .profile-weekly-card:nth-child(even) {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014)),
      rgba(11, 12, 11, 0.95);
  }

  .profile-weekly-card.profile-weekly-prediction-card,
  .profile-weekly-card.profile-weekly-prediction-card:nth-child(even) {
    border-color: rgba(245, 158, 11, 0.86);
    border-left-color: rgba(245, 158, 11, 0.92);
    background: #10110f;
    box-shadow:
      inset 0 0 0 1px rgba(245, 158, 11, 0.16),
      0 0 18px rgba(245, 158, 11, 0.1);
  }

  .profile-weekly-prediction-card .profile-weekly-top-time,
  .profile-weekly-prediction-card .profile-weekly-points,
  .profile-weekly-prediction-card .profile-weekly-behind,
  .profile-weekly-prediction-card .profile-weekly-speed {
    font-style: italic;
  }

  .profile-course-sprockids {
    --weekly-accent: #f59e0b;
    --weekly-accent-rgb: 245, 158, 11;
  }

  .profile-course-fun {
    --weekly-accent: #2dd4bf;
    --weekly-accent-rgb: 45, 212, 191;
  }

  .profile-course-cranked,
  .profile-course-sidewinder {
    --weekly-accent: #38bdf8;
    --weekly-accent-rgb: 56, 189, 248;
  }

  .profile-course-serious,
  .profile-course-gnarly,
  .profile-course-gnarlycrankedx2 {
    --weekly-accent: #a78bfa;
    --weekly-accent-rgb: 167, 139, 250;
  }

  .profile-weekly-card:focus-visible {
    border-color: color-mix(in srgb, var(--weekly-accent) 72%, transparent);
    outline: 2px solid color-mix(in srgb, var(--weekly-accent) 32%, transparent);
    outline-offset: 2px;
  }

  .profile-weekly-week {
    display: inline-grid;
    place-items: center;
    width: var(--profile-week-col);
    min-width: var(--profile-week-col);
    min-height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075);
  }

  .profile-weekly-week-year {
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .profile-weekly-main {
    display: grid;
    grid-column: 3;
    align-self: center;
    gap: 1px;
    min-width: 0;
    padding-right: 0;
  }

  .profile-weekly-main strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-weekly-main small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .profile-weekly-top-place {
    display: inline-flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 58px;
    overflow: visible;
  }

  .profile-weekly-card.has-weekly-place .profile-weekly-main {
    grid-column: 3;
  }

  .profile-weekly-top-place .course-place-pill,
  .profile-weekly-top-place .course-place-plain {
    min-width: 58px;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 0.9rem;
  }

  .profile-weekly-top-time {
    display: inline-flex;
    grid-column: 4;
    justify-content: flex-end;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
  }

  .profile-weekly-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 14px;
    align-items: center;
    padding-top: 4px;
  }

  .profile-weekly-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 950;
    line-height: 1.1;
    overflow: hidden;
  }

  .profile-weekly-points {
    grid-column: 1;
    grid-row: 1;
    color: var(--points-color);
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .profile-weekly-speed {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    color: color-mix(in srgb, var(--muted) 84%, var(--ink));
    font-size: 0.74rem;
    font-weight: 850;
  }

  .profile-weekly-behind {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    color: color-mix(in srgb, var(--muted) 76%, var(--ink));
    font-size: 0.84rem;
  }

  .profile-weekly-behind.is-leader {
    color: var(--teal);
  }

  .profile-weekly-series-rank {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .profile-weekly-status {
    grid-column: 1;
    grid-row: 3;
    justify-content: space-between;
  }

  .profile-weekly-status .weekly-status-symbol {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
  }

  .profile-weekly-zone4 {
    display: none;
  }

  .profile-weekly-detail b {
    color: var(--muted);
    font-size: 0.54rem;
    line-height: 1;
    text-transform: uppercase;
  }

  .profile-weekly-behind.is-leader b {
    color: color-mix(in srgb, var(--teal) 74%, white);
  }

  .profile-weekly-detail .place-value,
  .profile-weekly-detail .points-value,
  .profile-weekly-detail .signed-value {
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
  }

  .profile-weekly-prize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
  }

  .profile-weekly-prize .weekly-prize-icon {
    width: 24px;
    height: 24px;
    border-color: rgba(242, 179, 94, 0.5);
    color: var(--gold);
    background: rgba(242, 179, 94, 0.11);
    box-shadow: 0 0 10px rgba(242, 179, 94, 0.12);
  }

  .profile-weekly-prize .weekly-prize-svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.25;
  }

  .profile-weekly-points-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
  }

  .profile-weekly-points-line em {
    color: var(--muted);
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }

  .profile-weekly-points-line .signed-value {
    display: inline;
    margin-right: 2px;
    color: var(--muted);
  }

  .profile-weekly-zone4-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
  }

  .profile-weekly-zone4-link svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
  }

  .leaderboard-table table {
    min-width: 540px;
  }

  .course-page .results-table-wrap table {
    min-width: 860px;
  }

  .stats-analysis-table {
    border-radius: 12px;
    background:
      linear-gradient(90deg, rgba(13, 14, 12, 0.98), rgba(13, 14, 12, 0)) left center / 28px 100% no-repeat,
      linear-gradient(270deg, rgba(13, 14, 12, 0.98), rgba(13, 14, 12, 0)) right center / 56px 100% no-repeat,
      rgba(18, 18, 16, 0.78);
  }

  .stats-analysis-table table {
    min-width: 700px;
  }

  .stats-analysis-table .section-head {
    position: sticky;
    left: 0;
    width: min(100vw - 20px, 700px);
  }

  .course-year-mobile-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    background:
      linear-gradient(135deg, rgba(242, 179, 94, 0.08), rgba(45, 212, 191, 0.035)),
      rgba(255, 255, 255, 0.045);
  }

  .course-year-mobile-card .standings-mobile-eligibility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-items: center;
  }

  .course-year-mobile-detail {
    justify-content: space-between;
    min-height: 30px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .course-context-banner {
    font-size: 0.8rem;
  }

  .weekly-results-section table {
    min-width: 720px;
  }

  table {
    font-size: 0.82rem;
  }

  th,
  td {
    padding: 8px 9px;
  }

  th {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .sort-header-button {
    gap: 4px;
  }

  .week-value,
  .course-value,
  .age-group-badge,
  .gender-badge {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 0.7rem;
  }

  .course-place-pill {
    min-width: 64px;
    min-height: 32px;
    padding: 4px 14px;
    font-size: 0.92rem;
  }

  .weekly-prize-icon,
  .weekly-status-symbol {
    width: 22px;
    height: 22px;
  }

  .table-link,
  .rider-name-link {
    font-size: inherit;
  }

  .table-cell-detail,
  .table-head-detail {
    font-size: 0.68rem;
  }

  .compact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .compact-row.suggestion-follow-up-card {
    gap: 14px;
  }

  .leader-age-winners {
    grid-template-columns: 1fr;
  }

  .leader-age-header {
    display: none;
  }

  .leader-age-list {
    gap: 10px;
    padding: 8px 0 14px;
  }

  .leader-age-row {
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(56, 189, 248, 0.055), rgba(249, 115, 22, 0.025)),
      rgba(255, 255, 255, 0.025);
  }

  .leader-age-title {
    padding: 0;
    border-right: 0;
  }

  .leader-age-winners {
    gap: 8px;
  }

  .leader-gender {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  .point-play-scoreboard-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .bar-legend,
  .stats-course-legend,
  .compare-legend {
    justify-content: flex-start;
  }

  .compare-empty-page {
    padding: 10px;
  }

  .compare-empty-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px;
  }

  .compare-empty-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .stats-heatmap {
    grid-template-columns: minmax(104px, 140px) repeat(var(--week-count), minmax(34px, 1fr));
    padding: 12px;
  }

  .compare-rider-card strong,
  .point-play-title strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .stats-filter-controls {
    grid-template-columns: minmax(136px, 0.92fr) minmax(0, 1fr) 44px;
    gap: 6px;
    padding: 6px 6px 8px;
  }

  .stats-filter-controls .segmented-control button {
    font-size: 0.78rem;
  }

  .stats-filter-controls .home-category-filter .custom-select-button {
    padding-right: 20px;
    padding-left: 8px;
  }

  .stats-filter-controls .home-category-filter .custom-select-button span {
    font-size: 0.76rem;
  }

  .stats-filter-controls .custom-select-button::after {
    right: 9px;
  }

  .stats-trend-section .stats-card-row {
    gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .stats-trend-section .stat-card {
    min-height: 78px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .stats-analysis-table tr {
    gap: 6px;
    padding: 8px;
  }

  .stats-analysis-table td {
    min-height: 34px;
    padding: 6px 7px;
  }

  .stats-heatmap {
    grid-template-columns: minmax(88px, 98px) repeat(var(--week-count), 30px);
  }

  .stats-heatmap-cell {
    min-width: 30px;
  }

  .weekly-toolbar {
    --weekly-mobile-control-gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: var(--weekly-mobile-control-gap);
    padding: 0;
  }

  .weekly-week-picker {
    display: flex;
    gap: var(--weekly-mobile-control-gap);
  }

  .weekly-mobile-course-stepper {
    display: flex;
    gap: 10px;
    padding: 0 0 10px;
  }

  .weekly-course-summary .weekly-mobile-course-stepper {
    display: flex;
    gap: 10px;
    margin-bottom: 2px;
    padding: 0;
  }

  .weekly-week-picker > .custom-select,
  .weekly-mobile-course-stepper > .mobile-course-picker {
    flex: 1 1 0;
    min-width: 0;
  }

  .weekly-week-picker > button,
  .weekly-mobile-course-stepper > button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 0;
  }

  .weekly-toolbar .segmented-control button,
  .weekly-toolbar .home-category-filter .custom-select-button,
  .weekly-course-summary .mobile-course-picker-trigger,
  .weekly-course-summary .mobile-course-picker-stepper > button,
  .weekly-week-picker > button,
  .age-filter-picker > button,
  .weekly-toolbar .filter-reset-button {
    height: 44px;
    min-height: 44px;
  }

  .weekly-course-summary .mobile-course-picker-trigger {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .weekly-course-summary .mobile-course-picker-trigger-action {
    width: 26px;
    height: 26px;
  }

  .weekly-course-summary .mobile-course-picker-color {
    min-height: 24px;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) .custom-select-button {
    justify-content: flex-start;
    padding-right: 22px;
    padding-left: 12px;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) .custom-select-button span,
  .weekly-toolbar .custom-select-button span {
    font-size: 0.76rem;
  }

  .weekly-toolbar .home-category-filter:not(:first-child) .custom-select-button span,
  .weekly-week-picker .custom-select-button span {
    font-size: 0.88rem;
  }

  .weekly-toolbar .custom-select-button::after {
    right: 10px;
  }

  .weekly-gender-control button {
    padding-inline: 5px;
    font-size: 0.84rem;
  }

  .filter-reset-button {
    width: 44px;
    min-width: 44px;
    height: 46px;
    min-height: 46px;
    align-self: stretch;
  }

  .weekly-toolbar .filter-reset-button {
    height: 46px;
    min-height: 46px;
  }

  .filter-reset-icon {
    width: 17px;
    height: 17px;
  }

  .weekly-week-picker svg,
  .age-filter-picker svg,
  .weekly-course-summary .mobile-course-picker-stepper > button .metric-icon,
  .weekly-course-summary .mobile-course-picker-trigger-action .metric-icon {
    width: 16px;
    height: 16px;
  }

  .compare-controls {
    grid-template-columns: 1fr;
  }

  .course-button-grid button {
    min-height: 52px;
  }

  .course-button-grid button strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.12;
  }

  .rail-nav a {
    font-size: 0.9rem;
  }

  .course-page .course-results-mobile-course-stepper {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .course-page .course-results-mobile-course-stepper .mobile-course-picker-trigger {
    grid-template-columns: 10px minmax(0, 1fr) 30px;
    gap: 8px;
    padding: 8px 10px;
  }

  .course-page .course-results-mobile-course-stepper .mobile-course-picker-color {
    width: 10px;
  }

  .course-page .course-results-mobile-course-stepper .mobile-course-picker-trigger-action {
    width: 30px;
    height: 30px;
  }

  .mobile-result-card,
  .course-mobile-card {
    grid-template-columns: minmax(52px, max-content) minmax(0, 1fr) minmax(58px, auto);
    gap: 6px 8px;
    padding: 9px 8px;
  }

  .mobile-result-place,
  .mobile-result-place-podium {
    min-width: 52px;
    font-size: 0.94rem;
  }

  .mobile-result-rider strong {
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
  }

  .mobile-result-rider-name {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-result-time {
    font-size: 0.94rem;
  }

  .mobile-result-category-line {
    flex-wrap: wrap;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .standings-mobile-rider strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .event-hero,
  .event-hero.home-hero,
  .event-hero.compact-hero,
  .profile-hero,
  .empty-state {
    padding: 16px 12px;
  }

  .profile-compare-bar,
  .season-link-bar {
    margin-right: 10px;
    margin-left: 10px;
  }

  .profile-panel .season-link-bar,
  .profile-panel .profile-compare-bar,
  .profile-panel .profile-quick-summary,
  .profile-panel .stat-row,
  .profile-panel .content-grid {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .event-hero.home-hero.view-profile .race-countdown .profile-rank-link,
  .event-hero.compact-hero.view-profile .race-countdown .profile-rank-link,
  .profile-controls-row .compare-slot-button,
  .profile-controls-row .compare-open-button {
    min-height: 40px;
  }

  .event-hero.home-hero.view-profile .race-countdown,
  .event-hero.compact-hero.view-profile .race-countdown {
    align-items: center;
    margin-top: 2px;
    padding: 4px 7px;
    min-height: 0;
  }

  .event-hero.home-hero.view-profile .race-countdown .profile-rank-link,
  .event-hero.compact-hero.view-profile .race-countdown .profile-rank-link {
    gap: 5px;
    min-height: 0;
  }

  .profile-panel .stat-row,
  .profile-panel .content-grid {
    padding-right: 0;
    padding-left: 0;
  }

  .leaderboard-pagination,
  .racer-pagination {
    flex-wrap: wrap;
  }

  .leaderboard-pagination span,
  .racer-pagination span {
    order: -1;
    width: 100%;
  }

  .all-results-pagination span {
    order: 0;
    width: auto;
  }

  .point-play-card {
    gap: 9px;
    padding: 11px 12px;
  }

  .point-play-main {
    gap: 7px;
  }

  .point-play-title {
    gap: 6px;
  }

  .point-play-heading {
    min-width: 0;
    margin-right: 0;
  }

  .point-play-title strong {
    font-size: 1.06rem;
  }

  .point-play-title span {
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.6rem;
    line-height: 1;
  }

  .point-play-title .point-play-rank {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  .point-play-tags {
    gap: 5px;
  }

  .point-play-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    font-size: 0.66rem;
    line-height: 1;
  }

  .point-play-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    justify-self: stretch;
    width: 100%;
  }

  .point-play-scoreboard-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .point-play-scoreboard div {
    box-sizing: border-box;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 5px;
    min-height: 56px;
    padding: 8px 10px;
    text-align: left;
  }

  .point-play-scoreboard span {
    margin: 0;
    font-size: 0.58rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .point-play-scoreboard strong {
    font-size: 1.18rem;
    line-height: 1;
    white-space: nowrap;
  }

  .suggestion-follow-up-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .suggestion-follow-up-metrics span {
    min-height: 54px;
  }
}

@media (max-width: 640px) {
  .rider-name-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .weekly-prize-icon,
  .mobile-result-rider .weekly-prize-icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
  }

  .mobile-result-rider .weekly-prize-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
  }

  .event-hero.home-hero.view-home,
  .event-hero.home-hero.view-issues {
    min-height: 76px;
    padding: 9px 14px;
  }

  .event-hero.home-hero.view-home h1,
  .event-hero.home-hero.view-issues h1 {
    margin-bottom: 2px;
    font-size: clamp(1.5rem, 7.2vw, 1.95rem);
    line-height: 0.98;
  }

  .event-hero.home-hero.view-home .weekly-title-weather,
  .event-hero.home-hero.view-weekly .weekly-title-weather,
  .event-hero.home-hero.view-courses .weekly-title-weather {
    align-self: center;
    gap: 4px;
    min-height: clamp(1.75rem, 8.5vw, 2.1rem);
    padding: 3px 8px;
    font-size: 0.76rem;
    line-height: 1;
    border-width: 1px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
  }

  .event-hero.home-hero.view-home .weekly-title-weather-icon,
  .event-hero.home-hero.view-home .weekly-title-weather-svg,
  .event-hero.home-hero.view-weekly .weekly-title-weather-icon,
  .event-hero.home-hero.view-weekly .weekly-title-weather-svg,
  .event-hero.home-hero.view-courses .weekly-title-weather-icon,
  .event-hero.home-hero.view-courses .weekly-title-weather-svg {
    width: 15px;
    height: 15px;
  }

  .event-hero.home-hero.view-home .weekly-title-weather-icon,
  .event-hero.home-hero.view-weekly .weekly-title-weather-icon,
  .event-hero.home-hero.view-courses .weekly-title-weather-icon {
    flex-basis: 15px;
  }

  .event-hero.home-hero.view-home .event-meta,
  .event-hero.home-hero.view-weekly .event-meta,
  .event-hero.home-hero.view-courses .event-meta,
  .event-hero.home-hero.view-issues .event-meta {
    font-size: 0.9rem;
    line-height: 1.24;
  }

  .event-hero.home-hero.view-home .weekly-header-meta {
    width: 100%;
    gap: 0 6px;
  }

  .event-hero.home-hero.view-home .weekly-header-weather,
  .event-hero.home-hero.view-weekly .weekly-header-weather,
  .event-hero.home-hero.view-courses .weekly-header-weather {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--ink);
    font-weight: 850;
  }

  .event-hero.home-hero.view-home .weekly-header-weather-icon,
  .event-hero.home-hero.view-weekly .weekly-header-weather-icon,
  .event-hero.home-hero.view-courses .weekly-header-weather-icon {
    display: inline-grid;
    place-items: center;
    width: 1em;
    height: 1em;
    color: var(--gold);
  }

  .weekly-header-weather-svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 720px) {
  .profile-panel .season-link-bar,
  .profile-panel .profile-compare-bar,
  .profile-panel .profile-quick-summary,
  .profile-panel .stat-row,
  .profile-panel .content-grid {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .profile-panel .stat-row,
  .profile-panel .content-grid {
    padding-right: 0;
    padding-left: 0;
  }

  .comparison-races-section table {
    display: none;
  }

  .comparison-race-cards {
    display: grid;
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .comparison-races-section .compare-table-note {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 640px) {
  .profile-panel .comparison-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
  }

  .profile-panel .comparison-stat-row .stat-card {
    min-height: 74px;
    padding: 11px 10px;
  }

  .profile-panel .comparison-stat-row .stat-label {
    align-items: flex-start;
    gap: 6px;
    font-size: 0.64rem;
    line-height: 1.08;
  }

  .profile-panel .comparison-stat-row .metric-icon {
    width: 15px;
    height: 15px;
  }

  .profile-panel .comparison-stat-row .stat-card strong {
    margin-top: 6px;
    font-size: 1.18rem;
    line-height: 1;
  }

  .profile-panel .comparison-stat-row .stat-card small {
    margin-top: 5px;
    font-size: 0.61rem;
    line-height: 1.15;
  }

  .profile-panel .comparison-stat-row .stat-card::after {
    height: 2px;
  }

  .compare-rider-card {
    min-height: 96px;
    padding: 14px;
  }

  .compare-rider-card strong {
    font-size: 1.18rem;
    line-height: 1.08;
  }

  .compare-rider-card small {
    line-height: 1.35;
  }

  .admin-layout {
    gap: 10px;
    padding: 10px 6px;
  }

  .admin-static-section,
  .admin-login-section {
    gap: 12px;
    padding: 16px 14px;
  }

  .admin-static-section .link-button {
    justify-self: start;
  }

  .admin-control-grid,
  .admin-rider-merge-list,
  .source-url-list,
  .source-url-results,
  .admin-action-log,
  .admin-timeline-list,
  .admin-change-list,
  .edge-diagnostic-list {
    gap: 8px;
    padding: 0 12px 12px;
  }

  .admin-metrics,
  .admin-insight-summary,
  .admin-inventory-grid,
  .admin-verification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-insight-summary,
  .admin-inventory-grid,
  .admin-verification-grid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-metrics .stat-card,
  .admin-insight-summary .stat-card,
  .admin-inventory-grid .stat-card {
    min-height: 78px;
    padding: 10px;
  }

  .admin-metrics .stat-card .stat-label,
  .admin-insight-summary .stat-card .stat-label,
  .admin-inventory-grid .stat-card .stat-label {
    gap: 6px;
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .admin-metrics .stat-card .metric-icon,
  .admin-insight-summary .stat-card .metric-icon,
  .admin-inventory-grid .stat-card .metric-icon {
    width: 15px;
    height: 15px;
  }

  .admin-metrics .stat-card strong,
  .admin-insight-summary .stat-card strong,
  .admin-inventory-grid .stat-card strong {
    margin-top: 6px;
    font-size: 1.08rem;
    line-height: 1.06;
  }

  .admin-metrics .stat-card small,
  .admin-insight-summary .stat-card small,
  .admin-inventory-grid .stat-card small {
    font-size: 0.62rem;
    line-height: 1.16;
  }

  .admin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .admin-detail-grid div {
    padding: 11px 10px;
  }

  .admin-detail-grid span {
    margin-bottom: 4px;
    font-size: 0.62rem;
    line-height: 1.08;
  }

  .admin-detail-grid strong {
    font-size: 0.78rem;
    line-height: 1.24;
  }

  .admin-refresh-button {
    min-height: 62px;
    padding: 10px;
  }

  .admin-refresh-button .metric-icon {
    width: 20px;
    height: 20px;
  }

  .admin-refresh-button span {
    font-size: 0.76rem;
  }

  .admin-refresh-button small {
    font-size: 0.68rem;
  }

  .admin-rider-merge-card,
  .source-url-row,
  .admin-action-row,
  .edge-diagnostic-row,
  .admin-timeline-row,
  .admin-change-row {
    gap: 8px;
    padding: 12px;
  }

  .admin-rider-merge-button {
    width: 100%;
    min-height: 42px;
  }

  .admin-timeline-track {
    display: none;
  }

  .admin-timeline-row strong {
    font-size: 0.94rem;
  }

  .admin-timeline-row span,
  .admin-timeline-meta small {
    font-size: 0.76rem;
  }

  .admin-action-row pre {
    max-height: 96px;
    padding: 9px;
    font-size: 0.72rem;
  }

  .admin-layout .chart-empty {
    min-height: 116px;
    padding: 16px 12px;
  }

  .admin-layout .compact-empty-state {
    min-height: 0;
    margin: 0 12px 12px;
    padding: 14px;
  }

  .admin-layout .compact-empty-state h2 {
    font-size: clamp(1.15rem, 6vw, 1.45rem);
    line-height: 1.05;
  }

  .admin-health-chart,
  .admin-growth-chart {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
  }

  .admin-chart-legend,
  .admin-growth-controls,
  .admin-seo-layout,
  .admin-seo-indexing {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-seo-preview,
  .admin-seo-icons,
  .admin-seo-card,
  .admin-seo-indexing > div {
    padding: 12px;
  }

  .admin-seo-section,
  .admin-url-section,
  .admin-action-log-section,
  .admin-edge-section,
  .admin-control-section,
  .admin-rider-merge-section,
  .admin-freshness-section,
  .admin-rebuild-section,
  .admin-growth-section,
  .admin-inventory-section,
  .admin-payload-section,
  .admin-change-section,
  .admin-production-section {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .event-hero.home-hero {
    animation: premium-surface-in 360ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  .event-hero.home-hero .race-countdown,
  .profile-hero,
  .empty-state {
    animation: premium-content-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  .results-table-wrap tbody tr,
  .mobile-result-card,
  .standings-mobile-card {
    animation: result-row-in 240ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  .results-table-wrap tbody tr:nth-child(2),
  .mobile-result-card:nth-child(2),
  .standings-mobile-card:nth-child(2) {
    animation-delay: 38ms;
  }

  .results-table-wrap tbody tr:nth-child(3),
  .mobile-result-card:nth-child(3),
  .standings-mobile-card:nth-child(3) {
    animation-delay: 76ms;
  }

  .results-table-wrap tbody tr:nth-child(4),
  .mobile-result-card:nth-child(4),
  .standings-mobile-card:nth-child(4) {
    animation-delay: 114ms;
  }

  .results-table-wrap tbody tr:nth-child(5),
  .mobile-result-card:nth-child(5),
  .standings-mobile-card:nth-child(5) {
    animation-delay: 152ms;
  }

  .results-table-wrap tbody tr:nth-child(6),
  .mobile-result-card:nth-child(6),
  .standings-mobile-card:nth-child(6) {
    animation-delay: 190ms;
  }

  .results-table-wrap tbody tr:nth-child(7),
  .mobile-result-card:nth-child(7),
  .standings-mobile-card:nth-child(7) {
    animation-delay: 228ms;
  }

  .results-table-wrap tbody tr:nth-child(8),
  .mobile-result-card:nth-child(8),
  .standings-mobile-card:nth-child(8) {
    animation-delay: 266ms;
  }

  .results-table-wrap tbody tr:nth-child(9),
  .mobile-result-card:nth-child(9),
  .standings-mobile-card:nth-child(9) {
    animation-delay: 304ms;
  }

  .results-table-wrap tbody tr:nth-child(10),
  .mobile-result-card:nth-child(10),
  .standings-mobile-card:nth-child(10) {
    animation-delay: 342ms;
  }

  .results-table-wrap tbody tr:nth-child(n + 11),
  .mobile-result-card:nth-child(n + 11),
  .standings-mobile-card:nth-child(n + 11) {
    animation-delay: 380ms;
  }

  .stat-card,
  .mini-stat,
  .leader-card,
  .admin-refresh-button,
  .compact-row,
  .course-time-card,
  .leaderboard-pagination button,
  .segmented-control button,
  .racer-button,
  .compare-rider-card {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .stat-card:hover,
  .mini-stat:hover,
  .leader-card:hover,
  .admin-refresh-button:hover,
  .compact-row:hover,
  .course-time-card:hover,
  .compare-rider-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
      0 18px 36px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .number-tick {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    animation: number-pop 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  .chart line,
  .chart text {
    animation: chart-detail-in 480ms ease both;
  }

  .chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: chart-line-draw 920ms cubic-bezier(0.33, 1, 0.68, 1) 90ms both;
  }

  .chart-line-secondary {
    animation-delay: 180ms;
  }

  .chart-area {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: chart-area-in 760ms cubic-bezier(0.2, 0.75, 0.2, 1) 120ms both;
  }

  .chart circle:not(.chart-point-halo) {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: chart-point-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 360ms both;
  }

.chart-pill {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-pill-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) 520ms both;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.68));
  isolation: isolate;
}

.chart-pill-underlay {
  opacity: 1;
}

  .chart-point-tooltip {
    opacity: 0;
    animation: none;
  }

  .compare-chart .compare-point circle:not(.chart-point-halo) {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cumulative-point:hover .chart-point-tooltip,
  .cumulative-point:focus-visible .chart-point-tooltip {
    opacity: 1;
  }

  .bar-fill {
    transform: scaleX(0);
    transform-origin: left center;
    animation: bar-fill-in 620ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--bar-delay, 0ms) both;
  }

  .loader-spinner {
    animation: loader-spin 880ms linear infinite;
  }
}

@keyframes premium-surface-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premium-content-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-row-in {
  from {
    opacity: 0.18;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes number-pop {
  0% {
    opacity: 0.66;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chart-detail-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes chart-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chart-area-in {
  from {
    opacity: 0;
    transform: scaleY(0.82);
  }
  to {
    opacity: 0.92;
    transform: scaleY(1);
  }
}

@keyframes chart-point-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes chart-pill-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bar-fill-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes race-selection-pill-outline-pulse {
  0%,
  100% {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
  }

  50% {
    border-color: rgba(245, 158, 11, 0.36);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.11);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 560px) {
  .static-table-wrap table,
  .stats-analysis-table table {
    display: block;
    min-width: 0 !important;
    width: 100%;
  }

  .static-table-wrap tbody,
  .stats-analysis-table tbody,
  .static-table-wrap tr,
  .stats-analysis-table tr {
    width: 100%;
  }

  .static-table-wrap td,
  .stats-analysis-table td {
    width: auto !important;
    min-width: 0 !important;
  }

  .stats-analysis-table .section-head {
    position: static;
    width: auto;
  }
}

@media (max-width: 560px) {
  .static-table-wrap {
    margin: 0 0 16px;
  }

  .seo-link-row a {
    min-height: 42px;
  }

  .data-source-link {
    min-height: 40px;
  }

  .static-course-page .static-table-wrap {
    max-width: 100%;
    margin: 0 0 16px;
    overflow: visible !important;
    border-radius: 0;
    background: transparent;
  }

  .static-course-page .static-table-wrap table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }

  .static-course-page .static-table-wrap thead {
    display: none;
  }

  .static-course-page .static-table-wrap tbody {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .static-course-page .static-table-wrap tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, rgba(249, 115, 22, 0.065), rgba(45, 212, 191, 0.035)),
      rgba(255, 255, 255, 0.045);
  }

  .static-course-page .static-table-wrap td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: auto !important;
    min-width: 0 !important;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .static-course-page .static-table-wrap td::before {
    flex: 0 0 auto;
    max-width: 48%;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.63rem;
    font-weight: 950;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
  }

  .static-course-page .static-table-wrap td:first-child {
    grid-column: 1 / -1;
    align-items: center;
    padding-bottom: 2px;
    color: var(--gold);
    font-size: 0.98rem;
    font-weight: 950;
  }

  .static-course-page .static-table-wrap td:first-child::before {
    max-width: none;
    padding: 4px 6px;
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
    font-size: 0.6rem;
  }

  .static-course-page .static-table-wrap td[data-label="Context"],
  .static-course-page .static-table-wrap td[data-label="Fastest rider"],
  .static-course-page .static-table-wrap td[data-label="Result"],
  .static-course-page .static-table-wrap td[data-label="Top courses by result count"],
  .static-course-page .static-table-wrap td[data-label="Winner"] {
    grid-column: 1 / -1;
  }

  .static-course-page .static-table-wrap a {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
