.racecards-shell {
  --ink: #20372c;
  --secondary: #69786c;
  --border: #dce2d8;
  --paper: #fffefa;
  --accent: #20573b;
  --pale: #e9f0e3;
  background: #f1f3ed;
  color: var(--ink);
  min-height: 75vh;
  padding: 48px 0 35px;
}
.rc-container {
  width: min(var(--page-width), calc(100% - 64px));
  margin: auto;
}
.rc-eyebrow {
  font-size: 9px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #608365;
}
.rc-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 34px;
}
.rc-page-heading h1,
.methodology-page > h1 {
  font-family: "Manrope", sans-serif;
  font-size: 47px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-top: 7px;
  line-height: 1.15;
}
.rc-page-heading h1 > span,
.methodology-page > h1 > span {
  color: #81a26f;
}
.rc-heading-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.rc-heading-links a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rc-heading-links a:hover {
  color: #497f48;
}
.rc-import-link {
  border: 1px solid #cbd7c7;
  padding: 9px 15px;
  border-radius: 5px;
}
.rc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}
.date-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.date-tabs a {
  font-size: 12px;
  font-weight: 600;
  padding: 13px 17px;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-tabs a > span {
  font-size: 10px;
  font-weight: 400;
  color: #7a8678;
  text-transform: uppercase;
}
.date-tabs a.is-selected {
  background: var(--paper);
  border: 1px solid var(--border);
  border-bottom: 2px solid #426f45;
  color: #23462e;
}
.rc-archive-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rc-archive {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
}
.rc-archive h2 {
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.rc-archive .date-tabs p {
  color: var(--secondary);
  font-size: 0.875rem;
}
.rc-metrics {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr;
  gap: 24px;
  padding: 22px 0 25px;
}
.rc-metrics > div + div {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.rc-metrics > div > span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #7e8b78;
  margin-bottom: 6px;
}
.rc-metrics strong {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rc-metrics small {
  font-size: 10px;
  color: #7b8876;
  font-weight: 400;
}
.rc-workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.rc-sidebar {
  border: 1px solid var(--border);
  background: #e9eee3;
  border-radius: 7px;
  overflow: hidden;
}
.meeting-picker {
  padding: 17px;
  border-bottom: 1px solid #d5dece;
}
.meeting-picker label {
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: #6e8065;
  display: block;
  margin-bottom: 7px;
}
.meeting-picker form {
  display: flex;
  align-items: center;
  gap: 5px;
}
.meeting-picker select {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  color: #29482f;
  border: 1px solid #cdd8c7;
  border-radius: 4px;
  font-size: 11px;
  padding: 10px 22px 10px 9px;
  cursor: pointer;
}
.meeting-go {
  background: #345b3d;
  color: white;
  border: 0;
  border-radius: 4px;
  padding: 10px 8px;
  font-size: 10px;
}
.race-list {
  max-height: 780px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bac9b0 #e9eee3;
  padding: 5px 0 15px;
}
.meeting-group > p {
  padding: 19px 17px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #566c4d;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meeting-group > p > span {
  font-size: 8px;
  color: #84967b;
  border: 1px solid #cad4c4;
  border-radius: 3px;
  padding: 1px 5px;
}
.race-link {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  padding: 12px 15px;
  border-left: 3px solid transparent;
}
.race-link:hover {
  background: #e0e8d9;
}
.race-link.is-selected {
  background: var(--paper);
  border-left-color: #49794a;
}
.race-link time {
  font-size: 17px;
  letter-spacing: -0.6px;
  font-weight: 500;
  color: #5d7355;
}
.race-link.is-selected time {
  color: #2f5a36;
  font-weight: 700;
}
.race-link > span:nth-child(2) {
  flex: 1;
}
.race-link strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #485f41;
  line-height: 1.5;
}
.race-link small {
  display: block;
  font-size: 8px;
  color: #8b9883;
  line-height: 1.7;
}
.race-link-arrow {
  font-size: 15px;
  color: #7a9470;
}
.rc-main {
  min-width: 0;
}
.rc-race-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 3px 10px #273d2404;
  overflow: hidden;
  scroll-margin-top: 20px;
}
.race-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 25px 17px;
}
.race-title-group {
  display: flex;
  gap: 23px;
  align-items: center;
}
.race-time {
  font-family: "Manrope", sans-serif;
  font-size: 35px;
  letter-spacing: -1.5px;
  font-weight: 500;
  color: #2c5433;
  padding-right: 23px;
  border-right: 1px solid #dce4d4;
}
.race-heading .rc-eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.race-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
}
.race-code {
  font-size: 9px;
  border: 1px solid #cbd7c3;
  padding: 5px 9px;
  border-radius: 3px;
  color: #62775b;
  letter-spacing: 0.5px;
}
.race-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 0 25px 22px;
  color: #6f7e66;
  font-size: 10px;
}
.race-meta > span + span::before {
  content: "·";
  padding-inline: 10px;
  color: #a6b09f;
}
.race-meta .missing-going {
  color: #9e8654;
}
.field-overview {
  padding: 11px 25px;
  border-block: 1px solid #e2e7dc;
  background: #f7f9f2;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  font-size: 9px;
  color: #7e8b75;
}
.field-overview > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #75876c;
}
.field-overview .book-total {
  flex-wrap: wrap;
  gap: 2px 5px;
  color: #52664d;
}
.field-overview strong {
  color: #44653a;
  font-weight: 600;
}
.rc-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdcdb1 #edf2e7;
}
.runner-table-main {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  table-layout: auto;
}
.runner-table-main thead {
  background: #f5f7f0;
}
.runner-table-main th {
  padding: 14px 13px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
  color: #809076;
  border-bottom: 1px solid #e2e8db;
  white-space: nowrap;
}
.runner-table-main th:first-child {
  padding-left: 25px;
}
.runner-table-main th > span {
  font-size: 7px;
  color: #9aab8e;
  display: block;
  letter-spacing: 0.6px;
}
.runner-table-main .number-cell {
  text-align: right;
  white-space: nowrap;
}
.runner-main-row td {
  padding: 17px 13px;
  border-bottom: 1px solid #e9ede2;
  vertical-align: middle;
}
.runner-main-row td:first-child {
  padding-left: 24px;
  min-width: 230px;
}
.runner-block.is-top-rated .runner-main-row {
  background: #f0f6e8;
}
.runner-block.is-top-rated .runner-main-row td:first-child {
  box-shadow: inset 3px 0 #729b5b;
}
.runner-identity {
  display: flex;
  gap: 11px;
  align-items: center;
}
.saddle-number {
  font-family: "Manrope", sans-serif;
  display: grid;
  place-items: center;
  width: 29px;
  height: 33px;
  background: #f0f1e9;
  border: 1px solid #dce1d2;
  border-radius: 4px;
  color: #6a7c5d;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.is-top-rated .saddle-number {
  background: #dfead3;
  color: #426d32;
  border-color: #cbdcba;
}
.runner-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #314a2c;
  line-height: 1.6;
}
.connection-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 3px;
}
.connection-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #e4e8e2;
  color: #405044;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.connection-high,
.class-pill {
  background: #20573b;
  color: #fff;
}
.connection-middle {
  background: #f4ce9f;
  color: #603306;
}
.connection-low {
  background: #f2ccc8;
  color: #761c1c;
}
.runner-meta {
  margin-top: 3px;
  font-size: 8px;
  color: #929d88;
  white-space: normal;
}
.runner-meta span {
  padding-inline: 3px;
  color: #b1baaa;
}
.runner-meta .recent-run {
  color: #20573b;
  font-weight: 700;
}
.runner-trip {
  margin-top: 4px;
  color: #536a4c;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.top-label {
  display: block;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #73945f;
}
.nr-label {
  font-size: 8px;
  padding: 2px 5px;
  background: #ede5de;
  color: #9f7660;
  margin-left: 6px;
  border-radius: 3px;
}
.speed-number {
  font-size: 18px;
  color: #436b35;
  letter-spacing: -0.7px;
  font-weight: 600;
}
.source-speed {
  display: block;
  color: #9aa78e;
  font-size: 7px;
}
.speed-sparkline {
  width: 79px;
  height: 31px;
  display: block;
}
.speed-sparkline polyline {
  stroke: #88a870;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.speed-sparkline circle {
  fill: #567e43;
  stroke: #fffefa;
  stroke-width: 1.2;
}
.history-caption {
  font-size: 7px;
  color: #a1ae95;
  display: block;
}
.history-missing {
  font-size: 8px;
  color: #a7af9d;
  display: block;
  max-width: 65px;
}
.speed-chance {
  font-size: 12px;
  color: #8e9c82;
}
.speed-chance > span {
  font-size: 9px;
}
.probability-column {
  color: #466c36 !important;
}
.probability-cell {
  min-width: 104px;
}
.probability-cell > strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: #3f6b30;
  line-height: 1.2;
}
.probability-cell > strong > span {
  font-size: 12px;
  margin-left: 1px;
  font-weight: 400;
}
.probability-track {
  height: 3px;
  background: #e4ecd9;
  border-radius: 4px;
  margin-top: 6px;
  width: 75px;
  margin-left: auto;
  overflow: hidden;
}
.probability-track > span {
  display: block;
  height: 100%;
  background: #87ac65;
  border-radius: 3px;
}
.probability-change {
  display: block;
  color: #a28972;
  font-size: 7px;
  padding-top: 4px;
}
.probability-change.positive {
  color: #759563;
}
.odds-quotes {
  display: inline-grid;
  gap: 3px;
}
.odds-quotes > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.odds-quotes span {
  color: #596c53;
  font-size: 9px;
}
.odds-quotes strong {
  color: #385630;
  font-size: 14px;
  font-weight: 600;
}
.runner-main-row td.positives-column {
  vertical-align: bottom;
}
.runner-badges {
  display: grid;
  gap: 7px;
}
.positive-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 113px;
  max-width: 245px;
}
.positive-tags > span {
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #4a633b;
  background: #edf3e5;
  max-width: 100%;
}
.positive-tags > span.positive-tag-combined {
  background: #20573b;
  color: #fff;
}
.positive-tags > span.positive-count {
  color: #20573b;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #c5d6bc;
}
.positive-tags > span.class-mark-note {
  color: #594720;
  background: #f5eddb;
  line-height: 1.4;
}
.class-mark-note b {
  padding-left: 0;
}
.runner-mobile-positives {
  display: none;
}
.positive-tags b {
  font-weight: 600;
  padding-left: 3px;
}
.no-positives {
  font-size: 7px;
  color: #a4ae9b;
  max-width: 100px;
}
.analysis-cell {
  width: 40px;
  padding-inline: 9px !important;
}
.analysis-toggle {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #7d9270;
  border: 1px solid #d6dfcd;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  line-height: 1;
}
.analysis-toggle:hover,
.analysis-toggle[aria-expanded="true"] {
  color: #35652b;
  background: #e2edd7;
  border-color: #bdcfae;
}
.is-non-runner .runner-main-row {
  background: #f4f2ed;
}
.is-non-runner .runner-name {
  color: #929586;
}
.is-non-runner .speed-number,
.is-non-runner .odds-cell {
  color: #a6ad9c;
}
.is-non-runner .speed-sparkline {
  opacity: 0.4;
}
.is-non-runner .positive-tags {
  opacity: 0.5;
}
.probability-cell > strong.nr-probability {
  color: #a5ab9c;
}
.probability-cell > small {
  font-size: 7px;
  color: #a3ad97;
  display: block;
}
.runner-analysis-row > td {
  padding: 0;
  background: #f8faf4;
  border-bottom: 1px solid #dae5d0;
}
.runner-analysis {
  padding: 26px 28px;
}
.analysis-summary h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: 7px;
}
.analysis-summary > p,
.recent-speed-detail {
  font-size: 10px;
  color: #52664d;
  margin-top: 8px;
}
.recent-speed-detail strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 24px;
}
.analysis-grid h4 {
  font-size: 11px;
  color: #5b7650;
  font-weight: 600;
  margin: 0 0 12px;
}
.factor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.factor-table th {
  font-size: 8px;
  text-align: right;
  color: #8a9a7e;
  letter-spacing: 0;
  padding: 8px 0 !important;
  background: none;
  border-color: #dfe7d7;
}
.factor-table th:first-child {
  text-align: left;
}
.factor-table td {
  padding: 8px 0;
  border-bottom: 1px solid #e5ebdf;
  text-align: right;
  font-size: 10px;
  color: #7f9073;
}
.factor-table td:first-child {
  text-align: left;
  color: #718365;
}
.factor-table strong {
  font-weight: 600;
  color: #4e7040;
}
.combined-positives-detail {
  margin-top: 10px;
  color: #52664d;
  font-size: 11px;
  line-height: 1.6;
}
.combined-positives-detail p {
  margin: 2px 0 0;
}
.analysis-intro {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #52664d;
}
.rating-effects {
  margin: 0 0 14px;
  font-size: 0.75rem;
}
.rating-effects > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 5px;
  border-bottom: 1px solid #dfe7d7;
}
.rating-effects dd {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #20573b;
}
.rating-losses dd {
  color: #8a3e32;
}
.analysis-headline small {
  display: block;
  font-size: 0.75rem;
}
.strike-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 15px 0 0;
}
.strike-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
}
.strike-grid dt {
  color: #95a28b;
}
.strike-grid dd {
  margin: 0;
  color: #829575;
}
.strike-grid .strong-strike dd {
  color: #4c7d36;
  font-weight: 600;
}
.runner-status-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dbe7d1;
  margin-top: 20px;
  padding-top: 20px;
}
.runner-status-form > label {
  font-size: 10px;
  color: #728867;
}
.runner-status-form > label span {
  font-size: 8px;
  color: #9ba991;
}
.runner-status-form > input:not([type="hidden"]) {
  background: #fffefa;
  border: 1px solid #d1dec6;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 10px;
  color: #4b6841;
  min-width: 180px;
  flex: 1;
}
.runner-status-form > button {
  font-size: 10px;
  padding: 9px 13px;
  border-radius: 4px;
  border: 1px solid #d7c4b7;
  color: #9a7155;
  background: #f6eee6;
}
.runner-status-form > .restore-button {
  background: #e6eedc;
  border-color: #c7d9b6;
  color: #587e3c;
}
.runner-status-form > p {
  width: 100%;
  font-size: 8px;
  color: #9ba98f;
}
.race-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 24px;
  font-size: 8px;
  color: #98a48d;
  background: #f8faf3;
}
.rc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100% - 35px);
  padding: 14px 24px;
  border: 1px solid #9cb089;
  border-radius: 7px;
  background: #24452d;
  color: #e3f0d7;
  box-shadow: 0 8px 35px #20371933;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rc-empty {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 60px 30px;
  text-align: center;
  min-height: 300px;
}
.rc-empty h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.rc-empty p {
  font-size: 14px;
  color: #849577;
  margin: 20px auto;
  max-width: 500px;
}
.rc-primary {
  display: inline-flex;
  padding: 12px 25px;
  background: #416d36;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
}
.methodology-page {
  max-width: 1150px;
}
.rc-back {
  display: inline-block;
  font-size: 12px;
  color: #729366;
  margin-bottom: 35px;
}
.methodology-page > .rc-eyebrow {
  margin-bottom: 12px;
}
.methodology-page > h1 {
  font-size: 46px;
  margin: 0;
  line-height: 1.15;
}
.methodology-lead {
  font-size: 16px;
  line-height: 1.8;
  max-width: 680px;
  margin: 25px 0 40px;
  color: #52664d;
}
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.methodology-card {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 7px;
}
.methodology-card h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}
.methodology-card p,
.guide-note {
  font-size: 14px;
  line-height: 1.65;
  color: #52664d;
}
.methodology-card p + p {
  margin-top: 10px;
}
.guide-note {
  max-width: 70ch;
  margin-top: 24px;
}
.racecards-shell a:focus-visible,
.racecards-shell button:focus-visible,
.racecards-shell select:focus-visible,
.racecards-shell input:focus-visible,
.racecards-shell [tabindex]:focus-visible {
  outline-color: #487744;
  outline-offset: 3px;
}
@media (min-width: 1700px) {
  .runner-main-row td {
    padding-block: 21px;
  }
  .runner-name {
    font-size: 14px;
  }
  .runner-table-main th {
    font-size: 8px;
  }
  .runner-meta {
    font-size: 10px;
  }
  .positive-tags > span {
    font-size: 9px;
  }
}
@media (max-width: 1200px) {
  .rc-container {
    width: calc(100% - 40px);
  }
  .rc-workspace {
    grid-template-columns: 188px minmax(0, 1fr);
    gap: 16px;
  }
  .runner-table-main th,
  .runner-main-row td {
    padding-inline: 10px;
  }
  .runner-main-row td:first-child {
    padding-left: 17px;
    min-width: 190px;
  }
  .runner-name {
    font-size: 11px;
  }
  .history-column {
    display: none;
  }
  .positive-tags {
    min-width: 105px;
  }
  .rc-metrics {
    grid-template-columns: 1.3fr 0.5fr 1.2fr;
    gap: 15px;
  }
  .rc-metrics > div + div {
    padding-left: 15px;
  }
  .rc-metrics strong {
    font-size: 15px;
  }
  .race-link {
    gap: 8px;
    padding-inline: 11px;
  }
  .race-link time {
    font-size: 16px;
  }
  .meeting-picker {
    padding: 14px;
  }
  .meeting-picker select {
    font-size: 10px;
  }
  .race-heading {
    padding: 22px 20px 17px;
  }
  .race-meta {
    padding-inline: 20px;
  }
  .analysis-grid {
    gap: 22px;
  }
}
@media (max-width: 950px) {
  .rc-workspace {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
  }
  .race-link {
    gap: 7px;
  }
  .race-link time {
    font-size: 15px;
  }
  .race-link strong {
    font-size: 8px;
  }
  .race-link small {
    font-size: 7px;
  }
  .race-link-arrow {
    display: none;
  }
  .meeting-picker {
    padding: 12px;
  }
  .meeting-picker select {
    font-size: 9px;
  }
  .meeting-go {
    font-size: 9px;
    padding-inline: 6px;
  }
  .positives-column {
    display: none;
  }
  .runner-block.has-runner-badges > .runner-main-row > td {
    padding-bottom: 9px;
    border-bottom: 0;
  }
  .runner-mobile-positives {
    display: table-row;
  }
  .runner-mobile-positives > td {
    padding: 0 12px 12px 35px;
    border-bottom: 1px solid #e9ede2;
  }
  .is-top-rated .runner-mobile-positives {
    background: #f0f6e8;
  }
  .is-non-runner .runner-mobile-positives {
    background: #f4f2ed;
  }
  .runner-mobile-positives .runner-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .runner-mobile-positives .connection-pills {
    margin-inline-start: auto;
  }
  .runner-mobile-positives .positive-tags {
    flex: 1 1 145px;
    min-width: 0;
    max-width: none;
  }
  .runner-mobile-positives .positive-tags > span {
    padding: 2px 5px;
    font-size: 0.625rem;
  }
  .runner-main-row td:first-child {
    min-width: 190px;
  }
  .rc-metrics strong {
    display: block;
    font-size: 14px;
  }
  .rc-metrics small {
    font-size: 9px;
  }
  .rc-metrics > div:first-child strong {
    font-size: 13px;
  }
  .race-heading h2 {
    font-size: 22px;
  }
  .race-time {
    font-size: 29px;
    padding-right: 15px;
  }
  .race-title-group {
    gap: 15px;
  }
  .race-meta {
    font-size: 9px;
  }
  .field-overview {
    gap: 10px;
    padding-inline: 20px;
  }
  .field-overview p {
    font-size: 8px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .runner-analysis {
    padding: 22px;
  }
  .race-panel-footer {
    font-size: 7px;
  }
}
@media (max-width: 900px) {
  .racecards-shell {
    padding-top: 30px;
  }
  .rc-container {
    width: calc(100% - 30px);
  }
  .rc-page-heading {
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
  }
  .rc-page-heading h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .rc-eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .rc-heading-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 13px;
    padding-top: 5px;
    white-space: nowrap;
  }
  .rc-heading-links a {
    font-size: 9px;
    gap: 6px;
  }
  .rc-import-link {
    padding: 7px 9px;
  }
  .rc-toolbar {
    display: block;
  }
  .date-tabs {
    gap: 5px;
  }
  .date-tabs a {
    font-size: 11px;
    padding-inline: 12px;
    min-height: 44px;
  }
  .date-tabs a > span {
    font-size: 9px;
  }
  .rc-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 17px 20px;
    padding-block: 20px;
  }
  .rc-metrics > div + div {
    padding-left: 0;
    border-left: 0;
  }
  .rc-metrics > div > span {
    font-size: 7px;
    margin-bottom: 4px;
  }
  .rc-metrics strong,
  .rc-metrics > div:first-child strong {
    font-size: 14px;
    display: flex;
  }
  .rc-metrics small {
    font-size: 9px;
  }
  .rc-workspace {
    display: block;
  }
  .rc-sidebar {
    margin-bottom: 18px;
    border-radius: 5px;
  }
  .meeting-picker {
    padding: 12px;
  }
  .meeting-picker label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  .meeting-picker select {
    min-height: 44px;
    font-size: 1rem;
    padding: 7px 12px;
  }
  .meeting-go {
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    font-size: 0.875rem;
  }
  .race-list {
    display: flex;
    overflow: auto;
    max-height: 180px;
    gap: 12px;
    padding: 10px;
    align-items: stretch;
  }
  .meeting-group {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
    min-width: 150px;
    max-width: 210px;
  }
  .meeting-group > p {
    padding: 0;
    width: 100%;
    font-size: 9px;
    margin-bottom: 4px;
  }
  .meeting-group > p > span {
    display: none;
  }
  .race-link {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 1px solid #d1dcc8;
    background: #eef3e8;
    border-radius: 3px;
    min-width: 46px;
    min-height: 44px;
  }
  .race-link.is-selected {
    border: 1px solid #658b50;
    background: #fffefa;
    box-shadow: 0 0 0 1px #658b5020;
  }
  .race-link time {
    font-size: 12px;
  }
  .race-link > span {
    display: none;
  }
  .rc-main {
    width: 100%;
  }
  .race-heading {
    padding: 20px 16px 16px;
  }
  .race-time {
    font-size: 31px;
    padding-right: 14px;
  }
  .race-heading h2 {
    font-size: 22px;
  }
  .race-heading .rc-eyebrow {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .race-title-group {
    gap: 14px;
  }
  .race-meta {
    padding: 0 16px 16px;
    font-size: 8px;
  }
  .race-meta > span + span::before {
    padding-inline: 7px;
  }
  .field-overview {
    padding: 10px 15px;
    gap: 10px;
    font-size: 8px;
    align-items: flex-start;
  }
  .field-overview p {
    font-size: 7px;
    max-width: 43%;
    text-align: right;
    line-height: 1.8;
  }
  .runner-table-main th {
    padding: 13px 9px;
    font-size: 6px;
    letter-spacing: 0.6px;
  }
  .runner-table-main th:first-child {
    padding-left: 14px;
  }
  .runner-main-row td:first-child {
    padding-left: 13px;
    min-width: 175px;
    max-width: 210px;
  }
  .runner-main-row td {
    padding: 15px 9px;
  }
  .runner-name {
    font-size: 10px;
    white-space: normal;
    min-width: 115px;
  }
  .runner-identity {
    gap: 7px;
  }
  .saddle-number {
    width: 23px;
    height: 29px;
    font-size: 10px;
  }
  .runner-meta {
    font-size: 7px;
    line-height: 1.7;
  }
  .top-label {
    font-size: 5px;
  }
  .speed-number {
    font-size: 17px;
  }
  .source-speed {
    font-size: 6px;
  }
  .speed-chance {
    font-size: 11px;
  }
  .probability-cell {
    min-width: 84px;
  }
  .probability-cell > strong {
    font-size: 19px;
  }
  .probability-cell > strong > span {
    font-size: 10px;
  }
  .probability-track {
    width: 60px;
  }
  .probability-change {
    font-size: 6px;
  }
  .analysis-cell {
    padding-inline: 7px !important;
  }
  .analysis-toggle {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
  .race-panel-footer {
    padding: 12px 15px;
    font-size: 6px;
    gap: 10px;
    line-height: 1.7;
  }
  .race-panel-footer > span:last-child {
    text-align: right;
  }
  .runner-analysis {
    min-width: 480px;
    padding: 23px 19px;
  }
  .runner-status-form > input:not([type="hidden"]) {
    max-width: 220px;
    min-width: 180px;
  }
  .methodology-page > h1 {
    font-size: 35px;
  }
  .methodology-lead {
    font-size: 13px;
    margin-block: 22px 30px;
  }
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .methodology-card {
    padding: 25px;
  }
  .methodology-card h2 {
    font-size: 21px;
  }
  .rc-empty {
    padding: 40px 20px;
  }
  .rc-empty h2 {
    font-size: 26px;
  }
}
/* Keep the primary evidence readable; smaller reference labels stay secondary. */
.runner-name {
  font-size: 14px;
}
.runner-meta {
  font-size: 10px;
}
.runner-table-main th {
  font-size: 9px;
}
.source-speed,
.history-caption {
  font-size: 9px;
}
.speed-chance {
  font-size: 14px;
}
.positive-tags > span {
  font-size: 9px;
}
.no-positives {
  font-size: 9px;
}
.probability-change,
.probability-cell > small {
  font-size: 9px;
}
.top-label {
  font-size: 8px;
}
.race-meta {
  font-size: 12px;
}
.field-overview {
  font-size: 11px;
}
.rc-metrics > div > span {
  font-size: 10px;
}
.meeting-group > p {
  font-size: 12px;
}
.race-link strong {
  font-size: 11px;
}
.race-link small {
  font-size: 10px;
}
.race-panel-footer {
  font-size: 10px;
}
.analysis-summary > p,
.recent-speed-detail {
  font-size: 12px;
}
.analysis-grid h4 {
  font-size: 13px;
}
.factor-table th,
.factor-table td {
  font-size: 12px;
}
.strike-grid > div {
  font-size: 11px;
}
.runner-status-form > label,
.runner-status-form > button,
.runner-status-form > input:not([type="hidden"]) {
  font-size: 12px;
}
.runner-status-form > p {
  font-size: 10px;
}
@media (max-width: 1200px) {
  .runner-name {
    font-size: 12px;
  }
  .runner-meta {
    font-size: 9px;
  }
  .runner-table-main th {
    font-size: 8px;
  }
  .positive-tags > span,
  .no-positives {
    font-size: 8px;
  }
  .race-link strong,
  .race-link small {
    font-size: 9px;
  }
}
@media (max-width: 900px) {
  .rc-container {
    min-width: 0;
  }
  .rc-workspace,
  .rc-main,
  #race-panel,
  #race-navigation {
    min-width: 0;
    max-width: 100%;
  }
  .rc-sidebar {
    width: 100%;
    min-width: 0;
  }
  .race-list {
    min-width: 0;
  }
  .race-link strong,
  .race-link small {
    display: none;
  }
  .race-meta {
    font-size: 10px;
  }
  .field-overview {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .field-overview p {
    font-size: 9px;
  }
  .runner-table-main {
    table-layout: fixed;
    width: 100%;
  }
  .runner-table-main > thead > tr > th:first-child {
    width: 38%;
  }
  .runner-table-main > thead > tr > th:nth-child(2) {
    width: 14%;
  }
  .runner-table-main > thead > tr > th:nth-child(5) {
    width: 20%;
  }
  .runner-table-main > thead > tr > .odds-heading {
    width: 17%;
    white-space: normal;
    padding-inline: 3px;
  }
  .runner-table-main > thead > tr > th:last-child {
    width: 11%;
    padding-inline: 0;
  }
  .runner-table-main > thead > tr > th:nth-child(4),
  .runner-main-row .speed-chance {
    display: none;
  }
  .odds-quotes > div {
    gap: 3px;
  }
  .odds-quotes strong {
    font-size: 11px;
  }
  .odds-quotes span {
    font-size: 8px;
    letter-spacing: 0;
  }
  .odds-cell {
    padding-inline: 3px !important;
  }
  .runner-main-row td:first-child {
    min-width: 0;
    max-width: none;
    padding-left: 8px;
  }
  .runner-main-row td {
    padding-inline: 5px;
  }
  .runner-mobile-positives > td {
    padding-inline: 34px 10px;
  }
  .runner-identity > div {
    min-width: 0;
  }
  .runner-name {
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .runner-meta {
    font-size: 8px;
  }
  .saddle-number {
    width: 21px;
    height: 27px;
    font-size: 9px;
  }
  .runner-identity {
    gap: 5px;
  }
  .speed-number {
    font-size: 17px;
  }
  .source-speed {
    font-size: 7px;
    white-space: normal;
  }
  .probability-cell {
    min-width: 0;
  }
  .probability-cell > strong {
    font-size: 19px;
  }
  .probability-change {
    font-size: 8px;
  }
  .probability-track {
    width: min(50px, 100%);
  }
  .runner-table-main th {
    font-size: 7px;
    letter-spacing: 0.4px;
    white-space: normal;
  }
  .runner-table-main th:first-child {
    padding-left: 11px;
  }
  .analysis-cell {
    padding-inline: 0 !important;
  }
  .analysis-toggle {
    width: 100%;
    height: 44px;
    padding: 0;
    border: 0;
    color: #315d33;
  }
  .analysis-toggle:hover,
  .analysis-toggle[aria-expanded="true"] {
    background: transparent;
  }
  .analysis-toggle > span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #c1d1b8;
    border-radius: 50%;
  }
  .analysis-toggle[aria-expanded="true"] > span {
    background: #e2edd7;
  }
  .analysis-toggle:focus-visible {
    outline-offset: -3px;
  }
  .runner-analysis {
    min-width: 0;
    padding: 21px 13px;
  }
  .analysis-grid {
    gap: 20px;
  }
  .analysis-summary h3 {
    font-size: 17px;
  }
  .analysis-summary > p,
  .recent-speed-detail {
    font-size: 10px;
  }
  .factor-table th,
  .factor-table td {
    font-size: 10px;
  }
  .strike-grid > div {
    font-size: 10px;
  }
  .race-panel-footer {
    font-size: 8px;
  }
  .rc-metrics > div > span {
    font-size: 8px;
  }
  .top-label {
    font-size: 6px;
  }
}
.analysis-headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: 10px 15px;
  max-width: 640px;
  margin-top: 22px;
  padding: 14px 0;
  border-block: 1px solid #e1e9d9;
}
.analysis-headline > div {
  font-size: 10px;
  color: #596c53;
}
.analysis-headline small {
  font-size: 9px;
}
.analysis-headline strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #557e40;
  margin-top: 3px;
}
.connection-panel {
  margin-top: 20px;
}
.connection-panel h4 {
  color: #314c31;
  font-size: 14px;
  margin: 0 0 10px;
}
.connection-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}
.connection-record {
  border: 1px solid #d9e3d3;
  border-radius: 5px;
  padding: 10px 12px;
  background: #f1f5ee;
  color: #52664d;
  font-size: 11px;
}
.connection-record h5 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #314c31;
  margin: 0 0 8px;
}
.connection-record dl {
  margin: 0;
}
.connection-record dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 6px;
}
.connection-record dd {
  margin: 0;
  font-weight: 700;
}
.connection-record .connection-history {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid #d9e3d3;
}
.connection-history dd {
  display: flex;
  align-items: baseline;
  gap: 4px 8px;
  font-weight: 400;
}
.connection-history-strong {
  color: #23543a;
}
.class-analysis {
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px solid #d9e3d3;
  border-radius: 5px;
  background: #f1f5ee;
  color: #52664d;
  font-size: 11px;
}
.class-analysis header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 12px;
}
.class-analysis h4 {
  margin: 0;
  color: #314c31;
  font-size: 14px;
}
.class-analysis p {
  margin: 3px 0 0;
}
.class-proof {
  color: #20573b;
  font-weight: 700;
}
.trip-analysis {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #d9e3d3;
  border-radius: 5px;
  background: #f0f5eb;
}
.trip-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 10px;
}
.trip-heading h4 {
  margin: 0;
  font-size: 14px;
  color: #314c31;
}
.trip-heading > span,
.trip-stats dt,
.trip-basis,
.trip-note {
  font-size: 12px;
  color: #52664d;
}
.trip-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
  gap: 8px 12px;
  margin: 0 0 8px;
}
.trip-stats dd {
  margin: 1px 0 0;
  color: #314c31;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.trip-stats .trip-strong-rate dd {
  font-weight: 700;
}
.trip-note {
  margin-top: 3px;
  font-size: 11px;
}
.race-factor-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.race-factor-details .trip-analysis {
  min-width: 0;
  margin-top: 0;
}
.race-factor-details .trip-heading .class-proof {
  color: #20573b;
}
@media (max-width: 720px) {
  .trip-analysis { padding-inline: 12px; }
  .trip-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc-toast {
    scroll-behavior: auto;
  }
}
