:root {
  color-scheme: dark;
  --bg: #0c1117;
  --bg2: #131b24;
  --bg3: #1b2632;
  --border: #293745;
  --text: #e8eef4;
  --muted: #9eacba;
  --accent: #ffed00;
  --accent2: #7ab5e8;
  --green: #ffed00;
  --radius: 12px;
  --shadow: 0 12px 36px #00000014;
  --brand-ink: #171717;
  --screen-accent: #ffed00;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f8;
  --bg2: #ffffff;
  --bg3: #edf2f6;
  --border: #dce4ea;
  --text: #152735;
  --muted: #586d7b;
  --accent: #756700;
  --accent2: #28608b;
  --green: #756700;
  --red: #b73739;
  --orange: #936400;
  --green-bg: #fffbd6;
  --orange-bg: #fff5df;
  --red-bg: #fbeeed;
  --brand-ink: #171717;
  --screen-accent: #756700;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  min-height: 38px;
  max-width: 100%;
}
button.primary,
.role-badge {
  color: var(--brand-ink);
}
button {
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  text-underline-offset: 4px;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 9px;
}
.muted {
  color: var(--muted);
}
.demo-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
  background: var(--bg2);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 12px;
}
.demo-notice b {
  color: var(--text);
}
.demo-notice > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-notice button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 10px;
  background: transparent;
}
.demo-notice .book-call {
  background: var(--accent);
  color: var(--brand-ink);
  border-color: var(--accent);
  opacity: 1;
}
.sticky-header {
  position: relative;
}
.topbar {
  padding: 18px 24px !important;
}
.brand img {
  height: 30px !important;
}
nav.tabs {
  padding: 0 20px;
  scrollbar-width: thin;
}
nav.tabs button {
  font-size: 13px;
  padding: 13px 14px;
}
nav.tabs button.active {
  color: var(--accent);
  border-bottom-width: 2px;
}
main {
  padding: 28px;
  max-width: 1440px;
  min-width: 0;
}
.card {
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.card .section-title {
  flex-wrap: wrap;
}
.grid {
  gap: 16px;
}
.grid > * {
  min-width: 0;
}
.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat {
  padding: 18px;
  background: var(--bg2);
  border-color: var(--border) !important;
}
.stat.green,
.stat.orange,
.stat.red {
  background: var(--bg2);
}
.stat .num {
  font-weight: 600;
  letter-spacing: -0.045em;
}
.stat .label {
  line-height: 1.5;
}
.stat.green .num {
  color: var(--green);
}
.stat.orange .num {
  color: var(--orange);
}
.stat.red .num {
  color: var(--red);
}
.role-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
}
.toolbar {
  gap: 10px;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
}
table {
  font-size: 13px;
}
th {
  font-size: 10px;
  letter-spacing: 0.08em;
}
td {
  overflow-wrap: anywhere;
}
.card table {
  min-width: 540px;
}
.table-wrap table {
  min-width: 650px;
}
.card:has(> table) {
  overflow: auto;
}
.form-grid > * {
  min-width: 0;
}
.modal {
  width: min(100%, 620px);
}
.modal-actions {
  flex-wrap: wrap;
}
.help .tip {
  max-width: calc(100vw - 48px);
  left: auto;
  right: 0;
  background: var(--bg3);
  box-shadow: var(--shadow);
}
.sponsor-card .meta {
  overflow-wrap: anywhere;
}
.live-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}
.mv-hero {
  background: var(--bg3);
  border: 1px solid var(--border);
}
.heat-col {
  min-width: min(100%, 230px);
  flex: 1 1 230px;
  max-width: 360px;
}
.division-group-title {
  flex-wrap: wrap;
}
.live-heat-card.live-racing {
  box-shadow: none;
  border-color: var(--accent);
}
footer.statusbar {
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 24px;
}
.login-card {
  padding: 32px;
}
.login-logo img {
  opacity: 0.7;
}
.finance-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.finance-heading p,
.screen-intro p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}
.finance-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.finance-metrics > div {
  padding: 22px 0;
}
.finance-metrics > div + div {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.finance-metrics span,
.finance-metrics small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.finance-metrics strong {
  display: block;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.05em;
  margin: 7px 0;
}
.finance-detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 46px;
}
.finance-detail h3 {
  margin-bottom: 22px;
  font-size: 14px;
  letter-spacing: 0;
}
.revenue-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  margin: 17px 0;
}
.revenue-row b {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bar-track,
.collection-track {
  background: var(--bg3);
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
}
.bar-track > div,
.collection-track > div {
  background: var(--accent);
  height: 100%;
  border-radius: 3px;
}
.collection-number {
  font-size: 38px;
  letter-spacing: -0.05em;
}
.collection-number span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}
.collection-track {
  margin: 12px 0;
}
.collection-summary p {
  font-size: 12px;
  color: var(--muted);
}
.payment-counts {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin-top: 20px;
}
.payment-counts > div {
  display: flex;
  justify-content: space-between;
}
.payment-counts span {
  color: var(--muted);
}
.screen-intro {
  margin-bottom: 24px;
}
.screen-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.screen-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
}
.screen-preview {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  container-type: inline-size;
}
.screen-preview iframe {
  width: 1280px;
  height: 720px;
  border: 0;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1280px));
  pointer-events: none;
}
.screen-card-content {
  padding: 20px;
}
.screen-card p {
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
}
.screen-actions {
  display: flex;
  gap: 10px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.copy-status {
  display: block;
  font-size: 12px;
  min-height: 20px;
  color: var(--accent);
  margin-top: 8px;
}
@media (max-width: 760px) {
  main {
    padding: 16px;
  }
  .topbar {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  .topbar .brand {
    flex: 1;
  }
  .topbar #globalSearch {
    order: 5;
    width: 100%;
    max-width: none;
  }
  .topbar .event-switcher {
    order: 4;
    width: 100%;
  }
  .topbar .event-switcher select {
    flex: 1;
    max-width: none;
    min-width: 0;
  }
  .topbar .spacer {
    display: none;
  }
  .topbar #btnSwitchUser {
    font-size: 12px;
  }
  .demo-notice {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .demo-description {
    display: none;
  }
  .demo-notice button {
    font-size: 11px;
  }
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.cols-2,
  .screen-gallery {
    grid-template-columns: 1fr;
  }
  .finance-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .finance-heading {
    align-items: flex-start;
  }
  .finance-heading h2 {
    font-size: 20px;
  }
  .finance-heading p {
    max-width: 240px;
  }
  .finance-metrics {
    gap: 12px;
  }
  .finance-metrics > div + div {
    padding-left: 12px;
  }
  .finance-metrics strong {
    font-size: 27px;
  }
  .card {
    padding: 16px;
  }
  .revenue-row {
    grid-template-columns: 105px 1fr 54px;
    gap: 10px;
  }
  .toolbar > .spacer {
    display: none;
  }
  .toolbar > span {
    max-width: 100%;
  }
  .checkin-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  nav.tabs {
    padding: 0 8px;
  }
  .live-timer {
    font-size: 38px;
  }
  .modal {
    padding: 18px;
  }
  .login-card {
    padding: 26px 20px;
  }
  .mv-block {
    padding: 16px;
  }
  .mv-block .big {
    font-size: 18px;
  }
  .mv-block > div {
    min-width: 0;
  }
  .screen-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 390px) {
  .finance-metrics {
    grid-template-columns: 1fr;
  }
  .finance-metrics > div + div {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .demo-notice {
    gap: 6px;
  }
  .demo-notice > div {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.display-body {
  background: var(--bg);
}
.venue-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 48px);
  max-width: 2400px;
  margin: auto;
}
.venue-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.venue-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.venue-brand img {
  width: 165px;
  max-width: 100%;
  height: auto;
  opacity: 0.65;
}
.venue-label {
  text-align: center;
}
.venue-label h1 {
  font-size: clamp(20px, 2.8vw, 42px);
  margin: 0;
}
.venue-label .eyebrow {
  margin-bottom: 5px;
}
.venue-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}
.venue-meta button {
  font-size: 11px;
  padding: 5px 10px;
}
.venue-content {
  padding: 32px 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.venue-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0 0;
}
.venue-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.display-empty {
  text-align: center;
  padding: 12vh 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 36px);
}
.countdown-hero {
  text-align: center;
  padding: 4vh 0;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 50px);
  margin: 30px auto;
}
.countdown > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.countdown strong {
  font-size: clamp(44px, 12vw, 190px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.065em;
  color: var(--screen-accent);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  font-size: clamp(9px, 1vw, 14px);
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 12px;
}
.countdown-hero h2 {
  font-size: clamp(20px, 3vw, 40px);
}
.countdown-hero h2 span {
  color: var(--muted);
  font-weight: 400;
}
.countdown-hero p {
  font-size: 14px;
  color: var(--muted);
}
.next-athletes {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px auto 0;
  max-width: 1000px;
}
.next-athletes > div {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 22px;
  font-size: clamp(14px, 1.6vw, 23px);
  overflow-wrap: anywhere;
}
.racing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 24px;
}
.racing-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--bg2);
  padding: clamp(20px, 3vw, 40px);
}
.racing-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.racing-card h2 {
  font-size: clamp(20px, 2.5vw, 36px);
}
.racing-time {
  font-size: clamp(42px, 7vw, 108px);
  font-weight: 500;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  color: var(--screen-accent);
  margin: 18px 0;
}
.racing-names {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  color: var(--muted);
}
.racing-names p {
  margin: 8px 0;
  font-size: 16px;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.leaderboard-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
}
.leaderboard-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.leaderboard-card h2 {
  font-size: 17px;
  margin: 0;
}
.leaderboard-card header > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
.leaderboard-row:last-child {
  border: 0;
}
.leaderboard-row .rank {
  font-size: 13px;
  color: var(--muted);
}
.leaderboard-row strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.leaderboard-row time {
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  color: var(--screen-accent);
}
.waiting-results {
  padding: 25px 20px;
  color: var(--muted);
  font-size: 13px;
}
.finish-hero {
  text-align: center;
  padding: 5vh 0;
}
.finish-time {
  font-size: clamp(48px, 15vw, 230px);
  font-weight: 500;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--screen-accent);
  line-height: 1.15;
}
.finish-rule {
  height: 3px;
  width: 80px;
  background: var(--accent);
  margin: 30px auto;
}
.finish-hero h2 {
  font-size: clamp(20px, 4vw, 54px);
  margin: 20px auto 12px;
  max-width: 1000px;
  overflow-wrap: anywhere;
}
.finish-hero p {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 22px);
}
.finish-list {
  display: grid;
  gap: 14px;
}
.finish-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}
.finish-list article > div {
  min-width: 0;
}
.finish-list h2 {
  font-size: clamp(16px, 2vw, 26px);
  overflow-wrap: anywhere;
}
.finish-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.finish-list time {
  font-size: clamp(24px, 4vw, 46px);
  color: var(--screen-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.startlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.startlist-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg2);
}
.startlist-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.startlist-top time {
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--screen-accent);
}
.startlist-top span {
  font-size: 11px;
  color: var(--muted);
}
.startlist-card h2 {
  font-size: 16px;
}
.startlist-card p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.startlist-card.has-started {
  opacity: 0.6;
}
@media (max-width: 760px) {
  .venue-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }
  .venue-label {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
  }
  .venue-label h1 {
    font-size: 28px;
  }
  .venue-brand img {
    width: 125px;
  }
  .venue-meta {
    gap: 8px;
    flex-wrap: wrap;
  }
  .venue-brand span {
    font-size: 10px;
  }
  .venue-content {
    padding: 22px 0;
  }
  .venue-footer {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }
  .leaderboard-row {
    padding: 15px;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .leaderboard-row strong {
    font-size: 13px;
  }
  .leaderboard-row time {
    font-size: 16px;
  }
  .countdown {
    gap: 24px;
  }
  .countdown strong {
    font-size: clamp(48px, 16vw, 90px);
  }
  .next-athletes {
    gap: 10px;
  }
  .next-athletes > div {
    padding: 12px 16px;
    width: 100%;
  }
  .finish-list article {
    padding: 16px;
    gap: 14px;
  }
  .finish-list time {
    font-size: 25px;
  }
  .finish-list .eyebrow {
    font-size: 9px;
  }
  .finish-time {
    font-size: 14vw;
  }
  .finish-rule {
    margin: 22px auto;
  }
}

/* Operations workspace: persistent desktop navigation, horizontal tabs on mobile. */
nav.tabs svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
nav.tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-caption,
.nav-footnote {
  display: none;
}
.brand img,
.login-logo img,
.venue-brand img {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.brand img {
  height: auto !important;
  width: 148px !important;
}
.venue-brand img {
  width: 156px;
}
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .login-logo img,
:root[data-theme="light"] .venue-brand img {
  filter: brightness(0);
}
.mv-hero {
  color: var(--text) !important;
  background: var(--bg3) !important;
}
.mv-hero .sub {
  color: var(--muted) !important;
}
.mv-hero h2 {
  font-family: inherit;
}
.mv-block,
.live-heat-card,
.card,
.stat {
  box-shadow: none;
}
.live-heat-card {
  border-radius: 10px;
}
.live-heat-header {
  background: var(--bg2);
}
.badge {
  border-radius: 5px;
  font-weight: 500;
}
input[type="checkbox"] {
  min-height: 16px;
}
tbody tr:hover {
  background: var(--bg3);
}
th {
  font-weight: 600;
}
td {
  padding-top: 13px;
  padding-bottom: 13px;
}
@media (min-width: 1100px) {
  body.admin-workspace .demo-notice {
    margin-left: 216px;
  }
  body.admin-workspace .sticky-header {
    display: contents;
  }
  body.admin-workspace header.topbar {
    margin-left: 216px;
    padding: 18px 32px !important;
  }
  body.admin-workspace .topbar .brand {
    position: fixed;
    left: 27px;
    top: 30px;
    z-index: 61;
  }
  body.admin-workspace nav.tabs {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 216px;
    z-index: 60;
    flex-direction: column;
    padding: 96px 15px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
    gap: 5px;
    overflow-y: auto;
  }
  body.admin-workspace nav.tabs button {
    flex-shrink: 0;
    border: 0;
    border-radius: 7px;
    text-align: left;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 500;
  }
  body.admin-workspace nav.tabs button.active {
    background: var(--bg3);
    color: var(--accent);
  }
  body.admin-workspace .nav-caption {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 0 13px 15px;
  }
  body.admin-workspace .nav-footnote {
    display: block;
    margin-top: auto;
    padding: 32px 13px 0;
    color: var(--text);
    font-size: 11px;
  }
  body.admin-workspace .nav-footnote small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
  }
  body.admin-workspace #mainContent {
    margin: 0 0 0 216px;
    width: calc(100% - 216px);
    max-width: 1600px;
    padding: 32px;
  }
  body.admin-workspace footer.statusbar {
    margin-left: 216px;
  }
  body.admin-workspace #lockBanner {
    margin-left: 216px;
  }
  .topbar .spacer {
    min-width: 0;
  }
}
@media (max-width: 1099px) {
  nav.tabs button {
    gap: 7px;
  }
  nav.tabs svg {
    width: 15px;
    height: 15px;
  }
}

.portal-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.portal-links article {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  background: var(--bg2);
}
.portal-links h3 {
  margin-bottom: 18px;
}
.checked-mark {
  color: var(--green);
}
.mv-block .big {
  overflow-wrap: anywhere;
}
.mv-hero h2 {
  font-size: 24px;
  font-weight: 600;
}
.mv-block {
  border-radius: 10px;
}
.mv-block .lbl {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.mv-block .big {
  font-weight: 500;
}
@media (max-width: 760px) {
  .portal-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .portal-links article {
    padding: 16px;
  }
}

/* Six division summaries fit a typical venue monitor without oversized cards. */
@media(min-width:1000px){.leaderboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.leaderboard-card header{padding:16px}.leaderboard-row{padding:12px 16px;gap:9px}.leaderboard-row strong{font-size:13px}.leaderboard-row time{font-size:18px}.waiting-results{padding:16px}}
.finish-list article{padding:18px 22px}.finish-list{gap:10px}
#mainContent>.grid{margin-bottom:22px}
/* Preserve header and footer on standard 720p venue displays. */
@media(min-width:1000px) and (max-height:850px){
  .venue-screen{padding:24px 32px}
  .venue-header{padding-bottom:18px}
  .venue-content{padding:20px 0}
  .countdown-hero,.finish-hero{padding:1vh 0}
  .countdown{margin:20px auto}
  .next-athletes{margin-top:20px}
  .venue-footer{padding-top:14px}
}
@media(min-width:1000px) and (max-height:850px){.finish-list article{padding:12px 20px}}

/* HYROX uses #ffed00 for its primary website color. Darker ink maintains contrast on light surfaces. */
:root{--green-bg:rgba(255,237,0,.10);--button-accent:#ffed00}
button.primary,.demo-notice .book-call,.role-badge{background:var(--button-accent);border-color:var(--button-accent);color:#171717}
[data-theme-toggle].theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:0;width:68px;height:36px;min-height:36px;padding:4px;flex-shrink:0;border:1px solid var(--border);border-radius:999px;background:var(--bg3);isolation:isolate}
.theme-toggle::before{content:"";position:absolute;left:4px;top:4px;width:26px;height:26px;background:#ffed00;border-radius:50%;transform:translateX(30px);transition:transform .2s ease;z-index:-1}
:root[data-theme="light"] .theme-toggle::before{transform:translateX(0)}
.theme-toggle svg{width:18px;height:18px;margin:0 4px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="dark"] .theme-toggle .theme-moon,:root[data-theme="light"] .theme-toggle .theme-sun{stroke:#171717}
.theme-toggle:hover{border-color:var(--accent)}

.athlete-lookup-callout { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.athlete-lookup-callout h3 { margin:0 0 8px; }
.athlete-lookup-callout p { margin:0; }
.athlete-lookup-callout .button-link { flex-shrink:0; }
@media(max-width:600px) { .athlete-lookup-callout { align-items:flex-start; flex-direction:column; gap:14px; } }
#athleteStartlistLink { display: table; margin: 0 auto 16px; }
#mobileView > .button-link { margin-bottom: 16px; }

/* Native modal keeps focus inside the booking form and supports Escape. */
#booking-dialog { width:min(560px,calc(100% - 28px)); max-height:calc(100dvh - 32px); overflow:auto; padding:30px; border:1px solid var(--border); border-radius:16px; background:var(--bg2); color:var(--text); box-shadow:0 24px 90px #0006; }
#booking-dialog::backdrop { background:#0009; backdrop-filter:blur(4px); }
#booking-dialog .dialog-close { float:right; font-size:24px; line-height:1; }
#booking-dialog .kicker { font-size:11px; letter-spacing:.12em; color:var(--muted); margin:0 0 18px; }
#booking-dialog h2 { clear:both; font-size:26px; }
#booking-dialog .booking-intro, #booking-dialog .form-note { color:var(--muted); line-height:1.6; }
#booking-dialog .booking-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
#booking-dialog label { display:flex; flex-direction:column; gap:7px; font-size:13px; }
#booking-dialog input, #booking-dialog select { width:100%; min-width:0; padding:11px; }
#booking-dialog .full-field { grid-column:1/-1; }
#booking-dialog .form-note, #booking-status { font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
#booking-dialog .copy-request { margin-top:10px; }
#booking-fallback { width:100%; height:160px; margin-top:12px; }
@media(max-width:480px) { #booking-dialog { padding:20px; } #booking-dialog .booking-fields { grid-template-columns:1fr; } #booking-dialog button[type="submit"], #booking-dialog .copy-request { width:100%; } }

@font-face {
  font-family: "RoxDesk Wordmark";
  src: url("/public/brand/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
.roxdesk-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .015em;
  flex-shrink: 0;
  font-family: "RoxDesk Wordmark", "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--text);
}
.roxdesk-r {
  display: inline-block;
  flex: 0 0 .778em;
  width: .778em;
  height: .719em;
  background: currentColor;
  mask: url("/public/brand/roxdesk-symbol-charcoal.png") 44.5333% 50% / 142.6621% 154.4335% no-repeat;
  -webkit-mask: url("/public/brand/roxdesk-symbol-charcoal.png") 44.5333% 50% / 142.6621% 154.4335% no-repeat;
}

.brand .roxdesk-wordmark { font-size:32px; }
.login-logo .roxdesk-wordmark { font-size:44px; }
.venue-brand .roxdesk-wordmark { font-size:34px; }
.venue-brand .roxdesk-r, .venue-brand .roxdesk-name { font-size:inherit; color:inherit; }
@media(max-width:600px) { .brand .roxdesk-wordmark, .venue-brand .roxdesk-wordmark { font-size:28px; } }

/* Uploaded artwork retains its own colors in both themes. */
:root .brand img.custom-gym-logo, :root .login-logo img.custom-gym-logo, :root .venue-brand img.custom-gym-logo, :root .gym-logo-preview img.custom-gym-logo { filter:none; object-fit:contain; width:auto !important; max-width:180px; height:48px !important; }
.login-logo img.custom-gym-logo { max-width:250px; height:80px !important; }
.gym-logo-preview { display:flex; align-items:center; padding:22px; margin:20px 0; border:1px solid var(--border); border-radius:12px; width:fit-content; max-width:100%; }
#customLogoFile { display:block; max-width:100%; margin:10px 0; }

:root[data-theme] img.custom-gym-logo { filter:none; }

/* Persistent invitation stays below navigation and modal layers. Extra scroll
   space lets the last controls clear the card; venue displays never show it. */
#demo-conversion { position:fixed; right:24px; bottom:24px; z-index:45; width:292px; padding:22px; border:1px solid #ffed00; border-top:3px solid #ffed00; border-radius:14px; background:#ffed00; color:#202020; box-shadow:0 16px 48px #0005, 0 0 0 4px #ffed001a; }
#demo-conversion[hidden] { display:none; }
#demo-conversion .conversion-dismiss { position:absolute; top:6px; right:6px; padding:4px; width:30px; height:30px; background:transparent; border:none; font-size:22px; color:#48420b; }
.conversion-kicker { display:block; color:#48420b; font-size:10px; font-weight:600; letter-spacing:.12em; margin-bottom:12px; }
#demo-conversion h2 { font-size:20px; line-height:1.2; letter-spacing:-.03em; margin:0 0 9px; }
#demo-conversion p { font-size:13px; line-height:1.5; color:#48420b; margin:0 0 16px; }
#demo-conversion .conversion-book { width:100%; display:flex; align-items:center; justify-content:space-between; padding:11px 14px; background:#202020; border-color:#202020; color:#ffed00; font-weight:700; opacity:1; }
#demo-conversion .conversion-book:hover { background:#353535; border-color:#353535; }
.conversion-note { display:block; margin-top:10px; color:#48420b; font-size:10px; text-align:center; }
.has-demo-invitation #mainContent { padding-bottom:290px; }
@media(max-width:600px) {
  #demo-conversion { left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); width:auto; padding:14px 42px 14px 14px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; }
  #demo-conversion[hidden] { display:none; }
  #demo-conversion h2 { font-size:14px; margin:0; }
  #demo-conversion .conversion-kicker, #demo-conversion p, #demo-conversion .conversion-note { display:none; }
  #demo-conversion .conversion-book { width:auto; white-space:nowrap; padding:10px; font-size:12px; gap:12px; }
  #demo-conversion .conversion-dismiss { top:50%; transform:translateY(-50%); }
  .has-demo-invitation #mainContent { padding-bottom:130px; }
}

#demo-conversion button:focus-visible { outline:2px solid #202020; outline-offset:3px; }
#demo-conversion .conversion-dismiss:hover { background:#20202014; color:#202020; }

/* SVG avoids iOS emoji substitution for directional CTA symbols. */
.cta-arrow { display:inline-block; width:18px; height:18px; flex-shrink:0; vertical-align:-3px; }

/* Settings plans: same product offers as the landing page, no billing mutation. */
.settings-heading { margin-bottom:20px; }
.settings-heading p { margin:6px 0 0; }
.settings-subnav { display:flex; gap:8px; border-bottom:1px solid var(--border); margin-bottom:28px; padding-bottom:12px; }
.settings-subnav button { padding:10px 18px; background:transparent; border-color:transparent; }
.settings-subnav button[aria-current="page"] { background:var(--bg3); color:var(--accent); border-color:var(--border); font-weight:700; }
.subscription-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; }
.subscription-intro h3 { font-size:24px; line-height:1.3; }
.subscription-intro p { line-height:1.6; margin:8px 0 0; }
.subscription-period { display:flex; flex-shrink:0; border:1px solid var(--border); background:var(--bg2); border-radius:12px; padding:4px; margin:0; }
.subscription-period label { position:relative; cursor:pointer; margin:0; }
.subscription-period input { position:absolute; opacity:0; width:1px; height:1px; }
.subscription-period label > span { display:block; padding:10px 12px; border-radius:8px; font-size:13px; font-weight:600; }
.subscription-period input:checked + span { background:var(--bg3); color:var(--text); box-shadow:0 1px 4px #0002; }
.subscription-period input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.subscription-period small { color:var(--accent); margin-left:5px; }
.subscription-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.subscription-card { display:flex; flex-direction:column; padding:26px; border:1px solid var(--border); border-radius:16px; background:var(--bg2); min-width:0; }
.subscription-premium { border-color:var(--accent); box-shadow:inset 0 3px 0 var(--accent); }
.subscription-card-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; min-height:30px; }
.subscription-card h4 { font-size:21px; margin:0; }
.subscription-badge { padding:5px 8px; border-radius:6px; background:var(--bg3); color:var(--text); font-size:11px; font-weight:700; white-space:nowrap; }
.subscription-badge.recommended { background:#ffed00; color:#171717; }
.subscription-description { color:var(--muted); font-size:14px; line-height:1.6; min-height:48px; margin:18px 0; }
.subscription-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:0; }
.subscription-price strong { font-size:38px; letter-spacing:-.04em; }
.subscription-price span { color:var(--muted); font-size:12px; }
.subscription-billing { color:var(--muted); font-size:12px; line-height:1.6; min-height:38px; margin:8px 0 20px; }
.subscription-features { list-style:none; padding:20px 0; margin:0 0 20px; border-top:1px solid var(--border); }
.subscription-features li { display:flex; align-items:baseline; gap:10px; font-size:13px; line-height:1.6; margin-bottom:12px; }
.subscription-features li:last-child { margin-bottom:0; }
.subscription-features .feature-status { width:14px; flex-shrink:0; font-weight:700; color:var(--accent); }
.subscription-features .not-included { color:var(--muted); }
.subscription-features .not-included .feature-status { opacity:.45; color:var(--muted); }
.subscription-demo-note { color:var(--muted); font-size:13px; line-height:1.7; margin:0 0 24px; }
.subscription-upgrade, .subscription-current { margin-top:auto; min-height:44px; padding:12px; text-align:center; border-radius:8px; font-size:14px; font-weight:700; }
.subscription-current { background:var(--bg3); color:var(--muted); border:1px solid var(--border); }
.subscription-action-note { font-size:11px; text-align:center; color:var(--muted); margin:10px 0 0; }
.subscription-disclaimer { font-size:12px; line-height:1.8; color:var(--muted); max-width:900px; margin:24px 0; }
@media(max-width:1100px) { .subscription-intro { align-items:flex-start; flex-direction:column; } .subscription-grid { grid-template-columns:1fr; } .subscription-description, .subscription-billing { min-height:0; } }
.subscription-period .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
/* The plan cards already provide booking CTAs; don't cover them with the invitation. */
body:has(.subscription-section) #demo-conversion { display:none; }
