

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 2px; }
.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; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.large { width: 42px; height: 42px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-lockup > span:last-child { display: grid; line-height: 1.15; }
.brand-lockup strong { font-size: 14px; }
.brand-lockup small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; background: var(--accent); color: white; font-weight: 850; letter-spacing: -.03em; }
.brand-mark.compact { width: 34px; height: 30px; font-size: 12px; }
.brand-lockup.large { justify-content: center; }
.brand-lockup.large .brand-mark { width: 48px; height: 48px; font-size: 16px; }
.brand-lockup.large strong { font-size: 17px; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #fff 0, #edf3f4 45%, var(--bg) 100%); }
.login-card { width: min(430px, 100%); padding: 40px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.kicker, .eyebrow { margin: 0 0 6px; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.login-card .kicker { margin-top: 28px; }
.login-card h1 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.login-copy { margin: 14px 0 24px; color: var(--muted); }
.primary-button { min-height: 42px; padding: 10px 17px; border: 1px solid #111820; border-radius: 5px; background: #111820; color: white; font-weight: 750; }
.primary-button:hover { background: #27323c; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 7px; background: var(--surface-subtle); }
.auth-mode-button { min-height: 36px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-weight: 700; }
.auth-mode-button.active { border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: 0 2px 7px rgba(20,31,42,.07); }
.email-auth-form { display: grid; gap: 14px; text-align: left; }
.email-auth-form label { display: grid; gap: 6px; color: #344251; font-size: 12px; font-weight: 700; }
.email-auth-form input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.email-auth-form input:focus { border-color: var(--accent); }
.email-auth-form .primary-button { width: 100%; margin-top: 2px; }
.auth-mode-help { min-height: 32px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-button svg { width: 20px; height: 20px; padding: 2px; border-radius: 2px; background: white; }
.legal-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; }
.inline-error { margin-top: 14px; padding: 10px; border-radius: 5px; color: var(--danger); background: var(--danger-soft); }

.app-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line-strong); backdrop-filter: blur(12px); }
.topbar { min-height: 57px; display: flex; align-items: center; gap: 26px; padding: 7px 14px; border-bottom: 1px solid var(--line); }
.header-stats { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.header-stats > div { display: grid; }
.header-stats span, .result-toolbar span, .selection-bar span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.header-stats strong { font-size: 11px; }
.date-actions { display: flex; align-items: center; gap: 6px; }
.quiet-button, .date-field input { min-height: 33px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); padding: 6px 10px; font-size: 12px; }
.quiet-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.date-field input { width: 133px; }
.user-menu { position: relative; }
.user-button { min-height: 36px; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 3px; }
.user-button img, .user-button > span:first-of-type { width: 28px; height: 28px; border-radius: 50%; }
.user-button img { object-fit: cover; }
.user-button > span:first-of-type { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
#user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-popover { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.user-popover strong { display: block; margin-bottom: 9px; font-size: 12px; overflow-wrap: anywhere; }
.user-popover button { width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-subtle); }
.main-nav { min-height: 41px; display: flex; align-items: end; gap: 4px; padding: 4px 12px 0; overflow-x: auto; }
.nav-item { min-height: 34px; padding: 7px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #344251; white-space: nowrap; font-size: 12px; }
.nav-item.active { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 750; }
.nav-item.disabled { color: #89939d; cursor: default; }

.dashboard-shell { width: min(1120px, calc(100% - 24px)); margin: 20px auto 50px; }
.catalog-filter-bar { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.catalog-filter-label { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-type-filters { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.filter-button { width: auto; min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; font-size: 11px; }
.filter-button:hover { background: var(--surface-subtle); }
.filter-button.active { border-color: var(--game-color, var(--accent)); background: var(--surface-subtle); color: var(--text); box-shadow: inset 3px 0 0 var(--game-color, var(--accent)); font-weight: 800; }
.game-type-filter-name { display: inline-flex; align-items: center; gap: 6px; }
.game-type-filter-name::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; background: var(--game-color, #81909e); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.filter-button[data-game-type="ALL"] .game-type-filter-name::before { background: linear-gradient(135deg, #E50071 0 25%, #0072CE 25% 50%, #008C72 50% 75%, #F5A623 75%); }
.filter-button output { color: inherit; font: inherit; font-weight: 800; }

.rounds-content { min-width: 0; }
.content-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 2px 0 12px; }
.content-heading h1 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.content-heading h1 span { font-variant-numeric: tabular-nums; }
.content-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.catalog-status { min-height: 20px; margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.meeting-table { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.meeting-table-head, .track-row { display: grid; grid-template-columns: minmax(180px, 1.05fr) minmax(190px, 1fr) minmax(300px, 1.55fr) minmax(125px, .65fr); gap: 20px; }
.meeting-table-head { align-items: center; padding: 15px 18px 13px; color: #73808c; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.round-list { display: block; }
.track-row { position: relative; min-height: 94px; align-items: start; padding: 18px; border-top: 1px solid #e3e7ea; transition: background .15s ease; }
.track-row:first-child { border-top: 0; }
.track-row:hover { background: #fbfcfd; }
.track-row.selected { background: linear-gradient(90deg, color-mix(in srgb, var(--game-color, var(--accent)) 7%, white), white 24%); }
.track-row.selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--game-color, var(--accent)); }
.track-cell { min-width: 0; display: flex; align-items: center; gap: 11px; padding-top: 2px; }
.track-cell strong { overflow: hidden; color: #31465a; font-size: 15px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.track-flag { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: #f4f6f7; font-size: 19px; line-height: 1; box-shadow: 0 1px 2px rgba(20,31,42,.08); }
.game-badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.game-badge { min-width: 43px; min-height: 25px; padding: 4px 9px; border: 0; border-radius: 3px; background: var(--game-color, #43555f); color: var(--game-on-color, #fff); font-size: 10px; font-style: italic; font-weight: 900; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(20,31,42,.08); }
.game-badge:hover { filter: brightness(.93); transform: translateY(-1px); }
.game-badge.selected { outline: 3px solid color-mix(in srgb, var(--game-color) 28%, transparent); outline-offset: 2px; }
.game-badge:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .45; transform: none; }
.race-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.race-number { position: relative; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid #d7dde2; border-radius: 2px; background: #fff; color: #31465a; font: inherit; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; cursor: pointer; }
.race-number::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 2px; background: var(--game-color, #43555f); }
.race-number.results { background: #eef1f3; color: #70808e; }
.race-number.results::after { display: none; }
.race-number.ongoing { border-color: #ef7d36; background: #fff8f3; }
.race-number.ongoing::after { background: #ef7d36; }
.race-number.next { border-color: var(--game-color, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--game-color, var(--accent)) 12%, transparent); }
.race-number.selected { outline: 2px solid var(--game-color, var(--accent)); outline-offset: 2px; }
.race-number:focus-visible { outline: 3px solid #17202a; outline-offset: 2px; }
.race-number:disabled { cursor: default; opacity: .5; }
.next-race { display: flex; align-items: center; gap: 10px; padding-top: 1px; white-space: nowrap; }
.next-race-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 2px; background: #ffe400; color: #17202a; font-size: 12px; font-weight: 900; }
.next-race-number.ongoing { background: #f23d4f; color: #fff; }
.next-race-number.results { background: #65717d; color: #fff; }
.next-race-time { color: #31465a; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.empty-state { padding: 46px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.55); color: var(--muted); }
.empty-state strong { color: var(--text); }
.selection-bar { position: sticky; bottom: 12px; z-index: 12; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.7fr) auto; align-items: center; gap: 18px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.selection-bar > div { display: grid; }
.selection-bar strong { font: 750 12px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.selection-bar p { margin: 0; color: var(--muted); font-size: 10px; }

.predictions-view { height: calc(100vh - 99px); display: grid; grid-template-rows: auto minmax(0, 1fr); background: #fff; }
.result-toolbar { min-height: 49px; display: flex; align-items: center; gap: 18px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.result-toolbar > div { display: grid; margin-right: auto; }
.result-toolbar strong { font: 750 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
#prediction-frame { display: block; width: 100%; height: 100%; border: 0; background: #f3f5f7; }

.progress-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10, 18, 24, .72); backdrop-filter: blur(5px); }
.progress-card { width: min(480px, 100%); padding: 34px; text-align: center; border-radius: 10px; background: var(--surface); box-shadow: 0 24px 90px rgba(0,0,0,.3); }
.progress-card .eyebrow { margin-top: 18px; }
.progress-card h2 { margin: 0; font-size: 23px; }
#progress-game-id { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.progress-copy { color: var(--muted); }
.progress-line { height: 4px; margin-top: 22px; overflow: hidden; border-radius: 3px; background: var(--line); }
.progress-line span { display: block; width: 40%; height: 100%; background: var(--accent); animation: progress 1.8s ease-in-out infinite; }
@keyframes progress { from { transform: translateX(-105%); } to { transform: translateX(255%); } }
.toast { position: fixed; z-index: 120; right: 20px; bottom: 20px; max-width: 440px; padding: 13px 15px; border: 1px solid #d5a2a2; border-radius: 6px; color: var(--danger); background: var(--danger-soft); box-shadow: var(--shadow); }
.toast[data-kind="success"] { border-color: #9bbcb5; color: #155b4d; background: #edf6f3; }

@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; gap: 12px 20px; }
  .header-stats { order: 3; width: 100%; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
  .date-actions { margin-left: auto; }
  .meeting-table-head, .track-row { grid-template-columns: minmax(145px, .85fr) minmax(170px, .95fr) minmax(245px, 1.45fr) minmax(105px, .6fr); gap: 12px; }
  .meeting-table-head, .track-row { padding-right: 14px; padding-left: 14px; }
  .predictions-view { height: calc(100vh - 141px); }
}

@media (max-width: 760px) {
  .login-card { padding: 30px 22px; }
  .topbar { padding: 8px 10px; }
  .brand-lockup strong { font-size: 12px; }
  .brand-lockup small, #user-name { display: none; }
  .date-actions { order: 4; width: 100%; display: grid; grid-template-columns: auto 1fr auto; }
  .date-field input { width: 100%; }
  .header-stats { gap: 10px; }
  .header-stats span { font-size: 8px; }
  .main-nav { padding-left: 6px; }
  .dashboard-shell { width: min(100% - 16px, 680px); margin-top: 12px; }
  .catalog-filter-bar { display: block; padding: 8px; }
  .catalog-filter-label { display: block; margin: 0 0 5px 3px; }
  .game-type-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .filter-button { width: auto; min-width: max-content; gap: 12px; }
  .content-heading { align-items: start; }
  .content-heading h1 { font-size: 19px; }
  .meeting-table-head { display: none; }
  .track-row { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; padding: 15px 14px 18px; }
  .track-cell { grid-column: 1; grid-row: 1; }
  .next-race { grid-column: 2; grid-row: 1; justify-content: end; }
  .game-badges, .race-grid { grid-column: 1 / -1; }
  .game-badges { grid-row: 2; }
  .race-grid { grid-row: 3; }
  .game-badges::before, .race-grid::before { content: attr(data-label); flex: 0 0 100%; margin-bottom: -2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .track-cell strong { font-size: 14px; }
  .selection-bar { grid-template-columns: 1fr auto; gap: 9px; }
  .selection-bar p { grid-column: 1 / -1; grid-row: 2; }
  .selection-bar .primary-button { grid-column: 2; grid-row: 1; }
  .result-toolbar { gap: 8px; }
  .result-toolbar > div { display: none; }
  .result-toolbar .quiet-button:last-child { margin-left: auto; }
  .predictions-view { height: calc(100vh - 184px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Daily comparison: readable labels and comfortable touch targets. */
.quiet-button, .date-field input, .filter-button, .game-badge, .race-number, .nav-item { min-height: 44px; }
.game-type-filters { gap: 8px; }
.filter-button { font-size: 13px; }
.game-badge { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 12px; font-size: 13px; font-style: normal; border-radius: 7px; }
.game-badge small { font-size: 11px; font-weight: 500; }
.game-badge:hover { transform: none; }
.game-badges { gap: 10px; }
.race-number { min-width: 38px; }
.selection-bar strong { font-family: inherit; font-size: 14px; }
.selection-bar p { font-size: 12px; }
.catalog-status { font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.catalog-status.outdated { padding: 12px; border-left: 3px solid var(--warning); background: var(--warning-soft); color: #704609; }
.saved-date-label { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.saved-date-label select { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; padding: 8px 12px; font: inherit; color: var(--text); }
.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:16px 0}.week-calendar button{min-height:68px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--text);font:inherit;cursor:pointer;padding:8px 4px}.week-calendar strong,.week-calendar small{display:block}.week-calendar small{font-size:10px;color:var(--muted);margin-top:4px}.week-calendar button[aria-current=true]{border-color:#126b5b;background:#eaf3ef;color:#126b5b}.week-calendar button:focus-visible{outline:3px solid #167ba9;outline-offset:2px}@media(max-width:700px){.week-calendar{overflow-x:auto;grid-template-columns:repeat(7,minmax(72px,1fr))}}
/* Race sheet layout: shared tokens in design-tokens.css. */
body{font-family:var(--font-ui);background:var(--bg)}.login-view{background:var(--bg)}.login-card{border-radius:var(--radius);box-shadow:var(--shadow)}.app-header{background:var(--surface);backdrop-filter:none}.topbar{padding:6px 24px;gap:20px;min-height:60px;border:0}.header-stats{display:none}.main-nav{padding:0;min-height:44px;align-items:center}.nav-item{font-size:13px}.date-actions{margin-left:auto}.brand-mark{border-radius:2px}.brand-lockup small{font-size:10px}.dashboard-shell{width:calc(100% - 48px);margin:18px 24px 32px}.content-heading h1{font-size:24px}.content-heading .eyebrow{display:none}.content-heading p:not(.eyebrow){font-size:13px}.week-calendar{margin:12px 0;gap:0;border-block:1px solid var(--line)}.week-calendar button{min-height:55px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;text-align:left;padding:8px 16px}.week-calendar button:last-child{border:0}.week-calendar button[aria-current=true]{box-shadow:inset 0 -3px var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.week-calendar small{font-size:11px}.catalog-filter-bar{border:0;border-radius:0;background:none;padding:0;margin:8px 0}.catalog-filter-label{font-size:11px}.filter-button{min-height:40px;padding:6px 10px;border-radius:var(--radius);font-size:13px}.filter-button.active{box-shadow:inset 0 -2px var(--game-color);border-color:var(--line);background:var(--surface)}.filter-button[data-game-type=ALL] .game-type-filter-name:before{background:var(--muted)}.saved-date-label{font-size:12px;display:inline-flex;margin:0 16px 8px 0;gap:8px}.saved-date-label select{font-size:12px;min-height:36px;padding:5px 8px;border-radius:var(--radius)}.catalog-status{display:inline-block;font-size:12px;margin:0 0 8px}.catalog-status.outdated{display:block;padding:8px 12px}.meeting-table{border-radius:0;border-inline:0;box-shadow:none}.meeting-table-head,.track-row{grid-template-columns:minmax(150px,.8fr) minmax(260px,1.5fr) minmax(240px,1.2fr) minmax(100px,.5fr);gap:20px}.meeting-table-head{padding:10px 12px;background:var(--surface-subtle);font-size:11px}.track-row{padding:12px;min-height:74px;transition:none}.track-row.selected{background:var(--accent-soft)}.track-row.selected:before{width:2px;background:var(--accent)}.track-cell strong{font-size:15px;color:var(--text)}.track-flag{border-radius:3px;box-shadow:none;border:0}.game-badges{gap:6px}.game-badge{background:var(--surface);color:var(--text);border:1px solid var(--line);border-left:3px solid var(--game-color);box-shadow:none;border-radius:3px;align-items:start;min-height:46px;padding:6px 10px;font-size:13px}.game-badge small{font-size:11px;color:var(--muted)}.game-badge:hover{background:var(--accent-soft);filter:none}.game-badge.selected{outline:1px solid var(--accent);outline-offset:0}.race-grid{gap:6px}.race-number{min-width:38px;min-height:40px}.next-race-number{background:var(--surface-subtle);color:var(--text)}.next-race-time{font-size:13px;color:var(--text)}.selection-bar{display:none}.predictions-view{height:calc(100dvh - 60px)}.result-toolbar{min-height:44px;padding:4px 24px;background:var(--bg);gap:12px}.result-toolbar span{display:none}.result-toolbar strong{font:600 13px var(--font-ui)}.result-toolbar .quiet-button{min-height:36px;font-size:12px}.result-toolbar #rerun-analysis{margin-left:auto}#prediction-frame{background:var(--bg)}.progress-overlay{inset:auto 16px 16px auto;padding:0;background:none;backdrop-filter:none;pointer-events:none}.progress-card{display:flex;align-items:center;gap:12px;padding:14px 18px;text-align:left;width:auto;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.progress-card .spinner{width:18px;height:18px;border-width:2px}.progress-card h2{font-size:14px}.progress-card .eyebrow,.progress-copy,.progress-line,#progress-game-id{display:none}select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.quiet-button:focus-visible,.nav-item:focus-visible{outline-color:var(--focus)}
@media(min-width:1700px){.meeting-table-head,.track-row{grid-template-columns:220px minmax(400px,1.6fr) minmax(320px,1fr) 150px}}
@media(max-width:980px){.topbar{gap:10px;padding:6px 12px;flex-wrap:nowrap}.main-nav{margin-left:0}.dashboard-shell{width:calc(100% - 24px);margin:12px}.meeting-table-head,.track-row{grid-template-columns:140px minmax(220px,1.2fr) minmax(180px,1fr) 100px;gap:12px}.result-toolbar{padding-inline:12px}.predictions-view{height:calc(100dvh - 60px)}}
@media(max-width:760px){.topbar{flex-wrap:wrap;gap:2px 12px;padding:4px 12px}.brand-lockup{flex:1}.brand-lockup small{display:block}.main-nav{order:2;margin-left:auto}.date-actions{order:3;width:100%;display:flex;justify-content:center;border-top:1px solid var(--line);padding-top:4px}.date-field{flex:1}.date-field input{min-height:38px;text-align:center}.date-actions button{min-height:38px;min-width:44px}.content-heading h1{font-size:21px}.content-heading p:not(.eyebrow){font-size:12px}.content-heading #refresh-catalog{font-size:11px;max-width:110px}.week-calendar{grid-template-columns:repeat(7,minmax(58px,1fr));margin:10px 0}.week-calendar button{padding:6px 8px;font-size:12px;min-height:52px}.week-calendar small{font-size:10px}.catalog-filter-bar{display:block;padding:0}.catalog-filter-label{display:none}.game-type-filters{gap:4px}.filter-button{min-height:44px}.meeting-table-head{display:none}.track-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding:12px}.track-cell{grid-column:1}.next-race{grid-column:2}.game-badges,.race-grid{grid-column:1/-1}.game-badges:before,.race-grid:before{display:none}.race-grid{gap:7px}.race-number{min-height:44px;min-width:40px}.predictions-view{height:calc(100dvh - 102px)}.result-toolbar{padding:3px 12px;min-height:42px;gap:8px}.result-toolbar>div{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.result-toolbar strong{font-size:12px}.result-toolbar #rerun-analysis{display:none}.result-toolbar .quiet-button{min-height:38px}.user-menu{order:1}.main-nav{min-height:44px}.nav-item{padding:7px 9px}.saved-date-label{margin-bottom:6px}.catalog-status{display:block}.progress-overlay{left:12px;right:12px;bottom:12px}.progress-card{justify-content:center}}
