/* The appearance control exists in both themes. No inverse filters on media. */
.fb-appearance{margin:20px 28px;padding:18px;border:1px solid #48516c;border-radius:14px;background:#162a3d;color:#edf2fa;font-family:"FlexBet Inter",Inter,"Segoe UI",sans-serif}
.fb-settings-dialog>.fb-appearance,#login-modal .fb-appearance{margin:18px 0 0}
.fb-appearance h3{font-size:16px!important;margin:0 0 5px!important;color:inherit!important;letter-spacing:-.02em}
.fb-appearance p{font-size:12px!important;line-height:1.5!important;margin:0 0 13px!important;color:#b6c6da!important}
.fb-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body .fb-appearance button{display:flex;gap:9px;justify-content:center;align-items:center;min-height:44px;padding:10px;border:1px solid #61708b!important;border-radius:9px;background:linear-gradient(#2c3c53,#1c2a40)!important;color:#eaf0fc!important;box-shadow:inset 0 1px #ffffff18,0 2px 5px #0003!important;cursor:pointer;font:inherit}
.fb-appearance button>span{font-size:21px;line-height:1}.fb-appearance b{font-size:13px;font-weight:600}
body .fb-appearance button[aria-pressed=true]{background:linear-gradient(#6e45a0,#432767)!important;border-color:#bf92f5!important;color:#fff!important}
.fb-appearance small{display:block;font-size:10px;line-height:1.5;margin-top:11px;color:#b6c6da}
.fb-appearance button:focus-visible{outline:3px solid #b685ed;outline-offset:3px}
@media(max-width:600px){.fb-appearance{margin:16px;padding:14px}.fb-theme-options{gap:8px}}

html[data-fb-theme=light]{color-scheme:light;--bg:#f2f5fa;--panel:#fff;--panel-2:#edf2f8;--line:#cbd6e4;--text:#243449;--muted:#53677c;--soft:#445d73;--blue:#6741b8;--violet:#7945bb;--green:#087457;--red:#b32d4b;--amber:#875d0b;--accent:#7650bb;background:#f2f5fa}
html[data-fb-theme=light] body,html[data-fb-theme=light] body.fb-home-ready,html[data-fb-theme=light] body.rd-ready{--bg:#f2f5fa;--panel:#fff;--panel-2:#edf2f8;--line:#cbd6e4;--text:#243449;--muted:#53677c;--soft:#445d73;--blue:#6741b8;--violet:#7945bb;--green:#087457;--red:#b32d4b;--amber:#875d0b;--accent:#7650bb;background:#f2f5fa!important;color:#243449!important}
/* Common surfaces, including all match tabs and older analytics tables. */
html[data-fb-theme=light] :is(.app-shell,.app-content,.rd-shell,main){color:#243449}
html[data-fb-theme=light] :is(.app-header,.app-tabs,.topbar,body>header){background:linear-gradient(180deg,#fff,#f4f2fa)!important;border-color:#cdd5e3!important;box-shadow:0 2px 12px #293e5710}
html[data-fb-theme=light] :is(.app-name,.brand,.club-name,.rd-club h1){color:#233247!important}
html[data-fb-theme=light] :is(.app-tabs .tab-btn,.main-nav a,.nav a,header nav>a){color:#4f5f76!important}
html[data-fb-theme=light] :is(.app-tabs .tab-btn.active,.main-nav a.active){color:#7035b2!important;background:linear-gradient(#f4eaff,#e8d8fb)!important;border-color:#ba96db!important;box-shadow:inset 0 1px #fff,0 2px 7px #6a39831a!important}
html[data-fb-theme=light] .app-tabs a[href="/pro"]{color:#875d0b!important}
html[data-fb-theme=light] :is(.fb-home-league,.rd-fixture,.rd-block,.rd-model,.rd-brief,.rd-lineup-team,.rd-player-card,.rd-score-card,.rd-outcome-card,.rd-move-card,.rd-bet-card,.rd-bets,.rd-subs,.rd-planned,.panel,.card,.table-shell,.detail,.detail-cards>div,.fb-top10-card,.fb-top10-empty,.fb-settings-dialog,.fb-national-match,.fp-dialog,.team-style .ts-team,.ts-empty){background:#fff!important;border-color:#cbd6e4!important;color:#243449;box-shadow:0 4px 18px #273c5510}
html[data-fb-theme=light] :is(.fb-home-league>summary,.rd-block>summary,.rd-tabs,.panel-title,.league-summary,.fb-top10-heading>span,.fp-footer,.rd-bet-top){background:#edf2f9!important;color:#334b65!important;border-color:#cbd6e4!important}
html[data-fb-theme=light] :is(.fb-home-match,.fb-top10-metrics,.rd-stat,.rd-stat-more,.rd-context-bar,.rd-rotation-summary,.rd-absence,.rd-player-history>div,.rd-player-source-table td,.rd-player-source-table th,td,th,.fp-head,.fp-layout nav,.fp-layout fieldset){border-color:#d5dfeb!important}
html[data-fb-theme=light] .fb-home-ready .fb-fixture:hover{background:#f1eafa}
html[data-fb-theme=light] :is(.fb-club,.fb-fixture-center strong,.rd-stat-line>b,.rd-total-badge b,.rd-bet-title,.rd-bet-numbers b,.rd-score-card strong,.rd-outcome-card>strong,.fb-top10-metrics dd,.ts-mark strong,.ts-stat strong,.rd-start b,.rd-context-bar b,.rd-player-name,.rd-card-title,.rd-section-title,.fp-dialog h2,.fp-dialog h3,.fp-dialog h4){color:#243449}
html[data-fb-theme=light] :is(.fb-home-note,.fb-home-overview,.fb-fixture-center small,.fb-home-match-meta,.fb-home-analysis,.fb-home-ready #matches-subtitle,.fb-home-ready #matches-subtitle,.rd-note,.rd-source,.rd-footnote,.rd-mode-caption,.rd-league,.rd-venue,.rd-start span,.rd-context-bar small,.rd-weather-source,.rd-bet-book,.rd-bet-kind,.rd-bet-numbers span,.rd-move-values small,.rd-move-chart>div,.rd-score-card small,.rd-outcome-card>span,.rd-player-figures,.rd-absence span,.rd-absence small,.rd-player-history small,.rd-sub-minutes,.rd-history-lineup-note,.p31-unavailable,.panel-note,.lead,.muted,.meta-pill,.record,.explain,.fp-dialog p,.fp-dialog small,.fp-dialog legend,.fp-all,.fp-footer span,.ts-title p,.ts-note,.ts-team header span,.ts-competition,.ts-stat>span,.ts-stat small,.ts-history-head,.ts-games small,.ts-source-count,.ts-reference,.ts-reference small,.ts-method,.ts-mark small,.ts-field-note,.fb-top10-caption,.fb-top10-foot,.fb-top10-book,.fb-top10-metrics dt,.fb-top10-reason){color:#53677c!important}
html[data-fb-theme=light] :is(.fb-home-overview b,.fb-home-league>summary>span,.fb-home-league>summary>i){color:#52677e}
html[data-fb-theme=light] :is(.rd-player-figures>div,.rd-workload>span,.rd-stat-more,.rd-total-badge,.rd-context-badge,.rd-rotation-summary,.rd-history-lineup-note,.market,.match,.movement-row,.profile-box,.ts-games button,.fp-choices label,.fp-guide-card,.meta-pill,.study-chip,.competition-toggle){background:#edf3f9!important;border-color:#cbd6e4!important;color:#334b65}
html[data-fb-theme=light] .rd-bar-unknown{background:#d7e1ec}
html[data-fb-theme=light] :is(.rd-outcome-track,.rd-spark-grid){background:#dce5ee;stroke:#c4d1df}
html[data-fb-theme=light] :is(.rd-shell,.team-style){--rd-home:#0e9684;--rd-away:#8852ca;--rd-border:#cbd6e4;--rd-muted:#53677c;--ts-home:#0e9684;--ts-away:#8852ca;--ts-line:#cbd6e4;color:#243449;font-family:inherit}
html[data-fb-theme=light] :is(.rd-pitch,.ts-pitch){background:linear-gradient(#e3f2ec,#d8ebe5)!important;border-color:#9cbfb1!important;color:#243449}
html[data-fb-theme=light] :is(.rd-pitch-circle,.rd-pitch:before,.rd-pitch:after){border-color:#8aac9f!important}
html[data-fb-theme=light] .ts-lines{color:#7eaa98;opacity:.8}
html[data-fb-theme=light] :is(.ts-box,.ts-outside){background:#bfe4d9;color:#204e47}
html[data-fb-theme=light] .ts-team.away :is(.ts-box,.ts-outside){background:#e1d3f2;color:#4e3274}
html[data-fb-theme=light] .ts-zone14{background:#f3dc9c}
html[data-fb-theme=light] .ts-corridor{background:#a8d7ed80}
html[data-fb-theme=light] :is(.rd-player-dot,.rd-player-rare .rd-player-dot){border-color:#fff;box-shadow:0 2px 5px #19372a30}
html[data-fb-theme=light] .rd-player-dot small{background:#fff;color:#875d0b}
html[data-fb-theme=light] :is(.rd-player-figures b,.rd-workload b,.rd-xg,.rd-probs b:first-child,.side-0>strong,.positive,.win,.rd-lineup-updated,.fb-top10-edge){color:#087457!important}
html[data-fb-theme=light] :is(.side-2>strong,.fb-top10-metrics dd.model,.rd-link,.ts-history-head button,.model){color:#7341b2!important}
html[data-fb-theme=light] :is(.negative,.loss,.rd-probs b:last-child){color:#b32d4b!important}
/* Distinct warning, injury and confirmed-lineup states. */
html[data-fb-theme=light] :is(.rd-availability,.rd-lineup-phase,.rd-bet-warning,.fb-top10-warning,.warning,.notice){background:#fff4df!important;border-color:#d9bb76!important;color:#815917}
html[data-fb-theme=light] :is(.rd-availability-title h4,.rd-availability-title>span,.rd-lineup-phase strong,.rd-lineup-phase>span,.rd-bet-check,.rd-sample-warning,.fb-top10-review,.fb-top10-details summary){color:#875d0b!important}
html[data-fb-theme=light] .rd-lineup-phase small{color:#70593a}
html[data-fb-theme=light] :is(.rd-availability-player,.rd-availability-chips>span,.fb-red-card){background:#fff0f2!important;border-color:#db9eac!important;color:#9e2c46}
html[data-fb-theme=light] :is(.rd-availability-player.doubt,.rd-availability-chips .doubt){background:#fff7e6!important;border-color:#d7bb75!important;color:#875d0b}
html[data-fb-theme=light] :is(.rd-availability-player.unknown,.rd-availability-player.bench,.rd-availability-chips .unknown,.rd-availability-chips .bench,.rd-lineup-phase.history,.rd-lineup-phase.unknown){background:#edf3f9!important;border-color:#adc2d7!important;color:#3a5873}
html[data-fb-theme=light] :is(.rd-availability-player span:not(.rd-availability-icon),.rd-availability-player small,.rd-lineup-phase.history strong,.rd-lineup-phase.unknown strong){color:#53677c!important}
html[data-fb-theme=light] :is(.rd-lineup-phase.starting,.rd-live-lineup,.fb-lineup-badge,.fp-master){background:#e5f5ec!important;border-color:#8cbaa4!important;color:#166545!important}
html[data-fb-theme=light] :is(.rd-lineup-phase.starting strong,.rd-lineup-phase.starting>span,.rd-lineup-phase.starting small){color:#166545!important}
/* Raised controls are retained, now with a white top highlight. */
html[data-fb-theme=light] body :where(button,select,input:not([type=checkbox]):not([type=radio]),.btn,.fb-book-pref):where(:not(.app-brand):not(.rd-player):not(.fp-close):not(.fb-settings-close):not(.fp-guide-card):not(.tab-btn):not(.fb-fixture)){
 background:linear-gradient(#fff,#edf2f8)!important;color:#334b65!important;border-color:#b6c6d8!important;box-shadow:inset 0 1px #fff,0 2px 5px #263e5514!important}
html[data-fb-theme=light] body :is(button.active,button[aria-selected=true],button[aria-pressed=true],button[aria-current=page],.fp-primary,.fb-settings-save){background:linear-gradient(#8858c0,#6c3ca6)!important;color:#fff!important;border-color:#7a46ae!important;box-shadow:inset 0 1px #ffffff35,0 3px 8px #7341b229!important}
html[data-fb-theme=light] body .app-content .match-date-button.active{background:linear-gradient(#8858c0,#6c3ca6)!important;color:#fff!important;border-color:#7a46ae!important}
html[data-fb-theme=light] .match-date-button :is(b,span){color:inherit!important}
html[data-fb-theme=light] .league-summary b{color:inherit!important}
html[data-fb-theme=light] body :is(.fp-close,.fb-settings-close){background:transparent!important;color:#53677c!important;box-shadow:none!important;border:0!important}
html[data-fb-theme=light] :is(.fb-settings-overlay,.fp-overlay){background:#34445a66;color:#243449}
html[data-fb-theme=light] .fp-footer{background:#f7f9fcf5!important}
html[data-fb-theme=light] :is(.fp-tip,.fp-master small,.fp-tour-top>span){background:#f2ecfa;color:#5e477b}
html[data-fb-theme=light] .fp-highlight{outline-color:#8755be}
html[data-fb-theme=light] .fb-appearance{background:#f3f0fa;border-color:#c6b7da;color:#243449}
html[data-fb-theme=light] .fb-appearance :is(p,small){color:#53677c!important}
/* Inline legacy palette, only while the light theme is selected. */
html[data-fb-theme=light] [data-fb-light-color]{color:var(--fb-light-color)!important}
html[data-fb-theme=light] [data-fb-light-bg]{background:var(--fb-light-bg)!important}
html[data-fb-theme=light] :focus-visible{outline-color:#7d42b6!important}
html[data-fb-theme=light] :is(table,thead,tbody,tr,th,td){border-color:#d5dfeb}
html[data-fb-theme=light] :is(th,thead){background:#edf2f9;color:#405973}
html[data-fb-theme=light] tbody tr:hover{background:#f4f0fa}
html[data-fb-theme=light] .next{background:#fff!important;color:#243449;border-color:#cbd6e4!important}
html[data-fb-theme=light] .next :is(p,h2){color:#53677c!important}
@media(hover:hover){html[data-fb-theme=light] body :is(button,select,.btn):hover{border-color:#9976bc!important}}
@media(prefers-reduced-motion:reduce){.fb-appearance *{transition:none!important}}
/* Layered important declarations intentionally outrank legacy raised-control
   rules, while selected controls still outrank the base inside this layer. */
@layer fb-light-controls{
 html[data-fb-theme=light] body :where(button,select,input:not([type=checkbox]):not([type=radio]),.btn,.fb-book-pref):where(:not(.app-brand):not(.rd-player):not(.fp-close):not(.fb-settings-close):not(.fp-guide-card):not(.tab-btn):not(.fb-fixture)){
  background:linear-gradient(#fff,#edf2f8)!important;color:#334b65!important;border-color:#b6c6d8!important;box-shadow:inset 0 1px #fff,0 2px 5px #263e5514!important;
 }
 html[data-fb-theme=light] body :is(button.active,button[aria-selected=true],button[aria-pressed=true],button[aria-current=page],.fp-primary,.fb-settings-save){
  background:linear-gradient(#8858c0,#6c3ca6)!important;color:#fff!important;border-color:#7a46ae!important;box-shadow:inset 0 1px #ffffff35,0 3px 8px #7341b229!important;
 }
}
html[data-fb-theme=light] :is(.rd-segments,.rd-probs>div,.rd-bet-reason,.rd-sub-distribution,.rd-subs-summary>div){background:#edf2f8!important;border-color:#cbd6e4!important;color:#334b65}
html[data-fb-theme=light] :is(.rd-team-labels,.rd-team-labels b,.rd-model>p,.rd-stat-line>span,.rd-stat-more p,.rd-probs span,.rd-bet-reason p){color:#405973!important}
html[data-fb-theme=light] .rd-context-bar button :is(b,small,span){color:inherit!important}
html[data-fb-theme=light] :is(.rd-player>b,.rd-player-card b){color:#243449!important}
html[data-fb-theme=light] :is(.rd-bet-edge,.rd-xg span:first-child,.rd-probs>div:first-child b){color:#087457!important}
html[data-fb-theme=light] :is(.rd-xg span:last-child,.rd-score-card b,.rd-probs>div:last-child b){color:#7341b2!important}
html[data-fb-theme=light] .rd-probs>div:nth-child(2) b{color:#405973!important}
html[data-fb-theme=light] :is(.rd-section-title>span,.rd-bet-edge small,.rd-bet-numbers,.rd-bet-open,.rd-row-note,.rd-fixture-details>summary){color:#53677c!important}
html[data-fb-theme=light] .rd-chevron{border-color:#60758b!important}
html[data-fb-theme=light] .rd-bet-numbers{border-color:#d5dfeb!important}
html[data-fb-theme=light] .rd-bar i:first-child{background:#0e9684!important}
html[data-fb-theme=light] .rd-bar i:last-child{background:#8852ca!important}
html[data-fb-theme=light] .rd-bet-numbers>span{color:#53677c!important}
html[data-fb-theme=light] .rd-bet-numbers>span:nth-child(2) b{color:#7341b2!important}
html[data-fb-theme=light] .rd-bet-check .rd-bet-edge{color:#875d0b!important}
html[data-fb-theme=light] .rd-xg i{color:#6b7d90}
