html.holo-studio-ui body.horse-race-overview main > .sports-page-heading {
  padding-block: 14px 10px !important;
}
body.horse-race-overview main > .race-focus { padding: 12px 14px; gap: 6px 12px; }
body.horse-race-overview .race-focus h2 { margin-block: 3px 4px; }
body.horse-race-overview .race-focus p { margin-block: 2px 3px; }
body.horse-race-overview .race-date { padding: 5px 9px; font-size: 13px; }
.race-venue-links { font-size: 12px; }
.race-venue-links summary { cursor: pointer; padding: 3px 0; color: #166a56; }
.race-switch {
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 0;
  color: #175547;
  font-size: 13px;
  font-weight: 750;
}
.race-switch select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 28px 7px 12px;
  border: 1px solid #9ec5b6;
  border-radius: 8px;
  color: #163d36;
  background: #fff;
  font: inherit;
}
.race-switch a,.race-source-links a { color: #086150; }
.race-board { margin: 12px 0 24px; border-block: 1px solid #cddfd7; }
.race-board-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 14px; }
.race-board h2 { margin: 0; font-size: 22px; line-height: 1.35; }
#raceFreshness,.race-odds-note { font-size: 12px; color: #4f655c; }
.race-odds-note { margin: 0 0 8px; }
.race-source-links { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 4px 0; font-size: 12px; }
.race-source-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.race-source-links a[hidden] { display: none; }
.race-data-table { border-collapse: collapse; table-layout: fixed; width: 100%; color: #1d3831; font-size: 13px; }
.race-data-table[hidden] { display: none; }
.race-board :is(.position-empty,.race-odds-note)[hidden] { display: none !important; }
.race-data-table th,.race-data-table td { padding: 7px 9px; border-bottom: 1px solid #dce9e3; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.race-data-table thead th { background: #e9f3ee; color: #284d42; font-size: 12px; }
.race-data-table thead th:first-child { width: 60px; }
.race-data-table thead th:nth-child(2) { width: 40%; }
.race-data-table thead th:nth-child(3) { width: 80px; }
.race-data-table th[scope=row] { font-weight: 700; }
.race-data-table tr[data-rank="1"] { background: #fff5d6; }
.race-data-table tr[data-rank="2"] { background: #edf5fa; }
.race-data-table tr[data-rank="3"] { background: #f9edf1; }
.race-data-table .race-saddle-number { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 6px; padding-inline: 3px; border-radius: 4px; background: #d9eee5; color: #145441; vertical-align: top; }
.race-data-table a { color: #085c4c; text-decoration: underline; text-underline-offset: 2px; }
.race-horse-name { display: inline-block; max-width: calc(100% - 32px); }
.race-horse-name small,.race-win-odds > small { display: block; margin-top: 2px; color: #4a6359; font-size: 11px; }
.race-win-odds,.race-finish { font-variant-numeric: tabular-nums; }
.race-win-odds b { white-space: nowrap; }
.race-form-cell summary { cursor: pointer; min-height: 32px; color: #235447; }
.race-form-pills { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.race-form-pills > span { display: inline-block; padding: 2px 4px; border-radius: 4px; background: #e9f3ee; color: #245343; font-size: 11px; white-space: nowrap; }
.race-form-cell ul { list-style: none; margin: 4px 0; padding: 0; }
.race-form-cell li { margin: 0 0 5px; font-size: 11px; }
.race-form-cell li small { display: block; color: #4f655c; }
.race-disclosure { margin: 14px 0 20px; border-block-start: 1px solid #cddfd7; }
.race-disclosure > summary { cursor: pointer; padding: 12px 0; color: #174e42; font-size: 15px; font-weight: 750; }
.race-board .position-panel { margin: 0 0 15px; }
.race-switch :focus-visible,.race-board :focus-visible,.race-disclosure > summary:focus-visible { outline: 2px solid #086858; outline-offset: 2px; }
.racing-views { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid #c9dfd5; }
.racing-views a,.racing-library-head a,.race-watch-status a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: #075d4e; font-weight: 750; text-decoration: none; }
.racing-views img { flex: none; }
.racing-views a:hover,.racing-library-head a:hover,.race-watch-status a:hover { text-decoration: underline; text-underline-offset: 4px; }
.racing-views a:focus-visible,.racing-library :focus-visible { outline: 2px solid #087e6a; outline-offset: 3px; }
#raceBoard,#raceMedia,#holomenArchive { scroll-margin-block-start: 120px; }
.race-watch-status { padding: 5px 12px; margin: 8px 0; border-inline-start: 3px solid #b2862f; background: #faf5e7; color: #3c442e; }
.race-watch-status a { margin-inline-start: 8px; }
.racing-library { padding: 20px 0; margin: 16px 0 26px; border-block: 1px solid #afcfc3; }
.racing-library-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.racing-library-head h2 { margin: 0; color: #163d36; font-size: 24px; }
.racing-member-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px 18px; }
.racing-member-filters button,.racing-archive-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 10px; border: 1px solid #aacac0; border-radius: 7px; color: #16483e; background: white; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.racing-member-filters button[aria-pressed="true"] { background: #d8EFE7; border-color: #187d69; box-shadow: inset 0 -2px #187d69; }
.racing-member-filters button small { color: #375f55; }
.racing-member-filters img { border-radius: 50%; object-fit: cover; }
.racing-library-tools { display: grid; grid-template-columns: minmax(0, 430px) auto; align-items: end; justify-content: start; gap: 6px 18px; }
.racing-library-tools label { font-size: 13px; color: #28564a; }
.racing-library-tools input[type="search"] { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 6px 10px; border: 1px solid #aacac0; border-radius: 7px; color: #163d36; font: inherit; }
.racing-exact-filter { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
#watchArchiveCount { margin: 8px 0; color: #3a675a; font-size: 13px; }
.racing-library-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.racing-archive-row { display: grid; grid-template-columns: minmax(0, 126px) minmax(0, 1fr); gap: 10px; align-items: start; border-top: 1px solid #d5e6df; padding-block: 12px; }
.racing-archive-row h3 { margin: 3px 0; font-size: 14px; line-height: 1.5; color: #192f36; overflow-wrap: anywhere; }
.racing-archive-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #e5f2ec; }
.racing-archive-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 11px; color: #3a675a; }
.racing-archive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.racing-archive-actions button { min-height: 34px; }
.racing-archive-actions a { display: inline-flex; align-items: center; min-height: 34px; font-size: 12px; color: #085c4c; }
.racing-archive-actions [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .racing-member-filters button { transition: background-color .16s ease, box-shadow .16s ease; }
  .racing-member-filters button:active img { transform: scale(.9); }
}
@media (max-width: 760px) {
  .racing-library-results { grid-template-columns: 1fr; }
  .racing-archive-row { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .racing-views { gap: 0 10px; font-size: 12px; }
  .racing-views a { min-height: 42px; }
  .racing-views img { display: none; }
  .racing-library-tools { grid-template-columns: minmax(0, 1fr); }
  .race-switch { grid-template-columns: minmax(0, 1fr) auto; }
  .race-switch select { grid-column: 1 / -1; grid-row: 2; }
  .race-switch a { justify-self: end; }
  .race-data-table { font-size: 12px; }
  .race-data-table th,.race-data-table td { padding: 6px 4px; }
  .race-data-table thead th:first-child { width: 35px; font-size: 10px; }
  .race-data-table thead th:nth-child(2) { width: 41%; }
  .race-data-table thead th:nth-child(3) { width: 56px; }
  .race-data-table .race-saddle-number { margin-right: 3px; min-width: 18px; height: 18px; }
  .race-horse-name { max-width: calc(100% - 24px); }
  .race-form-cell summary { min-height:44px; overflow-wrap:anywhere; }
  .race-switch select,.racing-library-tools input[type="search"] { font-size:16px; }
  .race-win-odds small { white-space:normal; }
}
