/* AI Over/Under 2.5 Goals Market Intelligence Dashboard */
.oud-page {
  --oud-ink: #0f172a;
  --oud-muted: #64748b;
  --oud-line: #e8eef5;
  --oud-bg: #f5f8fb;
  --oud-card: #ffffff;
  --oud-over: #16a34a;
  --oud-over-bg: #e8f6ee;
  --oud-under: #dc2626;
  --oud-under-bg: #fef2f2;
  --oud-accent: #2563eb;
  --oud-accent-soft: #eff6ff;
  --oud-purple: #7c3aed;
  --oud-orange: #ea580c;
  padding: 10px 12px 48px;
  color: var(--oud-ink);
}

.oud-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--oud-muted);
  margin-bottom: 14px;
}
.oud-breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.oud-breadcrumb a { color: var(--oud-muted); text-decoration: none; }
.oud-breadcrumb a:hover { color: var(--oud-accent); }
.oud-breadcrumb strong { color: var(--oud-ink); font-weight: 650; }
.oud-version-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #c7d7ee;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.oud-version-switch:hover {
  background: #dbeafe;
  color: #1e40af;
  text-decoration: none;
}

.oud-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.oud-header {
  margin-bottom: 16px;
}
.oud-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.oud-header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--oud-ink);
  flex: 1 1 auto;
  min-width: 0;
}
.oud-subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--oud-muted);
  line-height: 1.45;
  max-width: 720px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.oud-based-on {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--oud-muted);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  max-width: 820px;
}
.oud-based-on-label {
  color: #64748b;
  font-weight: 600;
}
.oud-based-on-item {
  color: #166534;
  white-space: nowrap;
}
.oud-filters-toggle {
  display: none;
}
.oud-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.oud-date-selector {
  display: inline-flex;
  border: 1px solid var(--oud-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.oud-date-nav {
  border: 0;
  background: #fff;
  color: var(--oud-accent);
  padding: 7px 11px;
  cursor: pointer;
}
.oud-date-nav:hover { background: #f8fafc; }
#oudDateSelect {
  border: 0;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 10px;
  min-width: 110px;
  text-align: center;
  appearance: none;
  background: #fff;
}
.oud-header-top .oud-date-selector {
  flex: 0 0 auto;
  margin-left: auto;
}

.oud-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.oud-stat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--oud-card);
  border: 1px solid var(--oud-line);
  border-radius: 12px;
  padding: 12px 12px 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
button.oud-stat {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.oud-stat--filter {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.oud-stat--filter:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.oud-stat--filter:focus-visible {
  outline: 2px solid var(--oud-accent);
  outline-offset: 2px;
}
.oud-stat--filter.is-active {
  border-color: var(--oud-accent);
  box-shadow: 0 0 0 1px var(--oud-accent), 0 2px 8px rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}
.oud-stat--filter[data-side-filter="over"].is-active {
  border-color: var(--oud-over);
  box-shadow: 0 0 0 1px var(--oud-over), 0 2px 8px rgba(15, 23, 42, 0.06);
  background: var(--oud-over-bg);
}
.oud-stat--filter[data-side-filter="under"].is-active {
  border-color: var(--oud-under);
  box-shadow: 0 0 0 1px var(--oud-under), 0 2px 8px rgba(15, 23, 42, 0.06);
  background: var(--oud-under-bg);
}
.oud-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.oud-stat-icon--blue { background: var(--oud-accent-soft); color: var(--oud-accent); }
.oud-stat-icon--green { background: var(--oud-over-bg); color: var(--oud-over); }
.oud-stat-icon--red { background: var(--oud-under-bg); color: var(--oud-under); }
.oud-stat-icon--purple { background: #f3e8ff; color: var(--oud-purple); }
.oud-stat-icon--orange { background: #fff7ed; color: var(--oud-orange); font-size: 0.72rem; }
.oud-stat-icon--slate { background: #f1f5f9; color: #64748b; font-size: 0.85rem; }
.oud-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
}
.oud-stat-value {
  font-size: 1.35rem;
  font-weight: 780;
  line-height: 1.15;
  margin-top: 2px;
}
.oud-stat-sub {
  font-size: 0.72rem;
  color: var(--oud-muted);
  margin-top: 2px;
}

.oud-signals { margin-bottom: 16px; }
.oud-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.oud-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
}
.oud-link {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--oud-accent);
  text-decoration: none;
}
.oud-signals-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.oud-signal-card {
  background: #fff;
  border: 1px solid var(--oud-line);
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.oud-signal-card:hover {
  border-color: #c7d7ee;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}
.oud-signal-badge,
.oud-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.oud-badge--over,
.oud-signal-badge.oud-badge--over { background: var(--oud-over-bg); color: var(--oud-over); }
.oud-badge--under,
.oud-signal-badge.oud-badge--under { background: var(--oud-under-bg); color: var(--oud-under); }
.oud-badge--none { background: #f1f5f9; color: #64748b; }
.oud-td-gap {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #64748b;
  white-space: nowrap;
}
.oud-td-gap.is-signal {
  color: #0f172a;
  font-weight: 750;
}
.oud-signal-teams { margin-top: 10px; }
.oud-team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}
.oud-team + .oud-team { margin-top: 3px; }
.oud-team img { width: 18px; height: 18px; object-fit: contain; }
.oud-signal-league {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--oud-muted);
}
.oud-signal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.oud-signal-metrics span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 650;
}
.oud-signal-metrics strong { font-size: 0.9rem; }
.oud-signal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.oud-mkt,
.oud-mkt-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--oud-accent-soft);
  color: var(--oud-accent);
  font-weight: 750;
  font-size: 0.84rem;
}
.oud-ev { font-size: 0.8rem; font-weight: 700; color: var(--oud-muted); }
.oud-ev.is-pos,
.is-pos { color: var(--oud-over); }
.is-neg { color: var(--oud-under); }

.oud-conf {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.oud-conf--high { background: #ede9fe; color: #6d28d9; }
.oud-conf--low { background: #e0f2fe; color: #0369a1; }
.oud-conf--very_low,
.oud-conf--medium { background: #f1f5f9; color: #64748b; }
.oud-conf--none { background: #f1f5f9; color: #94a3b8; }

.oud-ai-score-th {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.oud-ai-score-help.co-breadth-tip-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  border: 1px solid #90a4ae;
  border-radius: 50%;
  border-bottom: 1px solid #90a4ae !important;
  background: #fff;
  color: #546e7a;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
  outline: none;
}
.oud-ai-score-help.co-breadth-tip-wrap:hover,
.oud-ai-score-help.co-breadth-tip-wrap:focus-visible {
  background: #eceff1;
  border-color: #607d8b;
  color: #37474f;
}
.oud-ai-score-help .co-breadth-tip-panel {
  display: none !important;
}
.oud-th-sort .oud-ai-score-help {
  pointer-events: auto;
}

.oud-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafbfc;
  border: 1px solid var(--oud-line);
  border-radius: 12px;
}
.oud-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  margin: 0;
}
.oud-filters label span,
.oud-sort span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.oud-filters select {
  border: 1px solid #dde3ee;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  padding: 7px 10px;
  min-height: 36px;
  color: #1e293b;
}
.oud-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}
.oud-sort { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.oud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
  min-height: 36px;
}
.oud-btn-primary { background: var(--oud-accent); color: #fff; }
.oud-btn-primary:hover { background: #1d4ed8; }
.oud-btn-ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #dde3ee;
}
.oud-btn-ghost:hover { background: #f8fafc; }

/* Match list: same scroll pattern as homepage Live Market Movement (.hp-mm-table-wrap) */
.oud-table-wrap {
  background: #fff;
  border: 1px solid var(--oud-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.oud-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.oud-table-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.oud-hscroll {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.oud-hscroll[hidden] { display: none !important; }
.oud-hscroll-btn {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.oud-hscroll-btn:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--oud-accent, #2563eb);
  background: #eff6ff;
}
.oud-hscroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.oud-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 0 8px 8px;
}
.oud-table {
  width: max-content;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 0.78rem; /* body one step smaller; th keeps own size */
}
.oud-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  font-weight: 400;
  padding: 10px 12px;
  border-bottom: 1px solid var(--oud-line);
  white-space: nowrap;
  background: #fbfdff;
}
.oud-th-sort {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}
.oud-th-sort:hover,
.oud-th-sort:focus-visible {
  color: var(--oud-accent, #2563eb);
  outline: none;
}
.oud-th-sort.is-sorted {
  color: #0f172a;
}
.oud-th-sort.is-sorted::after,
.oud-sort-head.is-sorted::after,
.oud-sort-col.is-sorted::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  vertical-align: middle;
}
.oud-th-sort.is-sorted.is-desc::after,
.oud-sort-head.is-sorted.is-desc::after,
.oud-sort-col.is-sorted.is-desc::after {
  border-top: 5px solid currentColor;
  border-bottom: 0;
  transform: translateY(1px);
}
.oud-th-sort.is-sorted.is-asc::after,
.oud-sort-head.is-sorted.is-asc::after,
.oud-sort-col.is-sorted.is-asc::after {
  border-bottom: 5px solid currentColor;
  border-top: 0;
  transform: translateY(-1px);
}
.oud-sort-heads {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 62%;
}
.oud-sort-head {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.oud-sort-head.is-sorted,
.oud-sort-head:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--oud-accent, #2563eb);
  background: #eff6ff;
}
.oud-sort-col {
  cursor: pointer;
}
.oud-sort-col.is-sorted { color: var(--oud-accent, #2563eb); }
.oud-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-weight: 400;
  font-size: 0.78rem;
  white-space: nowrap;
}
.oud-table td.oud-empty,
.oud-table td.oud-td-1x2,
.oud-table td.oud-cs-top3 {
  white-space: normal;
}
.oud-table .oud-td-time,
.oud-table .oud-td-prob,
.oud-table .oud-td-fair,
.oud-table .oud-td-ev,
.oud-table .oud-mkt-cell {
  font-size: 0.72rem;
}
.oud-table .oud-lg { font-size: 0.65rem; }
.oud-table .oud-vs { font-size: 0.7rem; }
.oud-table .oud-badge { font-size: 0.62rem; }
.oud-table .oud-conf { font-size: 0.64rem; }
.oud-table .oud-ev { font-size: 0.72rem; }
.oud-table td strong,
.oud-table td em,
.oud-table .oud-badge,
.oud-table .oud-conf,
.oud-table .oud-1x2-k,
.oud-table .oud-1x2-v,
.oud-table .oud-1x2-line.is-pick,
.oud-table .oud-1x2-line.is-pick .oud-1x2-k,
.oud-table .oud-1x2-pick,
.oud-table .oud-th-sort.is-sorted,
.oud-table .oud-mkt-cell,
.oud-table .oud-cs-top3 em {
  font-weight: 400;
}
.oud-table tbody tr:hover { background: #fafcff; }
.oud-td-time { font-weight: 400; color: #334155; white-space: nowrap; }
.oud-td-match a { color: inherit; text-decoration: none; }
.oud-td-match a:hover { color: var(--oud-accent); }
.oud-lg {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 3px;
  font-weight: 400;
}
.oud-teams-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 400;
}
.oud-team-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  line-height: 1.25;
  font-weight: 400;
}
.oud-team-line img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.oud-team-line span {
  white-space: nowrap;
}
.oud-td-match {
  min-width: 168px;
}
.oud-teams-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-weight: 400;
}
.oud-teams-inline img { width: 16px; height: 16px; object-fit: contain; }
.oud-vs { color: #94a3b8; font-weight: 400; font-size: 0.75rem; }

.oud-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 12px;
}
.oud-page-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #dde3ee;
  background: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  color: #334155;
}
.oud-page-btn.is-active {
  background: var(--oud-accent);
  border-color: var(--oud-accent);
  color: #fff;
}
.oud-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.oud-page-ellipsis { padding: 6px 4px; color: #94a3b8; }
.oud-load-more-wrap {
  /* Desktop: pagination only; Load More is mobile-only (see max-width: 767.98px). */
  display: none;
  justify-content: center;
  padding: 0 12px 16px;
}

.oud-empty {
  padding: 18px;
  text-align: center;
  color: var(--oud-muted);
}

.oud-perf,
.oud-seo-block,
.oud-faq {
  background: #fff;
  border: 1px solid var(--oud-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.oud-perf h2,
.oud-seo-block h2,
.oud-faq h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.oud-perf-note {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--oud-muted);
}
.oud-perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.oud-perf-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}
.oud-perf-val {
  font-size: 1.35rem;
  font-weight: 780;
  margin-top: 2px;
}
.oud-seo-block p,
.oud-faq p {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}
.oud-faq details {
  border-top: 1px solid #f1f5f9;
  padding: 10px 0;
}
.oud-faq details:first-of-type { border-top: 0; }
.oud-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--oud-ink);
}
.oud-faq details p { margin-top: 8px; }

.oud-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 12px;
}
.oud-rail-card {
  background: #fff;
  border: 1px solid var(--oud-line);
  border-radius: 12px;
  padding: 14px;
}
.oud-rail-card h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 750;
}

.oud-donut {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  --over: 35;
  --under: 30;
  --none: 35;
}
.oud-donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--oud-over) 0 calc(var(--over) * 1%),
    var(--oud-under) calc(var(--over) * 1%) calc((var(--over) + var(--under)) * 1%),
    #cbd5e1 calc((var(--over) + var(--under)) * 1%) 100%
  );
  mask: radial-gradient(circle at center, transparent 52%, #000 53%);
  -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}
.oud-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.oud-donut-center strong { font-size: 1.2rem; line-height: 1; }
.oud-donut-center span { font-size: 0.7rem; color: var(--oud-muted); }
.oud-legend { list-style: none; margin: 0; padding: 0; }
.oud-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding: 4px 0;
  color: #475569;
}
.oud-legend b { margin-left: auto; color: var(--oud-ink); }
.oud-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.oud-legend .c-over { background: var(--oud-over); }
.oud-legend .c-under { background: var(--oud-under); }
.oud-legend .c-none { background: #cbd5e1; }

.oud-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.oud-bar-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.oud-bar-row span { font-size: 0.68rem; color: #94a3b8; order: 3; }
.oud-bar-row em { font-style: normal; font-size: 0.68rem; font-weight: 700; order: 1; }
.oud-bar-track {
  width: 100%;
  height: 80px;
  background: #f1f5f9;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  order: 2;
}
.oud-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}

.oud-quick { display: flex; flex-direction: column; gap: 6px; }
.oud-quick button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--oud-accent);
  font-size: 0.84rem;
  font-weight: 650;
  padding: 4px 0;
  cursor: pointer;
}
.oud-quick button:hover { text-decoration: underline; }

.oud-leagues { list-style: none; margin: 0; padding: 0; }
.oud-leagues li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem;
}
.oud-leagues li:last-child { border-bottom: 0; }
.oud-leagues button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--oud-ink);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.oud-leagues button:hover { color: var(--oud-accent); }
.oud-leagues span { color: var(--oud-muted); font-weight: 650; }

.oud-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: #334155;
}
.oud-checklist li { padding: 5px 0; }

@media (max-width: 1100px) {
  .oud-layout { grid-template-columns: 1fr; }
  .oud-rail { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .oud-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* —— Mobile layout aligned to product mock —— */
.oud-mbar { display: none; }
.oud-table-cols { display: none; }
.oud-sheet-backdrop,
.oud-sheet-head { display: none; }
.oud-mob-time,
.oud-mob-time-sep { display: none; }
.oud-filters-shell { display: block; }

@media (max-width: 767.98px) {
  #mainContent:has(.oud-page) {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 28px;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .oud-page {
    padding: 0 0 24px;
    /* Do NOT use overflow-x:hidden here — it blocks nested signal swipe */
    overflow-x: visible;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #f7f9fc;
  }
  .oud-layout,
  .oud-main {
    min-width: 0;
    max-width: 100%;
  }
  .oud-breadcrumb {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
  }
  .oud-breadcrumb-trail {
    font-size: 0.7rem;
    line-height: 1.35;
    gap: 4px;
  }
  .oud-breadcrumb-trail span { opacity: 0.55; }
  .oud-version-switch {
    margin-left: auto;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .oud-header { margin-bottom: 12px; }
  /* Stack title + date so the date control is never clipped on the right */
  .oud-header-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }
  .oud-header h1 {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding-right: 0;
  }
  .oud-subtitle {
    font-size: 0.78rem;
    margin-top: 6px;
    max-width: none;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .oud-based-on {
    margin-top: 6px;
    font-size: 0.72rem;
    gap: 3px 8px;
    max-width: none;
  }
  .oud-header-top .oud-date-selector {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .oud-date-nav { padding: 8px 12px; flex: 0 0 auto; }
  #oudDateSelect {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    font-size: 0.8rem;
    padding: 8px 6px;
  }

  /* 2×2 KPI grid — readable on real phone widths */
  .oud-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .oud-stat--desk { display: none !important; }
  .oud-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 10px 9px;
    border-radius: 12px;
    min-width: 0;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: none;
    background: #fff;
  }
  .oud-stat > div {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .oud-stat-icon { display: none !important; }
  .oud-stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .oud-stat-value {
    font-size: 1.28rem;
    font-weight: 800;
    margin-top: 4px;
    line-height: 1.1;
  }
  .oud-stat-sub {
    font-size: 0.68rem;
    line-height: 1.25;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Signal carousel — must scroll; peek next card */
  .oud-signals {
    margin-bottom: 14px;
    min-width: 0;
    max-width: 100%;
  }
  .oud-section-head h2 { font-size: 0.98rem; }
  .oud-signals-track {
    display: flex;
    grid: none;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding: 2px 16px 10px 2px;
    margin: 0;
    scrollbar-width: none;
  }
  .oud-signals-track::-webkit-scrollbar { display: none; }
  .oud-signal-card {
    flex: 0 0 min(248px, 72vw);
    width: min(248px, 72vw);
    max-width: min(248px, 72vw);
    min-width: 0;
    scroll-snap-align: start;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
  }
  .oud-signal-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .oud-signal-metrics span {
    font-size: 0.58rem;
    line-height: 1.15;
    white-space: normal;
  }
  .oud-signal-metrics strong { font-size: 0.86rem; }
  .oud-signal-footer { display: none; }
  .oud-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Chip bar */
  .oud-mbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    margin-bottom: 10px;
    padding: 0 2px 4px;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  .oud-mbar::-webkit-scrollbar { display: none; }
  .oud-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d7e0ec;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .oud-chip.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
  }
  .oud-chip::after {
    content: '▾';
    font-size: 0.65rem;
    color: #94a3b8;
  }

  /* Bottom sheet filters */
  .oud-filters-toggle { display: none !important; }
  .oud-filters-shell {
    position: fixed;
    inset: 0;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
  }
  .oud-filters-shell.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  .oud-sheet-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }
  .oud-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    transition: transform 0.22s ease;
    padding: 0 0 18px;
  }
  .oud-filters-shell.is-open .oud-sheet-panel {
    transform: translateY(0);
  }
  .oud-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
  }
  .oud-sheet-head strong {
    font-size: 0.95rem;
    font-weight: 800;
  }
  .oud-sheet-done {
    border: 0;
    background: var(--oud-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
  }
  .oud-filters {
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    gap: 10px;
    margin: 0;
  }
  .oud-filters.is-collapsed { display: flex; }
  .oud-filters label {
    flex: none;
    width: 100%;
  }
  .oud-filters select { width: 100%; max-width: 100%; }
  .oud-filter-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .oud-sort { width: 100%; }
  .oud-filter-actions .oud-btn { width: 100%; }

  /* Keep full table; horizontal scroll like homepage Live Market Movement */
  .oud-table-wrap {
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .oud-table-meta {
    padding: 10px 12px 8px;
    font-size: 0.78rem;
  }
  .oud-table-cols,
  .oud-table-meta-sort,
  .oud-sort-heads {
    display: none !important;
  }
  .oud-table-scroll {
    padding: 0 6px 8px;
  }
  .oud-table {
    min-width: 880px;
  }
  .oud-table thead { display: table-header-group; }
  .oud-table tbody { display: table-row-group; }
  .oud-table tbody tr { display: table-row; }
  .oud-table th,
  .oud-table td {
    display: table-cell;
    padding: 9px 10px;
    font-size: 0.72rem;
  }
  .oud-table th { font-size: 0.62rem; }
  .oud-table td::before { display: none !important; content: none !important; }
  .oud-table td.oud-col-extra,
  .oud-table td.oud-td-time,
  .oud-table td.oud-td-xg,
  .oud-table td.oud-td-fair,
  .oud-table td.oud-td-1x2,
  .oud-table td.oud-td-match,
  .oud-table td.oud-td-pick,
  .oud-table td.oud-td-gap,
  .oud-table td.oud-td-prob,
  .oud-table td.oud-td-ev {
    display: table-cell !important;
  }
  .oud-table td.oud-td-match {
    min-width: 168px;
  }
  .oud-table td.oud-cs-top3 {
    min-width: 140px;
  }
  .oud-table td.oud-empty {
    text-align: center;
    padding: 16px 8px;
  }
  .oud-table td.oud-td-pick .oud-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  /* Time column is visible — hide duplicate time in match cell */
  .oud-mob-time,
  .oud-mob-time-sep { display: none !important; }
  .oud-lg {
    margin-bottom: 2px;
    font-size: 0.6rem;
  }
  .oud-teams-stack {
    font-size: 0.72rem;
    font-weight: 400;
    gap: 2px;
  }
  .oud-1x2-stack { gap: 1px; }
  .oud-1x2-line {
    grid-template-columns: 2rem auto;
    column-gap: 0.35em;
    font-size: 0.62rem;
  }
  .oud-mkt-cell {
    padding: 2px 4px;
    font-size: 0.72rem;
  }
  .oud-pager { display: none; }
  .oud-load-more-wrap {
    display: flex;
    padding: 10px 12px 14px;
  }
  .oud-load-more-wrap .oud-btn {
    width: 100%;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }
  .oud-load-more-wrap .oud-btn:hover {
    background: #dbeafe;
  }

  /* SEO / FAQ accordion feel */
  .oud-perf,
  .oud-seo-block,
  .oud-faq,
  .oud-rail-card {
    padding: 14px;
    border-radius: 14px;
  }
  .oud-perf-grid { grid-template-columns: 1fr 1fr; }
  .oud-rail {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
  }
  .oud-main .oud-seo-block,
  .oud-main .oud-faq {
    margin-top: 4px;
  }
}

@media (max-width: 380px) {
  .oud-stats {
    gap: 6px;
  }
  .oud-stat {
    padding: 9px 8px;
  }
  .oud-stat-value { font-size: 1.15rem; }
  .oud-signal-card {
    flex-basis: 74vw;
    width: 74vw;
    max-width: 74vw;
  }
  .oud-table th,
  .oud-table td {
    padding: 8px 8px;
  }
  .oud-1x2-line {
    grid-template-columns: 1.85rem auto;
    font-size: 0.58rem;
  }
}

/* Extra market badges (1X2 / BTTS / CS) */
.oud-badge--home { background: #eff6ff; color: #1d4ed8; }
.oud-badge--draw { background: #fff7ed; color: #c2410c; }
.oud-badge--away { background: #fef2f2; color: #b91c1c; }
.oud-badge--yes { background: #e8f6ee; color: #15803d; }
.oud-badge--no { background: #fef2f2; color: #b91c1c; }
.oud-badge--cs { background: #eef2ff; color: #4338ca; font-variant-numeric: tabular-nums; }

.oud-donut-ring--1x2 {
  background: conic-gradient(
    #2563eb 0 calc(var(--h, 0) * 1%),
    #ea580c calc(var(--h, 0) * 1%) calc((var(--h, 0) + var(--d, 0)) * 1%),
    #dc2626 calc((var(--h, 0) + var(--d, 0)) * 1%) calc((var(--h, 0) + var(--d, 0) + var(--a, 0)) * 1%),
    #cbd5e1 calc((var(--h, 0) + var(--d, 0) + var(--a, 0)) * 1%) 100%
  );
}
.oud-donut-ring--btts {
  background: conic-gradient(
    #16a34a 0 calc(var(--over) * 1%),
    #dc2626 calc(var(--over) * 1%) 100%
  );
}
.oud-legend .c-home { background: #2563eb; }
.oud-legend .c-draw { background: #ea580c; }
.oud-legend .c-away { background: #dc2626; }
.oud-legend .c-none { background: #cbd5e1; }
.oud-legend .c-yes { background: #16a34a; }
.oud-legend .c-no { background: #dc2626; }

.oud-cs-top3 { font-size: 0.72rem; color: #475569; max-width: 220px; }
.oud-cs-top3 em { font-style: normal; font-weight: 400; color: #0f172a; }

.oud-td-1x2 {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}
.oud-1x2-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}
.oud-1x2-line {
  display: grid;
  grid-template-columns: 2.25rem auto;
  column-gap: 0.5em; /* ~2 spaces between label and value */
  align-items: baseline;
  width: max-content;
  line-height: 1.25;
  color: #64748b;
  font-size: 0.72rem;
}
.oud-1x2-k {
  min-width: 0;
  font-weight: 400;
  color: #94a3b8;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
}
.oud-1x2-v { font-weight: 400; white-space: nowrap; }
.oud-1x2-line.is-pick {
  color: #0f172a;
  font-weight: 400;
}
.oud-1x2-line.is-pick .oud-1x2-k { color: var(--oud-accent, #2563eb); }
.oud-1x2-pick {
  display: inline;
  margin-left: 1px;
  font-size: 0.68em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--oud-accent, #2563eb);
  cursor: help;
  vertical-align: baseline;
}

.oud-heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.oud-heat-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(37, 99, 235, calc(0.12 + var(--i) * 0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #1e3a8a;
  font-weight: 700;
}
.oud-heat-cell em {
  font-style: normal;
  font-size: 0.7rem;
  color: #0f172a;
}
