.hoopiq-analysis-card { max-width: 980px; }
.hoopiq-beta-banner { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; margin-bottom: 26px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; line-height: 1.6; }
.hoopiq-beta-banner strong { color: var(--warning); white-space: nowrap; }
.hoopiq-beta-banner span { color: var(--text-2); }
.hoopiq-form-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: end; }
.hoopiq-field { display: grid; gap: 9px; }
.hoopiq-field > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.hoopiq-field select, .hoopiq-field input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text-1); font: inherit; color-scheme: dark; }
.hoopiq-field select:focus, .hoopiq-field input:focus { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.hoopiq-competition { max-width: 360px; margin-bottom: 20px; }
.hoopiq-date { grid-column: 1 / 4; max-width: 420px; margin-top: 6px; }
.hoopiq-state { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); color: var(--text-2); font-size: 12px; line-height: 1.6; }
.hoopiq-state svg { width: 17px; min-width: 17px; }
.hoopiq-state.success { border-color: var(--success); color: var(--success); }
.hoopiq-state.error { border-color: var(--error-line); color: var(--error-bright); }
.hoopiq-spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hoopiq-spin .7s linear infinite; }
.hoopiq-result-card { margin-top: 22px; padding: 26px; border: 1px solid var(--brand); background: var(--surface-1); }
.hoopiq-result-card header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.hoopiq-model { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.hoopiq-match { margin: 28px 0 8px; color: var(--text-2); font-size: 13px; }
.hoopiq-result-card h3 { font-size: clamp(27px, 4vw, 42px); line-height: 1.12; margin: 0 0 30px; }
.hoopiq-result-card h3 span { display: block; margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.hoopiq-probs { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, 2fr) minmax(150px, 1fr); gap: 18px; align-items: center; }
.hoopiq-probs > div:first-child, .hoopiq-probs > div:last-child { display: flex; justify-content: space-between; gap: 12px; }
.hoopiq-probs span { font-size: 12px; color: var(--text-2); }
.hoopiq-probs strong { font-family: var(--mono); }
.hoopiq-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); background: var(--surface-2); }
.hoopiq-mode-tab { min-height: 40px; min-width: 0; padding: 8px 16px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.hoopiq-mode-tab.active { background: var(--surface-1); color: var(--text-1); box-shadow: inset 0 -2px 0 var(--brand-bright); }
.hoopiq-mode-tab:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.hoopiq-event { max-width: 640px; }
.hoopiq-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); color: var(--text-2); font-size: 13px; }
.hoopiq-record { margin: 0 0 16px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.hoopiq-record strong { color: var(--text-1); }
.hoopiq-outcome { display: inline-block; padding: 2px 8px; font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); }
.hoopiq-outcome.win { color: var(--success); border-color: var(--success); }
.hoopiq-outcome.loss { color: var(--error-bright); border-color: var(--error-line); }
.hoopiq-outcome.pending, .hoopiq-outcome.muted { color: var(--text-3); }
.hoopiq-factors { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.hoopiq-factors ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.hoopiq-factors li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: baseline; padding: 9px 12px; background: var(--surface-2); }
.hoopiq-factors li span { color: var(--text-2); }
.hoopiq-factors li small { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.hoopiq-factors p { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
.hoopiq-caveat { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--text-2); }
.hoopiq-caveat ul { margin: 10px 0; padding-left: 20px; }
.hoopiq-caveat p { margin: 10px 0 0; }
/* Grid and flex children default to min-width:auto and grow to their widest
   content: the unwrapped history table widened the whole page on mobile.
   Keep the page at the viewport width and scroll the table in its own box. */
.dashboard-main { min-width: 0; }
.dash-table-wrap { overflow-x: auto; }
@keyframes hoopiq-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .hoopiq-mode { display: flex; width: 100%; }
  .hoopiq-mode-tab { flex: 1 1 0; white-space: normal; }
  .hoopiq-form-grid { grid-template-columns: 1fr; }
  .hoopiq-form-grid .ana-pick-sep { display: none; }
  .hoopiq-date { grid-column: auto; max-width: none; }
  .hoopiq-beta-banner { display: grid; gap: 5px; }
  .hoopiq-probs { grid-template-columns: 1fr; }
  .hoopiq-probs .prob-bar { grid-row: 2; }
  .hoopiq-result-card { padding: 20px; }
  .hoopiq-result-card header { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .hoopiq-spinner { animation: none; border-right-color: currentColor; }
}

/* My analyses filters */
.hoopiq-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.hoopiq-filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1 1 180px; font-size: 12px; color: var(--text-2); }
.hoopiq-filter select { width: 100%; min-height: 40px; padding: 8px 10px; background: var(--surface, transparent); color: var(--text, inherit); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.hoopiq-filter select:focus-visible { outline: 2px solid var(--brand, currentColor); outline-offset: 2px; }
.hoopiq-filter-count { margin: 8px 0; font-size: 12px; color: var(--text-2); }
.hoopiq-filter-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; }
.hoopiq-filter-empty p { margin: 0; }
@media (max-width: 560px) { .hoopiq-filter { min-width: 100%; } }

/* Covered competitions: text tiles, no third-party league logos */
.league-tiles { list-style: none; margin: 0; padding: 0; flex-wrap: wrap; gap: clamp(16px, 4vw, 40px); }
.league-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 200px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 14px; }
.league-tile strong { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.league-tile span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.league-tile.is-active { border-color: var(--success); }
.league-tile.is-active span { color: var(--success); }
.league-tile.is-soon strong { opacity: .55; }
@media (max-width: 560px) { .league-tile { min-width: 0; width: 100%; } }

/* NCAA is announced but not open yet: the league card stays visibly secondary */
.league-card.is-soon { opacity: .6; }
.league-card.is-soon figcaption { font-style: italic; }
