/* CTR_BETTING_AI_THEME_CONTRAST_V1 */

/*
 * This layer intentionally uses page-scoped, high-specificity selectors.
 * It prevents the global theme switcher from overriding text with
 * same-color foreground/background combinations.
 */

/* ---------- LIGHT THEME: HUB ---------- */

html[data-theme="light"] body.cr-betting-ai-page,
body[data-theme="light"].cr-betting-ai-page,
html.theme-light body.cr-betting-ai-page,
body.theme-light.cr-betting-ai-page,
html.light body.cr-betting-ai-page,
body.light.cr-betting-ai-page {
  color-scheme: light;
  background: #f4f2ed !important;
  color: #121417 !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-main,
body[data-theme="light"].cr-betting-ai-page .crbai-main,
html.theme-light body.cr-betting-ai-page .crbai-main,
body.theme-light.cr-betting-ai-page .crbai-main,
html.light body.cr-betting-ai-page .crbai-main,
body.light.cr-betting-ai-page .crbai-main {
  color: #121417 !important;
}

html[data-theme="light"] body.cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
),
body[data-theme="light"].cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
),
html.theme-light body.cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
),
body.theme-light.cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
),
html.light body.cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
),
body.light.cr-betting-ai-page :is(
  .crbai-section,
  .crbai-panel,
  .crbai-report-card,
  .crbai-analysis-panel,
  #report,
  .event-card,
  .event-item,
  [data-event-id]
) {
  background: #ffffff !important;
  color: #121417 !important;
  border-color: #d8dde2 !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
),
body[data-theme="light"].cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
),
html.theme-light body.cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
),
body.theme-light.cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
),
html.light body.cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
),
body.light.cr-betting-ai-page .crbai-main :is(
  h1,h2,h3,h4,h5,h6,strong,b,legend
) {
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
),
body[data-theme="light"].cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
),
html.theme-light body.cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
),
body.theme-light.cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
),
html.light body.cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
),
body.light.cr-betting-ai-page .crbai-main :is(
  p,li,small,label,span,div,dt,dd
) {
  color: #59636d !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-main a,
body[data-theme="light"].cr-betting-ai-page .crbai-main a,
html.theme-light body.cr-betting-ai-page .crbai-main a,
body.theme-light.cr-betting-ai-page .crbai-main a,
html.light body.cr-betting-ai-page .crbai-main a,
body.light.cr-betting-ai-page .crbai-main a {
  color: #18202a !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-main a:hover,
body[data-theme="light"].cr-betting-ai-page .crbai-main a:hover,
html.theme-light body.cr-betting-ai-page .crbai-main a:hover,
body.theme-light.cr-betting-ai-page .crbai-main a:hover,
html.light body.cr-betting-ai-page .crbai-main a:hover,
body.light.cr-betting-ai-page .crbai-main a:hover {
  color: #244bd8 !important;
}

html[data-theme="light"] body.cr-betting-ai-page :is(
  select,input,textarea,option
),
body[data-theme="light"].cr-betting-ai-page :is(
  select,input,textarea,option
),
html.theme-light body.cr-betting-ai-page :is(
  select,input,textarea,option
),
body.theme-light.cr-betting-ai-page :is(
  select,input,textarea,option
),
html.light body.cr-betting-ai-page :is(
  select,input,textarea,option
),
body.light.cr-betting-ai-page :is(
  select,input,textarea,option
) {
  background: #ffffff !important;
  color: #121417 !important;
  border-color: #aeb6bf !important;
}

html[data-theme="light"] body.cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
),
body[data-theme="light"].cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
),
html.theme-light body.cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
),
body.theme-light.cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
),
html.light body.cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
),
body.light.cr-betting-ai-page :is(
  #sports button,
  #leagues button,
  #events button,
  .sport-btn,
  .league-btn,
  .event-btn
) {
  background: #0d1117 !important;
  color: #ffffff !important;
  border-color: #0d1117 !important;
}

html[data-theme="light"] body.cr-betting-ai-page :is(
  #sports button[disabled],
  #leagues button[disabled],
  #events button[disabled]
),
body[data-theme="light"].cr-betting-ai-page :is(
  #sports button[disabled],
  #leagues button[disabled],
  #events button[disabled]
) {
  background: #d8dce1 !important;
  color: #5f6872 !important;
  border-color: #c6ccd2 !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a),
body[data-theme="light"].cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a),
html.theme-light body.cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a),
body.theme-light.cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a),
html.light body.cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a),
body.light.cr-betting-ai-page :is(
  .crbai-hero,
  .crbai-reports-cta
) :is(h1,h2,h3,h4,p,span,strong,a) {
  color: #ffffff !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-eyebrow,
body[data-theme="light"].cr-betting-ai-page .crbai-eyebrow,
html.theme-light body.cr-betting-ai-page .crbai-eyebrow,
body.theme-light.cr-betting-ai-page .crbai-eyebrow,
html.light body.cr-betting-ai-page .crbai-eyebrow,
body.light.cr-betting-ai-page .crbai-eyebrow {
  color: #b9ff3b !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-status,
body[data-theme="light"].cr-betting-ai-page .crbai-status,
html.theme-light body.cr-betting-ai-page .crbai-status,
body.theme-light.cr-betting-ai-page .crbai-status,
html.light body.cr-betting-ai-page .crbai-status,
body.light.cr-betting-ai-page .crbai-status {
  color: #eef2f5 !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-status strong,
body[data-theme="light"].cr-betting-ai-page .crbai-status strong,
html.theme-light body.cr-betting-ai-page .crbai-status strong,
body.theme-light.cr-betting-ai-page .crbai-status strong,
html.light body.cr-betting-ai-page .crbai-status strong,
body.light.cr-betting-ai-page .crbai-status strong {
  color: #b9ff3b !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
),
body[data-theme="light"].cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
),
html.theme-light body.cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
),
body.theme-light.cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
),
html.light body.cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
),
body.light.cr-betting-ai-page .crbai-footer :is(
  strong,h2,h3,h4
) {
  color: #ffffff !important;
}

html[data-theme="light"] body.cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
),
body[data-theme="light"].cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
),
html.theme-light body.cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
),
body.theme-light.cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
),
html.light body.cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
),
body.light.cr-betting-ai-page .crbai-footer :is(
  p,a,span,small
) {
  color: #b8c3ce !important;
}

/* ---------- LIGHT THEME: REPORTS ---------- */

html[data-theme="light"] body.cr-betting-ai-report-page,
body[data-theme="light"].cr-betting-ai-report-page,
html.theme-light body.cr-betting-ai-report-page,
body.theme-light.cr-betting-ai-report-page,
html.light body.cr-betting-ai-report-page,
body.light.cr-betting-ai-report-page {
  color-scheme: light;
  background: #f4f2ed !important;
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-section,
body[data-theme="light"].cr-betting-ai-report-page .crr-section,
html.theme-light body.cr-betting-ai-report-page .crr-section,
body.theme-light.cr-betting-ai-report-page .crr-section,
html.light body.cr-betting-ai-report-page .crr-section,
body.light.cr-betting-ai-report-page .crr-section {
  background: #ffffff !important;
  color: #111418 !important;
  border-color: #d8dde2 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
),
body[data-theme="light"].cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
),
html.theme-light body.cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
),
body.theme-light.cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
),
html.light body.cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
),
body.light.cr-betting-ai-report-page .crr-section :is(
  h1,h2,h3,h4,h5,h6,strong,b,dt,dd
) {
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
),
body[data-theme="light"].cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
),
html.theme-light body.cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
),
body.theme-light.cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
),
html.light body.cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
),
body.light.cr-betting-ai-report-page .crr-section :is(
  p,li,small,span
) {
  color: #59636d !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-metric,
body[data-theme="light"].cr-betting-ai-report-page .crr-metric,
html.theme-light body.cr-betting-ai-report-page .crr-metric,
body.theme-light.cr-betting-ai-report-page .crr-metric,
html.light body.cr-betting-ai-report-page .crr-metric,
body.light.cr-betting-ai-report-page .crr-metric {
  background: #f7f6f2 !important;
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-metric span,
body[data-theme="light"].cr-betting-ai-report-page .crr-metric span,
html.theme-light body.cr-betting-ai-report-page .crr-metric span,
body.theme-light.cr-betting-ai-report-page .crr-metric span,
html.light body.cr-betting-ai-report-page .crr-metric span,
body.light.cr-betting-ai-report-page .crr-metric span {
  color: #68727d !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-metric strong,
body[data-theme="light"].cr-betting-ai-report-page .crr-metric strong,
html.theme-light body.cr-betting-ai-report-page .crr-metric strong,
body.theme-light.cr-betting-ai-report-page .crr-metric strong,
html.light body.cr-betting-ai-report-page .crr-metric strong,
body.light.cr-betting-ai-report-page .crr-metric strong {
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
),
body[data-theme="light"].cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
),
html.theme-light body.cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
),
body.theme-light.cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
),
html.light body.cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
),
body.light.cr-betting-ai-report-page .crr-hero :is(
  h1,h2,h3,p,span,strong,a
) {
  color: #ffffff !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-kicker,
body[data-theme="light"].cr-betting-ai-report-page .crr-kicker,
html.theme-light body.cr-betting-ai-report-page .crr-kicker,
body.theme-light.cr-betting-ai-report-page .crr-kicker,
html.light body.cr-betting-ai-report-page .crr-kicker,
body.light.cr-betting-ai-report-page .crr-kicker {
  color: #b9ff3b !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-confidence,
body[data-theme="light"].cr-betting-ai-report-page .crr-confidence,
html.theme-light body.cr-betting-ai-report-page .crr-confidence,
body.theme-light.cr-betting-ai-report-page .crr-confidence,
html.light body.cr-betting-ai-report-page .crr-confidence,
body.light.cr-betting-ai-report-page .crr-confidence {
  background: #f2f5ff !important;
  color: #263047 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page table,
body[data-theme="light"].cr-betting-ai-report-page table,
html.theme-light body.cr-betting-ai-report-page table,
body.theme-light.cr-betting-ai-report-page table,
html.light body.cr-betting-ai-report-page table,
body.light.cr-betting-ai-report-page table {
  background: #ffffff !important;
  color: #111418 !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page th,
body[data-theme="light"].cr-betting-ai-report-page th,
html.theme-light body.cr-betting-ai-report-page th,
body.theme-light.cr-betting-ai-report-page th,
html.light body.cr-betting-ai-report-page th,
body.light.cr-betting-ai-report-page th {
  background: #11151a !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page td,
body[data-theme="light"].cr-betting-ai-report-page td,
html.theme-light body.cr-betting-ai-report-page td,
body.theme-light.cr-betting-ai-report-page td,
html.light body.cr-betting-ai-report-page td,
body.light.cr-betting-ai-report-page td {
  color: #20262d !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
),
body[data-theme="light"].cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
),
html.theme-light body.cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
),
body.theme-light.cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
),
html.light body.cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
),
body.light.cr-betting-ai-report-page .crr-footer :is(
  strong,h2,h3,h4
) {
  color: #ffffff !important;
}

html[data-theme="light"] body.cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
),
body[data-theme="light"].cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
),
html.theme-light body.cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
),
body.theme-light.cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
),
html.light body.cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
),
body.light.cr-betting-ai-report-page .crr-footer :is(
  p,a,span,small
) {
  color: #b8c3ce !important;
}

/* CTR_BETTING_AI_THEME_CONTRAST_V11 */

/*
 * V1.1 restores the intended dark surfaces in light mode and then
 * colours their descendants explicitly. These rules intentionally
 * appear after the broad V1 accessibility rules.
 */

/* ----- Hero and CTA must remain dark in LIGHT mode ----- */

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero {
  background:
    linear-gradient(95deg, rgba(5, 8, 12, .96), rgba(8, 13, 19, .82)),
    radial-gradient(circle at 78% 48%, rgba(38, 154, 204, .20), transparent 34rem),
    #080c11 !important;
  border-color: #20262e !important;
  color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta {
  background: #090d12 !important;
  border-color: #20262e !important;
  color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero :is(
  h1, h2, h3, h4, strong, b
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero :is(
  h1, h2, h3, h4, strong, b
),
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta :is(
  h1, h2, h3, h4, strong, b, p, span
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta :is(
  h1, h2, h3, h4, strong, b, p, span
) {
  color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero-side > p,
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero .crbai-lead,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero-side > p,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero .crbai-lead {
  color: #d8e0e7 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-eyebrow,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-eyebrow {
  color: #b9ff3b !important;
}

/* Remove the large white frame around hero status pills. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status-row,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status-row {
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status {
  background: rgba(255, 255, 255, .065) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  color: #edf2f6 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status * {
  color: inherit !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status strong,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status strong {
  color: #b9ff3b !important;
}

/* Green CTA requires dark lettering. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta :is(
  a,
  .btn,
  .button,
  [role="button"]
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta :is(
  a,
  .btn,
  .button,
  [role="button"]
) {
  color: #0a0d10 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta :is(
  a,
  .btn,
  .button,
  [role="button"]
) *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta :is(
  a,
  .btn,
  .button,
  [role="button"]
) * {
  color: #0a0d10 !important;
}

/* ----- Black interactive controls need white descendants ----- */

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]),
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]) {
  background: #0b1016 !important;
  color: #ffffff !important;
  border-color: #0b1016 !important;
  opacity: 1 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]) *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]) *,
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]) *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]) * {
  color: #ffffff !important;
}

/* Disabled refresh controls remain visibly disabled but readable. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled],
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled] {
  background: #d5d9de !important;
  color: #505963 !important;
  border-color: #c5cbd1 !important;
  opacity: 1 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled] *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled] * {
  color: #505963 !important;
}

/* Availability summary and analysis copy on light cards. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #availability-status,
  #load-status,
  .crbai-load-status,
  .crbai-availability-summary
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #availability-status,
  #load-status,
  .crbai-load-status,
  .crbai-availability-summary
) {
  background: #f7f9fb !important;
  color: #33465a !important;
  border-color: #cdd6df !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page #report :is(
  h1, h2, h3, h4, strong, b
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) #report :is(
  h1, h2, h3, h4, strong, b
) {
  color: #111418 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page #report :is(
  p, li, span, small, div
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) #report :is(
  p, li, span, small, div
) {
  color: #59636d !important;
}

/* CTR_BETTING_AI_LIGHT_ONLY_V12 */

/*
 * Light-only corrections.
 * There are deliberately no selectors for dark mode in this section.
 */

/* ================= HUB: LIGHT THEME ================= */

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero {
  background:
    linear-gradient(95deg, rgba(5, 8, 12, .97), rgba(8, 13, 19, .84)),
    radial-gradient(circle at 78% 48%, rgba(38, 154, 204, .20), transparent 34rem),
    #080c11 !important;
  border-color: #20262e !important;
  color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero h1,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero-side > p,
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-hero .crbai-lead,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero-side > p,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-hero .crbai-lead {
  color: #dce4eb !important;
  -webkit-text-fill-color: #dce4eb !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-eyebrow,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-eyebrow {
  color: #b9ff3b !important;
  -webkit-text-fill-color: #b9ff3b !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status-row,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status-row {
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .20) !important;
  color: #f1f5f8 !important;
  -webkit-text-fill-color: #f1f5f8 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-status strong,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-status strong {
  color: #b9ff3b !important;
  -webkit-text-fill-color: #b9ff3b !important;
}

/* Black sport/league/event buttons. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]) {
  background: #0b1016 !important;
  border-color: #0b1016 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]) *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #sports,
  #leagues,
  #events
) button:not([disabled]) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Refresh buttons. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
):not([disabled]) {
  background: #0b1016 !important;
  border-color: #0b1016 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled],
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  #refresh-events,
  #refresh-available,
  button[id*="refresh"],
  button[data-action*="refresh"]
)[disabled] {
  background: #d4d9de !important;
  border-color: #c3cad1 !important;
  color: #4d5761 !important;
  -webkit-text-fill-color: #4d5761 !important;
  opacity: 1 !important;
}

/* Light analysis card. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page #report,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) #report {
  background: #ffffff !important;
  color: #111418 !important;
  border-color: #d3dae1 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page #report :is(
  h1, h2, h3, h4, strong, b
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) #report :is(
  h1, h2, h3, h4, strong, b
) {
  color: #111418 !important;
  -webkit-text-fill-color: #111418 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page #report :is(
  p, li, span, small, div
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) #report :is(
  p, li, span, small, div
) {
  color: #59636d !important;
  -webkit-text-fill-color: #59636d !important;
}

/* Dark CTA with green action button. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta {
  background: #090d12 !important;
  color: #ffffff !important;
  border-color: #20262e !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta :is(
  h1, h2, h3, p, span, strong
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta :is(
  h1, h2, h3, p, span, strong
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page .crbai-reports-cta :is(
  a, .btn, .button, [role="button"]
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crbai-reports-cta :is(
  a, .btn, .button, [role="button"]
) {
  color: #090d12 !important;
  -webkit-text-fill-color: #090d12 !important;
}

/* Responsible-gambling note must stay readable in light mode. */
:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  .crbai-responsible,
  .responsible-note,
  [class*="responsible"]
),
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  .crbai-responsible,
  .responsible-note,
  [class*="responsible"]
) {
  background: #ebeae5 !important;
  color: #303840 !important;
  -webkit-text-fill-color: #303840 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-page :is(
  .crbai-responsible,
  .responsible-note,
  [class*="responsible"]
) *,
body.cr-betting-ai-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) :is(
  .crbai-responsible,
  .responsible-note,
  [class*="responsible"]
) * {
  color: #303840 !important;
  -webkit-text-fill-color: #303840 !important;
}

/* ================= REPORTS: LIGHT THEME ================= */

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-hero,
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-hero {
  background:
    linear-gradient(95deg, rgba(5, 8, 12, .97), rgba(8, 13, 19, .84)),
    radial-gradient(circle at 79% 46%, rgba(38, 154, 204, .20), transparent 33rem),
    #080c11 !important;
  border-color: #20262e !important;
  color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-hero :is(
  h1, h2, h3, p, span, strong, a
),
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-hero :is(
  h1, h2, h3, p, span, strong, a
) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-kicker,
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-kicker {
  color: #b9ff3b !important;
  -webkit-text-fill-color: #b9ff3b !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-section,
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-section {
  background: #ffffff !important;
  color: #111418 !important;
  border-color: #d6dce2 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-section :is(
  h1, h2, h3, h4, strong, b, dt, dd
),
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-section :is(
  h1, h2, h3, h4, strong, b, dt, dd
) {
  color: #111418 !important;
  -webkit-text-fill-color: #111418 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-section :is(
  p, li, span, small
),
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-section :is(
  p, li, span, small
) {
  color: #59636d !important;
  -webkit-text-fill-color: #59636d !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-confidence,
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-confidence {
  background: #f2f5ff !important;
  color: #263047 !important;
  -webkit-text-fill-color: #263047 !important;
}

:is(
  html[data-theme="light"],
  html.theme-light,
  html.light
) body.cr-betting-ai-report-page .crr-responsible,
body.cr-betting-ai-report-page:is(
  [data-theme="light"],
  .theme-light,
  .light
) .crr-responsible {
  background: #ebeae5 !important;
  color: #303840 !important;
  -webkit-text-fill-color: #303840 !important;
}
