  /* ── Event hero ─────────────────────────────────────────────────────────── */
  .event-hero {
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff; padding: 2rem 0 1.75rem;
  }
  .event-hero .breadcrumb {
    font-size: .78rem; color: rgba(255,255,255,.55);
    margin-bottom: .75rem; display: flex; align-items: center; gap: .35rem;
  }
  .event-hero .breadcrumb a { color: rgba(255,255,255,.7); }
  .event-hero .breadcrumb a:hover { color: #fff; }
  .event-hero h1 {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .6rem;
  }
  .event-hero-meta {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    font-size: .875rem; color: rgba(255,255,255,.7); margin-top: .5rem;
  }
  .event-hero-meta .sep { opacity: .4; }
  .event-hero-meta .gold { color: var(--gold-light); font-weight: 600; }
  .hero-flag { font-size: 1.4rem; line-height: 1; }
  .event-updated {
    margin-top: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
  }

  /* ── Quick stats row ───────────────────────────────────────────────────── */
  .show-stats-row {
    margin: 1.1rem 0 1.4rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .6rem;
  }
  .show-stat-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--cream) 55%, var(--surface));
    padding: .75rem .85rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, background .15s, transform .15s;
  }
  .show-stat-card:hover {
    border-color: var(--navy-mid);
    background: color-mix(in srgb, var(--navy) 7%, var(--surface));
    text-decoration: none;
    transform: translateY(-1px);
  }
  .show-stat-label {
    font-size: .72rem;
    color: var(--label);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
  }
  .show-stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.15;
  }
  .show-stat-hint {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.3;
  }

  /* ── Hero action buttons ────────────────────────────────────────────────── */
  .hero-actions {
    display: flex; gap: .45rem; margin-top: 1rem; flex-wrap: wrap;
  }
  .hero-action-btn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .35rem .85rem;
    border-radius: 99px;
    border: 1.5px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.82);
    font-size: .8rem; font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
  }
  .hero-action-btn:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
    color: #fff;
  }
  .share-btn { padding: 0; width: 2rem; height: 2rem; border-radius: 50%; justify-content: center; }
  #share-wa  svg { color: #25D366; }
  #share-fb  svg { color: #1877F2; }
  #share-sms svg { color: #34C759; }
  #fav-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: var(--icon-filter-strong);
    flex-shrink: 0;
  }
  .hero-action-btn.saved #fav-icon {
    filter: none;
  }
  .hero-action-btn.saved {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(201,148,58,.15);
  }

  /* ── Day picker ─────────────────────────────────────────────────────────── */
  .day-picker-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: .45rem;
    margin-bottom: .45rem;
  }
  .day-picker-sticky {
    position: sticky;
    top: 108px;
    z-index: 45;
    background: transparent;
    padding: 0;
    border-bottom: none;
    transition: box-shadow .18s ease;
  }
  .day-picker {
    display: flex; overflow-x: auto; scrollbar-width: none;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--cream);
  }
  .day-picker::-webkit-scrollbar { display: none; }
  .day-picker-sticky.is-floating .day-picker { box-shadow: var(--shadow); }
  .day-picker-sticky.is-floating .day-picker-nav { box-shadow: var(--shadow-sm); }
  .day-picker-nav {
    width: 2rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--muted);
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    transition: all .15s;
  }
  .day-picker-nav:hover:not(:disabled) {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
    background: var(--cream);
  }
  .day-picker-nav:disabled {
    opacity: .35;
    cursor: default;
  }
  .day-tab {
    flex: 0 0 170px; min-width: 170px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: .65rem .75rem; gap: .2rem;
    background: transparent; border: none; border-right: 1px solid var(--border);
    cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; text-align: left;
  }
  .day-tab:last-child { border-right: none; }
  .day-tab:hover:not(.active) { background: var(--surface); }

  /* selected */
  .day-tab.active {
    background: var(--navy-mid);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy-mid) 75%, #000);
  }
  .day-tab.active .day-tab-name,
  .day-tab.active .day-tab-date { color: #fff; }
  .day-tab.active .day-tab-count { color: rgba(255,255,255,.74); }

  /* today */
  .day-tab.today:not(.active) {
    background: color-mix(in srgb, var(--gold-light) 22%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-light) 45%, var(--border));
  }
  .day-tab.today:not(.active) .day-tab-count {
    color: color-mix(in srgb, var(--gold) 85%, #000);
  }

  /* live */
  .day-tab.live:not(.active) {
    background: color-mix(in srgb, #dc2626 10%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #dc2626 45%, var(--border));
  }
  .day-tab.live:not(.active) .day-tab-name { color: #b91c1c; }
  .day-tab.live:not(.active) .day-tab-count { color: #b91c1c; }
  .day-tab.live-estimated:not(.active) {
    background: color-mix(in srgb, #d97706 12%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #d97706 48%, var(--border));
  }
  .day-tab.live-estimated:not(.active) .day-tab-name,
  .day-tab.live-estimated:not(.active) .day-tab-count { color: #b45309; }
  .day-tab.now:not(.active) {
    background: color-mix(in srgb, #16a34a 10%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #16a34a 45%, var(--border));
  }
  .day-tab.now:not(.active) .day-tab-name { color: #166534; }
  .day-tab.now:not(.active) .day-tab-count { color: #166534; }
  .day-tab.now-estimated:not(.active) {
    background: color-mix(in srgb, #15803d 12%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #15803d 48%, var(--border));
  }
  .day-tab.now-estimated:not(.active) .day-tab-name,
  .day-tab.now-estimated:not(.active) .day-tab-count { color: #166534; }

  /* combined states */
  .day-tab.active.today:not(.live):not(.now) {
    box-shadow: inset 0 -3px 0 var(--gold-light), inset 0 0 0 1px color-mix(in srgb, var(--navy-mid) 75%, #000);
  }
  .day-tab.active.now:not(.live) {
    background: #15803d;
    box-shadow: inset 0 0 0 1px #14532d;
  }
  .day-tab.active.now:not(.live).now-estimated {
    background: #166534;
    box-shadow: inset 0 0 0 1px #14532d;
  }
  .day-tab.active.live {
    background: #b91c1c;
    box-shadow: inset 0 0 0 1px #7f1d1d;
  }
  .day-tab.active.live.live-estimated {
    background: #b45309;
    box-shadow: inset 0 0 0 1px #92400e;
  }
  .day-tab.active.live .day-tab-name,
  .day-tab.active.live .day-tab-date,
  .day-tab.active.live .day-tab-count { color: #fff; }

  .day-tab.past:not(.active) .day-tab-name,
  .day-tab.past:not(.active) .day-tab-date,
  .day-tab.past:not(.active) .day-tab-count { color: var(--muted); }
  .day-tab.filtered-empty:not(.active) { opacity: .56; }

  .day-tab-name { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .day-tab-date { font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; }
  .day-tab-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .45rem;
    width: 100%;
  }
  .day-tab-count { font-size: .68rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
  .day-tab-weather {
    display: inline-flex; align-items: center; gap: .22rem;
    font-size: .66rem; color: color-mix(in srgb, var(--text) 76%, #fff); white-space: nowrap; font-weight: 600;
  }
  .weather-icon {
    font-size: .76rem;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  }
  .day-tab.active .day-tab-weather { color: rgba(255,255,255,.86); }

  .day-panel { display: none; }
  .day-panel.active { display: block; }
  .day-panel.transition-in .day-panel-list {
    animation: tt-panel-fade-in .28s cubic-bezier(.2,.8,.2,1) both;
  }
  .day-panel.transition-in .tt-card:not([hidden]):not(.is-filter-hidden) {
    opacity: 0;
    animation: tt-card-rise-in .36s cubic-bezier(.16,1,.3,1) both;
    animation-delay: calc(var(--tt-stagger, 0) * 50ms);
  }
  .day-panel-list { display:flex; flex-direction:column; gap:.6rem; }
  .tt-now-divider {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: .2rem 0;
  }
  .tt-now-divider .line {
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, #16a34a 70%, var(--border));
  }
  .tt-now-divider .label {
    white-space: nowrap;
    color: #15803d;
  }

  /* ── Timetable card ─────────────────────────────────────────────────────── */
  .tt-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); display: flex; align-items: stretch;
    transition: box-shadow .15s; overflow: hidden;
  }
  .tt-card[hidden],
  .tt-card.is-filter-hidden {
    display: none !important;
  }
  .tt-card:hover { box-shadow: var(--shadow); }
  .tt-card.tt-card-interactive {
    cursor: pointer;
  }
  .tt-card.tt-card-interactive:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--navy-mid) 70%, #fff);
    outline-offset: 2px;
  }
  .tt-card.tt-live {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
  }
  .tt-card.tt-live-confirmed .tt-time-col { background: #dc2626; }
  .tt-card.tt-live-confirmed .tt-time,
  .tt-card.tt-live-confirmed .tt-time-end,
  .tt-card.tt-live-confirmed .tt-time-weather { color: #fff; }
  .tt-card.tt-live-estimated {
    border-color: #d97706;
    box-shadow: 0 0 0 1px #d97706;
  }
  .tt-card.tt-live-estimated .tt-time-col { background: #b45309; }
  .tt-card.tt-live-estimated .tt-time,
  .tt-card.tt-live-estimated .tt-time-end,
  .tt-card.tt-live-estimated .tt-time-weather { color: #fff; }
  .tt-card.tt-now {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px #16a34a;
  }
  .tt-card.tt-now-confirmed .tt-time-col { background: #16a34a; }
  .tt-card.tt-now-confirmed .tt-time,
  .tt-card.tt-now-confirmed .tt-time-end,
  .tt-card.tt-now-confirmed .tt-time-weather { color: #fff; }
  .tt-card.tt-now-estimated {
    border-color: #15803d;
    box-shadow: 0 0 0 1px #15803d;
  }
  .tt-card.tt-now-estimated .tt-time-col { background: #166534; }
  .tt-card.tt-now-estimated .tt-time,
  .tt-card.tt-now-estimated .tt-time-end,
  .tt-card.tt-now-estimated .tt-time-weather { color: #fff; }

  @keyframes tt-panel-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes tt-card-rise-in {
    from { opacity: 0; transform: translateY(10px) scale(.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @media (prefers-reduced-motion: reduce) {
    .day-panel.transition-in .day-panel-list,
    .day-panel.transition-in .tt-card:not([hidden]):not(.is-filter-hidden) {
      animation: none !important;
    }
  }

  .tt-time-col {
    background: var(--cream); border-right: 1px solid var(--border);
    padding: .9rem .85rem; display: flex; flex-direction: column;
    align-items: center; justify-content: center; min-width: 72px;
    flex-shrink: 0; text-align: center;
  }
  .tt-time {
    font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
    color: var(--heading-strong); font-variant-numeric: tabular-nums;
  }
  .tt-time-text {
    font-size: .86rem;
    letter-spacing: .01em;
    line-height: 1.1;
    font-weight: 700;
  }
  .tt-time-follow {
    font-size: .78rem;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .tt-time-end { font-size: .7rem; color: var(--muted); margin-top: .1rem; }
  .tt-time-hint {
    font-size: .62rem;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .tt-time-weather {
    margin-top: .3rem;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .72rem;
    color: color-mix(in srgb, var(--text) 84%, #fff);
    font-weight: 600;
  }

  .tt-body { padding: .85rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
  .tt-main-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .7rem;
    min-width: 0;
  }
  .tt-main-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .32rem;
  }
  .tt-label { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.3; }
  .tt-label .category {
    display: inline-block; font-size: .75rem; font-weight: 600;
    color: var(--heading-strong); margin-right: .4rem;
  }
  .tt-detail-row {
    display: flex; align-items: center; gap: .42rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted);
  }
  .tt-chip {
    display: inline-flex; align-items: center; gap: .2rem; padding: .15rem .5rem;
    background: var(--cream); border: 1px solid var(--border); border-radius: 99px;
    font-size: .75rem;
  }
  .tt-notes { font-size: .78rem; color: var(--muted); font-style: italic; margin-top: .15rem; }
  .tt-prize { font-size: .78rem; font-weight: 700; color: var(--ok); white-space: nowrap; }
  .tt-prize-chip {
    border-color: color-mix(in srgb, var(--ok) 35%, var(--border));
    color: var(--ok);
    font-weight: 700;
    background: color-mix(in srgb, var(--surface) 88%, #e8f7ee);
  }
  .tt-course-thumb {
    margin-left: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    background: var(--surface);
    overflow: hidden;
    width: auto;
    height: 58px;
    aspect-ratio: var(--course-thumb-ar, 16 / 10);
    max-width: 180px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .tt-course-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(2%);
    background: color-mix(in srgb, var(--surface) 80%, #e9edf7);
  }
  .tt-course-thumb:hover {
    border-color: var(--navy-mid);
  }
  .course-overlay[hidden] {
    display: none !important;
  }
  .course-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem;
    background: rgba(5, 8, 18, .72);
    backdrop-filter: blur(1.5px);
  }
  .course-overlay-panel {
    width: 75vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #0a1224;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
  }
  .course-overlay-frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .course-overlay-img-link {
    display: block;
    width: 100%;
    line-height: 0;
  }
  .course-overlay-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(90vh - 44px);
    object-fit: contain;
    cursor: pointer;
  }
  .course-overlay-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .48rem;
    flex-wrap: wrap;
    padding: .62rem .9rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 82%, #000);
    background: color-mix(in srgb, var(--surface) 92%, #0a1224);
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
  }
  .course-overlay-footer a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: .12rem;
    word-break: break-all;
  }
  .course-overlay-close {
    margin-left: auto;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
    color: var(--text);
    font-size: .74rem;
    font-weight: 700;
    padding: .22rem .62rem;
    cursor: pointer;
  }
  .course-overlay-close:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  body.course-overlay-open {
    overflow: hidden;
  }
  .tt-live-modal[hidden] {
    display: none !important;
  }
  .tt-live-modal {
    position: fixed;
    inset: 0;
    z-index: 230;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    background: rgba(5, 8, 18, .58);
    backdrop-filter: blur(1px);
  }
  .tt-live-modal-backdrop {
    position: absolute;
    inset: 0;
  }
  .tt-live-modal-panel {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(90vh, 920px);
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
    border-radius: .8rem;
    box-shadow: 0 16px 42px rgba(0,0,0,.26);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .tt-live-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
    padding: .85rem 1rem .68rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, var(--cream));
  }
  .tt-live-modal-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.2;
  }
  .tt-live-modal-subtitle {
    margin-top: .2rem;
    font-size: .76rem;
    color: var(--muted);
  }
  .tt-live-modal-close {
    border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    padding: .2rem .6rem;
    cursor: pointer;
  }
  .tt-live-modal-close:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .tt-live-modal-head-left {
    flex: 1;
    min-width: 0;
  }
  .tt-live-modal-head-right {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
  }
  .tt-live-modal-body {
    padding: .82rem 1rem .95rem;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-height: 170px;
    overflow-y: auto;
  }
  .tt-live-modal-note {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
  }
  .tt-live-modal-note.err {
    color: #b91c1c;
  }
  .tt-live-table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: auto;
    max-height: min(62vh, 660px);
  }
  .tt-live-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .79rem;
  }
  .tt-live-table th,
  .tt-live-table td {
    padding: .42rem .5rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
  }
  .tt-live-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    background: color-mix(in srgb, var(--surface) 94%, var(--cream));
  }
  .tt-live-table tr:last-child td {
    border-bottom: none;
  }
  .tt-live-col-num {
    width: 3.6rem;
    min-width: 3.6rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .tt-live-col-look {
    width: 2.6rem;
    min-width: 2.6rem;
    text-align: center !important;
  }
  .tt-live-horse-look {
    display: inline-flex;
    width: 1.55rem;
    height: 1.55rem;
    align-items: center;
    justify-content: center;
  }
  .tt-live-horse-look svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .tt-live-col-comb {
    width: 4.2rem;
    min-width: 4.2rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .tt-live-col-rider {
    white-space: nowrap;
  }
  .tt-live-col-rank {
    width: 3.8rem;
    min-width: 3.8rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 700;
  }
  .tt-live-col-result {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .tt-live-modal-foot {
    padding: .58rem 1rem .75rem;
    border-top: 1px solid var(--border);
    font-size: .74rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
  }
  .tt-live-modal-foot a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: .1rem;
    word-break: break-all;
  }
  body.tt-live-modal-open {
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .course-overlay {
      padding: 0;
      align-items: stretch;
    }
    .course-overlay-panel {
      width: 100vw;
      max-height: 100vh;
      border-radius: 0;
    }
    .course-overlay-img {
      max-height: calc(100vh - 44px);
    }
    .tt-live-modal {
      padding: 0;
      align-items: stretch;
    }
    .tt-live-modal-panel {
      width: 100vw;
      max-height: 100vh;
      border-radius: 0;
      border-left: 0;
      border-right: 0;
    }
  }
  .tt-empty-filter {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    font-size: .8rem;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
  }

  /* ── Competitions table ─────────────────────────────────────────────────── */
  .comp-name { font-weight: 600; }
  .comp-ref { font-size: .75rem; color: var(--muted); font-family: var(--font-mono); }
  .prize-cell { color: var(--ok); font-weight: 600; }

  /* ── Section header ─────────────────────────────────────────────────────── */
  .section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 2rem 0 1rem;
  }
  .section-header h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
  .section-header h2.section-title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
  }
  .section-header h2 .section-title-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: var(--icon-filter-strong);
    opacity: .95;
  }
  .section-header .count { font-size: .82rem; color: var(--muted); }
  .section-header-right {
    display: inline-flex; align-items: center; gap: .6rem;
  }

  /* ── Horses/Riders section ──────────────────────────────────────────────── */
  .live-data-card {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
  }
  .live-data-note {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .hr-segmented {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--cream);
    padding: .2rem;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hr-segmented::-webkit-scrollbar { display: none; }
  .hr-segment-btn {
    border: 0;
    border-radius: 999px;
    padding: .36rem .78rem;
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .hr-segment-btn:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 75%, var(--cream));
  }
  .hr-segment-btn.active {
    background: var(--navy-mid);
    color: #fff;
  }
  .hr-panel { display: none; }
  .hr-panel.active { display: block; }
  .hr-table-wrap {
    margin-top: .55rem;
    max-height: min(62vh, 760px);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    scrollbar-gutter: stable;
  }
  .hr-table-wrap .live-data-mini-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--surface) 93%, var(--cream));
  }
  .hr-engagement-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .1rem;
  }
  .hr-kpi {
    display: inline-flex;
    align-items: center;
    gap: .26rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .56rem;
    white-space: nowrap;
  }
  .hr-kpi strong {
    color: var(--text);
    font-weight: 800;
  }
  .hr-controls {
    position: sticky;
    top: 104px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 96%, var(--cream));
    padding: .4rem .45rem;
  }
  .hr-search {
    flex: 1 1 220px;
    min-width: 180px;
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: .5rem;
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
    color: var(--text);
    font-size: .78rem;
    padding: .4rem .58rem;
  }
  .hr-select {
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: .5rem;
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
    color: var(--text);
    font-size: .76rem;
    padding: .36rem .5rem;
    max-width: 180px;
  }
  .hr-check {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    font-size: .74rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  .hr-clear-btn {
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    padding: .22rem .55rem;
    cursor: pointer;
  }
  .hr-clear-btn:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .hr-column-picker {
    position: relative;
  }
  .hr-column-picker > summary {
    list-style: none;
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    padding: .22rem .62rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  .hr-column-picker > summary::-webkit-details-marker { display: none; }
  .hr-column-picker > summary:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .hr-column-picker[open] > summary {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
    background: color-mix(in srgb, var(--surface) 82%, var(--navy-mid));
  }
  .hr-column-menu {
    position: absolute;
    top: calc(100% + .34rem);
    right: 0;
    min-width: 190px;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 97%, var(--cream));
    box-shadow: var(--shadow);
    padding: .46rem .52rem;
    display: grid;
    gap: .34rem;
    z-index: 40;
  }
  .hr-column-option {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    font-size: .74rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  .hr-column-option input {
    margin: 0;
  }
  .hr-column-option input:disabled + span {
    opacity: .55;
  }
  .hr-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .74rem;
    color: var(--muted);
  }
  .hr-result-count {
    color: var(--text);
    font-weight: 700;
  }
  .live-data-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
    margin-top: .1rem;
  }
  .live-data-metric {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 88%, var(--cream));
    padding: .5rem .62rem;
  }
  .live-data-metric .k {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .live-data-metric .v {
    margin-top: .14rem;
    font-size: .96rem;
    font-weight: 800;
    color: var(--text);
  }
  .live-data-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .79rem;
  }
  .live-data-mini-table th,
  .live-data-mini-table td {
    padding: .38rem .46rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
  }
  .live-data-mini-table th {
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }
  .hr-col-look {
    width: 2.55rem;
    min-width: 2.55rem;
    text-align: center !important;
  }
  .hr-horse-look {
    display: inline-flex;
    width: 1.72rem;
    height: 1.72rem;
    align-items: center;
    justify-content: center;
  }
  .hr-horse-look svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .hr-sort-th {
    cursor: pointer;
    user-select: none;
  }
  .hr-sort-th::after {
    content: "↕";
    margin-left: .28rem;
    font-size: .64rem;
    opacity: .35;
  }
  .hr-sort-th[data-hr-sort-dir="asc"]::after {
    content: "↑";
    opacity: .9;
    color: var(--heading-strong);
  }
  .hr-sort-th[data-hr-sort-dir="desc"]::after {
    content: "↓";
    opacity: .9;
    color: var(--heading-strong);
  }
  .live-data-mini-table tr:last-child td {
    border-bottom: none;
  }
  .hr-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
  }
  .hr-pill {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    padding: .16rem .45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
    font-size: .72rem;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
  }
  button.hr-pill {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
  }
  .hr-link-pill:hover,
  .hr-link-pill:focus-visible {
    border-color: color-mix(in srgb, var(--navy-mid) 58%, var(--border));
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 84%, var(--navy-mid));
    outline: none;
  }
  @media (prefers-color-scheme: dark) {
    .hr-link-pill:hover,
    .hr-link-pill:focus-visible {
      border-color: color-mix(in srgb, #93c5fd 38%, var(--border));
      background: color-mix(in srgb, var(--surface) 70%, #1e3a8a);
      color: #f8fbff;
    }
  }
  .hr-unpaired-pill {
    border-color: color-mix(in srgb, #f59e0b 44%, var(--border));
    color: #b45309;
    background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  }
  .hr-click-row {
    cursor: default;
  }
  .hr-row-hidden {
    display: none;
  }
  .hr-entity-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 700;
  }
  .hr-entity-link:hover,
  .hr-entity-link:focus-visible {
    color: var(--heading-strong);
  }
  .tt-live-profile-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    font-weight: 700;
    cursor: pointer;
  }
  .tt-live-profile-link:hover,
  .tt-live-profile-link:focus-visible {
    color: var(--heading-strong);
  }
  .hr-col-hidden {
    display: none !important;
  }
  .hr-drawer[hidden] {
    display: none !important;
  }
  .hr-drawer {
    position: fixed;
    inset: 0;
    z-index: 205;
    display: grid;
    grid-template-columns: 1fr;
    pointer-events: none;
  }
  .hr-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, .52);
    backdrop-filter: blur(1px);
    pointer-events: auto;
  }
  .hr-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100vw);
    height: 100vh;
    background: color-mix(in srgb, var(--surface) 96%, #101a33);
    border-left: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    box-shadow: -12px 0 30px rgba(0,0,0,.28);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }
  .hr-drawer-head {
    padding: .9rem 1rem .72rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
  }
  .hr-drawer-title {
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.22;
  }
  .hr-drawer-subtitle {
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--muted);
  }
  .hr-drawer-close {
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 90%, var(--cream));
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    padding: .22rem .6rem;
    cursor: pointer;
  }
  .hr-drawer-close:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .hr-drawer-body {
    padding: .82rem 1rem 1.1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .9rem;
  }
  .hr-drawer-meta {
    display: grid;
    gap: .46rem;
  }
  .hr-drawer-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
  }
  .hr-drawer-meta-row .k {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .64rem;
    font-weight: 700;
  }
  .hr-drawer-meta-row .v {
    color: var(--text);
    font-weight: 700;
    text-align: right;
  }
  .hr-drawer-section-label {
    font-size: .66rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: .4rem;
  }
  .hr-drawer-related {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
  }
  .hr-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin-top: .2rem;
  }
  .hr-action-btn {
    border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
    color: var(--text);
    font-size: .73rem;
    font-weight: 700;
    padding: .3rem .7rem;
    cursor: pointer;
  }
  .hr-action-btn:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .hr-action-status {
    font-size: .75rem;
    color: var(--muted);
  }
  body.hr-drawer-open {
    overflow: hidden;
  }
  @media (max-width: 760px) {
    .show-stats-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .5rem;
      margin: .85rem 0 1.1rem;
    }
    .tt-course-thumb { height: 52px; max-width: 150px; }
    .hr-controls { top: 94px; }
    .hr-select { max-width: 140px; }
  }
  .tt-filter-row {
    margin: -.2rem 0 .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    padding: .38rem .5rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface) 92%, var(--cream));
  }
  .tt-filter-group {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    min-height: 2rem;
  }
  .tt-filter-label {
    font-size: .66rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-right: .18rem;
  }
  .tt-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 99px;
    background: color-mix(in srgb, var(--cream) 88%, var(--surface));
    color: color-mix(in srgb, var(--text) 78%, #fff);
    font-size: .7rem;
    font-weight: 700;
    padding: .23rem .56rem;
    cursor: pointer;
    line-height: 1;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  }
  .tt-filter-tag:hover {
    border-color: color-mix(in srgb, var(--navy-mid) 45%, var(--border));
    color: var(--text);
  }
  .tt-filter-tag.active {
    border-color: color-mix(in srgb, var(--navy-mid) 70%, var(--border));
    background: color-mix(in srgb, var(--navy-mid) 58%, var(--surface));
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy-mid) 55%, #000);
  }
  .tt-filter-tag.live-now {
    border-color: color-mix(in srgb, #ef4444 45%, var(--border));
  }
  .tt-filter-tag.live-now::before {
    content: "";
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 1px color-mix(in srgb, #ef4444 65%, #000);
    flex: 0 0 auto;
  }
  .tt-filter-tag.active.live-now {
    border-color: color-mix(in srgb, #ef4444 50%, var(--navy-mid));
  }
  .tt-filter-tag.active.live-now::before {
    background: #fca5a5;
    box-shadow: none;
  }
  .tt-filter-tag.now-active {
    border-color: color-mix(in srgb, #22c55e 45%, var(--border));
  }
  .tt-filter-tag.now-active::before {
    content: "";
    width: .38rem;
    height: .38rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 1px color-mix(in srgb, #22c55e 65%, #000);
    flex: 0 0 auto;
  }
  .tt-filter-tag.active.now-active {
    border-color: color-mix(in srgb, #22c55e 50%, var(--navy-mid));
  }
  .tt-filter-tag.active.now-active::before {
    background: #86efac;
    box-shadow: none;
  }
  .tt-filter-reset {
    border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
    border-radius: 99px;
    background: color-mix(in srgb, var(--surface) 88%, var(--cream));
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    padding: .23rem .56rem;
    cursor: pointer;
  }
  .tt-filter-reset:hover {
    border-color: var(--navy-mid);
    color: var(--heading-strong);
  }
  .venue-time-clock {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .5rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--cream);
    font-size: .72rem;
    color: var(--muted);
    white-space: nowrap;
  }
  .venue-time-clock[hidden] {
    display: none !important;
  }
  .venue-time-label {
    color: var(--muted);
  }
  .venue-time-value {
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .weather-unit-toggle {
    display: inline-flex; border: 1px solid var(--border); border-radius: 99px;
    overflow: hidden; background: var(--cream);
  }
  .weather-unit-btn {
    border: none; background: transparent; color: var(--muted);
    font-size: .72rem; font-weight: 700; padding: .2rem .5rem; cursor: pointer;
  }
  .weather-unit-btn.active {
    background: var(--navy-mid); color: #fff;
  }

  /* ── Sticky jump nav ────────────────────────────────────────────────────── */
  .jump-nav {
    padding: .5rem 0; margin-bottom: 1.5rem;
  }
  .jump-nav .container {
    display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none;
  }
  .jump-nav .container::-webkit-scrollbar { display: none; }
  .jump-btn {
    padding: .3rem .75rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
    white-space: nowrap; background: var(--cream); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; transition: all .15s;
  }
  .jump-btn:hover { background: var(--navy-mid); color: #fff; border-color: var(--navy-mid); }
  .jump-btn.active { background: var(--navy-mid); color: #fff; border-color: var(--navy-mid); }

  /* ── Notify section ─────────────────────────────────────────────────────── */
  .notify-section { margin-top: 2.5rem; }
  .notify-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .notify-content {
    width: min(620px, 100%);
    margin: 0 auto;
    text-align: center;
  }
  .notify-desc { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
  .notify-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .notify-form input[type="email"] {
    flex: 1 1 280px;
    max-width: 360px;
    min-width: 220px;
    padding: .48rem .85rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: .875rem; background: var(--cream); color: var(--text);
    outline: none;
  }
  .notify-form input[type="email"]:focus { border-color: var(--navy-light); }
  .notify-feedback { font-size: .82rem; margin-top: .65rem; text-align: center; }
  .notify-feedback.ok { color: var(--ok); }
  .notify-feedback.err { color: var(--error); }

  @media (prefers-color-scheme: dark) {
    .tt-time-col { background: var(--navy); }
    .tt-time { color: var(--gold-light); }
    .tt-label .category { color: var(--muted); }
    .tt-chip { background: var(--navy); }
    .jump-btn { background: var(--navy); color: var(--muted); }
  }

  @media (max-width: 640px) {
    .day-picker-shell {
      grid-template-columns: 1.85rem minmax(0, 1fr) 1.85rem;
      gap: .3rem;
    }
    .day-picker-sticky {
      top: 100px;
      padding: 0;
    }
    .day-tab {
      flex-basis: 150px;
      min-width: 150px;
      padding: .55rem .65rem;
    }
    .tt-card { flex-direction: column; }
    .tt-time-col {
      flex-direction: row; gap: .5rem; border-right: none;
      border-bottom: 1px solid var(--border); justify-content: flex-start;
      padding: .6rem .85rem; min-width: unset;
    }
    .tt-main-row { gap: .55rem; }
    .tt-time-weather { margin-top: 0; }
  }

  /* ── Photographer cards ────────────────────────────────────────────────── */
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .85rem;
  }
  .photo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    text-decoration: none;
    color: inherit;
  }
  .photo-card:hover {
    border-color: var(--navy-light);
    box-shadow: 0 2px 8px rgba(10,20,48,.1);
  }
  .photo-card-avatar {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--navy-mid);
    display: flex; align-items: center; justify-content: center;
  }
  .photo-avatar-img { width: 100%; height: 100%; object-fit: cover; }
  .photo-avatar-initials { color: #fff; font-weight: 800; font-size: 1.1rem; }
  .photo-card-body { flex: 1; min-width: 0; }
  .photo-card-name {
    font-weight: 700; font-size: .97rem;
    display: flex; align-items: center; gap: .3rem;
    margin-bottom: .2rem;
  }
  .photo-card-sub {
    font-size: .78rem; color: var(--muted);
    margin-bottom: .2rem;
  }
  .photo-available-label {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .75rem; font-weight: 700; color: #166534;
    background: #dcfce7; padding: .12rem .55rem;
    border-radius: 99px; margin-bottom: .3rem;
    width: fit-content;
  }
  .photo-avail-dates {
    display: inline; font-size: .75rem; font-weight: 500;
    color: #166534; opacity: .85;
  }
  .photo-verified-badge {
    display: inline-flex; align-items: center;
    flex-shrink: 0;
  }
  .photo-verified-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(37%) sepia(86%) saturate(2373%) hue-rotate(210deg) brightness(96%) contrast(98%);
  }
  .photo-card-services {
    display: flex; flex-wrap: wrap; gap: .3rem;
    margin-bottom: .4rem;
  }
  .photo-service-chip {
    background: color-mix(in srgb, var(--navy) 8%, var(--surface));
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .73rem; font-weight: 600;
    padding: .15rem .55rem;
    color: var(--text-strong);
  }
  .photo-card-scope {
    display: flex; flex-wrap: wrap; gap: .3rem;
    margin-bottom: .3rem;
  }
  .photo-scope-tag {
    background: color-mix(in srgb, var(--gold-light) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--gold-light) 30%, transparent);
    border-radius: 99px;
    font-size: .73rem; font-weight: 600;
    padding: .15rem .55rem;
    color: color-mix(in srgb, var(--gold-light) 60%, #6b4f00);
  }
  .photo-card-note {
    font-size: .8rem; color: var(--muted); line-height: 1.5;
    margin-top: .25rem;
  }
  .photo-card-actions {
    display: flex; flex-direction: column; gap: .4rem;
    align-items: flex-end; flex-shrink: 0;
  }
  .photo-card-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .38rem .85rem;
    border-radius: 99px;
    font-size: .8rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: background .13s, border-color .13s, color .13s;
  }
  .photo-card-btn-secondary {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
  }
  .photo-card-btn-secondary:hover {
    border-color: var(--navy-light);
    background: color-mix(in srgb, var(--navy) 5%, var(--surface));
    color: var(--text-strong);
    text-decoration: none;
  }
  .photo-card-btn-primary {
    background: var(--navy);
    color: #fff;
  }
  .photo-card-btn-primary:hover {
    background: var(--navy-mid);
  }

  /* ── Photographer modals ───────────────────────────────────────────────── */
  .ph-modal {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: flex-end; justify-content: center;
  }
  .ph-modal[hidden] { display: none; }
  .ph-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(3px);
  }
  .ph-modal-panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%; max-width: 640px;
    max-height: 92vh;
    display: flex; flex-direction: column;
    box-shadow: 0 -4px 32px rgba(0,0,0,.18);
    z-index: 1;
  }
  .ph-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.2rem 1.2rem .85rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .ph-modal-title { font-size: 1.1rem; font-weight: 800; color: var(--text-strong); }
  .ph-modal-subtitle { font-size: .84rem; color: var(--muted); margin-top: .2rem; }
  .ph-modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: .2rem; line-height: 1;
    border-radius: 6px;
  }
  .ph-modal-close:hover { color: var(--text); background: color-mix(in srgb, var(--navy) 5%, var(--surface)); }
  .ph-modal-body {
    padding: 1.1rem 1.2rem;
    overflow-y: auto;
    flex: 1;
    display: flex; flex-direction: column; gap: 1.1rem;
  }
  .ph-modal-foot {
    padding: .85rem 1.2rem;
    border-top: 1px solid var(--border);
    display: flex; gap: .5rem; justify-content: flex-end;
    flex-shrink: 0;
  }
  .ph-modal-step { display: flex; flex-direction: column; gap: .65rem; }
  .ph-step-label { font-weight: 700; font-size: .9rem; color: var(--text-strong); }
  .ph-scope-options { display: flex; flex-direction: column; gap: .5rem; }
  .ph-scope-opt { display: flex; gap: .7rem; cursor: pointer; }
  .ph-scope-opt input[type=radio] { flex-shrink: 0; margin-top: .15rem; accent-color: var(--navy); }
  .ph-scope-box strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text-soft); }
  .ph-scope-box span { font-size: .8rem; color: var(--muted); }
  .ph-picker { margin-top: .2rem; }
  .ph-picker-label { font-size: .82rem; font-weight: 600; color: var(--label); margin-bottom: .4rem; }
  .ph-chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
  .ph-chip-label { cursor: pointer; }
  .ph-chip-label input { position: absolute; opacity: 0; width: 0; height: 0; }
  .ph-chip {
    display: inline-flex; align-items: center;
    padding: .32rem .75rem;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: .82rem; font-weight: 600;
    color: var(--text);
    transition: background .12s, border-color .12s, color .12s;
    cursor: pointer;
  }
  .ph-chip-label input:checked + .ph-chip {
    background: var(--navy); border-color: var(--navy); color: #fff;
  }
  .ph-entry-list { display: flex; flex-direction: column; gap: .6rem; max-height: 280px; overflow-y: auto; }
  .ph-entry-day-group { display: flex; flex-direction: column; gap: .25rem; }
  .ph-entry-day-label { font-size: .8rem; font-weight: 700; color: var(--label); text-transform: uppercase; letter-spacing: .04em; padding: .2rem 0; }
  .ph-entry-row { display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .3rem .4rem; border-radius: 8px; }
  .ph-entry-row:hover { background: color-mix(in srgb, var(--navy) 5%, var(--surface)); }
  .ph-entry-row input { accent-color: var(--navy); flex-shrink: 0; }
  .ph-entry-row-text { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; font-size: .85rem; }
  .ph-entry-time { color: var(--muted); font-size: .78rem; min-width: 38px; flex-shrink: 0; }
  .ph-entry-name { flex: 1; font-weight: 600; }
  .ph-entry-arena { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
  .ph-textarea {
    width: 100%; border: 1.5px solid var(--border);
    border-radius: 10px; padding: .65rem .75rem;
    font: inherit; font-size: .9rem;
    resize: vertical; min-height: 80px;
    background: var(--surface); color: var(--text);
  }
  .ph-textarea:focus { outline: none; border-color: var(--navy-light); }
  .ph-char-count { font-size: .75rem; color: var(--muted); text-align: right; margin-top: .2rem; }
  .ph-status {
    padding: .65rem .8rem; border-radius: 10px;
    font-size: .85rem; font-weight: 600;
  }
  .ph-status.ok { background: #dcfce7; color: #166534; }
  .ph-status.error { background: #fee2e2; color: #991b1b; }
  .ph-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .55rem 1.1rem; border-radius: 10px;
    font: inherit; font-size: .88rem; font-weight: 700;
    cursor: pointer; border: 1.5px solid transparent;
    transition: background .13s, border-color .13s, color .13s;
  }
  .ph-btn:disabled { opacity: .45; cursor: not-allowed; }
  .ph-btn-primary { background: var(--navy); color: #fff; }
  .ph-btn-primary:hover:not(:disabled) { background: var(--navy-mid); }
  .ph-btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
  .ph-btn-secondary:hover:not(:disabled) { border-color: var(--navy-light); }
  .ph-btn-ghost { background: none; color: #dc2626; border-color: transparent; }
  .ph-btn-ghost:hover:not(:disabled) { background: #fee2e2; }

  /* Hire modal specific */
  .hire-horse-block { border: 1px solid var(--border); border-radius: 10px; padding: .8rem .9rem; }
  .hire-horse-name {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    font-size: .95rem;
    margin-bottom: .5rem;
  }
  .hire-horse-name-primary {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    font-weight: 700;
  }
  /* Competition entry rows inside horse cards */
  .hire-entry-row {
    padding: .5rem .65rem;
    border-bottom: 1px solid var(--border);
  }
  .hire-entry-row:last-child { border-bottom: none; }
  .hire-entry-meta {
    display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
    font-size: .83rem; margin-bottom: .35rem;
  }
  .hire-entry-label { flex: 1; font-weight: 600; color: var(--text-strong); }
  .hire-entry-time { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
  /* Service toggle buttons with optional prices */
  .hire-svc-row { display: flex; flex-wrap: wrap; gap: .3rem; }
  .hire-svc-btn {
    display: inline-flex; align-items: center; gap: .28rem;
    border: 1.5px solid var(--border); border-radius: 999px;
    padding: .32rem .72rem;
    background: var(--surface); color: var(--text);
    font: inherit; font-size: .83rem; font-weight: 600;
    cursor: pointer; transition: border-color .12s, background .12s, color .12s;
    white-space: nowrap; touch-action: manipulation;
  }
  .hire-svc-btn:hover {
    border-color: var(--navy-light);
    background: color-mix(in srgb, var(--navy) 5%, var(--surface));
  }
  .hire-svc-btn.active {
    border-color: var(--navy);
    background: color-mix(in srgb, var(--navy) 11%, var(--surface));
    color: var(--navy);
  }
  .hire-svc-price { color: var(--gold); font-size: .82em; font-weight: 700; }
  .hire-svc-btn.active .hire-svc-price { color: var(--navy-light); }
  /* Event add-ons block */
  .hire-addons-section {
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: .6rem .8rem; margin-bottom: .55rem;
  }
  .hire-addons-label {
    font-size: .72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted); margin-bottom: .4rem;
  }
  .hire-addons-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
  .hire-horse-search {
    width: 100%; padding: .55rem .75rem;
    border: 1.5px solid var(--border); border-radius: 10px;
    font: inherit; font-size: .9rem;
    background: var(--surface); color: var(--text);
    margin-bottom: .7rem;
  }
  .hire-horse-search:focus { outline: none; border-color: var(--navy-light); }
  .hire-horse-list { display: flex; flex-direction: column; gap: .5rem; max-height: 360px; overflow-y: auto; }
  .hire-horse-option { cursor: pointer; }
  .hire-horse-option input { display: none; }
  .hire-horse-option-label {
    display: flex; align-items: stretch; gap: 0;
    padding: 0; border-radius: 10px;
    border: 1.5px solid var(--border);
    font-size: .88rem;
    transition: border-color .12s, background .12s;
    overflow: hidden;
  }
  .hire-horse-option-icon {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 4rem;
    background: color-mix(in srgb, var(--cream) 50%, var(--surface));
  }
  .hire-horse-option-icon svg { width: 3rem; height: 3rem; }
  .hire-horse-option-content {
    display: flex; flex-direction: column; gap: .18rem;
    flex: 1; min-width: 0; padding: .55rem .7rem;
  }
  .hire-horse-title-line {
    display: flex;
    align-items: baseline;
    gap: .45rem;
  }
  .hire-horse-name-main { font-weight: 700; }
  .hire-horse-option input:checked + .hire-horse-option-label {
    border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface));
  }
  .hire-horse-option input:checked + .hire-horse-option-label .hire-horse-option-icon {
    background: color-mix(in srgb, var(--navy) 15%, var(--surface));
  }
  .hire-horse-comb { font-size: .78rem; color: var(--muted); margin-left: auto; }
  .hire-horse-secondary {
    color: var(--muted); font-size: .77rem;
    font-weight: 500;
    line-height: 1.25;
  }
  .hire-horse-secondary .hr-horse-look {
    width: 1.02rem;
    height: 1.02rem;
    flex-shrink: 0;
  }
  .hire-step-label { font-weight: 700; font-size: .9rem; color: var(--text-strong); margin-bottom: .55rem; }
  .hire-manual-input {
    width: 100%; padding: .55rem .75rem;
    border: 1.5px solid var(--border); border-radius: 10px;
    font: inherit; font-size: .9rem;
    background: var(--surface); color: var(--text);
    margin-bottom: .4rem;
  }
  .hire-manual-input:focus { outline: none; border-color: var(--navy-light); }
  .hire-add-horse-btn {
    background: none; border: 1.5px dashed var(--border); border-radius: 10px;
    width: 100%; padding: .5rem; font: inherit; font-size: .85rem;
    color: var(--muted); cursor: pointer; margin-top: .3rem;
  }
  .hire-add-horse-btn:hover { border-color: var(--navy-light); color: var(--heading-accent); }

  /* Picker view */
  .hire-picker-header { display: flex; align-items: center; gap: .7rem; margin-bottom: .65rem; }
  .hire-picker-back {
    display: flex; align-items: center; gap: .25rem;
    background: none; border: none; cursor: pointer;
    color: var(--navy); font: inherit; font-size: .85rem; font-weight: 600;
    padding: .2rem 0; flex-shrink: 0;
  }
  .hire-picker-back:hover { color: var(--navy-light); }
  .hire-picker-title { font-weight: 700; font-size: .9rem; color: var(--text-strong); }
  /* Picker horse button — reuses .hire-horse-option-label appearance */
  .hire-horse-picker-btn {
    display: block; cursor: pointer; background: none; border: none;
    width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; border-radius: 10px;
  }
  .hire-horse-picker-btn .hire-horse-option-label { width: 100%; }
  .hire-horse-picker-btn:disabled { opacity: .55; cursor: not-allowed; }
  .hire-horse-picker-btn:not(:disabled):hover .hire-horse-option-label {
    border-color: var(--navy); background: color-mix(in srgb, var(--navy) 4%, var(--surface));
  }
  .hire-horse-picker-btn:not(:disabled):hover .hire-horse-option-icon {
    background: color-mix(in srgb, var(--navy) 12%, var(--surface));
  }
  .hire-horse-picker-btn.hire-picker-selected .hire-horse-option-label {
    border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface));
  }
  .hire-horse-picker-btn.hire-picker-selected .hire-horse-option-icon {
    background: color-mix(in srgb, var(--navy) 15%, var(--surface));
  }
  /* Entry (start) picker buttons */
  .hire-entry-picker-btn {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    width: 100%; padding: .6rem .75rem; background: none;
    border: 1.5px solid var(--border); border-radius: 10px;
    font: inherit; font-size: .88rem; color: inherit; text-align: left; cursor: pointer;
    transition: border-color .12s, background .12s;
  }
  .hire-entry-picker-btn:not(:disabled):hover { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 4%, var(--surface)); }
  .hire-entry-picker-btn:disabled { opacity: .5; cursor: not-allowed; }
  .hire-entry-picker-btn.hire-picker-selected { border-color: var(--navy); background: color-mix(in srgb, var(--navy) 6%, var(--surface)); }
  .hire-entry-picker-label { font-weight: 600; flex: 1; }
  /* Inline remove for starts */
  .hire-start-remove {
    background: none; border: none; padding: 0 0 0 .4rem; margin-left: auto;
    font-size: .85rem; color: var(--muted); cursor: pointer; line-height: 1; flex-shrink: 0;
  }
  .hire-start-remove:hover { color: #dc2626; }
  /* Service chips on entry rows */
  .hire-svc-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem .65rem .2rem; }
  .hire-svc-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    border: 1.5px solid var(--navy); border-radius: 999px;
    padding: .28rem .55rem .28rem .7rem;
    background: color-mix(in srgb, var(--navy) 10%, var(--surface));
    color: var(--navy); font-size: .83rem; font-weight: 600;
  }
  .hire-svc-chip .hire-svc-price { color: var(--navy-light); }
  .hire-svc-chip-remove {
    background: none; border: none; padding: 0;
    font-size: .78rem; color: var(--navy-light); cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center;
  }
  .hire-svc-chip-remove:hover { color: #dc2626; }
  /* Service picker checkmark */
  .hire-svc-picker-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: .72rem; flex-shrink: 0;
  }
  .hire-entry-picker-btn.hire-picker-selected .hire-svc-price { color: var(--navy-light); }
  .hire-entry-picker-meta {
    font-size: .74rem; color: var(--muted); font-weight: 400;
    display: flex; align-items: center; gap: .3rem; margin-top: .1rem;
  }
  .hire-entry-cat-badge {
    background: color-mix(in srgb, var(--navy) 9%, var(--surface));
    color: var(--navy); border-radius: 4px; padding: .05rem .3rem;
    font-size: .72rem; font-weight: 700;
  }
  /* Addon chip remove */
  .hire-addon-chip-remove {
    background: none; border: none; padding: 0;
    font-size: .78rem; color: var(--navy-light); cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center; margin-left: .2rem;
  }
  .hire-addon-chip-remove:hover { color: #dc2626; }
  /* Selected horse cards */
  .hire-horse-card {
    border: 1.5px solid var(--border); border-radius: 10px;
    overflow: hidden; margin-bottom: .55rem;
  }
  .hire-horse-card-header {
    display: flex; align-items: stretch;
    background: color-mix(in srgb, var(--cream) 40%, var(--surface));
    border-bottom: 1px solid var(--border);
  }
  .hire-horse-card-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: .15rem;
    padding: .55rem .65rem;
  }
  .hire-horse-card-name { font-weight: 700; font-size: .9rem; }
  .hire-horse-remove {
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: .95rem;
    padding: .5rem .75rem; flex-shrink: 0;
    align-self: center; line-height: 1;
  }
  .hire-horse-remove:hover { color: var(--text); }
  .hire-horse-entries { padding: .1rem .65rem .2rem; }
  .hire-no-entries { font-size: .82rem; color: var(--muted); margin: .4rem .65rem .6rem; padding: 0; }

  @media (min-width: 600px) {
    .ph-modal { align-items: center; }
    .ph-modal-panel { border-radius: var(--radius-lg); max-height: 86vh; }
  }
  @media (max-width: 500px) {
    .photo-grid { grid-template-columns: 1fr; }
    .photo-card-actions { flex-direction: row; flex-shrink: 0; }
    .hire-svc-row { gap: .25rem; }
  }
