/* Shared light palette. Color-only overrides retain the existing responsive layout
   and cover legacy inline styles and dynamically inserted account UI. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --white: #111111; /* Legacy foreground token. */
  --muted: #62666e;
  --line: #d5d7dc;
  --accent: #111111;
  --violet: #333333;
  --green: #137447;
  --light-text: #111111;
  --light-muted: #62666e;
  --light-surface: #ffffff;
  --light-soft: #f6f6f7;
  --light-border: #d5d7dc;
}
body.theme-light { background: var(--light-surface) !important; color: var(--light-text); }
body.theme-light *, body.theme-light *::before, body.theme-light *::after {
  border-color: var(--light-border) !important;
}
body.theme-light #ai > .ai-card { border-color: #000000 !important; }
body.theme-light :where(.hero h1,.brand b,.eyebrow) {
  background: none !important; -webkit-text-fill-color: currentColor;
  color: var(--light-text) !important;
}
body.theme-light .brand b { color: #686b71 !important; }
body.theme-light :where(.hero .eyebrow,.toplinks a,.pill,.hero p,.muted,.examples,.quota,.beta-note,
.ai-small,.footer,.footer-links button,.ai-disclaimer,.legal-card p,.legal-card li,.plan-list,
.game-status,.score-empty,.score-top .muted,.gc-team,.gc-state,.gc-tab,.gc-statrow.head,.gc-play small,
.gc-trend small,.usage-note,.plan-price small,.pb-status,.lineup-note,.sport-tab,.sport-soon,
.pb-kpi span,.pb-matchup,.pb-statbox span,.pb-research-note,.pb-verified,.cs2-live-source,
.cs2-live-market span,.cs2-live-splits small,.gc-prop-splits small,.assistant-upload-sub,
.assistant-trust,.assistant-game-link,.auth-msg,.auth-user,.stat span,.rate span,.scanner-controls label,
#deepDiveCounter,#cs2ChatMatchups summary span,#nflChatMatchups summary span,#quickPrompts .chip span) {
  color: var(--light-muted) !important;
}
body.theme-light :where(.msg,.msg.ai strong,.msg.ai h4,.juice,.neutral,.date-label,.gc-team b,.gc-empty,
.gc-proprow .gc-market,.gc-proprow .gc-line,.gc-proprow .gc-odds,.pb-player-name,.pb-market-pill,
.pb-line-value,.pb-statbox b,.cs2-live-match,.cs2-live-market b,.cs2-live-splits b,.gc-prop-splits b,
#cs2LiveStatus b,#cs2ChatMatchups summary,#nflChatMatchups summary,.lineup-found-row,.contextbar,.ai-badge) {
  color: var(--light-text) !important;
}
body.theme-light :where(.ask,.card,.ai-card,.ai-head,.msg.ai,.legal-card,.upgrade-box,.lineup-card,
.auth-card,.score-shell,.game-card,.game-center,.gc-hero,.gc-box,.gc-ai,.pb-card,.cs2-live-card,
.pb-locked,.lineup-preview,.assistant-upload,.botmark) {
  background: var(--light-surface) !important;
  box-shadow: none !important;
}
body.theme-light :where(.stat,.prop-card,.msg.ai code,.row.head,.scanrow.head,.teamdot,.gc-tabs,
.gc-trend,.pb-row.head,.pb-lock,.pb-kpi,.pb-statbox,.cs2-live-top,.cs2-live-splits span,
.gc-prop-splits span,.pb-market-pill,.chat-input,.msg.user,.contextbar,.contextbar.on,.ai-badge) {
  background: var(--light-soft) !important;
}
body.theme-light .score-shell::before, body.theme-light .nav::after { background: var(--light-border) !important; }
body.theme-light :where(input,textarea,select,option) {
  color: var(--light-text) !important; background: var(--light-surface) !important;
  accent-color: #111111;
}
body.theme-light :where(input,textarea)::placeholder { color: #696d75 !important; opacity: 1; }
body.theme-light #aiq { background: transparent !important; }
body.theme-light :where(.chip,.mini-btn,.chat-expand,.date-btn,.gc-close,.context-clear,.pb-back,
.cs2-live-actions button,.score-sport-switch button,.gc-sport-switch button,.sport-tab,
.pb-sport-tab,.plan-btn-current,.chat-upload-btn,.pill) {
  color: var(--light-text) !important; background: var(--light-surface) !important; box-shadow: none !important;
}
body.theme-light :where(.sport-switcher,.pb-sport-tabs) { background: transparent !important; }
body.theme-light :where(.btn,.ask button,.feedback-fab,.sport-tab.active,.pb-sport-tab.active,
.score-sport-switch button.active,.gc-sport-switch button.active,.gc-tab.active,.pb-tab.active,
.plan-btn-upgrade) {
  color: #ffffff !important; background: #111111 !important; border-color: #111111 !important; box-shadow: none !important;
}
body.theme-light .sport-live { color: inherit !important; }
body.theme-light #dataStatus { color: #464a51 !important; background: #ffffff !important; }
body.theme-light #chat:not(:has(.msg:not(#aiSportIntro)))::before { color: #111111 !important; }
body.theme-light :where(.chip,.mini-btn,.chat-expand,.date-btn,.gc-close,.context-clear,.pb-back,
.cs2-live-actions button,.sport-tab:not(.active),.pb-sport-tab:not(.active)):hover {
  background: #eeeeef !important; border-color: #93969d !important; color: #111111 !important;
}
body.theme-light :where(.btn,.ask button,.feedback-fab):hover { background: #303030 !important; }
body.theme-light :where(.toplinks a,.footer-links button):hover { color: #111111 !important; }
body.theme-light :where(.game-card,.pb-card,.scanrow):hover,
body.theme-light .game-card.active { background: #f6f6f7 !important; border-color: #93969d !important; box-shadow: none !important; }
body.theme-light :where(.legal-modal,.upgrade-modal,.lineup-modal,.auth-modal) { background: rgb(0 0 0 / 40%) !important; }
body.theme-light :where(.legal-card,.upgrade-box,.lineup-card,.auth-card) { box-shadow: 0 20px 80px rgb(0 0 0 / 15%) !important; }
body.theme-light :where(button,a,summary,input,textarea,select):focus-visible {
  outline: 2px solid #111111 !important; outline-offset: 3px; box-shadow: none !important;
}
body.theme-light button:disabled { opacity: .55; cursor: not-allowed; }
/* Meaningful outcome colors retain their meaning with contrast on white. */
body.theme-light :where(.green,.hit,.rank,.strong,.gc-trend.good strong,.pb-hit-high b,.pb-hit-strong-high b) { color: #137447 !important; }
body.theme-light :where(.weak,.gc-live,.pb-hit-low b,.pb-hit-strong-low b) { color: #b42332 !important; }
body.theme-light .stars { color: #966000 !important; }
body.theme-light :where(.pb-hit-high,.pb-hit-strong-high,.lineup-found-row) { background: #edf8f1 !important; border-color: #9fc9b0 !important; }
body.theme-light :where(.pb-hit-low,.pb-hit-strong-low) { background: #fff1f2 !important; border-color: #e4adb5 !important; }
body.theme-light .pb-hit-neutral b { color: #454950 !important; }
/* Legacy dynamically rendered inline highlights. */
body.theme-light [style*="color:#fff"] { color: #111111 !important; }
body.theme-light [style*="color:#20D98B"] { color: #137447 !important; }
body.theme-light [style*="color:#ffb020"] { color: #966000 !important; }
body.theme-light [style*="background:linear-gradient(180deg,#12182a"] { background: #ffffff !important; }
body.theme-light .botmark svg [stroke]:not([stroke="none"]) { stroke: #111111; }
body.theme-light .botmark svg [fill]:not([fill="none"]) { fill: #111111; }

body.theme-light .sport-tab.active .sport-soon { color: #ffffff !important; }
body.theme-light .toplinks a { background: transparent !important; }
body.theme-light .cs2-live-source { background: #f6f6f7 !important; }
body.theme-light .pb-row.head { color: var(--light-muted) !important; }
/* Preserve live split outcomes set by cs2SplitColor(). CSSOM serializes RGB
   with spaces; the compact selector also supports server/template markup. */
body.theme-light :where(.cs2-live-splits,.gc-prop-splits) span:where([style*="34, 197, 94"],[style*="34,197,94"]) {
  background: #edf8f1 !important; border-color: #9fc9b0 !important; box-shadow: none !important;
}
body.theme-light :where(.cs2-live-splits,.gc-prop-splits) span:where([style*="34, 197, 94"],[style*="34,197,94"]) b { color: #137447 !important; }
body.theme-light :where(.cs2-live-splits,.gc-prop-splits) span:where([style*="239, 68, 68"],[style*="239,68,68"]) {
  background: #fff1f2 !important; border-color: #e4adb5 !important; box-shadow: none !important;
}
body.theme-light :where(.cs2-live-splits,.gc-prop-splits) span:where([style*="239, 68, 68"],[style*="239,68,68"]) b { color: #b42332 !important; }
body.theme-light :where(.cs2-live-market b,.pb-line-value) { text-shadow: none !important; }

/* Centered, bold headings and distinct customer/assistant chat bubbles. */
body.theme-light :where(h1,h2,h3,h4,h5,h6,.ai-title) {
  text-align: center;
  font-weight: 800;
}
/* Keep the title bold over its legacy home rule without raising every heading. */
body.ai-first-home.theme-light .ai-title { font-weight: 800; }
body.ai-first-home.theme-light #chat:not(:has(.msg:not(#aiSportIntro)))::before {
  font-weight: 800;
}
/* The navigation and research strapline are labels, not semantic headings.
   Target both explicitly, after muted-text rules, for visible emphasis. */
body.ai-first-home.theme-light .toplinks a,
body.ai-first-home.theme-light .hero .eyebrow {
  font-weight: 900;
  color: var(--light-text) !important;
}
body.ai-first-home.theme-light .hero .eyebrow {
  font-size: 12px;
}
body.theme-light #chat .msg.user {
  background: #2563eb !important;
  color: #ffffff !important;
}
body.theme-light #chat .msg.ai {
  background: #f1f3f5 !important;
  font-weight: 600;
}
body.theme-light #chat .msg.ai :where(strong,b) {
  font-weight: 800;
}
body.ai-first-home.theme-light #chat .msg.ai {
  padding: 16px 20px;
}
@media (max-width: 760px) {
  body.ai-first-home.theme-light #chat .msg.ai { padding: 12px 14px; }
}
