/* One surface palette takes precedence over previous conflicting light overrides. */
[data-theme="light"]{--text-primary:#111827;--text-secondary:#263445;--text-muted:#415166;--bg-card:#fff;--bg-card-elevated:#f1f4f8}
[data-theme="light"] :is(.corp-card,.top5-player-card,.top5-pos-column,.side-card,.cartola-profile-card-container,.market-player-card,.tracking-round,.tracking-team,.tracking-metric,.duvidas-dispute-card,.teams-workspace,.tips-panel,.community-card,.community-report,.community-ranking,.community-kpis>span,.community-chart-grid>article,.analysis-card,.account-card,.competition-card,.competition-summary,.popular-card,.team-comparison,.team-comparison-metrics>div,.modal-content,.scout-modal-content,.scout-modal-card,.form-input,.form-select,.standings-table-card,.standings-legend-card,.top5-toolbar,.custom-modal-card,.duvidas-category-group){background:#fff!important;color:#111827!important;border-color:#b9c7d5!important;--text-primary:#111827;--text-secondary:#263445;--text-muted:#415166}
[data-theme="light"] :is(.corp-card,.top5-player-card,.top5-pos-column,.side-card,.cartola-profile-card-container,.market-player-card,.tracking-round,.tracking-team,.tracking-metric,.duvidas-dispute-card,.teams-workspace,.tips-panel,.community-card,.community-report,.community-ranking,.community-kpis>span,.community-chart-grid>article,.analysis-card,.account-card,.competition-card,.competition-summary,.popular-card,.team-comparison,.modal-content,.scout-modal-content,.scout-modal-card) :is(h1,h2,h3,h4,p,span,strong,small,b,label,a,summary,li,td,th,em){color:#111827!important;text-shadow:none!important;opacity:1}
[data-theme="light"] :is(.top5-stat-chips-row,.top5-stat-chip,.cartola-profile-stats-bar,.teams-result,.top5-match-tag,.top5-col-formula-badge,.scout-pill-box,.round-stat-card,.tracking-analysis,.tracking-national,.market-selected-filter-result,.market-scout-grid>span,.community-best,.community-author-score,.community-ranking-history,.analysis-method,.filtered-score-strip span,.scout-round-outlook>div,.history-snapshots span,.scout-game-list>div){background:#edf2f7!important;color:#111827!important;border-color:#b9c7d5!important}
[data-theme="light"] :is(input,textarea,select,option){background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important}
[data-theme="light"] :is(input,textarea)::placeholder{color:#536276!important;opacity:1}
[data-theme="light"] :is(button,.btn,.tracking-extension-actions a){font-weight:800}
[data-theme="light"] :is(.corp-card,.corp-menu,.nav-btn,.nav-tab-btn,.android-more-grid>button,.top5-menu-group>button){background:#fff!important;color:#111827!important}
[data-theme="light"] :is(.top5-header-card,.pitch-header,.corp-topbar,.accounts-banner,.community-hero,.live-hero){background:#a84200!important;color:#fff!important}
[data-theme="light"] :is(.top5-header-card,.pitch-header,.corp-topbar,.accounts-banner,.community-hero,.live-hero) :is(h1,h2,h3,p,span,strong,small,b,label){color:#fff!important}
[data-theme="light"] :is(.my-pitch-card,.escalacao-grid,.live-lineup-board,.live-detail,.live-player,.scout-player-header,.market-strip,.marquee-wrapper){color:#fff!important;--text-primary:#fff;--text-secondary:#e5edf5;--text-muted:#d2dfec}
[data-theme="light"] :is(.escalacao-grid,.live-lineup-board,.live-detail,.live-player,.scout-player-header,.market-strip,.marquee-wrapper) :is(h1,h2,h3,p,span,strong,small,b,label,em){color:#fff!important}
[data-theme="light"] :is(.btn-escalar-atleta,.btn-scout-card,.teams-toolbar button,.account-actions button,.community-actions button,.community-tools button,.tracking-extension-actions button,.module-close-bar button,.corp-action,.analysis-actions button){background:#9d3c00!important;color:#fff!important}
[data-theme="light"] :is(.btn-escalar-atleta,.btn-scout-card,.teams-toolbar button,.account-actions button,.community-actions button,.community-tools button,.tracking-extension-actions button,.module-close-bar button,.corp-action,.analysis-actions button) *{color:#fff!important}
.top5-menu-group{display:flex!important;flex-direction:column!important;gap:7px;grid-column:1/-1;min-width:0;padding:8px;border:1px solid #e678263d;border-radius:12px}.top5-menu-group>button{width:100%;margin:0!important}.top5-menu-cards .corp-card{min-height:90px!important;display:grid;grid-template-columns:45px 1fr;column-gap:12px;align-items:center}.top5-menu-cards .corp-card-icon{grid-row:1/3;margin:0}.top5-menu-cards .corp-card small{grid-column:2}
[data-theme="light"] button :is(span,strong,small,b,em){color:inherit!important}
.national-table{width:100%;border-collapse:collapse;margin:12px 0}.national-table th,.national-table td{padding:9px 10px;text-align:left;border-bottom:1px solid #7c96b744;white-space:nowrap}.tracking-national summary{cursor:pointer;margin-top:12px;font-weight:800}

/* Requested light palette; keep fields readable and preserve the green pitch. */
:root[data-theme="light"] body :is(.corp-card,.top5-player-card,.top5-pos-column,.side-card,.cartola-profile-card-container,.market-player-card,.tracking-round,.tracking-team,.tracking-metric,.duvidas-dispute-card,.teams-workspace,.tips-panel,.community-card,.community-report,.community-ranking,.community-kpis>span,.community-chart-grid>article,.analysis-card,.account-card,.competition-card,.competition-summary,.popular-card,.team-comparison,.team-comparison-metrics>div,.standings-table-card,.standings-legend-card,.top5-toolbar,.duvidas-category-group,.community-context,.community-context-grid article,.community-gallery-toolbar,.my-squad-list-card,.squad-item-row,.top5-header-card,.community-hero,.live-hero){background:#e85b00!important;color:#fff!important;border-color:#ffb070!important;--text-primary:#fff;--text-secondary:#fff;--text-muted:#fff;font-weight:800}
:root[data-theme="light"] body :is(.corp-card,.top5-player-card,.top5-pos-column,.side-card,.cartola-profile-card-container,.market-player-card,.tracking-round,.tracking-team,.tracking-metric,.duvidas-dispute-card,.teams-workspace,.tips-panel,.community-card,.community-report,.community-ranking,.community-kpis,.community-chart-grid,.analysis-card,.account-card,.competition-card,.competition-summary,.popular-card,.team-comparison,.standings-table-card,.standings-legend-card,.top5-toolbar,.duvidas-category-group,.community-context,.community-gallery-toolbar,.my-squad-list-card,.squad-item-row) :is(h1,h2,h3,h4,p,div,span,strong,small,b,label,a,summary,li,td,th,em,dt,dd){color:#fff!important;font-weight:800!important;text-shadow:none!important}
:root[data-theme="light"] body :is(.top5-stat-chips-row,.top5-stat-chip,.cartola-profile-stats-bar,.teams-result,.top5-match-tag,.top5-col-formula-badge,.scout-pill-box,.round-stat-card,.tracking-analysis,.tracking-national,.market-selected-filter-result,.market-scout-grid>span,.community-best,.community-author-score,.community-ranking-history,.analysis-method,.filtered-score-strip span,.scout-round-outlook>div,.history-snapshots span,.scout-game-list>div){background:#a83d00!important;color:#fff!important;border-color:#ffb070!important}
:root[data-theme="light"] body :is(button,.btn,a.btn,.tracking-extension-actions a,.corp-action,.nav-btn,.nav-tab-btn){background:#111!important;color:#fff!important;border-color:#444!important;font-weight:850!important}
:root[data-theme="light"] body :is(button,.btn,.corp-action,.nav-btn,.nav-tab-btn) *{color:#fff!important;font-weight:850!important}
:root[data-theme="light"] body :is(input,textarea,select,option){background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;font-weight:750!important}
:root[data-theme="light"] body :is(input,textarea)::placeholder{color:#454545!important}
:root[data-theme="light"] body .squad-item-row :is(span,strong,b,small,div){color:#fff!important;font-weight:850!important}

/* Focused light-only repairs: positional headers, ticker, clock and home. */
:root[data-theme="light"] body .community-card .top5-col-header{background:#a83d00!important;border-radius:8px;padding:10px!important}
:root[data-theme="light"] body :is(.community-hero,.community-hero p,.community-hero small){color:#fff!important;font-weight:800!important}
:root[data-theme="light"] body :is(.marquee-wrapper,.clock-3d-container,.corp-ticker){background:#111720!important;color:#fff!important;border-color:#e85b00!important}
:root[data-theme="light"] body .marquee-wrapper :is(span,.marquee-item){color:#fff!important;font-weight:800!important}
:root[data-theme="light"] body .marquee-wrapper :is(.m-score,.m-rank){color:#ff9b42!important}
:root[data-theme="light"] body .marquee-label{background:#e85b00!important;color:#fff!important}
:root[data-theme="light"] body .marquee-track{width:max-content!important;max-width:none!important;flex:none!important;padding-left:0!important;gap:0!important;animation:marqueeScroll 65s linear infinite!important}
:root[data-theme="light"] body .marquee-track:hover{animation-play-state:paused!important}
:root[data-theme="light"] body .marquee-item{flex:0 0 auto!important}
:root[data-theme="light"] body .digital-flip-box{background:#232c3a!important;color:#ff9b42!important;border-color:#465266!important}
:root[data-theme="light"] body :is(.digital-colon,#clock-label-text,.corp-ticker span){color:#fff!important}
:root[data-theme="light"] body .corp-home .corp-card{display:block!important;min-height:136px!important;background:#fff!important;color:#17354a!important;border:1px solid #dfe3e7!important;border-top:4px solid #ff6500!important}
:root[data-theme="light"] body .corp-home .corp-card :is(strong,small){color:#17354a!important;white-space:normal!important;width:auto!important}
:root[data-theme="light"] body .corp-home .corp-card strong{font-size:.98rem!important;line-height:1.35!important;margin:0 0 6px!important}
:root[data-theme="light"] body .corp-home .corp-card small{display:block!important;line-height:1.5!important}
:root[data-theme="light"] body .corp-home .corp-card-icon{display:grid!important;background:#fff0e3!important;color:#bd4900!important;margin-bottom:12px!important}
:root[data-theme="light"] body .corp-home .corp-card-icon *{color:#bd4900!important}
:root[data-theme="light"] body .corp-home .top5-menu-cards{display:contents!important}
:root[data-theme="light"] body .corp-home .corp-menu{background:#fff!important;color:#17354a!important}
:root[data-theme="light"] body .corp-home .corp-menu *{color:#17354a!important}
:root[data-theme="light"] body .corp-home .corp-welcome{background:#fff!important;color:#17354a!important}
:root[data-theme="light"] body .corp-home .corp-welcome :is(h1,p,strong){color:#17354a!important}
:root[data-theme="light"] body .corp-home .corp-countdown{background:#fff0e3!important;color:#9b3a00!important}
:root[data-theme="light"] body :is(.my-squad-list-card,.squad-item-row){background:#22272e!important;color:#fff!important;border-color:#414a55!important}
:root[data-theme="light"] body .squad-item-row.squad-item-row,:root[data-theme="light"] body .my-squad-list-card.my-squad-list-card{background:#22272e!important;color:#fff!important;border-color:#414a55!important}

/* Local contrast fixes requested for lineup and analysis. */
:root[data-theme="light"] body #teams-workspace #teams-connection{background:#e85b00!important;color:#fff!important;border-left-color:#ffb070!important;font-weight:850!important}
:root[data-theme="light"] body #view-escalacao .my-pitch-card.my-pitch-card,:root[data-theme="light"] body #view-escalacao .my-field-wrapper{background:#22272e!important}
:root[data-theme="light"] body #view-analysis .study-status-filters label,:root[data-theme="light"] body #view-analysis #analysis-statuses label{background:#1b293c!important;color:#fff!important;font-weight:850!important}
:root[data-theme="light"] body #view-analysis .study-status-filters label *,:root[data-theme="light"] body #view-analysis #analysis-statuses label *{color:#fff!important}
:root[data-theme="light"] body #view-analysis .analysis-values span{background:#a83d00!important;color:#fff!important;font-weight:850!important;border:1px solid #ffb070!important}
