@font-face {
  font-family: ClubSans;
  src: local("Avenir Next"), local("Avenir"), local("Segoe UI");
  font-display: swap;
}
:root {
  --green: #143c32;
  --green2: #1d5142;
  --ink: #20372f;
  --muted: #738078;
  --paper: #f6f5ef;
  --white: #fffefa;
  --line: #e5e7de;
  --gold: #b7975e;
  --light: #e8eee7;
  --red: #a44337;
  font-family: ClubSans, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b7975e;
  outline-offset: 4px;
}
button {
  color: inherit;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 700;
  text-transform: uppercase;
}
.small {
  font-size: 12px;
  line-height: 1.6;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fffdf3;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1px;
}
.button:hover {
  background: var(--green2);
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border-color: #d5dbcf;
}
.button.secondary:hover {
  background: var(--light);
}
.button.light {
  background: #fffdf2;
  color: var(--green);
  border-color: #fffdf2;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--green);
  padding: 8px 0;
}
.button.danger {
  background: var(--red);
  border-color: var(--red);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--light);
  color: #41604e;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.gold {
  background: #f3eddf;
  color: #8a6f39;
}
.pill.outline {
  border: 1px solid #d7decf;
  background: transparent;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6a8b68;
}
.crest {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
  font-family: Georgia, serif;
  font-size: 24px;
  border: 1px solid var(--gold);
  border-radius: 3px 3px 13px 13px;
  color: var(--green);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-name {
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 8px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--white);
  border-right: 1px solid var(--line);
  padding: 31px 23px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.season-label {
  margin-top: 45px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 700;
}
.season-side {
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav {
  display: grid;
  gap: 5px;
  margin-top: 27px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 5px;
  font-size: 12px;
  color: #667369;
  min-height: 45px;
}
.nav a:hover {
  background: #f0f3ec;
}
.nav a.active {
  background: var(--green);
  color: #fffdf4;
}
.nav a .icon {
  width: 17px;
  height: 17px;
}
.nav a .count {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 5px;
  background: #ffffff20;
  border-radius: 3px;
}
.sidebar-bottom {
  margin-top: auto;
}
.club-note {
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #82917e;
}
.sidebar-bottom .nav {
  margin-top: 13px;
}
.powered {
  font-size: 9px;
  margin: 18px 12px 0;
  color: #8b958c;
}
.powered strong {
  font-weight: 600;
  letter-spacing: 0.1px;
}
.main {
  margin-left: 224px;
  min-height: 100vh;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  gap: 20px;
  background: #f6f5efdd;
}
.topbar .breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.date {
  font-size: 11px;
  color: var(--muted);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  border-radius: 50%;
  position: relative;
}
.icon-button:hover {
  background: #e7ece3;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e4e9de;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  height: 34px;
  width: 34px;
}
.content {
  max-width: 1370px;
  margin: 0 auto;
  padding: 33px 44px 25px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.page-heading .eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
}
.hero {
  background: var(--green);
  border-radius: 7px;
  min-height: 205px;
  padding: 31px 34px;
  position: relative;
  overflow: hidden;
  color: #fffdf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.hero-copy {
  max-width: 430px;
  z-index: 1;
}
.hero .eyebrow {
  color: #cfbd8c;
  font-size: 9px;
  letter-spacing: 1.9px;
}
.hero h2 {
  font-size: 34px;
  margin: 12px 0 10px;
  line-height: 1.12;
}
.hero p {
  color: #bac8b8;
  font-size: 12px;
  line-height: 1.7;
  max-width: 340px;
}
.hero .text-link {
  color: #fffbe9;
  margin-top: 18px;
  font-size: 11px;
}
.race-art {
  width: 290px;
  height: 170px;
  position: absolute;
  right: 12px;
  top: 16px;
  color: #9ba787;
}
.hero-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 147px;
  right: 71px;
  top: 11px;
  color: #ffffff07;
  font-style: italic;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 19px 21px;
  min-height: 120px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat-top .icon {
  height: 15px;
  width: 15px;
  color: #9aa58e;
}
.stat-number {
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.7px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.stat-number span {
  font-family: ClubSans, Arial, sans-serif;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-foot {
  font-size: 9px;
  color: #8b948b;
  margin-top: 7px;
}
.stat-foot.positive {
  color: #658368;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
  gap: 23px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 20px;
  gap: 12px;
}
.panel-header h2 {
  font-size: 23px;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.panel-header .text-link {
  font-size: 10px;
}
.panel-body {
  padding: 0 24px 22px;
}
.panel + .panel {
  margin-top: 23px;
}
.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.silk {
  width: 40px;
  height: 43px;
  flex-shrink: 0;
}
.entry-main {
  flex: 1;
}
.entry-main h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.entry-main p {
  font-size: 10px;
  color: var(--muted);
}
.entry-time {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}
.entry-time span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.race-tag {
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a9489;
  font-weight: 500;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid #edf0e6;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child,
th:first-child {
  padding-left: 24px;
}
td:last-child,
th:last-child {
  padding-right: 24px;
  text-align: right;
}
tr.you {
  background: #eef2e9;
}
.rank {
  font-family: Georgia, serif;
  color: #8f9c83;
  font-size: 18px;
}
.rank.first {
  color: #ab8c52;
}
.stable-name {
  font-weight: 600;
  font-size: 11px;
}
.member-name {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.points {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--green);
}
.you-label {
  font-size: 8px;
  color: #71845f;
  margin-left: 5px;
  font-weight: 400;
}
.table-note {
  font-size: 9px;
  color: var(--muted);
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.result-list {
  padding: 0 24px;
}
.result-line {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.result-place {
  font-family: Georgia, serif;
  width: 30px;
  height: 31px;
  background: #f1eddf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #987a42;
}
.result-place.zero {
  background: #eff0e9;
  color: #87917f;
}
.result-line .entry-main h3 {
  font-size: 11px;
}
.result-score {
  font-family: Georgia, serif;
  color: #5d7a50;
  font-size: 20px;
}
.result-score small {
  font-family: ClubSans, Arial, sans-serif;
  font-size: 8px;
  display: block;
  text-align: right;
  color: var(--muted);
  margin-top: 4px;
}
.rule-card {
  margin-top: 22px;
  padding: 21px 23px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #eeeee3;
  border: 1px solid #e5e7d8;
  border-radius: 6px;
}
.rule-card .icon {
  color: #a38c58;
  margin-top: 2px;
}
.rule-card h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 19px;
}
.rule-card p {
  font-size: 10px;
  color: #7e8776;
  line-height: 1.7;
  margin-top: 7px;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 33px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #8a9588;
  font-size: 9px;
}
.footer .brand-name {
  font-size: 13px;
  color: #6c7e69;
}
.footer .brand-name em {
  color: var(--gold);
}
.tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  background: #e9ece3;
  padding: 4px;
  border-radius: 5px;
  margin-bottom: 24px;
  width: fit-content;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 10px 17px;
  border-radius: 4px;
  font-size: 11px;
  color: #7f8978;
}
.tabs button.active {
  background: var(--white);
  box-shadow: 0 1px 3px #00000009;
  color: var(--green);
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
}
.field input,
.field select,
.search-input {
  width: 100%;
  background: var(--white);
  border: 1px solid #dce1d5;
  border-radius: 5px;
  min-height: 45px;
  padding: 12px 13px;
  font-size: 12px;
  color: var(--ink);
}
.field input::placeholder,
.search-input::placeholder {
  color: #9ba294;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.search-wrap {
  position: relative;
}
.search-wrap .icon {
  position: absolute;
  left: 15px;
  top: 14px;
  color: #8d9c85;
}
.search-input {
  padding-left: 44px;
}
.picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.selection-card {
  padding: 24px;
}
.selection-card .field input {
  font-family: Georgia, serif;
  font-size: 20px;
}
.selection-progress {
  display: flex;
  gap: 4px;
  margin: 18px 0 10px;
}
.selection-progress span {
  height: 5px;
  border-radius: 2px;
  background: #e6eadf;
  flex: 1;
}
.selection-progress span.filled {
  background: #a78f59;
}
.selected-horse {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.selected-horse .num {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #9fa88f;
  min-width: 17px;
}
.selected-horse span:nth-child(2) {
  flex: 1;
}
.selected-horse button {
  width: 26px;
  height: 26px;
  background: none;
  border: 0;
  color: #929c8a;
}
.selected-horse .icon {
  width: 14px;
  height: 14px;
}
.selection-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.horse-result {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.horse-result .button {
  font-size: 10px;
  min-height: 35px;
  padding: 7px 12px;
}
.horse-result h3 {
  font-size: 13px;
}
.horse-result p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.horse-result .form {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 7px;
  color: #74816d;
}
.search-area {
  padding: 24px;
}
.search-area h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty > .icon {
  margin: 0 auto 15px;
  color: #acb69a;
  width: 28px;
  height: 28px;
}
.empty h3 {
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 22px;
  font-weight: 400;
}
.empty p {
  font-size: 11px;
  line-height: 1.8;
  max-width: 330px;
  margin: 11px auto 0;
}
.empty .button {
  margin-top: 20px;
}
.horse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.horse-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.horse-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.horse-card .silk {
  width: 47px;
  height: 47px;
}
.horse-card h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}
.horse-card .trainer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.horse-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
}
.horse-card-bottom .points {
  font-size: 26px;
}
.horse-card-bottom small {
  font-size: 9px;
  color: var(--muted);
}
.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr);
  gap: 24px;
}
.rules-copy {
  padding: 28px;
}
.rules-copy h2 {
  font-size: 27px;
  margin: 3px 0 20px;
}
.rule-step {
  display: flex;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.rule-step .num {
  font-family: Georgia, serif;
  font-size: 25px;
  color: var(--gold);
  width: 25px;
}
.rule-step h3 {
  font-size: 13px;
  margin-bottom: 8px;
}
.rule-step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.odds-example {
  background: var(--green);
  color: #fffce9;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
}
.odds-example .equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: Georgia, serif;
  font-size: 40px;
  margin: 25px 0;
}
.odds-example .equation span {
  color: var(--gold);
  font-size: 26px;
}
.odds-example p {
  color: #b6c3af;
  font-size: 11px;
  line-height: 1.8;
}
.settings {
  max-width: 760px;
}
.settings-section {
  padding: 26px;
  margin-bottom: 20px;
}
.settings-section h2 {
  margin-bottom: 20px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.settings-row p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}
.settings-row h3 {
  font-size: 12px;
}
.inline-message {
  padding: 12px 15px;
  font-size: 11px;
  line-height: 1.7;
  border-radius: 4px;
  background: #f0eee0;
  margin: 16px 0;
  color: #7e704c;
}
.inline-message.error {
  background: #f8eae5;
  color: #9e4b40;
}
.inline-message.success {
  background: #e9f0e3;
  color: #507344;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.mobile-brand {
  display: none;
}
.season-select {
  background: none;
  border: 0;
  font-size: 11px;
  color: #7b8875;
  max-width: 230px;
}
.league-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.league-tools input {
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--green);
  font-size: 12px;
}
.notifications-list {
  padding: 0 24px;
}
.notification {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.notification h3 {
  font-size: 13px;
}
.notification p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.notification time {
  font-size: 10px;
  color: #94a08c;
  display: block;
  margin-top: 9px;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
}
.auth-story {
  background: var(--green);
  color: #f9f6e9;
  padding: 42px 60px 35px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-story .crest {
  color: #f7f2df;
}
.auth-story .brand-sub {
  color: #aabca4;
}
.auth-story .brand-name {
  font-size: 23px;
}
.auth-story-body {
  margin: auto 0;
  max-width: 510px;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}
.auth-story-body .eyebrow {
  color: #c3ad78;
  font-size: 9px;
}
.auth-story h1 {
  font-size: 65px;
  line-height: 1.05;
  letter-spacing: -2.1px;
  margin-top: 27px;
}
.auth-story h1 em {
  font-weight: 400;
  color: #c6b583;
}
.auth-story-body p {
  font-size: 13px;
  color: #b2c2ac;
  line-height: 1.9;
  max-width: 355px;
  margin-top: 26px;
}
.auth-story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 33px;
  border-top: 1px solid #ffffff19;
  padding-top: 26px;
}
.auth-story-footer strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  display: block;
  margin-bottom: 7px;
}
.auth-story-footer span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #afbea4;
  text-transform: uppercase;
}
.auth-story .race-art {
  width: 540px;
  height: 350px;
  right: -177px;
  top: auto;
  bottom: 60px;
  opacity: 0.25;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 50px;
  background: var(--paper);
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 365px;
}
.auth-card .eyebrow {
  color: var(--gold);
  font-size: 9px;
}
.auth-card h2 {
  font-size: 38px;
  margin-top: 14px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.auth-card > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 29px;
}
.auth-card .button {
  width: 100%;
  min-height: 46px;
}
.auth-card .field {
  margin-bottom: 18px;
}
.auth-card .consent-field label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.auth-card .consent-field input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--green);
}
.auth-card .consent-field a {
  color: var(--green);
  text-decoration: underline;
}
.auth-card .auth-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  text-decoration: underline;
  color: #6b7b63;
}
.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.auth-footer button {
  background: none;
  border: 0;
  color: var(--green);
  text-decoration: underline;
  font-size: 11px;
  padding: 0 4px;
}
.auth-footnote {
  position: absolute;
  bottom: 25px;
  font-size: 9px;
  color: #99a18f;
  left: 30px;
  right: 30px;
  text-align: center;
}
.loading-screen {
  display: grid;
  place-content: center;
  min-height: 100vh;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 36px;
}
.loading-screen em {
  color: var(--gold);
}
.loading-screen span {
  display: block;
  font-family: ClubSans, Arial, sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 14px 22px;
  max-width: min(90vw, 540px);
  background: var(--green);
  color: #fffdf0;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 6px 25px #0a22152e;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  line-height: 1.6;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #913e32;
}
dialog {
  width: 440px;
  max-width: 90vw;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 32px;
  background: var(--white);
  color: var(--green);
  box-shadow: 0 25px 80px #00170d33;
}
dialog::backdrop {
  background: #102e2466;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 29px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 18px 0;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.spacer {
  height: 20px;
}
.notice-link {
  border: 0;
  background: none;
  color: var(--green);
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .hero {
    min-height: 230px;
  }
  .hero-copy {
    max-width: 500px;
  }
  .hero h2 {
    font-size: 39px;
  }
  .race-art {
    width: 370px;
    height: 200px;
  }
  .dashboard-grid {
    gap: 27px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 28px 17px;
  }
  .main {
    margin-left: 195px;
  }
  .content {
    padding: 30px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  }
  .hero-copy {
    max-width: 325px;
  }
  .race-art {
    right: -60px;
    opacity: 0.5;
  }
  .stat {
    padding: 16px;
  }
  .picker-layout {
    grid-template-columns: 1fr 290px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 55px;
  }
}
@media (max-width: 920px) {
  .date {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .dashboard-right .rule-card {
    margin-top: 0;
  }
  .horse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .picker-layout {
    grid-template-columns: 1fr;
  }
  .picker-layout .selection-card {
    order: -1;
  }
  .rules-layout {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 46px;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-main {
    padding: 35px;
  }
  .auth-story-footer {
    gap: 22px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-top {
    font-size: 9px;
  }
  .topbar .breadcrumb {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 34px;
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: 67px;
    padding: 0 10px;
    background: var(--white);
    border-right: 0;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(67px + env(safe-area-inset-bottom));
  }
  .sidebar > .brand,
  .season-label,
  .season-side,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    margin: 0;
    justify-content: space-around;
    gap: 0;
    height: 100%;
    align-items: center;
  }
  .nav a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
    padding: 8px 6px;
    border-radius: 0;
    min-width: 53px;
    color: #87917d;
  }
  .nav a.active {
    background: none;
    color: var(--green);
  }
  .nav a.active:before {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 2px;
    background: var(--green);
  }
  .nav a .icon {
    width: 19px;
    height: 19px;
  }
  .nav a .count {
    display: none;
  }
  .main {
    margin-left: 0;
    padding-bottom: 80px;
  }
  .topbar {
    height: 71px;
    padding: 0 21px;
    background: var(--white);
  }
  .topbar .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand .crest {
    width: 27px;
    height: 32px;
    font-size: 19px;
  }
  .mobile-brand .brand-name {
    font-size: 19px;
  }
  .mobile-brand .brand-sub {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .topbar-right {
    gap: 11px;
  }
  .topbar-right .pill {
    display: none;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  .content {
    padding: 23px 20px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .page-heading > .button {
    padding: 10px;
    font-size: 10px;
  }
  .page-heading > .button .icon {
    display: none;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 230px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .hero {
    padding: 26px 24px;
    min-height: 207px;
    margin-bottom: 17px;
  }
  .hero h2 {
    font-size: 29px;
    max-width: 250px;
  }
  .hero p {
    font-size: 11px;
    max-width: 245px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero .race-art {
    width: 230px;
    right: -112px;
    top: 31px;
    opacity: 0.45;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 21px;
  }
  .stat {
    min-height: 112px;
    padding: 16px 17px;
  }
  .stat-number {
    font-size: 30px;
  }
  .stat-top {
    font-size: 9px;
    margin-bottom: 11px;
  }
  .stat-foot {
    font-size: 8px;
  }
  .dashboard-grid {
    gap: 20px;
  }
  .panel-header {
    padding: 21px 20px 18px;
  }
  .panel-header h2 {
    font-size: 23px;
  }
  .panel-body {
    padding: 0 20px 18px;
  }
  .panel-header .text-link {
    font-size: 10px;
  }
  .entry {
    gap: 12px;
    padding: 16px 0;
  }
  .dashboard-right {
    display: block;
  }
  .dashboard-right .rule-card {
    margin-top: 20px;
  }
  .table-note {
    padding: 12px 20px;
  }
  td:first-child,
  th:first-child {
    padding-left: 20px;
  }
  td:last-child,
  th:last-child {
    padding-right: 20px;
  }
  td {
    padding: 14px 10px;
  }
  th {
    padding: 11px 10px;
    font-size: 8px;
  }
  .stable-name {
    font-size: 10px;
  }
  .member-name {
    font-size: 9px;
  }
  .points {
    font-size: 17px;
  }
  .rank {
    font-size: 16px;
  }
  .horse-grid {
    gap: 12px;
  }
  .horse-card {
    padding: 18px;
  }
  .horse-card h3 {
    font-size: 20px;
  }
  .horse-card .trainer {
    font-size: 9px;
  }
  .horse-card .silk {
    width: 37px;
    height: 37px;
  }
  .horse-card-top {
    margin-bottom: 18px;
  }
  .horse-card-bottom {
    margin-top: 18px;
  }
  .footer {
    font-size: 8px;
    line-height: 1.6;
    align-items: flex-start;
  }
  .footer > span:first-child {
    max-width: 210px;
  }
  .footer .brand-name {
    white-space: nowrap;
  }
  .tabs button {
    padding: 10px 13px;
    font-size: 10px;
  }
  .rules-copy {
    padding: 23px;
  }
  .rule-step p {
    font-size: 11px;
  }
  .settings-row {
    gap: 16px;
  }
  .settings-row .button {
    font-size: 10px;
    padding: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    padding: 25px 27px 30px;
    min-height: auto;
  }
  .auth-story .brand-name {
    font-size: 20px;
  }
  .auth-story .crest {
    width: 31px;
    height: 37px;
    font-size: 22px;
  }
  .auth-story-body {
    padding: 38px 0 8px;
  }
  .auth-story-body .eyebrow {
    font-size: 8px;
  }
  .auth-story h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
    margin-top: 17px;
    max-width: 340px;
  }
  .auth-story-body p {
    font-size: 11px;
    max-width: 280px;
    margin-top: 18px;
  }
  .auth-story-footer {
    display: none;
  }
  .auth-story .race-art {
    width: 300px;
    height: 250px;
    right: -114px;
    bottom: 0;
  }
  .auth-main {
    padding: 35px 27px 65px;
    min-height: 560px;
  }
  .auth-card {
    max-width: 420px;
  }
  .auth-card h2 {
    font-size: 33px;
  }
  .auth-card > p {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .auth-footnote {
    bottom: 20px;
    font-size: 8px;
  }
  .search-area {
    padding: 21px;
  }
  .horse-result {
    gap: 9px;
  }
  .horse-result .silk {
    width: 31px;
    height: 34px;
  }
  .horse-result h3 {
    font-size: 11px;
  }
  .horse-result p {
    font-size: 9px;
  }
  .selection-card {
    padding: 21px;
  }
  .league-tools {
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 15px;
  }
  .league-tools .tabs {
    margin-bottom: 12px;
  }
  .league-tools input {
    margin-bottom: 12px;
  }
  .season-select {
    max-width: 160px;
    font-size: 10px;
  }
  .notification h3 {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .picker-layout .selection-card {
    order: 0;
  }
  .horse-result .button {
    min-height: 44px;
  }
}

.horse-emblem {
  width: 42px;
  height: 44px;
  border-radius: 7px;
  background: #e9eee4;
  display: grid;
  place-items: center;
  color: #829174;
  flex-shrink: 0;
}
.horse-emblem .icon {
  width: 24px;
  height: 24px;
}

.season-summary {
  margin-top: 22px;
}

.policy-page {
  min-height: 100vh;
  padding: clamp(28px, 7vw, 84px) 20px 36px;
  background: linear-gradient(135deg, #143c32 0 280px, var(--paper) 280px);
}
.policy-shell {
  width: min(100%, 760px);
  min-height: 420px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid #d9dfd6;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 58px #10271d24;
}
.policy-shell > p:not(.policy-kicker):not(.policy-updated),
.policy-section p,
.policy-note,
.policy-status {
  max-width: 63ch;
  margin-top: 16px;
  color: #506057;
  font-size: 16px;
  line-height: 1.7;
}
.policy-kicker {
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.policy-section {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.policy-section h2 {
  font-size: 24px;
}
.policy-section p {
  margin-top: 9px;
}
.policy-updated {
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
}
.policy-processors {
  margin: 12px 0 0;
  padding-left: 21px;
  color: #506057;
  line-height: 1.7;
}
.policy-footer {
  display: flex;
  width: min(100%, 760px);
  gap: 18px;
  margin: 18px auto 0;
  padding: 0 6px;
  color: #e8eee7;
  font-size: 14px;
}
.policy-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-shell .policy-link {
  color: var(--green2);
}
.policy-form {
  display: grid;
  gap: 18px;
  max-width: 490px;
  margin-top: 30px;
}
.policy-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.policy-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfc9be;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.policy-danger {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.policy-note {
  margin-top: -2px;
  font-size: 14px;
}
.policy-status {
  min-height: 24px;
  margin-top: 0;
}
@media (max-width: 560px) {
  .policy-page { background: var(--paper); }
  .policy-shell { padding: 29px 23px; border-radius: 15px; }
  .policy-footer { flex-wrap: wrap; color: var(--green); }
}
