:root {
  --navy: #071912;
  --navy-mid: #0f2e22;
  --ink: #102018;
  --muted: #5a6b62;
  --paper: #f2f6f3;
  --card: #ffffff;
  --line: #d3ddd7;
  --gold: #2dd4a0;
  --gold-ink: #0b6b4c;
  --accent: #0f2e22;
  --ok: #0f7a4a;
  --ok-bg: #e6f7ef;
  --warn: #9a6b12;
  --warn-bg: #fff7e6;
  --bad: #9b1c2e;
  --bad-bg: #fdecee;
  --focus: #2dd4a0;
  --hero-a: #06140f;
  --hero-b: #123528;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(45, 212, 160, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(15, 46, 34, 0.1), transparent 50%),
    linear-gradient(180deg, #eef5f0 0%, #f7faf8 40%, #eef3f0 100%);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  overflow-x: hidden;
}

a { color: var(--navy-mid); }
a:hover { color: #0a1622; }
a:focus-visible,
.btn:focus-visible,
.card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

code {
  font-size: 0.9em;
  background: #fff;
  padding: 0 4px;
  border: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--navy);
  color: #f4f6f8;
  border-bottom: 3px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
}

.mark {
  width: 14px;
  height: 28px;
  background: var(--gold);
  border-radius: 2px;
}

.brand-cover {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 78%;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: #0b1f33;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}
.brand-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9be7c8; }

.nav a {
  color: #e8eef4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a:focus-visible { border-bottom-color: var(--gold); color: #fff; }

.dev-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid var(--gold);
  color: #f0e2b6;
  padding: 4px 9px;
}

.banner {
  margin: 0;
  padding: 10px 24px;
  background: #0b2219;
  border-bottom: 1px solid rgba(45, 212, 160, 0.35);
  color: #cfe8dc;
  font-size: 13px;
}
.banner code {
  background: transparent;
  color: #9be7c8;
  border-color: #2a5a45;
}

main {
  padding: 28px 24px 56px;
  max-width: 1180px;
  margin: 0 auto;
}
main.history-wide {
  max-width: 100%;
}

.home-hero {
  position: relative;
  margin: -28px -24px 36px;
  min-height: min(72vh, 520px);
  background:
    linear-gradient(115deg, rgba(6, 20, 15, 0.55) 0%, rgba(6, 20, 15, 0.82) 55%, rgba(18, 53, 40, 0.9) 100%),
    url("/static/racebook_cover.png") center 68% / cover no-repeat;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  animation: hero-in 700ms ease-out both;
}
.home-hero-art { display: none; }
.home-hero-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
  color: #f3faf6;
}
.home-kicker {
  margin: 0 0 10px;
  color: #2dd4a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.home-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.05;
}
.home-hero-copy .sub { color: #d7ebe1; max-width: 34rem; font-size: 1.08rem; }

@keyframes hero-in {
  from { opacity: 0.55; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.home-section { margin-top: 8px; }
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(45, 212, 160, 0.45);
}
.home-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
}
.home-section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.page-head { margin-bottom: 20px; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumb a { color: var(--navy-mid); font-weight: 600; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
h1 { font-size: 1.75rem; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
h3 { font-size: 0.85rem; margin: 14px 0 6px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.sub { color: var(--muted); margin: 0 0 8px; }
.replay-line { margin: 8px 0 0; }
.replay-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b2071d;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.replay-link:hover { text-decoration: underline; }
.replay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding-left: 1px;
}

.meeting-grid,
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.meeting-grid-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.04);
}

.meeting-card,
.race-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.meeting-card {
  padding: 0;
  overflow: hidden;
  border-color: #d4c29a;
  box-shadow: 0 10px 22px rgba(11, 31, 51, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.meeting-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 31, 51, 0.14);
}
.meeting-cover {
  height: 168px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  background: #0b1f33;
}
.meeting-card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(0, 1fr);
  min-height: 240px;
}
.meeting-card-lead .meeting-cover {
  height: 100%;
  min-height: 240px;
  border-bottom: 0;
  border-right: 3px solid var(--gold);
}
.meeting-card-lead .meeting-body { justify-content: center; padding: 28px 32px; }
.meeting-card-lead .title { font-size: 2rem; }
.meeting-date { font-size: 15px; color: var(--navy-mid); margin: 8px 0 4px; }
.meeting-stat {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--navy);
}
.meeting-docs { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.meeting-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}
.meeting-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.meeting-card .title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}

.card h2,
.card .title {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.meeting-card .title:hover,
.race-card .title:hover { color: var(--navy-mid); }

.meta { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }

.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
}

.badge.ok { color: var(--ok); border-color: #b7e0c8; background: var(--ok-bg); }
.badge.warn { color: var(--warn); border-color: #efd3a3; background: var(--warn-bg); }
.badge.strong { color: #c05621; border-color: #f6ad55; background: #fffaf0; }
.badge.bad { color: var(--bad); border-color: #f0c0c8; background: var(--bad-bg); }
.shape-badge {
  margin-left: 8px;
  vertical-align: middle;
}
.race-dist .shape-badge { margin-left: 0; margin-right: 8px; }
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.card .btn { margin-top: auto; align-self: flex-start; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }

.btn {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: var(--navy);
  font-weight: 650;
  font-size: 14px;
}
.btn:hover { background: var(--navy-mid); color: #fff; }
.btn.ghost,
.btn-secondary {
  background: #fff;
  color: var(--navy);
}
.btn.ghost:hover,
.btn-secondary:hover { background: #eef2f6; color: var(--navy); }
.btn.pdf { border-color: var(--gold); }
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.panel-ceo {
  border-left: 4px solid var(--gold);
  margin-bottom: 18px;
  padding: 20px;
}

.horse {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.metrics div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.metrics dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 4px;
}
.metrics dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
}

.detail-line { margin: 4px 0; color: var(--ink); }
.detail-line span { color: var(--muted); }

.top3 {
  margin: 10px 0 0;
  padding-left: 20px;
}
.top3 li { margin: 3px 0; }

.race-card-block { margin: 22px 0 0; }
.race-card-block h2 { margin-bottom: 6px; }
.card-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.card-table th,
.card-table td {
  padding: 8px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.desks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.desk h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
}
.desk .horse { font-size: 1.1rem; margin-bottom: 8px; }
.pct { font-variant-numeric: tabular-nums; margin: 2px 0; color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 8px;
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7f8fa;
}
tr:last-child td { border-bottom: 0; }

.horse-link {
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.horse-link:hover { color: var(--gold-ink); }
.race-result-link {
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.race-result-link:hover { color: var(--gold-ink); }

.table-hint { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.history-section { margin: 22px 0 0; }
.history-section h2 { margin-bottom: 12px; color: var(--navy); }
.history-block {
  width: 100%;
  max-width: 100%;
  border: 1px solid #c9b48a;
  border-radius: 12px;
  background: #fffef8;
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.06);
}
.history-table {
  width: max-content;
  max-width: none;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}
.history-table th,
.history-table td {
  padding: 5px 6px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
  border-bottom: 1px solid #ead9b3;
}
.history-table thead th {
  position: sticky;
  top: 0;
  background: #0b1f33;
  color: #f6e7b8;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 12px;
  font-weight: 750;
  border-bottom: 3px solid #c4a15a;
}
.history-table tbody tr:nth-child(even) td { background: #fff6e4; }
.history-table tbody tr:nth-child(odd) td { background: #fffef8; }
.history-table tbody tr:hover td { background: #e8f1fa; }
.history-table tr.hist-won td { background: #e8f6ee; }
.history-table tr.hist-won:hover td { background: #d8f0e2; }
.history-table tr.hist-focus td { box-shadow: inset 3px 0 0 #c4a15a; }
.hist-num { font-variant-numeric: tabular-nums; }
.hist-pos { font-weight: 750; color: #0b1f33; text-align: center; }
.hist-won .hist-pos { color: #14653d; }
.hist-class {
  display: inline-block;
  background: #e8c56b;
  color: #0b1f33;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 750;
}
.history-table td.hist-wide {
  white-space: normal;
  max-width: 160px;
  overflow-wrap: anywhere;
}

.race-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px;
}
.race-jump-label {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
}
.race-jump-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.race-jump-btn:hover { border-color: var(--gold); background: #fff8e8; }
.race-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.race-no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.race-card-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.race-dist {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  white-space: nowrap;
}
.racecard-wrap { border-radius: 0 0 10px 10px; }
.racecard-table { table-layout: auto; min-width: 860px; font-size: 13px; }
.racecard-table th {
  background: var(--navy);
  color: #f4f6f8;
  text-transform: none;
  letter-spacing: 0;
}
.racecard-table td.num,
.racecard-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.horse-cell { min-width: 180px; }
.booking-n {
  display: inline-block;
  min-width: 1.15em;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--navy);
  color: #f4f6f8;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.booking-list {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted);
}
.race-day-box {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.race-day-box h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.race-day-box h3 {
  margin: 10px 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.race-day-box h3:first-child { margin-top: 0; }
.eng-wrap {
  margin: 0 0 10px;
}
.eng-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}
.eng-grid th,
.eng-grid td {
  border: 1px solid var(--line);
  padding: 4px 6px;
  vertical-align: middle;
  text-align: center;
}
.eng-grid thead th {
  background: var(--navy);
  color: #f4f6f8;
  font-weight: 700;
  white-space: nowrap;
}
.eng-grid tbody th {
  text-align: left;
  white-space: nowrap;
  background: var(--card);
}
.eng-grid .eng-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.booking-people {
  margin: 0;
  padding-left: 18px;
}
.booking-people li { margin: 0 0 6px; }
.booking-people li:last-child { margin-bottom: 0; }
.horse-meta,
.last5 {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}
.horse-meta { color: var(--muted); margin-top: 3px; }
.last5 { color: var(--gold-ink); margin-top: 2px; }
.prep-label {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}
.prep-excellent { color: #1b7a3a; }
.prep-good { color: #2f6f4e; }
.prep-fair { color: #8a6a12; }
.prep-quiet { color: var(--muted); font-weight: 600; }
.prep-highlight {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--navy);
}
.prep-block { margin: 16px 0 8px; }
.prep-table {
  min-width: 1180px;
  table-layout: auto;
  font-size: 13px;
}
.prep-table td.prep-group {
  min-width: 160px;
  overflow-wrap: anywhere;
}
.prep-table tr.prep-mock td:nth-child(3) {
  font-weight: 700;
  color: #7a5b1e;
}
.horse-style {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--navy);
}
.style-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8dfc4;
  color: #0b1f33;
  font-weight: 600;
  text-transform: lowercase;
}
.horse-explain {
  margin-top: 6px;
  max-width: 420px;
}
.horse-explain summary {
  cursor: pointer;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 600;
}
.explain-group { margin-top: 8px; }
.explain-group h4 {
  margin: 0 0 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.explain-group ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.4;
}
.explain-group.favour h4 { color: #1f6b3a; }
.explain-group.concern h4 { color: #8a2a2a; }

.disclaimer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  max-width: 720px;
}
.site-legal {
  margin: 0;
  padding: 22px 24px 28px;
  background: #0b1f33;
  border-top: 3px solid #c4a15a;
  color: #e8dfc4;
}
.site-legal p {
  margin: 0 auto;
  max-width: 880px;
  font-size: 13px;
  line-height: 1.55;
}
.racecard-wrap { overflow-x: auto; }
.history-scroll { overflow-x: auto; }
.eng-wrap { overflow-x: auto; }

.missing {
  margin: 0 0 8px;
  color: var(--bad);
  font-size: 14px;
  font-family: inherit;
}
.missing-label { font-weight: 700; }

.note {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 18px;
}
.warn-note { background: var(--warn-bg); border: 1px solid #e6c48a; color: var(--gold-ink); }
.ok-note { background: var(--ok-bg); border: 1px solid #b7e0c8; color: var(--ok); }

.status {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
}
.status.error { color: var(--bad); border-color: #f0c0c8; background: var(--bad-bg); }
.status.empty { color: var(--muted); }
.status.loading { color: var(--navy-mid); }

.reporter-strip {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
}
.reporter-strip h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: 1.05rem;
  color: var(--ink);
}
.reporter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reporter-chips li {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f2;
  border: 1px solid #cfe3d8;
  font-size: 13px;
}
.reporter-chips .kind {
  font-weight: 700;
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.odds-panel {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed #9ad9bf;
  background: #f4fcf8;
}
.odds-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.odds-empty { margin: 0; color: var(--muted); font-size: 14px; }
.odds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.odds-table th,
.odds-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.account-panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(7, 25, 18, 0.08);
  animation: hero-in 500ms ease-out both;
}
.account-panel h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.account-panel label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.account-panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.account-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.account-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  main { padding: 20px 16px 36px; }
  .home-hero { margin: -20px -16px 28px; min-height: min(58vh, 420px); }
  .home-hero-copy { padding: 48px 16px 28px; }
  .home-hero-copy h1 { font-size: 2rem; }
  .meeting-grid-home { grid-template-columns: 1fr 1fr; }
  .meeting-card-lead { grid-template-columns: 1fr; }
  .meeting-card-lead .meeting-cover { min-height: 180px; height: 180px; border-right: 0; border-bottom: 3px solid var(--gold); }
}

@media (max-width: 640px) {
  .top { padding: 12px 14px; }
  .dev-badge { margin-left: 0; }
  .banner { font-size: 13px; padding: 10px 14px; }
  main { padding: 16px 12px 32px; }
  h1 { font-size: 1.35rem; }
  .meeting-grid,
  .meeting-grid-home,
  .race-grid { grid-template-columns: 1fr; }
  .home-hero { margin: -16px -12px 24px; min-height: min(52vh, 360px); }
  .home-hero-copy h1 { font-size: 1.85rem; }
  .desks { grid-template-columns: 1fr; }
  .actions .btn,
  .card .btn { width: 100%; text-align: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
