:root, html[data-theme="dark"] {
  --ink: #0e1a14;
  --panel: #14241c;
  --panel-2: #1b3026;
  --line: #2a4a38;
  --gold: #d4a017;
  --gold-2: #f0d78c;
  --cream: #f4efe4;
  --win: #1f8a4c;
  --loss: #b42318;
  --live: #e11d48;
  --muted: #9bb5a5;
  --input-bg: #0c1611;
  --header-bg: rgba(10, 18, 14, 0.92);
  --nav-bg: #0b140f;
  --body-bg: radial-gradient(1200px 600px at 10% -10%, #1d3a2a, var(--ink));
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --kyc-bg: #2a2410;
  --alert-danger-bg: #3f1d1d;
  --alert-danger-fg: #fecaca;
  --alert-danger-bd: #7f1d1d;
  --alert-success-bg: #163325;
  --alert-success-fg: #bbf7d0;
  --alert-success-bd: #166534;
  --alert-info-bg: #1e293b;
  --alert-info-fg: #bfdbfe;
  --alert-info-bd: #1d4ed8;
  --theme-color: #0e1a14;
}
html[data-theme="light"] {
  --ink: #f6f1e8;
  --panel: #ffffff;
  --panel-2: #f3eee4;
  --line: #d7cebe;
  --gold: #b8860b;
  --gold-2: #8a6a12;
  --cream: #142018;
  --win: #157a42;
  --loss: #b42318;
  --live: #c1143c;
  --muted: #5d6e64;
  --input-bg: #fffdf8;
  --header-bg: rgba(255, 252, 246, 0.94);
  --nav-bg: #fffdf8;
  --body-bg: radial-gradient(1200px 600px at 10% -10%, #efe6d4, #f6f1e8);
  --shadow: 0 16px 40px rgba(40, 30, 10, .12);
  --kyc-bg: #fff6dd;
  --alert-danger-bg: #fde8e8;
  --alert-danger-fg: #7f1d1d;
  --alert-danger-bd: #f0b4b4;
  --alert-success-bg: #e6f6ec;
  --alert-success-fg: #14532d;
  --alert-success-bd: #86efac;
  --alert-info-bg: #e8f0fe;
  --alert-info-fg: #1e3a8a;
  --alert-info-bd: #93c5fd;
  --theme-color: #f6f1e8;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--body-bg);
  color: var(--cream);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
body.auth-page { padding-bottom: 0; }
body.auth-page .pwa-install { display: none !important; }
.brand-name, h1, h2, .display, .auth-brand h1 {
  font-family: Fraunces, Georgia, serif;
}
.app-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: nowrap;
  padding: 0.5rem 0.85rem;
  min-width: 0;
}
.brand {
  flex: 0 0 auto;
  min-width: 0;
}
.brand-mark { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-name {
  color: var(--gold-2);
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-tag { color: var(--muted); font-size: 0.72rem; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}
.wallet-chip i { flex-shrink: 0; }
.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--panel-2);
  color: var(--gold-2);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
}
.wallet-chip i { flex-shrink: 0; }
.wallet-chip-demo {
  color: #7dd3fc;
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.25);
}
.wallet-demo-card {
  border: 1px solid #38bdf8;
}
.bet-mode-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.race-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.45rem;
}
.race-meta-row .badge-status {
  flex: 0 0 auto;
  margin: 0;
}
.race-meta-row .bet-mode-switcher {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.wallet-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn { color: var(--cream); font-size: 1.2rem; flex-shrink: 0; }
.notify-badge { position: absolute; top: -6px; right: -8px; font-size: 0.65rem; }
@media (max-width: 575.98px) {
  .header-bar { padding: 0.4rem 0.65rem; gap: 0.4rem; }
  .brand { gap: 0.4rem !important; }
  .brand-mark { font-size: 1.2rem; }
  .brand-name { font-size: 0.98rem; }
  .header-actions { gap: 0.35rem; }
  .wallet-chip {
    padding: 0.22rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }
  .icon-btn { font-size: 1.1rem; }
  .app-header .btn-header {
    padding: 0.15rem 0.35rem;
    font-size: 0.85rem;
  }
}
.page-shell { padding: 1rem 0 2rem; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
}
.auth-theme-bar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.auth-theme-bar .theme-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
}
.auth-theme-bar .theme-option.is-active {
  border-color: var(--gold);
  color: var(--gold-2);
  font-weight: 700;
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand .brand-mark { font-size: 2rem; line-height: 1; }
.auth-brand h1 { font-size: 1.65rem; margin: 0.4rem 0 0.2rem; }
.auth-brand p { color: var(--muted); margin: 0; }
.auth-card .form-label { display: block; margin-bottom: 0.35rem; font-weight: 600; }
.auth-card .form-control {
  display: block;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}
.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 2.8rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--cream);
}
.password-toggle .bi { font-size: 1.15rem; }
.auth-card .form-check { display: flex; align-items: center; gap: 0.45rem; }
.auth-card .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--input-bg);
  appearance: auto;
}
html[data-theme="light"] .auth-card .form-check-input {
  border-color: #8a7b5f;
  background: #fff;
}
.auth-card .btn-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.8rem;
  margin: 0.25rem 0 1rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}
.auth-links a { color: var(--gold-2); }
.auth-card, .card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.auth-card { max-width: 480px; width: 100%; padding: 2rem; }
.form-control, .form-select {
  background: var(--input-bg);
  color: var(--cream);
  border-color: var(--line);
}
.form-control:focus, .form-select:focus {
  background: var(--input-bg);
  color: var(--cream);
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(212,160,23,.2);
}
.btn-header, .btn-outline-light {
  color: var(--cream);
  border-color: var(--line);
  background: transparent;
}
.btn-header:hover, .btn-outline-light:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: var(--panel-2);
}
.text-secondary { color: var(--muted) !important; }
.btn-gold {
  background: linear-gradient(180deg, #f0d78c, var(--gold));
  color: #1a1204;
  font-weight: 700;
  border: 0;
}
.btn-gold:hover { color: #1a1204; filter: brightness(1.05); }
.race-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  color: inherit;
  display: block;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}
.race-card:hover { transform: translateY(-2px); border-color: var(--gold); color: inherit; }
.badge-status { font-weight: 700; letter-spacing: .02em; }
.badge-LIVE { background: var(--live); }
.badge-OPEN { background: var(--win); }
.badge-UPCOMING { background: #3b4a42; }
.badge-SUSPENDED { background: #b45309; color: #fff; }
.badge-FINISHED, .badge-RESULT_DECLARED, .badge-SETTLED { background: #334155; }
.section-title {
  --section-accent: var(--gold);
  --section-fg: var(--gold-2);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  padding: 0.42rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--section-fg);
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--section-accent);
}
.section-title.is-live {
  --section-accent: var(--live);
  --section-fg: #fda4af;
  background: rgba(225, 29, 72, 0.16);
}
.section-title.is-open {
  --section-accent: var(--win);
  --section-fg: #86efac;
  background: rgba(31, 138, 76, 0.18);
}
.section-title.is-upcoming {
  --section-accent: var(--gold);
  --section-fg: var(--gold-2);
  background: rgba(212, 160, 23, 0.16);
}
.section-title.is-today {
  --section-accent: #38bdf8;
  --section-fg: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
}
.section-title.is-done {
  --section-accent: #64748b;
  --section-fg: #cbd5e1;
  background: rgba(51, 65, 85, 0.45);
}
.section-title.is-bets {
  --section-accent: var(--gold);
  --section-fg: var(--gold-2);
  background: rgba(212, 160, 23, 0.14);
}
html[data-theme="light"] .section-title.is-live {
  --section-fg: #9f1239;
  background: rgba(193, 20, 60, 0.1);
}
html[data-theme="light"] .section-title.is-open {
  --section-fg: #146c3a;
  background: rgba(21, 122, 66, 0.1);
}
html[data-theme="light"] .section-title.is-upcoming,
html[data-theme="light"] .section-title.is-bets {
  background: rgba(184, 134, 11, 0.12);
}
html[data-theme="light"] .section-title.is-today {
  --section-fg: #0369a1;
  background: rgba(14, 165, 233, 0.1);
}
html[data-theme="light"] .section-title.is-done {
  --section-fg: #475569;
  background: rgba(100, 116, 139, 0.12);
}
.table { color: var(--cream); }
.table > :not(caption) > * > * { background: transparent; color: var(--cream); border-color: var(--line); }
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav a {
  flex: 1; text-align: center; color: var(--muted);
  padding: .55rem 0 .4rem; font-size: .7rem; text-decoration: none;
}
.mobile-nav a i { display: block; font-size: 1.15rem; }
.mobile-nav a.active { color: var(--gold-2); }
.odds-up { color: #86efac; }
.odds-down { color: #fca5a5; }
.live-dot {
  width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--live); display: inline-block;
  box-shadow: 0 0 0 0 rgba(225,29,72,.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(225,29,72,0); }
}
.bet-slip-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
}
.bet-slip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--gold);
  border-radius: 1rem 1rem 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
.bet-slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.bet-slip-exit {
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
}
.bet-slip-exit:hover,
.bet-slip-exit:focus-visible {
  background: var(--panel);
  color: var(--gold-2);
}
body.bet-slip-open { overflow: hidden; }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .bet-slip { bottom: 0; border-radius: 1rem; }
}
.empty-state { color: var(--muted); padding: 2rem 1rem; text-align: center; }
.win-modal { border: 2px solid var(--win); }
.loss-modal { border: 2px solid var(--loss); }
.stat-tile {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: 1rem;
}
.stat-tile .n { font-size: 1.4rem; font-weight: 700; color: var(--gold-2); }
.dropdown-menu { background: var(--panel); border-color: var(--line); }
.dropdown-item { color: var(--cream); }
.dropdown-item:hover { background: var(--panel-2); color: var(--gold-2); }
.modal-content {
  background: var(--panel);
  color: var(--cream);
  border-color: var(--line);
}
.staff-shell { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.staff-shell[data-staff-dock="left"] { flex-direction: row; align-items: flex-start; }
.staff-shell[data-staff-dock="right"] { flex-direction: row-reverse; align-items: flex-start; }
.staff-shell[data-staff-dock="bottom"] { flex-direction: column-reverse; }
.staff-main { min-width: 0; flex: 1 1 auto; }
.staff-dock {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(240, 215, 140, 0.06);
  min-width: 0;
}
.staff-dock-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.42rem 0.15rem;
}
.staff-dock-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}
.staff-dock-switcher { display: inline-flex; gap: 0.15rem; margin-left: auto; }
.staff-dock-switcher button,
.staff-dock-drawer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
}
.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  padding: 0.28rem 0.42rem 0.42rem;
}
.staff-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.staff-nav a i { font-size: 0.92rem; opacity: 0.85; }
.staff-nav a:hover {
  color: var(--gold-2);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.32);
}
.staff-nav a.active {
  color: #1a1408;
  background: linear-gradient(180deg, #f0d78c, var(--gold));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.25);
}
.staff-nav a.active i { opacity: 1; }
.staff-shell[data-staff-dock="left"] .staff-dock,
.staff-shell[data-staff-dock="right"] .staff-dock {
  width: 13.6rem;
  flex: 0 0 13.6rem;
  position: sticky;
  top: 0.6rem;
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
}
.staff-shell[data-staff-dock="left"] .staff-nav,
.staff-shell[data-staff-dock="right"] .staff-nav {
  flex-direction: column;
  flex-wrap: nowrap;
}
.staff-shell[data-staff-dock="left"] .staff-nav a,
.staff-shell[data-staff-dock="right"] .staff-nav a {
  width: 100%;
  border-radius: 0.65rem;
}
.staff-shell.is-collapsed[data-staff-dock="left"] .staff-dock,
.staff-shell.is-collapsed[data-staff-dock="right"] .staff-dock {
  width: 3.35rem;
  flex-basis: 3.35rem;
}
.kyc-banner {
  background: var(--kyc-bg);
  border: 1px solid var(--gold);
  border-radius: .85rem;
  padding: .85rem 1rem;
}
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.alert-error, .alert-danger { background: var(--alert-danger-bg); color: var(--alert-danger-fg); border-color: var(--alert-danger-bd); }
.alert-success { background: var(--alert-success-bg); color: var(--alert-success-fg); border-color: var(--alert-success-bd); }
.alert-info { background: var(--alert-info-bg); color: var(--alert-info-fg); border-color: var(--alert-info-bd); }
.theme-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; display: block; }
.dropdown-item.theme-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  background: none;
  border: 0;
}
.dropdown-item.theme-option.is-active {
  color: var(--gold-2);
  font-weight: 700;
}
.pwa-install {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.pwa-install[hidden] { display: none !important; }
.pwa-install p { color: var(--muted); font-size: 0.85rem; }
.pwa-install-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
@media (min-width: 768px) {
  .pwa-install {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    max-width: 26rem;
  }
}
@media (display-mode: standalone) {
  .pwa-install { display: none !important; }
}
.live-stream-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c1611;
  border-radius: .75rem;
  overflow: hidden;
}
.live-stream-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.live-stream-telegram { aspect-ratio: auto; min-height: 12rem; }
.live-stream-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.live-stream-placeholder {
  background: #0c1611;
  border: 1px dashed var(--line);
  border-radius: .75rem;
  padding: 1.25rem;
  text-align: center;
}
.live-stream {
  margin: 0 0 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.live-stream-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem;
}
.live-stream-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
}
.live-stream-toggle .live-dot { flex-shrink: 0; }
.live-stream-body { padding: 0 0.55rem 0.55rem; }
.live-stream-body[hidden] { display: none !important; }
.race-kicker {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.race-heading { min-width: 0; flex: 1 1 auto; }
.race-title {
  font-size: clamp(0.92rem, 3.1vw + 0.42rem, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.race-card .race-title {
  font-size: clamp(0.9rem, 2.6vw + 0.4rem, 1.15rem);
}
.runner-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.45rem 0 0.3rem;
}
.runner-board {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
}
.runner-row {
  display: grid;
  grid-template-columns: auto 2.1rem minmax(0, 1fr) auto;
  gap: 0.35rem 0.55rem;
  align-items: start;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.runner-row:last-child { border-bottom: 0; }
.runner-cloth {
  font-weight: 800;
  color: var(--gold-2);
  text-align: center;
  font-size: 1.05rem;
  padding-top: 0.85rem;
}
.runner-main { min-width: 0; padding-top: 0.15rem; }
.runner-name {
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}
.runner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.8rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.runner-row.has-backed {
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.22), rgba(212, 160, 23, 0.07) 55%, transparent);
  box-shadow: inset 3px 0 0 var(--gold);
}
.runner-row.has-backed .runner-name {
  color: var(--gold-2);
}
.runner-row.has-backed .runner-meta {
  color: var(--gold-2);
}
.runner-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 3.6rem;
  justify-self: start;
}
.runner-price.is-place { justify-self: end; }
.runner-odds {
  min-width: 3.6rem;
  min-height: 2.85rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.3rem;
  border: 2px solid var(--gold);
  border-radius: 0.45rem;
  background: rgba(212, 160, 23, 0.16);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.runner-odds.is-place { justify-self: unset; }
.runner-price-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  margin-bottom: 0.15rem;
}
.runner-odds-value {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
button.runner-odds { cursor: pointer; }
button.runner-odds:hover,
button.runner-odds:focus-visible {
  color: var(--gold-2);
  background: rgba(212, 160, 23, 0.28);
  outline: 2px solid var(--gold-2);
  outline-offset: 1px;
}
.runner-odds.is-static { cursor: default; }
.runner-odds.is-backed {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 0 0 2px var(--gold-2);
}
.runner-odds.is-backed .runner-price-kicker {
  color: #1a1408;
}
.runner-stake {
  min-height: 0.85rem;
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.backed-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  margin: 0.5rem 0 0.35rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 0.85rem;
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold-2);
  font-weight: 700;
}
.backed-summary-count { color: var(--cream); font-weight: 600; }
@media (max-width: 575.98px) {
  body.race-betting .page-shell { padding-top: 0.3rem; padding-bottom: 0.45rem; }
  body.race-betting .container-fluid {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
  body.race-betting .race-kicker {
    font-size: 0.75rem;
    margin-bottom: 0.15rem !important;
  }
  body.race-betting .race-title {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  body.race-betting .race-heading p,
  body.race-betting .race-heading .small {
    font-size: 0.72rem;
  }
  body.race-betting .race-heading { margin-bottom: 0.2rem !important; }
  body.race-betting .race-meta-row {
    flex-wrap: nowrap;
    margin-bottom: 0.22rem;
  }
  body.race-betting .bet-mode-switcher {
    margin: 0 !important;
    flex-wrap: nowrap;
    gap: 0.28rem;
  }
  body.race-betting .bet-mode-switcher .btn {
    padding: 0.18rem 0.5rem;
    font-size: 0.76rem;
  }
  body.race-betting .bet-mode-switcher .small { display: none; }
  body.race-betting .live-stream { margin-bottom: 0.22rem; }
  body.race-betting .live-stream-bar { padding: 0.22rem 0.5rem; }
  body.race-betting .runner-hint,
  body.race-betting .live-window-link,
  body.race-betting .race-live-note { display: none; }
  body.race-betting .backed-summary {
    margin: 0.25rem 0 0.3rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    border-radius: 0.6rem;
  }
  body.race-betting .runner-row {
    padding: 0.22rem 0.4rem;
    gap: 0.18rem 0.32rem;
  }
  body.race-betting .runner-odds {
    min-width: 3.05rem;
    min-height: 2.2rem;
    font-size: 0.98rem;
    padding: 0.18rem 0.18rem;
  }
  body.race-betting .runner-price { min-width: 3.05rem; gap: 0.08rem; }
  body.race-betting .runner-cloth {
    font-size: 0.92rem;
    padding-top: 0.45rem;
  }
  body.race-betting .runner-name { font-size: 0.86rem; }
  body.race-betting .runner-main { padding-top: 0; }
  body.race-betting .runner-meta {
    display: block;
    margin-top: 0;
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.race-betting .runner-stake {
    font-size: 0.6rem;
    min-height: 0.65rem;
  }
  .race-card { padding: 0.55rem 0.7rem; border-radius: 0.75rem; }
  .section-title { font-size: 0.78rem; margin-bottom: 0.4rem; padding: 0.32rem 0.55rem; }
}
.bet-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 12, 9, 0.72);
}
.bet-dialog[hidden] { display: none !important; }
.bet-dialog-card {
  width: min(26rem, 100%);
  background: var(--panel);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 1.1rem;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.bet-dialog-kicker {
  margin: 0 0 0.2rem;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bet-dialog-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
.bet-dialog-body p { margin: 0 0 0.85rem; color: var(--muted); }
.bet-dialog-rows {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.bet-dialog-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.bet-dialog-row:last-child { border-bottom: 0; }
.bet-dialog-row span { color: var(--muted); }
.bet-dialog-row strong { text-align: right; }
.bet-dialog-actions {
  display: grid;
  gap: 0.55rem;
}
.bet-dialog.is-success .bet-dialog-card { border-color: var(--win); }
.bet-dialog.is-danger .bet-dialog-card { border-color: var(--loss); }
.odds-board { display: grid; gap: 0.55rem; }
.odds-page h1.h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.odds-page .odds-race-pick .form-select {
  padding: 0.28rem 0.65rem;
  min-height: 2rem;
  font-size: 0.88rem;
}
.odds-page .odds-board { gap: 0.18rem; }
.odds-page .odds-board-head {
  padding: 0 0.5rem 0.1rem;
  font-size: 0.7rem;
}
.odds-page .odds-board-row {
  padding: 0.22rem 0.5rem;
  border-radius: 0.5rem;
  box-shadow: none;
}
.odds-page .odds-board-runner {
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.odds-page .odds-book-amt { font-size: 0.8rem; }
.odds-page .odds-board-row .form-control {
  height: 1.65rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.86rem;
}
.odds-page .odds-board-actions {
  padding: 0.16rem 0.4rem;
  font-size: 0.74rem;
  min-height: 1.65rem;
}
.odds-page .odds-board-totals {
  position: sticky;
  bottom: 0;
  z-index: 6;
  font-weight: 800;
  border-color: var(--gold);
  background: var(--panel);
  box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.28);
}
.odds-board-head,
.odds-board-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.5fr) 7.6rem 7.2rem 7.2rem 7.5rem 7.5rem 5.4rem;
  gap: 0.5rem;
  align-items: center;
}
.odds-board-head {
  padding: 0 0.75rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.odds-board-head .odds-col-amt {
  text-align: right;
  white-space: nowrap;
}
.odds-board-head .odds-col-price {
  text-align: center;
}
.odds-board-row { padding: 0.65rem 0.75rem; margin: 0; }
.odds-board-totals {
  font-weight: 800;
  border-color: rgba(212, 175, 55, 0.35);
}
.odds-book-amt {
  color: var(--gold-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.15;
}
.odds-book-kicker {
  display: none;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-right: 0.2rem;
}
.odds-price-field { display: block; margin: 0; }
.odds-board-actions { justify-self: stretch; }
@media (max-width: 767.98px) {
  .odds-board-head { display: none; }
  .odds-board-row {
    grid-template-columns: 1fr 1fr;
  }
  .odds-board-runner,
  .odds-board-actions { grid-column: 1 / -1; }
  .odds-book-kicker { display: inline; }
  .odds-book-amt { text-align: left; }
  .odds-board-totals-spacer { display: none; }
}
button.runner-odds.is-backed:hover,
button.runner-odds.is-backed:focus-visible {
  color: #1a1408;
  background: var(--gold-2);
}
.slip-limit-note {
  margin: 0.35rem 0 0.65rem;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}
.slip-limit-note.is-blocked {
  color: #f3c16b;
}
.match-matched { color: #86efac; font-weight: 700; }
.match-possible { color: #fde68a; font-weight: 700; }
.match-missing { color: #fca5a5; font-weight: 700; }
.match-new { color: #93c5fd; font-weight: 700; }
.staff-races-toolbar {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: nowrap !important;
}
.staff-races-filters {
  display: flex !important;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.staff-races-search {
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 22rem;
  margin: 0 0 0 auto;
}
.staff-races-search .form-control {
  height: 1.9rem;
  min-height: 1.9rem;
}
.staff-races-wrap {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
.staff-races-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 0.68rem;
}
.staff-col-no { width: 2.05rem; }
.staff-col-name { width: auto; }
.staff-col-course { width: 14%; }
.staff-col-dist { width: 2.8rem; }
.staff-col-day { width: 4.4rem; }
.staff-col-when { width: 9.2rem; }
.staff-col-status { width: 5.4rem; }
.staff-col-actions { width: 6.8rem; }
.staff-races-table th,
.staff-races-table td {
  padding: 0.18rem 0.16rem;
  vertical-align: middle;
  overflow: hidden;
  min-width: 0 !important;
  max-width: 0;
}
.staff-races-table th {
  position: relative;
  font-weight: 700;
  white-space: normal !important;
  line-height: 1.15;
}
.staff-races-table th:nth-child(1),
.staff-races-table td:nth-child(1) { text-align: center; }
.staff-races-table th:nth-child(4),
.staff-races-table td:nth-child(4) { text-align: center; }
.staff-races-table input,
.staff-races-table select,
.staff-races-table form,
.staff-races-table button {
  min-width: 0 !important;
  max-width: 100%;
}
.staff-race-name,
.staff-race-course,
.staff-race-day {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.staff-race-when,
.staff-race-status-cell { overflow: hidden; }
.staff-race-dtpair {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  width: 100%;
}
.staff-race-date,
.staff-race-clock {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 1.5rem;
  padding: 0.02rem 0.12rem;
  font-size: 0.64rem;
  line-height: 1.1;
  color-scheme: dark;
  box-sizing: border-box;
}
.staff-race-date::-webkit-datetime-edit,
.staff-race-clock::-webkit-datetime-edit,
.staff-race-date::-webkit-datetime-edit-fields-wrapper,
.staff-race-clock::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  padding: 0;
}
.staff-race-date::-webkit-datetime-edit-text,
.staff-race-clock::-webkit-datetime-edit-text {
  padding: 0 0.04rem;
}
.staff-race-date::-webkit-calendar-picker-indicator,
.staff-race-clock::-webkit-calendar-picker-indicator {
  margin: 0;
  width: 0.78rem;
  height: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
}
.staff-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.48rem;
  height: 1.48rem;
  padding: 0 !important;
}
.staff-icon-btn .bi { font-size: 0.8rem; line-height: 1; }
.staff-races-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.12rem;
  align-items: center;
  min-width: 0;
}
.staff-races-actions .btn { flex-shrink: 0; }
.staff-races-status {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  min-width: 0;
  width: 100%;
}
.staff-races-status .form-select {
  width: 100%;
  min-width: 0 !important;
  flex: 1 1 0;
  padding: 0.06rem 1.05rem 0.06rem 0.18rem;
  font-size: 0.6rem;
}
.col-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.col-filter-toggle:hover,
.col-filter-toggle:focus-visible { color: var(--gold-2); }
.col-filter-toggle.is-filtered { color: var(--gold-2); }
table[data-col-filters] thead th[data-filter] { white-space: nowrap; }
.col-filter-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}
.col-filter-menu[hidden] { display: none !important; }
.col-filter-menu {
  position: fixed;
  z-index: 80;
  min-width: 16.5rem;
  max-width: 22rem;
  max-height: min(22rem, 70vh);
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  color: #1e293b;
  border: 1px solid #8ea0b8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
}
.col-filter-search {
  margin: 0.4rem;
  width: calc(100% - 0.8rem);
  padding: 0.28rem 0.45rem;
  border: 1px solid #9aa9c0;
  border-radius: 2px;
  background: #fff;
  color: #1e293b;
}
.col-filter-list {
  overflow: auto;
  max-height: 14rem;
  padding: 0.1rem 0 0.35rem;
}
.col-filter-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.22rem 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.col-filter-item:hover { background: #e3ebf7; }
.col-filter-item.is-all.is-active,
.col-filter-item.is-none.is-active {
  background: #2f6fed;
  color: #fff;
  font-weight: 700;
}
.col-filter-item input { margin: 0; accent-color: #2f6fed; }
.col-filter-custom {
  display: none;
  padding: 0.45rem 0.55rem 0.55rem;
  border-top: 1px solid #c5d0e0;
  gap: 0.35rem;
}
.col-filter-custom.is-open { display: grid; }
.col-filter-custom label { font-weight: 700; }
.col-filter-custom input {
  padding: 0.28rem 0.45rem;
  border: 1px solid #9aa9c0;
  border-radius: 2px;
}
.col-filter-custom-actions { display: flex; gap: 0.35rem; }
.col-filter-custom-actions .btn { font-size: 0.75rem; padding: 0.15rem 0.5rem; }

.winner-flash {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 1080;
  min-width: min(22rem, 92vw);
  max-width: 94vw;
  padding: 1.1rem 1.4rem 1.25rem;
  border: 2px solid var(--gold);
  border-radius: 1rem;
  background: rgba(8, 18, 14, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.winner-flash-kicker {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.winner-flash-nos {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.winner-flash-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.55rem;
  border: 2px solid var(--gold);
  background: rgba(212, 160, 23, 0.18);
  color: var(--gold-2);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  animation: winnerPulse 0.55s ease-in-out 10 alternate;
}
.winner-flash-no.is-live {
  animation: winnerPulse 0.55s ease-in-out infinite alternate;
}
.winner-flash-no.is-compact {
  min-width: 1.7rem;
  min-height: 1.7rem;
  font-size: 1.05rem;
  padding: 0.08rem 0.28rem;
}
.winner-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 0.7rem;
  background: rgba(212, 160, 23, 0.1);
  font-weight: 700;
}
.race-card-winners {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.runner-cloth.is-winner-flash {
  animation: winnerPulse 0.55s ease-in-out infinite alternate;
  color: var(--gold-2);
}
@keyframes winnerPulse {
  from { transform: scale(1); filter: brightness(1); box-shadow: none; }
  to { transform: scale(1.12); filter: brightness(1.35); box-shadow: 0 0 14px rgba(212, 160, 23, 0.45); }
}
.result-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.1fr) minmax(8rem, 1.5fr) auto;
  gap: 0.18rem 0.5rem;
  align-items: center;
  padding: 0.22rem 0.5rem;
  margin-bottom: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel-2);
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.result-row-horse {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-2);
  min-width: 0;
}
.result-row .form-control {
  height: 1.65rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.86rem;
}
.result-row-dq { white-space: nowrap; margin: 0; }
.result-row:hover {
  border-color: rgba(212, 160, 23, 0.55);
}
.result-row:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.16);
}
.result-row:has(input[type="number"]:not(:placeholder-shown)),
.result-row:has(input[type="checkbox"]:checked) {
  border-color: rgba(212, 160, 23, 0.75);
  background: rgba(212, 160, 23, 0.1);
}
.result-row:focus-within .result-row-horse { color: var(--cream); }
@media (max-width: 767.98px) {
  .result-row { grid-template-columns: 1fr auto; }
  .result-row .form-control { grid-column: 1 / -1; }
}
.staff-page .staff-main {
  font-size: 0.86rem;
}
.staff-page .staff-main h1.h4,
.staff-page .staff-main .h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.staff-page .staff-main h1.h3,
.staff-page .staff-main .h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.staff-page .staff-main h2.h5,
.staff-page .staff-main .h5,
.staff-page .staff-main h2.h6,
.staff-page .staff-main .h6 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.staff-page .staff-main p,
.staff-page .staff-main li {
  font-size: 0.86rem;
}
.staff-page .staff-main .small,
.staff-page .staff-main small {
  font-size: 0.74rem;
}
.staff-page .staff-main .form-label {
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}
.staff-page .staff-main .form-text {
  font-size: 0.74rem;
}
.staff-page .staff-main .form-control,
.staff-page .staff-main .form-select {
  padding: 0.28rem 0.65rem;
  min-height: 2rem;
  font-size: 0.88rem;
}
.staff-page .staff-main .form-control-sm,
.staff-page .staff-main .form-select-sm {
  min-height: 1.65rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.86rem;
}
.staff-page .staff-main .btn:not(.staff-icon-btn) {
  font-size: 0.8rem;
  padding: 0.22rem 0.55rem;
  min-height: 1.75rem;
}
.staff-page .staff-main .btn-sm:not(.staff-icon-btn) {
  padding: 0.16rem 0.4rem;
  font-size: 0.74rem;
  min-height: 1.65rem;
}
.staff-page .staff-main .badge {
  font-size: 0.68rem;
}
.staff-page .staff-main .table {
  font-size: 0.86rem;
}
.staff-page .staff-main .table-sm > :not(caption) > * > * {
  padding: 0.22rem 0.4rem;
}
.staff-page .staff-main .card-panel.p-3 {
  padding: 0.7rem 0.85rem !important;
}
.staff-page .staff-main .card-panel.p-2 {
  padding: 0.4rem 0.5rem !important;
}
.staff-page .staff-main .mb-3 { margin-bottom: 0.55rem !important; }
.staff-page .staff-main .mb-2 { margin-bottom: 0.4rem !important; }
.staff-page .staff-main .mb-4 { margin-bottom: 0.7rem !important; }
.staff-page .staff-main .page-actions { gap: 0.32rem; }
.staff-page .staff-main .empty-state {
  padding: 1.1rem 0.7rem;
  font-size: 0.86rem;
}
.staff-page .staff-main .stat-tile {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
}
.staff-page .staff-main .stat-tile .n { font-size: 1.15rem; }
.staff-page .staff-main .stat-tile .text-secondary { font-size: 0.74rem; }
.staff-page .staff-main .g-3 {
  --bs-gutter-x: 0.55rem;
  --bs-gutter-y: 0.55rem;
}
.staff-page .staff-main .staff-races-table { font-size: 0.68rem; }
.staff-page .staff-main .staff-races-table > :not(caption) > * > * {
  padding: 0.16rem 0.14rem;
}
.staff-page .staff-main .staff-race-date,
.staff-page .staff-main .staff-race-clock,
.staff-page .staff-main .staff-race-text {
  height: 1.5rem;
  min-height: 1.5rem;
  padding: 0.02rem 0.12rem;
  font-size: 0.64rem;
}
.staff-page .staff-main .staff-races-status .form-select {
  min-height: 0;
  height: auto;
  padding: 0.06rem 1.05rem 0.06rem 0.18rem;
  font-size: 0.6rem;
}
.staff-page .staff-main .staff-races-search .form-control {
  height: 1.9rem;
  min-height: 1.9rem;
}
.staff-page .staff-main .odds-page .odds-race-pick .form-select {
  padding: 0.28rem 0.65rem;
  min-height: 2rem;
  font-size: 0.88rem;
}
.staff-page .staff-main .odds-page .odds-board-row .form-control,
.staff-page .staff-main .result-row .form-control {
  height: 1.65rem;
  min-height: 1.65rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.86rem;
}
.staff-page .staff-main .odds-page .odds-board-actions {
  padding: 0.16rem 0.4rem;
  font-size: 0.74rem;
  min-height: 1.65rem;
}

