/*
 * Padel Stats — modo automático claro aislado.
 * Esta hoja se carga después del tema histórico y solo actúa cuando el
 * dispositivo está en claro. No altera lógica, contenido ni otros temas.
 */
html[data-theme="auto-light"] {
  color-scheme: light;
  --al-ink: #172033;
  --al-muted: #536176;
  --al-soft: #718096;
  --al-line: #c7d2e2;
  --al-line-strong: #aebdd1;
  --al-page: #f3f6fb;
  --al-card: #ffffff;
  --al-card-blue: #eef4ff;
  --al-card-green: #eaf8f1;
  --al-card-orange: #fff1e7;
  --al-card-purple: #f3edff;
  --al-blue: #326ff0;
  --al-purple: #7449e8;
  --al-green: #12865a;
  --al-orange: #dc651d;
  --al-pink: #c92f70;
}

html[data-theme="auto-light"] body,
html[data-theme="auto-light"] body #app-shell,
html[data-theme="auto-light"] body .league-home {
  color: var(--al-ink) !important;
  background-color: var(--al-page) !important;
  background-image:
    radial-gradient(circle at 88% 5%, rgba(116, 73, 232, .12), transparent 25rem),
    radial-gradient(circle at 4% 36%, rgba(18, 134, 90, .09), transparent 28rem),
    radial-gradient(circle at 92% 76%, rgba(220, 101, 29, .09), transparent 26rem),
    linear-gradient(145deg, #fbfdff, #f1f6fb 55%, #f8f5fc) !important;
}

/* Texto: primero una base legible; los controles de color se afinan después. */
html[data-theme="auto-light"] body #app-shell,
html[data-theme="auto-light"] body #app-shell :where(h1,h2,h3,h4,h5,h6,p,span,small,strong,b,label,legend,li,td,th),
html[data-theme="auto-light"] body .league-home,
html[data-theme="auto-light"] body .league-home :where(h1,h2,h3,h4,p,span,small,strong,b,label) {
  text-shadow: none !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,.player-name,.team-name,.league-title,.ranking-name,.metric-value,.summary-value),
html[data-theme="auto-light"] body .league-home :where(h1,h2,h3,h4,strong,b,label) {
  color: var(--al-ink) !important;
  -webkit-text-fill-color: var(--al-ink) !important;
}
html[data-theme="auto-light"] body #app-shell :where(p,small,.muted,.subtitle,.section-copy,.card-copy,.league-meta,.league-subtitle,.helper-text,.profile-copy,.metric-copy,.summary-copy),
html[data-theme="auto-light"] body .league-home :where(p,small,.muted,.subtitle,.league-meta) {
  color: var(--al-muted) !important;
  -webkit-text-fill-color: var(--al-muted) !important;
}
html[data-theme="auto-light"] body #app-shell :where(.eyebrow,.section-kicker,.kicker),
html[data-theme="auto-light"] body .league-home :where(.eyebrow,.section-kicker,.kicker) {
  color: #2878a8 !important;
  -webkit-text-fill-color: #2878a8 !important;
}

/* Cabeceras y tarjetas opacas: elimina el blanco translúcido que borraba el contenido. */
html[data-theme="auto-light"] body #app-shell :where(.hero,.page-hero,.screen-header,.league-header),
html[data-theme="auto-light"] body .league-home :where(.home-hero,.league-home-head) {
  color: var(--al-ink) !important;
  border-color: var(--al-line) !important;
  background: linear-gradient(135deg, #ffffff 0%, #edf3ff 58%, #f2ecff 100%) !important;
  box-shadow: 0 14px 34px rgba(35, 52, 82, .12) !important;
}
html[data-theme="auto-light"] body #app-shell .hero :where(h1,h2,p,span),
html[data-theme="auto-light"] body .league-home .home-hero :where(h1,h2,p,span) {
  color: var(--al-ink) !important;
  -webkit-text-fill-color: var(--al-ink) !important;
}
html[data-theme="auto-light"] body #app-shell :where(.panel,.card,.section-card,.glass-card,.league-card,.players-card,.day-card,.ranking-card,.summary-card,.metric-card,.stat-card,.profile-card,.account-card,.experience-card,.admin-card,.map-card,.versus-card,.history-card,.league-event-card,.calendar-create-card,.league-month-calendar,.compare-box,.compare-result,.standings-summary,.standings-toolbar,.match-panel,.match-card,.active-summary),
html[data-theme="auto-light"] body .league-home :where(.league-home-panel,.league-card,.home-card) {
  color: var(--al-ink) !important;
  border-color: var(--al-line) !important;
  background: var(--al-card) !important;
  box-shadow: 0 12px 30px rgba(35, 52, 82, .10) !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell .tab-page > :where(section,article,div.panel):nth-child(4n+1) { background: linear-gradient(145deg, var(--al-card-blue), #fff 72%) !important; }
html[data-theme="auto-light"] body #app-shell .tab-page > :where(section,article,div.panel):nth-child(4n+2) { background: linear-gradient(145deg, var(--al-card-green), #fff 72%) !important; }
html[data-theme="auto-light"] body #app-shell .tab-page > :where(section,article,div.panel):nth-child(4n+3) { background: linear-gradient(145deg, var(--al-card-orange), #fff 72%) !important; }
html[data-theme="auto-light"] body #app-shell .tab-page > :where(section,article,div.panel):nth-child(4n) { background: linear-gradient(145deg, var(--al-card-purple), #fff 72%) !important; }

/* Campos y filas. */
html[data-theme="auto-light"] body #app-shell :where(input,select,textarea),
html[data-theme="auto-light"] body .league-home :where(input,select,textarea) {
  color: var(--al-ink) !important;
  -webkit-text-fill-color: var(--al-ink) !important;
  caret-color: var(--al-blue) !important;
  border: 1px solid var(--al-line-strong) !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(35, 52, 82, .06) !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell :where(input,textarea)::placeholder,
html[data-theme="auto-light"] body .league-home :where(input,textarea)::placeholder {
  color: #69768a !important;
  -webkit-text-fill-color: #69768a !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell :where(.player-chip,.player-row,.member-row,.ranking-row,.standing-row,.history-row,.event-row,.setting-row,.profile-row,.league-list-item),
html[data-theme="auto-light"] body .league-home :where(.league-row,.league-list-item) {
  color: var(--al-ink) !important;
  border-color: var(--al-line) !important;
  background: #f8fafd !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell .players-list > :nth-child(4n+1) { background: var(--al-card-blue) !important; }
html[data-theme="auto-light"] body #app-shell .players-list > :nth-child(4n+2) { background: var(--al-card-green) !important; }
html[data-theme="auto-light"] body #app-shell .players-list > :nth-child(4n+3) { background: var(--al-card-orange) !important; }
html[data-theme="auto-light"] body #app-shell .players-list > :nth-child(4n) { background: var(--al-card-purple) !important; }

/* Botones: nunca texto blanco sobre blanco. */
html[data-theme="auto-light"] body #app-shell button,
html[data-theme="auto-light"] body #app-shell .button,
html[data-theme="auto-light"] body .league-home button,
html[data-theme="auto-light"] body .league-home .button {
  color: #233149 !important;
  -webkit-text-fill-color: #233149 !important;
  border-color: #b7c5d8 !important;
  background: #e9eff8 !important;
  opacity: 1 !important;
}
html[data-theme="auto-light"] body #app-shell :where(.primary-button,.accent-button,.league-add-button,.add-player button,.normal-submit,button[type="submit"]:not(:disabled)),
html[data-theme="auto-light"] body .league-home :where(.primary-button,.home-primary-button,.league-create-button) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #3478f6, #654ee6) !important;
  box-shadow: 0 10px 24px rgba(61, 94, 220, .24) !important;
}
html[data-theme="auto-light"] body #app-shell button:disabled,
html[data-theme="auto-light"] body #app-shell .button:disabled,
html[data-theme="auto-light"] body .league-home button:disabled {
  color: #667388 !important;
  -webkit-text-fill-color: #667388 !important;
  border-color: #cbd4e1 !important;
  background: #e3e8f0 !important;
  box-shadow: none !important;
  opacity: .78 !important;
}
html[data-theme="auto-light"] body #app-shell :where(.back-button,.league-switch-button,.league-top-menu,.more-button,.modal-close,.close-button,.header-action,.remove-player) {
  color: #26344b !important;
  -webkit-text-fill-color: #26344b !important;
  border-color: #b5c4d8 !important;
  background: #e5ecf6 !important;
}

/* Navegación principal: barra y cinco accesos siempre visibles. */
html[data-theme="auto-light"] body #app-shell .tabs,
html[data-theme="auto-light"] body #app-shell .league-bottom-nav,
html[data-theme="auto-light"] body .league-home .league-bottom-nav {
  border: 1px solid #aebed5 !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(31, 49, 78, .22) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button {
  border-color: transparent !important;
  box-shadow: none !important;
}
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button):nth-child(5n+1),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button:nth-child(4n+1) { color: #245fd3 !important; -webkit-text-fill-color:#245fd3 !important; background:#e2ecff !important; }
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button):nth-child(5n+2),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button:nth-child(4n+2) { color: #6c35d2 !important; -webkit-text-fill-color:#6c35d2 !important; background:#eee4ff !important; }
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button):nth-child(5n+3),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button:nth-child(4n+3) { color: #087848 !important; -webkit-text-fill-color:#087848 !important; background:#dcf4e7 !important; }
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button):nth-child(5n+4),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button:nth-child(4n) { color: #bf4a05 !important; -webkit-text-fill-color:#bf4a05 !important; background:#ffe7d6 !important; }
html[data-theme="auto-light"] body #app-shell :where(.tab-button,.league-bottom-nav button):nth-child(5n+5) { color: #ad1f5c !important; -webkit-text-fill-color:#ad1f5c !important; background:#ffe1ed !important; }
html[data-theme="auto-light"] body #app-shell :where(.tab-button.active,.league-bottom-nav button.active),
html[data-theme="auto-light"] body .league-home .league-bottom-nav button.active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #3478f6, #654ee6) !important;
  box-shadow: 0 8px 20px rgba(61, 94, 220, .25) !important;
}
html[data-theme="auto-light"] body :where(.tabs,.league-bottom-nav) button :where(svg,path,line,circle,polyline) {
  color: currentColor !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* Subpestañas y tablas. */
html[data-theme="auto-light"] body #app-shell :where(.subtabs,.segmented-control) { border-color:var(--al-line) !important; background:#eef3fa !important; }
html[data-theme="auto-light"] body #app-shell :where(.subtab-button,.segmented-control button) { color:#334158 !important; -webkit-text-fill-color:#334158 !important; background:transparent !important; }
html[data-theme="auto-light"] body #app-shell :where(.subtab-button.active,.segmented-control button.active) { color:#fff !important; -webkit-text-fill-color:#fff !important; background:linear-gradient(135deg,#3478f6,#654ee6) !important; }
html[data-theme="auto-light"] body #app-shell :where(table,thead,tbody,tr,th,td) { color:var(--al-ink) !important; border-color:var(--al-line) !important; opacity:1 !important; }
html[data-theme="auto-light"] body #app-shell thead :where(th,td) { color:#334158 !important; background:#e5edf8 !important; }
html[data-theme="auto-light"] body #app-shell tbody tr:nth-child(odd) > * { background:#fff !important; }
html[data-theme="auto-light"] body #app-shell tbody tr:nth-child(even) > * { background:#edf3ff !important; }

/* Calendario legible en claro. */
html[data-theme="auto-light"] body #app-shell .league-month-calendar { background:linear-gradient(145deg,#fff,#f3f0ff) !important; border-color:#b9c4df !important; }
html[data-theme="auto-light"] body #app-shell .league-calendar-day { color:#26344a !important; -webkit-text-fill-color:#26344a !important; border-color:#c4cfdf !important; background:#f7f9fd !important; }
html[data-theme="auto-light"] body #app-shell .league-calendar-day.is-past { color:#8993a2 !important; -webkit-text-fill-color:#8993a2 !important; background:#e3e7ed !important; filter:none !important; opacity:.72 !important; }
html[data-theme="auto-light"] body #app-shell .league-calendar-day.is-selected:not(.is-past) { color:#fff !important; -webkit-text-fill-color:#fff !important; border-color:#87a9ff !important; background:linear-gradient(145deg,#6c94f7,#486fdf) !important; }
html[data-theme="auto-light"] body #app-shell .league-calendar-day.has-events:not(.is-past) { color:#fff !important; -webkit-text-fill-color:#fff !important; border-color:#ffab72 !important; background:linear-gradient(145deg,#f68a3e,#d85943) !important; }

/* Modales y ajustes: el backdrop sigue oscuro, la tarjeta es clara y sólida. */
html[data-theme="auto-light"] body :where(.modal-backdrop,.global-settings-backdrop,.dialog-backdrop,.sheet-backdrop) { background:rgba(20,29,44,.68) !important; backdrop-filter:blur(12px) !important; }
html[data-theme="auto-light"] body :where(.modal-card,.player-modal-card,.global-settings-sheet,.dialog-card,.sheet-card,.modal-content,.dialog-content,.sheet-content) {
  color:var(--al-ink) !important;
  border-color:#b7c5d8 !important;
  background:#fff !important;
  box-shadow:0 24px 70px rgba(19,31,51,.30) !important;
}
html[data-theme="auto-light"] body :where(.modal-card,.player-modal-card,.global-settings-sheet,.dialog-card,.sheet-card) :where(h1,h2,h3,h4,strong,b,label,legend) { color:var(--al-ink) !important; -webkit-text-fill-color:var(--al-ink) !important; }
html[data-theme="auto-light"] body :where(.modal-card,.player-modal-card,.global-settings-sheet,.dialog-card,.sheet-card) :where(p,small,.muted) { color:var(--al-muted) !important; -webkit-text-fill-color:var(--al-muted) !important; }
html[data-theme="auto-light"] body .global-settings-sheet .theme-choice { color:var(--al-ink) !important; -webkit-text-fill-color:var(--al-ink) !important; border-color:#b9c7da !important; background:#f7f9fd !important; }
html[data-theme="auto-light"] body .global-settings-sheet .theme-choice:nth-child(1) { background:linear-gradient(135deg,#edf2fb,#fff) !important; }
html[data-theme="auto-light"] body .global-settings-sheet .theme-choice:nth-child(2) { background:linear-gradient(135deg,#ddecff,#f6faff) !important; }
html[data-theme="auto-light"] body .global-settings-sheet .theme-choice:nth-child(3) { background:linear-gradient(135deg,#dcf4e7,#f8fffb) !important; }
html[data-theme="auto-light"] body .global-settings-sheet .theme-choice:nth-child(4) { background:linear-gradient(135deg,#ffe5d2,#fff9f5) !important; }

/* SVG/gráficas: rejillas visibles y colores conservados. */
html[data-theme="auto-light"] body #app-shell :where(.chart-grid,.radar-grid) { stroke:#bac6d8 !important; opacity:1 !important; }
html[data-theme="auto-light"] body #app-shell :where(.chart-label,.radar-label) { fill:#435169 !important; color:#435169 !important; }

@media (max-width: 720px) {
  html[data-theme="auto-light"] body #app-shell :where(.hero,.page-hero,.screen-header,.league-header) { background:linear-gradient(160deg,#fff,#edf2ff 72%,#f3edff) !important; }
  html[data-theme="auto-light"] body #app-shell .tabs,
  html[data-theme="auto-light"] body #app-shell .league-bottom-nav,
  html[data-theme="auto-light"] body .league-home .league-bottom-nav { background:#fff !important; border-color:#aabbd2 !important; }
}

/* ================================================================
   CAPA FINAL AUTORITATIVA — AUTOMÁTICO / CLARO
   Debe permanecer al final: neutraliza colores oscuros heredados que
   usan !important sin modificar los tres temas deportivos ni el modo
   automático oscuro.
   ================================================================ */
html[data-theme="auto-light"] body,
html[data-theme="auto-light"] body #app-shell.app-shell,
html[data-theme="auto-light"] body #league-home.league-home {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background-color:#f4f7fb !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell h1,
html[data-theme="auto-light"] body #app-shell.app-shell h2,
html[data-theme="auto-light"] body #app-shell.app-shell h3,
html[data-theme="auto-light"] body #app-shell.app-shell h4,
html[data-theme="auto-light"] body #app-shell.app-shell strong,
html[data-theme="auto-light"] body #app-shell.app-shell label,
html[data-theme="auto-light"] body #league-home.league-home h1,
html[data-theme="auto-light"] body #league-home.league-home h2,
html[data-theme="auto-light"] body #league-home.league-home h3,
html[data-theme="auto-light"] body #league-home.league-home strong,
html[data-theme="auto-light"] body #league-home.league-home label {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  text-shadow:none !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell p,
html[data-theme="auto-light"] body #app-shell.app-shell small,
html[data-theme="auto-light"] body #league-home.league-home p,
html[data-theme="auto-light"] body #league-home.league-home small {
  color:#526078 !important;
  -webkit-text-fill-color:#526078 !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .section-kicker,
html[data-theme="auto-light"] body #app-shell.app-shell .eyebrow,
html[data-theme="auto-light"] body #app-shell.app-shell .kicker,
html[data-theme="auto-light"] body #league-home.league-home .section-kicker,
html[data-theme="auto-light"] body #league-home.league-home .eyebrow {
  color:#2664c8 !important;
  -webkit-text-fill-color:#2664c8 !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .page-hero,
html[data-theme="auto-light"] body #app-shell.app-shell .screen-header,
html[data-theme="auto-light"] body #app-shell.app-shell .league-header,
html[data-theme="auto-light"] body #league-home.league-home .home-hero,
html[data-theme="auto-light"] body #league-home.league-home .league-home-head {
  background:linear-gradient(145deg,#ffffff 5%,#eef3ff 58%,#f1eaff 100%) !important;
  border-color:#b9c7db !important;
  box-shadow:0 18px 38px rgba(49,71,110,.12) !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .page-hero p,
html[data-theme="auto-light"] body #app-shell.app-shell .screen-header p,
html[data-theme="auto-light"] body #app-shell.app-shell .league-header p,
html[data-theme="auto-light"] body #league-home.league-home .home-hero p {
  color:#4c5970 !important;
  -webkit-text-fill-color:#4c5970 !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell section,
html[data-theme="auto-light"] body #app-shell.app-shell article,
html[data-theme="auto-light"] body #app-shell.app-shell .panel,
html[data-theme="auto-light"] body #app-shell.app-shell .card,
html[data-theme="auto-light"] body #app-shell.app-shell .section-card,
html[data-theme="auto-light"] body #app-shell.app-shell .glass-card,
html[data-theme="auto-light"] body #app-shell.app-shell .players-card,
html[data-theme="auto-light"] body #app-shell.app-shell .ranking-card,
html[data-theme="auto-light"] body #app-shell.app-shell .history-card,
html[data-theme="auto-light"] body #app-shell.app-shell .versus-card,
html[data-theme="auto-light"] body #app-shell.app-shell .calendar-create-card,
html[data-theme="auto-light"] body #app-shell.app-shell .league-month-calendar,
html[data-theme="auto-light"] body #league-home.league-home .league-home-panel,
html[data-theme="auto-light"] body #league-home.league-home .league-card {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  border-color:#c3cede !important;
  box-shadow:0 12px 28px rgba(48,66,99,.10) !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > section:nth-of-type(4n+1),
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > article:nth-of-type(4n+1) { background:linear-gradient(145deg,#edf4ff,#ffffff 78%) !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > section:nth-of-type(4n+2),
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > article:nth-of-type(4n+2) { background:linear-gradient(145deg,#e9f8f0,#ffffff 78%) !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > section:nth-of-type(4n+3),
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > article:nth-of-type(4n+3) { background:linear-gradient(145deg,#fff0e4,#ffffff 78%) !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > section:nth-of-type(4n),
html[data-theme="auto-light"] body #app-shell.app-shell .tab-page > article:nth-of-type(4n) { background:linear-gradient(145deg,#f2edff,#ffffff 78%) !important; }

html[data-theme="auto-light"] body #app-shell.app-shell input,
html[data-theme="auto-light"] body #app-shell.app-shell select,
html[data-theme="auto-light"] body #app-shell.app-shell textarea,
html[data-theme="auto-light"] body #league-home.league-home input,
html[data-theme="auto-light"] body #league-home.league-home select,
html[data-theme="auto-light"] body #league-home.league-home textarea {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background:#f8faff !important;
  border-color:#aebdd2 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell input::placeholder,
html[data-theme="auto-light"] body #app-shell.app-shell textarea::placeholder,
html[data-theme="auto-light"] body #league-home.league-home input::placeholder {
  color:#68758a !important;
  -webkit-text-fill-color:#68758a !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell button,
html[data-theme="auto-light"] body #league-home.league-home button {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  border-color:#aebdd2 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell button[type="submit"]:not(:disabled),
html[data-theme="auto-light"] body #app-shell.app-shell .primary-button,
html[data-theme="auto-light"] body #app-shell.app-shell .accent-button,
html[data-theme="auto-light"] body #league-home.league-home .home-primary-action,
html[data-theme="auto-light"] body #league-home.league-home .home-secondary-action {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(135deg,#3478f6,#704be8) !important;
  border-color:transparent !important;
  box-shadow:0 10px 22px rgba(69,91,214,.22) !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell button:disabled,
html[data-theme="auto-light"] body #league-home.league-home button:disabled {
  color:#657186 !important;
  -webkit-text-fill-color:#657186 !important;
  background:#dfe5ed !important;
  border-color:#c5cfdb !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .player-row,
html[data-theme="auto-light"] body #app-shell.app-shell .player-chip,
html[data-theme="auto-light"] body #app-shell.app-shell .member-row,
html[data-theme="auto-light"] body #app-shell.app-shell .ranking-row,
html[data-theme="auto-light"] body #app-shell.app-shell .standing-row,
html[data-theme="auto-light"] body #app-shell.app-shell .history-row,
html[data-theme="auto-light"] body #app-shell.app-shell .event-row,
html[data-theme="auto-light"] body #league-home.league-home .league-row,
html[data-theme="auto-light"] body #league-home.league-home .league-list-item {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background:#fff !important;
  border-color:#b9c7da !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell table,
html[data-theme="auto-light"] body #app-shell.app-shell th,
html[data-theme="auto-light"] body #app-shell.app-shell td {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  border-color:#c4cfdd !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell thead th { background:#dfe9f8 !important; }
html[data-theme="auto-light"] body #app-shell.app-shell tbody tr:nth-child(odd) > * { background:#fff !important; }
html[data-theme="auto-light"] body #app-shell.app-shell tbody tr:nth-child(even) > * { background:#eef4ff !important; }

html[data-theme="auto-light"] body #app-shell.app-shell .league-calendar-day {
  color:#233149 !important;
  -webkit-text-fill-color:#233149 !important;
  background:#f5f8fd !important;
  border-color:#bcc9da !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell .league-calendar-day.is-past {
  color:#7b8799 !important;
  -webkit-text-fill-color:#7b8799 !important;
  background:#e2e7ee !important;
  opacity:.78 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell .league-calendar-day.is-selected:not(.is-past) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(145deg,#638cf2,#4568d4) !important;
  border-color:#315ac2 !important;
  box-shadow:0 7px 16px rgba(52,89,190,.27) !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell .league-calendar-day.has-events:not(.is-past) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(145deg,#ff8b3d,#d75243) !important;
  border-color:#c84538 !important;
  box-shadow:0 7px 16px rgba(200,74,49,.25) !important;
}

html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav,
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav {
  background:#ffffff !important;
  border-color:#aebdd2 !important;
  box-shadow:0 12px 30px rgba(37,54,86,.18) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button,
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button {
  background:#edf2fa !important;
  color:#26354c !important;
  -webkit-text-fill-color:#26354c !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button:nth-child(5n+1),
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button:nth-child(4n+1) { background:#e1ebff !important; color:#245fd3 !important; -webkit-text-fill-color:#245fd3 !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button:nth-child(5n+2),
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button:nth-child(4n+2) { background:#eee4ff !important; color:#6a39ca !important; -webkit-text-fill-color:#6a39ca !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button:nth-child(5n+3),
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button:nth-child(4n+3) { background:#dcf4e7 !important; color:#087848 !important; -webkit-text-fill-color:#087848 !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button:nth-child(5n+4),
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button:nth-child(4n) { background:#ffe7d6 !important; color:#b74406 !important; -webkit-text-fill-color:#b74406 !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button:nth-child(5n+5) { background:#ffe1ed !important; color:#a91d59 !important; -webkit-text-fill-color:#a91d59 !important; }
html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav button.active,
html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav button.active {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(135deg,#3478f6,#6d4de0) !important;
  box-shadow:0 7px 16px rgba(57,82,184,.24) !important;
}
html[data-theme="auto-light"] body .league-bottom-nav button svg,
html[data-theme="auto-light"] body .league-bottom-nav button svg * {
  color:currentColor !important;
  stroke:currentColor !important;
  fill:none !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body .global-settings-backdrop,
html[data-theme="auto-light"] body .modal-backdrop,
html[data-theme="auto-light"] body .dialog-backdrop,
html[data-theme="auto-light"] body .sheet-backdrop {
  background:rgba(18,27,43,.68) !important;
  backdrop-filter:blur(12px) !important;
}
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet,
html[data-theme="auto-light"] body .modal-card,
html[data-theme="auto-light"] body .dialog-card,
html[data-theme="auto-light"] body .sheet-card {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background:linear-gradient(155deg,#fff,#eef3ff) !important;
  border-color:#b6c4d7 !important;
}
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet h2,
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet h3,
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet strong,
html[data-theme="auto-light"] body .modal-card h2,
html[data-theme="auto-light"] body .modal-card h3 {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
}
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet p,
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet small,
html[data-theme="auto-light"] body .modal-card p,
html[data-theme="auto-light"] body .modal-card small {
  color:#526078 !important;
  -webkit-text-fill-color:#526078 !important;
}
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet .global-theme-card {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  border-color:#aebdd2 !important;
  background:#f7f9fd !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet .global-theme-card:nth-child(1) { background:linear-gradient(135deg,#f0f3f8,#fff) !important; }
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet .global-theme-card:nth-child(2) { background:linear-gradient(135deg,#dceaff,#f7faff) !important; }
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet .global-theme-card:nth-child(3) { background:linear-gradient(135deg,#dff5e8,#f8fffb) !important; }
html[data-theme="auto-light"] body .global-settings-sheet.global-settings-sheet .global-theme-card:nth-child(4) { background:linear-gradient(135deg,#ffe5d2,#fff9f5) !important; }

@media (max-width:720px) {
  html[data-theme="auto-light"] body #app-shell.app-shell .league-bottom-nav,
  html[data-theme="auto-light"] body #league-home.league-home .league-bottom-nav {
    background:#ffffff !important;
    border-color:#aebdd2 !important;
  }
}

/* Auto-light vivid release layer: opaque and colourful without affecting other themes. */
html[data-theme="auto-light"] body[data-theme="auto-light"] {
  background:radial-gradient(circle at 10% 8%,#c8e0ff 0 22%,transparent 47%),radial-gradient(circle at 92% 18%,#ead5ff 0 20%,transparent 46%),radial-gradient(circle at 20% 92%,#c9f2df 0 18%,transparent 44%),linear-gradient(145deg,#eef5ff,#fff2e8 54%,#f1e8ff) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.tab-page,.compare-result,.compare-bars,.compare-insights,.compare-timeline) {filter:none !important;backdrop-filter:none !important;opacity:1 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.hero,.compare-hero) {background:linear-gradient(135deg,#c9e1ff 0%,#ddd8ff 48%,#f2cff1 100%) !important;border-color:#8caee0 !important;box-shadow:0 18px 38px rgba(54,89,142,.18) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+1) {background:linear-gradient(145deg,#bcd8ff,#d7e7ff) !important;border-color:#78a5e4 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+2) {background:linear-gradient(145deg,#b9ebd0,#d8f5e4) !important;border-color:#69bd92 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+3) {background:linear-gradient(145deg,#ffd2ae,#ffe7d3) !important;border-color:#e89a60 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n) {background:linear-gradient(145deg,#d6c2ff,#eadfff) !important;border-color:#a17bdf !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+1) {background:#c8ddff !important;border-color:#79a4e2 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+2) {background:#c6efd9 !important;border-color:#6fbd94 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+3) {background:#ffddc1 !important;border-color:#eaa06a !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n) {background:#dfceff !important;border-color:#a488df !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-track {background:#aebed1 !important;border-color:#8ea3ba !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-a {background:linear-gradient(90deg,#176ce8,#3898ff) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-b {background:linear-gradient(90deg,#7139d8,#a55bea) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+1) {background:linear-gradient(135deg,#9dccff,#c7ddff) !important;border-color:#6099dc !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+2) {background:linear-gradient(135deg,#a5e5c2,#c8f0d9) !important;border-color:#58ad80 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+3) {background:linear-gradient(135deg,#ffc692,#ffe0bd) !important;border-color:#df8d45 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n) {background:linear-gradient(135deg,#c8adfa,#e3d2ff) !important;border-color:#9169d3 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+1) {background:linear-gradient(100deg,#bcd8ff,#e2edff) !important;border-color:#78a5e4 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+2) {background:linear-gradient(100deg,#b9ebd0,#def5e8) !important;border-color:#69bd92 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+3) {background:linear-gradient(100deg,#ffd2ae,#ffead9) !important;border-color:#e89a60 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+4) {background:linear-gradient(100deg,#d6c2ff,#eee5ff) !important;border-color:#a17bdf !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n) {background:linear-gradient(100deg,#ffc7d7,#ffe5ec) !important;border-color:#db819d !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs {background:linear-gradient(135deg,#d5e7ff,#e6dcff) !important;border-color:#91add1 !important;box-shadow:0 12px 28px rgba(45,79,125,.17) !important;}

/* Auto-light vivid release layer: fully opaque, colourful surfaces. */
html[data-theme="auto-light"] body[data-theme="auto-light"] {
  background:
    radial-gradient(circle at 10% 8%,#c8e0ff 0 22%,transparent 47%),
    radial-gradient(circle at 92% 18%,#ead5ff 0 20%,transparent 46%),
    radial-gradient(circle at 20% 92%,#c9f2df 0 18%,transparent 44%),
    linear-gradient(145deg,#eef5ff,#fff2e8 54%,#f1e8ff) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.tab-page,.compare-result,.compare-bars,.compare-insights,.compare-timeline) {
  filter:none !important;
  backdrop-filter:none !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.hero,.compare-hero) {
  background:linear-gradient(135deg,#c9e1ff 0%,#ddd8ff 48%,#f2cff1 100%) !important;
  border-color:#8caee0 !important;
  box-shadow:0 18px 38px rgba(54,89,142,.18) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+1) {background:linear-gradient(145deg,#bcd8ff,#d7e7ff) !important;border-color:#78a5e4 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+2) {background:linear-gradient(145deg,#b9ebd0,#d8f5e4) !important;border-color:#69bd92 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n+3) {background:linear-gradient(145deg,#ffd2ae,#ffe7d3) !important;border-color:#e89a60 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-cards > :nth-child(4n) {background:linear-gradient(145deg,#d6c2ff,#eadfff) !important;border-color:#a17bdf !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+1) {background:#c8ddff !important;border-color:#79a4e2 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+2) {background:#c6efd9 !important;border-color:#6fbd94 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+3) {background:#ffddc1 !important;border-color:#eaa06a !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n) {background:#dfceff !important;border-color:#a488df !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-track {background:#aebed1 !important;border-color:#8ea3ba !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-a {background:linear-gradient(90deg,#176ce8,#3898ff) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-b {background:linear-gradient(90deg,#7139d8,#a55bea) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+1) {background:linear-gradient(135deg,#9dccff,#c7ddff) !important;border-color:#6099dc !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+2) {background:linear-gradient(135deg,#a5e5c2,#c8f0d9) !important;border-color:#58ad80 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+3) {background:linear-gradient(135deg,#ffc692,#ffe0bd) !important;border-color:#df8d45 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n) {background:linear-gradient(135deg,#c8adfa,#e3d2ff) !important;border-color:#9169d3 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+1) {background:linear-gradient(100deg,#bcd8ff,#e2edff) !important;border-color:#78a5e4 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+2) {background:linear-gradient(100deg,#b9ebd0,#def5e8) !important;border-color:#69bd92 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+3) {background:linear-gradient(100deg,#ffd2ae,#ffead9) !important;border-color:#e89a60 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+4) {background:linear-gradient(100deg,#d6c2ff,#eee5ff) !important;border-color:#a17bdf !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n) {background:linear-gradient(100deg,#ffc7d7,#ffe5ec) !important;border-color:#db819d !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs {
  background:linear-gradient(135deg,#d5e7ff,#e6dcff) !important;
  border-color:#91add1 !important;
  box-shadow:0 12px 28px rgba(45,79,125,.17) !important;
}

/* Automatic light — authoritative release layer.
   This block intentionally wins over the legacy themed bundle. */
html[data-theme="auto-light"] body[data-theme="auto-light"] {
  --al-ink:#182033;
  --al-muted:#526078;
  --al-line:#b9c7da;
  --al-surface:#ffffff;
  --al-blue:#3478f6;
  --al-violet:#7651e8;
  --al-green:#149b62;
  --al-orange:#ef6c18;
  --al-pink:#c93778;
  color:var(--al-ink) !important;
  background:linear-gradient(155deg,#f7f9fd 0%,#eef5fb 48%,#f8f4ff 100%) fixed !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell,
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home {
  color:var(--al-ink) !important;
  -webkit-text-fill-color:var(--al-ink) !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,li,td,th,dt,dd),
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,li,td,th,dt,dd) {
  color:var(--al-ink) !important;
  -webkit-text-fill-color:var(--al-ink) !important;
  text-shadow:none !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(p,small),
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home :where(p,small) {
  color:var(--al-muted) !important;
  -webkit-text-fill-color:var(--al-muted) !important;
  text-shadow:none !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.eyebrow,.section-kicker,.kicker),
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home :where(.eyebrow,.section-kicker,.kicker) {
  color:#2764c8 !important;
  -webkit-text-fill-color:#2764c8 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .hero {
  background:linear-gradient(135deg,#fff 0%,#edf3ff 55%,#f2eaff 100%) !important;
  border:1px solid var(--al-line) !important;
  box-shadow:0 18px 38px rgba(43,62,96,.13) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .hero h1 {
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .hero #hero-copy {
  color:#46546b !important;
  -webkit-text-fill-color:#46546b !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.league-switch-button,.league-top-menu) {
  color:#1e3559 !important;
  -webkit-text-fill-color:#1e3559 !important;
  background:#e5edfb !important;
  border:1px solid #afbed3 !important;
  box-shadow:0 8px 18px rgba(48,68,104,.13) !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs {
  background:rgba(255,255,255,.98) !important;
  border:1px solid #aebdd2 !important;
  box-shadow:0 14px 32px rgba(37,54,86,.20) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button {
  color:#26354c !important;
  -webkit-text-fill-color:#26354c !important;
  background:#edf2fa !important;
  border:1px solid #c0cbda !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button:nth-child(1){background:#dfeaff !important;color:#245fd3 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button:nth-child(2){background:#eee4ff !important;color:#6838c8 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button:nth-child(3){background:#dcf4e7 !important;color:#087848 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button:nth-child(4){background:#ffe7d6 !important;color:#b74406 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button:nth-child(5){background:#ffe1ed !important;color:#a91d59 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button.active {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(135deg,#3478f6,#704be8) !important;
  border-color:transparent !important;
  box-shadow:0 8px 18px rgba(57,82,184,.28) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button svg,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs .tab-button svg * {
  stroke:currentColor !important;
  color:currentColor !important;
  fill:none !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tab-page > :where(section,article):nth-of-type(5n+1),
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .panel:nth-of-type(5n+1) {background:linear-gradient(145deg,#edf4ff,#fff 78%) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tab-page > :where(section,article):nth-of-type(5n+2),
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .panel:nth-of-type(5n+2) {background:linear-gradient(145deg,#e7f7ef,#fff 78%) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tab-page > :where(section,article):nth-of-type(5n+3),
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .panel:nth-of-type(5n+3) {background:linear-gradient(145deg,#fff0e4,#fff 78%) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tab-page > :where(section,article):nth-of-type(5n+4),
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .panel:nth-of-type(5n+4) {background:linear-gradient(145deg,#f2edff,#fff 78%) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tab-page > :where(section,article):nth-of-type(5n),
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .panel:nth-of-type(5n) {background:linear-gradient(145deg,#ffeaf2,#fff 78%) !important;}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.panel,.match-card,.active-summary,.players-list,.player-chip,.player-row,.member-row,.ranking-row,.standing-row,.history-row,.event-row,.versus-card,.calendar-create-card,.league-month-calendar,.stat-card,.summary-card) {
  color:var(--al-ink) !important;
  -webkit-text-fill-color:var(--al-ink) !important;
  border-color:#b9c7da !important;
  box-shadow:0 10px 26px rgba(48,66,99,.10) !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .players-list > *:nth-child(4n+1){background:#eef4ff !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .players-list > *:nth-child(4n+2){background:#e8f7ef !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .players-list > *:nth-child(4n+3){background:#fff0e6 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .players-list > *:nth-child(4n){background:#f3ecff !important;}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(input,select,textarea) {
  color:#182033 !important;
  -webkit-text-fill-color:#182033 !important;
  background:#fff !important;
  border:1px solid #aebdd2 !important;
  box-shadow:inset 0 1px 2px rgba(30,48,78,.06) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(input,textarea)::placeholder {
  color:#68758a !important;
  -webkit-text-fill-color:#68758a !important;
  opacity:1 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell button:not(.tab-button):not(:disabled),
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home button:not(:disabled) {
  color:#1d2c44 !important;
  -webkit-text-fill-color:#1d2c44 !important;
  background:#e8eff9 !important;
  border-color:#aebdd2 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(button[type="submit"],.primary-button,.accent-button,.share-button,.confirm-button):not(:disabled),
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home :where(.home-primary-action,.home-secondary-action):not(:disabled) {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background:linear-gradient(135deg,#3478f6,#704be8) !important;
  border-color:transparent !important;
  box-shadow:0 10px 22px rgba(69,91,214,.24) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell button:disabled,
html[data-theme="auto-light"] body[data-theme="auto-light"] #league-home button:disabled {
  color:#56647a !important;
  -webkit-text-fill-color:#56647a !important;
  background:#dce3ed !important;
  border-color:#bdc8d6 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.remove-player,.danger-button,.delete-button):not(:disabled) {
  color:#a72842 !important;
  -webkit-text-fill-color:#a72842 !important;
  background:#ffe3e8 !important;
  border-color:#eba7b3 !important;
}

html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell table,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(th,td) {
  color:#182033 !important;
  -webkit-text-fill-color:#182033 !important;
  border-color:#bdc9d8 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell thead th {background:#dfe9f8 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell tbody tr:nth-child(odd)>* {background:#fff !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell tbody tr:nth-child(even)>* {background:#edf4ff !important;}

html[data-theme="auto-light"] body[data-theme="auto-light"] .global-settings-sheet :where(h1,h2,h3,h4,strong,b,label,span),
html[data-theme="auto-light"] body[data-theme="auto-light"] .modal-card :where(h1,h2,h3,h4,strong,b,label,span) {
  color:#182033 !important;
  -webkit-text-fill-color:#182033 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] .global-settings-sheet :where(p,small),
html[data-theme="auto-light"] body[data-theme="auto-light"] .modal-card :where(p,small) {
  color:#526078 !important;
  -webkit-text-fill-color:#526078 !important;
  opacity:1 !important;
}

@media (max-width:720px) {
  html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs {
    background:#fff !important;
    border-color:#aebdd2 !important;
  }
  html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .hero {
    background:linear-gradient(145deg,#fff,#edf3ff 62%,#f2eaff) !important;
  }
}

/* FINAL auto-light colour release -- keep this as the last cascade layer. */
html[data-theme="auto-light"] body[data-theme="auto-light"] {background:radial-gradient(circle at 10% 8%,#c8e0ff 0 22%,transparent 47%),radial-gradient(circle at 92% 18%,#ead5ff 0 20%,transparent 46%),radial-gradient(circle at 20% 92%,#c9f2df 0 18%,transparent 44%),linear-gradient(145deg,#eef5ff,#fff2e8 54%,#f1e8ff) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.tab-page,.compare-result,.compare-bars,.compare-insights,.compare-timeline) {filter:none !important;backdrop-filter:none !important;opacity:1 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.hero,.compare-hero) {background:linear-gradient(135deg,#c9e1ff,#ddd8ff 48%,#f2cff1) !important;border-color:#8caee0 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+1) {background:#c8ddff !important;border-color:#79a4e2 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+2) {background:#c6efd9 !important;border-color:#6fbd94 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n+3) {background:#ffddc1 !important;border-color:#eaa06a !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-bar:nth-child(4n) {background:#dfceff !important;border-color:#a488df !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-track {background:#aebed1 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-a {background:linear-gradient(90deg,#176ce8,#3898ff) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .bar-fill-b {background:linear-gradient(90deg,#7139d8,#a55bea) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+1) {background:linear-gradient(135deg,#9dccff,#c7ddff) !important;border-color:#6099dc !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+2) {background:linear-gradient(135deg,#a5e5c2,#c8f0d9) !important;border-color:#58ad80 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n+3) {background:linear-gradient(135deg,#ffc692,#ffe0bd) !important;border-color:#df8d45 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .insight-card:nth-child(4n) {background:linear-gradient(135deg,#c8adfa,#e3d2ff) !important;border-color:#9169d3 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+1) {background:linear-gradient(100deg,#bcd8ff,#e2edff) !important;border-color:#78a5e4 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+2) {background:linear-gradient(100deg,#b9ebd0,#def5e8) !important;border-color:#69bd92 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+3) {background:linear-gradient(100deg,#ffd2ae,#ffead9) !important;border-color:#e89a60 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n+4) {background:linear-gradient(100deg,#d6c2ff,#eee5ff) !important;border-color:#a17bdf !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .compare-timeline > article:nth-child(5n) {background:linear-gradient(100deg,#ffc7d7,#ffe5ec) !important;border-color:#db819d !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .tabs {background:linear-gradient(135deg,#d5e7ff,#e6dcff) !important;border-color:#91add1 !important;}

/* v1162: visible mobile navigation and versus, verified with exact live markup. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs {
  background:#fff !important;
  border:2px solid #aeb9c8 !important;
  box-shadow:0 10px 28px rgba(25,38,58,.18) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button:nth-child(n) {
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#fff !important;
  border:1px solid #d0d7e2 !important;
  box-shadow:0 4px 10px rgba(31,41,55,.10) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button.active,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button.active:nth-child(n) {
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#cfe1ff !important;
  border-color:#4d83db !important;
  box-shadow:inset 0 0 0 1px #4d83db,0 5px 12px rgba(45,89,160,.18) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button svg,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell > .tabs > .tab-button svg * {
  color:#111827 !important;
  stroke:#111827 !important;
  fill:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar:nth-child(4n+1) {background:#d7e7ff !important;border:2px solid #6e9ddd !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar:nth-child(4n+2) {background:#d4f2e1 !important;border:2px solid #62b487 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar:nth-child(4n+3) {background:#ffe2c8 !important;border:2px solid #df9258 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar:nth-child(4n) {background:#e3d7ff !important;border:2px solid #9876d7 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bar .bar-track {
  position:relative !important;
  display:block !important;
  height:18px !important;
  overflow:hidden !important;
  background:#c5cfdb !important;
  background-image:none !important;
  border:1px solid #8998aa !important;
  box-shadow:inset 0 2px 4px rgba(24,39,58,.18) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bar .bar-fill {
  display:block !important;
  height:100% !important;
  min-width:4% !important;
  border-radius:999px !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bar .bar-fill-a {background:#126ce5 !important;background-image:linear-gradient(90deg,#126ce5,#19a7e8) !important;box-shadow:0 0 8px rgba(18,108,229,.35) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bar .bar-fill-b {background:#ed6d32 !important;background-image:linear-gradient(90deg,#f2a21f,#ed4f72) !important;box-shadow:0 0 8px rgba(237,79,114,.32) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card {color:#172033 !important;border:2px solid transparent !important;box-shadow:0 8px 18px rgba(38,56,83,.12) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card:nth-child(1) {background:#b9d8ff !important;border-color:#6799dc !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card:nth-child(2) {background:#bcebcf !important;border-color:#62ad82 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card:nth-child(3) {background:#ffd5ae !important;border-color:#df9454 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card:nth-child(4) {background:#d9c7ff !important;border-color:#9270d1 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card :where(span,strong) {color:#172033 !important;-webkit-text-fill-color:#172033 !important;opacity:1 !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-timeline > article {border-width:2px !important;box-shadow:0 7px 16px rgba(38,56,83,.10) !important;}

/* v1163: prevent generic light-theme input styling from exposing mode radios. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card > input[type="radio"] {
  position:absolute !important;
  inset:auto !important;
  width:1px !important;
  min-width:0 !important;
  max-width:1px !important;
  height:1px !important;
  min-height:0 !important;
  max-height:1px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-icon,
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-check {opacity:1 !important;visibility:visible !important;}

/* v1164: black hero controls and clearly surfaced action buttons. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #back-to-leagues,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #league-top-menu {
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#fff !important;
  border:2px solid #aeb9c8 !important;
  box-shadow:0 8px 18px rgba(31,41,55,.16) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #back-to-leagues::before {
  border-left-color:#111827 !important;
  border-bottom-color:#111827 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #league-top-menu::before {
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:radial-gradient(circle at 4px 4px,#111827 0 3.5px,transparent 3.8px),radial-gradient(circle at 14px 4px,#111827 0 3.5px,transparent 3.8px),radial-gradient(circle at 24px 4px,#111827 0 3.5px,transparent 3.8px) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell :where(.panel,.match-card,.claim-player-card) button:where(:not(.tab-button):not(.remove-player):not(.modal-close):not(:disabled)) {
  border:1px solid #9eacbe !important;
  background:#edf2f8 !important;
  background-color:#edf2f8 !important;
  background-image:none !important;
  box-shadow:0 6px 14px rgba(35,52,76,.12) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .add-player button[type="submit"] {
  --final-button:linear-gradient(135deg,#35bd78,#138a55);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#148452 !important;
  background:linear-gradient(135deg,#35bd78,#138a55) !important;
  background-color:#138a55 !important;
  background-image:linear-gradient(135deg,#35bd78,#138a55) !important;
  box-shadow:0 9px 20px rgba(19,138,85,.25) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .identity-change-confirm {
  --final-button:linear-gradient(135deg,#8b63eb,#6744cf);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#6543c9 !important;
  background:linear-gradient(135deg,#8b63eb,#6744cf) !important;
  background-color:#6744cf !important;
  background-image:linear-gradient(135deg,#8b63eb,#6744cf) !important;
  box-shadow:0 9px 20px rgba(103,68,207,.24) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .identity-change-cancel {
  --final-button:linear-gradient(135deg,#edf2f8,#dce4ee);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  color:#263246 !important;
  -webkit-text-fill-color:#263246 !important;
  border-color:#9ba9bb !important;
  background:#e5ebf3 !important;
  background-color:#e5ebf3 !important;
  background-image:none !important;
  box-shadow:0 6px 14px rgba(35,52,76,.12) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .header-actions .secondary-button {
  --final-button:linear-gradient(135deg,#ffe0b8,#ffc981);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  color:#723300 !important;
  -webkit-text-fill-color:#723300 !important;
  border-color:#df914e !important;
  background:linear-gradient(135deg,#ffe0b8,#ffc981) !important;
  background-color:#ffc981 !important;
  background-image:linear-gradient(135deg,#ffe0b8,#ffc981) !important;
  box-shadow:0 7px 16px rgba(194,105,31,.18) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .pair-picker > button[type="submit"] {
  --final-button:linear-gradient(135deg,#4e84ef,#356bd4);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#356ed0 !important;
  background:linear-gradient(135deg,#4e84ef,#356bd4) !important;
  background-color:#356bd4 !important;
  background-image:linear-gradient(135deg,#4e84ef,#356bd4) !important;
  box-shadow:0 9px 20px rgba(53,107,212,.24) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .normal-score-form .normal-submit {
  --final-button:linear-gradient(135deg,#35bd78,#138a55);
  --theme-button:var(--final-button);
  --court-button:var(--final-button);
  --tone-button:var(--final-button);
  --theme-force-button:var(--final-button);
  min-height:52px !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:2px solid #148452 !important;
  background:linear-gradient(135deg,#35bd78,#138a55) !important;
  background-color:#138a55 !important;
  background-image:linear-gradient(135deg,#35bd78,#138a55) !important;
  box-shadow:0 10px 22px rgba(19,138,85,.26) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .normal-score-form .normal-submit :where(span,strong,b) {color:#fff !important;-webkit-text-fill-color:#fff !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .score-presets button {
  color:#48317e !important;
  -webkit-text-fill-color:#48317e !important;
  border-color:#a68bd6 !important;
  background:#eee6ff !important;
  background-color:#eee6ff !important;
  background-image:none !important;
}

/* v1165: selected game mode must remain unmistakably visible. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card {
  opacity:1 !important;
  visibility:visible !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card .day-mode-icon {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  background-color:#dbe7ff !important;
  background-image:none !important;
  border:1px solid #a4bae3 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active {
  color:#172033 !important;
  background-color:#dceaff !important;
  background-image:linear-gradient(135deg,#dceaff,#edf3ff) !important;
  border:2px solid #3478f6 !important;
  box-shadow:inset 4px 0 0 #3478f6,0 8px 18px rgba(52,120,246,.18) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active :where(.day-mode-copy strong,.day-mode-copy small) {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active .day-mode-icon,
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active .day-mode-check {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  background-color:#3478f6 !important;
  background-image:linear-gradient(135deg,#4e8cff,#316ddd) !important;
  border:1px solid #245bc2 !important;
  box-shadow:0 5px 12px rgba(52,120,246,.28) !important;
  opacity:1 !important;
  visibility:visible !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active .day-mode-icon :where(svg,path),
html[data-theme="auto-light"] body[data-theme="auto-light"] #day-modal .day-mode-card.active .day-mode-check :where(svg,path) {
  color:#fff !important;
  stroke:#fff !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* v1166: encabezados con color y selector Individual/Parejas, solo tema claro. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero {
  border-color:#b8c9e6 !important;
  background:radial-gradient(circle at 13% 18%,rgba(52,120,246,.19),transparent 31%),radial-gradient(circle at 88% 82%,rgba(116,80,232,.18),transparent 34%),linear-gradient(135deg,#eef5ff,#f5f0ff) !important;
  box-shadow:0 18px 42px rgba(47,70,118,.16),inset 0 1px rgba(255,255,255,.9) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero[data-view="standings"] {border-color:#d4c07c !important;background:radial-gradient(circle at 12% 20%,rgba(255,196,46,.25),transparent 32%),radial-gradient(circle at 88% 78%,rgba(255,142,50,.16),transparent 34%),linear-gradient(135deg,#fff9df,#fff2e8) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero[data-view="compare"] {border-color:#bdaee9 !important;background:radial-gradient(circle at 12% 20%,rgba(112,64,220,.20),transparent 31%),radial-gradient(circle at 88% 78%,rgba(219,67,146,.15),transparent 34%),linear-gradient(135deg,#f3edff,#fff0f7) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero[data-view="calendar"] {border-color:#9fd5bc !important;background:radial-gradient(circle at 12% 20%,rgba(8,151,88,.19),transparent 31%),radial-gradient(circle at 88% 78%,rgba(38,183,188,.14),transparent 34%),linear-gradient(135deg,#eafaf2,#ecf9fb) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero[data-view="history"] {border-color:#efb58d !important;background:radial-gradient(circle at 12% 20%,rgba(227,102,31,.20),transparent 31%),radial-gradient(circle at 88% 78%,rgba(243,154,53,.16),transparent 34%),linear-gradient(135deg,#fff1e8,#fff8df) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #app-hero :where(h1,p,.eyebrow) {opacity:1 !important;text-shadow:none !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .subtabs {gap:12px !important;padding:7px !important;border-color:#bdcbe0 !important;background:#f8faff !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .subtabs .subtab-button[data-standing="individual"] {color:#145cca !important;-webkit-text-fill-color:#145cca !important;border-color:#a9c4f1 !important;background:linear-gradient(135deg,#e2edff,#cfe0ff) !important;background-color:#e2edff !important;box-shadow:0 7px 18px rgba(40,110,232,.14) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .subtabs .subtab-button[data-standing="pairs"] {color:#6930c3 !important;-webkit-text-fill-color:#6930c3 !important;border-color:#c7b2ec !important;background:linear-gradient(135deg,#f0e8ff,#e3d5ff) !important;background-color:#f0e8ff !important;box-shadow:0 7px 18px rgba(112,64,220,.14) !important;}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .subtabs .subtab-button.active {color:#fff !important;-webkit-text-fill-color:#fff !important;border-color:transparent !important;background:linear-gradient(135deg,#3478f6,#7450e8) !important;background-color:#3478f6 !important;box-shadow:0 10px 24px rgba(66,93,218,.30) !important;transform:translateY(-1px) !important;}

/* v1168: paleta clara coherente y controles inequívocos. */
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-bars .compare-bar:nth-child(n) {
  color:#17243a !important;
  border:2px solid #8eaddc !important;
  background:#e4edfb !important;
  background-image:linear-gradient(135deg,#dce9fb,#edf3fc) !important;
  box-shadow:0 7px 17px rgba(46,82,134,.10) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-insights .insight-card:nth-child(n) {
  color:#24203a !important;
  border:2px solid #b7a6da !important;
  background:#eee8f8 !important;
  background-image:linear-gradient(135deg,#e8e0f7,#f4f0fb) !important;
  box-shadow:0 7px 17px rgba(93,70,135,.10) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-timeline > article,
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-compare .compare-timeline > article:nth-child(n) {
  color:#17243a !important;
  border:1px solid #a9bddb !important;
  border-left:5px solid #597fbd !important;
  background:#edf3fb !important;
  background-image:linear-gradient(100deg,#e3ecf9,#f7f9fd) !important;
  box-shadow:0 6px 15px rgba(46,82,134,.08) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-standings .subtabs {
  gap:10px !important;
  padding:7px !important;
  border:1px solid #bac8dc !important;
  background:#f7f9fd !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-standings .subtabs > button.subtab-button[data-standing="individual"] {
  color:#154f9f !important;
  -webkit-text-fill-color:#154f9f !important;
  border:2px solid #8eb1e6 !important;
  background:#dceaff !important;
  background-image:linear-gradient(135deg,#d5e6ff,#e9f1ff) !important;
  box-shadow:inset 0 0 0 100px rgba(76,133,220,.04),0 7px 16px rgba(44,96,174,.13) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-standings .subtabs > button.subtab-button[data-standing="pairs"] {
  color:#6334a5 !important;
  -webkit-text-fill-color:#6334a5 !important;
  border:2px solid #b9a0df !important;
  background:#eee4ff !important;
  background-image:linear-gradient(135deg,#e8dcfb,#f5efff) !important;
  box-shadow:inset 0 0 0 100px rgba(118,79,181,.04),0 7px 16px rgba(91,62,139,.13) !important;
  opacity:1 !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-standings .subtabs > button.subtab-button[data-standing="individual"].active {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#2465c4 !important;
  background:#3478f6 !important;
  background-image:linear-gradient(135deg,#4284f5,#2868d4) !important;
  box-shadow:0 9px 20px rgba(40,104,212,.28) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-standings .subtabs > button.subtab-button[data-standing="pairs"].active {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:#6940b5 !important;
  background:#7954cf !important;
  background-image:linear-gradient(135deg,#8a63de,#6942bb) !important;
  box-shadow:0 9px 20px rgba(105,66,187,.27) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell .round-row {
  border-color:#b7c6da !important;
  background:#edf3fb !important;
  background-image:linear-gradient(105deg,#e5edf8,#f7f9fc) !important;
}
html[data-theme="auto-light"] body[data-theme="auto-light"] #app-shell #tab-history .round-list .round-row button.danger-button.round-delete-x[data-delete-round] {
  color:#b4232b !important;
  -webkit-text-fill-color:#b4232b !important;
  border-color:#e5a7ab !important;
  background:#fff1f2 !important;
  background-image:none !important;
  box-shadow:none !important;
}
/* Create/join dialog lives outside app-shell; give it the light palette explicitly. */
html[data-theme="auto-light"] body #league-actions {background:rgba(24,34,53,.28)!important}
html[data-theme="auto-light"] body #league-actions .league-actions-card {background:#f7f9fc!important;background-image:none!important;color:#182235!important;border:1px solid #d5deeb!important;box-shadow:0 20px 65px #18223526!important}
html[data-theme="auto-light"] body #league-actions :is(h2,h3,strong,label,span) {color:#182235!important;-webkit-text-fill-color:#182235!important;text-shadow:none!important}
html[data-theme="auto-light"] body #league-actions :is(p,small) {color:#536176!important;-webkit-text-fill-color:#536176!important}
html[data-theme="auto-light"] body #league-actions .league-action-row {background:#fff!important;background-image:none!important;border:1px solid #ccd7e6!important;color:#182235!important;box-shadow:none!important}
html[data-theme="auto-light"] body #league-actions .league-action-row > span {background:#e8effc!important;color:#315fc6!important;-webkit-text-fill-color:#315fc6!important}
html[data-theme="auto-light"] body #league-actions .league-form {border-color:#d5deeb!important}
html[data-theme="auto-light"] body #league-actions input {background:#fff!important;background-image:none!important;color:#182235!important;-webkit-text-fill-color:#182235!important;border:1px solid #bdcadd!important;box-shadow:none!important}
html[data-theme="auto-light"] body #league-actions input::placeholder {color:#68758a!important;-webkit-text-fill-color:#68758a!important;opacity:1!important}
html[data-theme="auto-light"] body #league-actions #league-form-submit {background:#315fc6!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #315fc6!important;box-shadow:0 6px 18px #315fc626!important}
html[data-theme="auto-light"] body #league-actions .league-actions-close {background:#e8edf5!important;color:#182235!important;-webkit-text-fill-color:#182235!important;border:1px solid #ccd7e6!important}
html[data-theme="auto-light"] body #league-actions :is(button,input):focus-visible {outline:3px solid #315fc6!important;outline-offset:3px}
