/* Official RMC palette: presentation only; existing layout, records and actions are unchanged. */
html[data-theme],html[data-theme] body{
 --background:#111b29!important;--foreground:#edf2f7!important;--card:#1b293b!important;--card-foreground:#edf2f7!important;
 --surface:#1b293b!important;--surface-strong:#24364b!important;--surface-soft:#172334!important;--surface-raised:#24364b!important;
 --popover:#1b293b!important;--popover-foreground:#edf2f7!important;--primary:#9ac8d7!important;--primary-foreground:#112832!important;
 --secondary:#283b50!important;--secondary-foreground:#edf2f7!important;--muted:#243449!important;--muted-foreground:#bdc9d7!important;
 --accent:#9ac8d7!important;--accent-foreground:#112832!important;--border:#42566e!important;--input:#52677d!important;--ring:#9ac8d7!important;
 --text-secondary:#bdc9d7!important;--text-soft:#bdc9d7!important;--comfort-nav:#142131;--comfort-active:#294858;--comfort-hover:#263c50;
 --comfort-header:linear-gradient(115deg,#263e55,#182a3d 70%);--comfort-score:#e5edf2;--comfort-ink:#142b3c;
 --broadcast-blue:linear-gradient(115deg,#304d65,#233b50)!important;--shadow:0 8px 24px #0002!important;
 color-scheme:dark;
}
html[data-theme=light],html[data-theme=light] body{
 --background:#eef2f5!important;--foreground:#1e3348!important;--card:#ffffff!important;--card-foreground:#1e3348!important;
 --surface:#ffffff!important;--surface-strong:#e4ebf1!important;--surface-soft:#f4f7f9!important;--surface-raised:#e4ebf1!important;
 --popover:#fff!important;--popover-foreground:#1e3348!important;--primary:#245a70!important;--primary-foreground:#fff!important;
 --secondary:#e2ebf1!important;--secondary-foreground:#1e3348!important;--muted:#e7edf2!important;--muted-foreground:#50657a!important;
 --accent:#245a70!important;--accent-foreground:#fff!important;--border:#b6c5d2!important;--input:#8297aa!important;--ring:#245a70!important;
 --text-secondary:#50657a!important;--text-soft:#50657a!important;--comfort-nav:#e4ebf1;--comfort-active:#d2e4ec;--comfort-hover:#dce8ee;
 --comfort-header:linear-gradient(115deg,#e5edf3,#f7f9fb 70%);--comfort-score:#dce8ef;--comfort-ink:#17364c;
 --broadcast-blue:linear-gradient(115deg,#dce8f0,#edf3f7)!important;--shadow:0 8px 24px #29455e0b!important;
 color-scheme:light;
}
html[data-theme] body{background:var(--background)!important;color:var(--foreground)!important}
html[data-theme] body .topbar{background:var(--comfort-header)!important;border-color:var(--border)!important;box-shadow:0 2px 12px #0001!important}
html[data-theme] body .topbar :is(.brand-word,.season,.account-chip){color:var(--foreground)!important;text-shadow:none!important}
html[data-theme] body .topbar .brand-kick{background:var(--comfort-score)!important;color:var(--comfort-ink)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body :is(.main-nav,.rmc-mobile-menu,.mobile-dock){background:var(--comfort-nav)!important;border-color:var(--border)!important;box-shadow:none!important;background-image:none!important}
html[data-theme] body .main-nav:before{color:var(--text-secondary)!important}
html[data-theme] body .main-nav :is(button,a){color:var(--text-secondary)!important;text-shadow:none!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme] body .main-nav button[data-state=active],html[data-theme] body .mobile-dock button[aria-current=page]{background:var(--comfort-active)!important;color:var(--foreground)!important;border-color:var(--primary)!important;box-shadow:inset 3px 0 var(--primary)!important}
html[data-theme] body :is(.main-nav button:hover,.mobile-dock button:hover){background:var(--comfort-hover)!important;color:var(--foreground)!important}
html[data-theme] body :is(.theme-toggle,.login-button,.account-chip,.view-mode-toggle,.rmc-wallet-toggle,.rmc-side-collapse,.rmc-mobile-menu button){background:var(--surface-raised)!important;color:var(--foreground)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body :is(h1,h2,h3){text-shadow:none!important}
html[data-theme] body :is(.section-head,.section-heading,.team-page-head,.player-page-head,.stream-page-head,[class*="_heading_"]){color:var(--foreground)!important}
html[data-theme] body :is(.section-head p,.section-heading p,[class*="_heading_"] p,.meta,.rmc-stadium-breadcrumb){color:var(--text-secondary)!important}
html[data-theme] body .content :is(.team-card,.match-card,.round-card,.standings-table,.stats-board,.admin-panel,.team-form,.registration-aside,.membership-panel,.member-dashboard,.join-hub,.player-upload-panel,.player-showcase,.player-profile,.competition-empty,.loading-state,.login-gate,.stream-hub,.stream-card,.on-air,.quick-standing,[class*="_group_"],[class*="_wallet_"],[class*="_rules_"],[class*="_profileLayout_"]>section,[class*="_publicGroups_"] article,[class*="_publicRounds_"] article){background:var(--surface)!important;border-color:var(--border)!important;box-shadow:var(--shadow)!important;color:var(--foreground)!important}
html[data-theme] body .content :is([class*="_group_"]>header,.round-card>header,[class*="_round_"]>h3){background:var(--broadcast-blue)!important;border-color:var(--border)!important;box-shadow:none!important;color:var(--foreground)!important}
html[data-theme] body .content [class*="_group_"]>header :is(h2,span){color:var(--foreground)!important}
html[data-theme] body .content :is(._match_d8lou_1,.fixture,.member-row,.join-team-card,.admin-team,.roster-preview,.roster-player-row,.contract-invite){background:var(--surface-soft)!important;border-color:var(--border)!important;box-shadow:none!important;color:var(--foreground)!important}
html[data-theme] body .content :is(._versus_d8lou_1){background:var(--surface-raised)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body .content ._versus_d8lou_1>b{background:var(--comfort-score)!important;color:var(--comfort-ink)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body .content :is(._team_d8lou_1 strong,._fixtureTitle_rmcGroups2){color:var(--foreground)!important;text-shadow:none!important}
html[data-theme] body .content :is(._date_d8lou_1,.rmc-match-state,.rmc-prediction-toggle){color:var(--text-secondary)!important;border-color:var(--border)!important;background:var(--surface-soft)!important;box-shadow:none!important}
html[data-theme] body .content table{color:var(--foreground)!important;border-color:var(--border)!important}
html[data-theme] body .content :is(th,thead){background:var(--surface-soft)!important;color:var(--text-secondary)!important;border-color:var(--border)!important}
html[data-theme] body .content td{border-color:var(--border)!important}
html[data-theme] body .content tbody tr{background:var(--surface)!important;color:var(--foreground)!important}
html[data-theme] body .content tbody tr:nth-child(even){background:var(--surface-soft)!important}
html[data-theme] body .content tbody tr:hover{background:var(--comfort-hover)!important}
html[data-theme] body .content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:var(--surface-soft)!important;color:var(--foreground)!important;border-color:var(--input)!important;box-shadow:none!important}
html[data-theme] body .content :is(input,textarea)::placeholder{color:var(--text-secondary)!important;opacity:1}
html[data-theme] body :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ring)!important;outline-offset:3px!important}
html[data-theme] body .content :is(.submit-team,.add-player,.create-team-link,.hero-actions button,.gx-home-actions button){background:var(--primary)!important;color:var(--primary-foreground)!important;border-color:var(--primary)!important;box-shadow:none!important}
html[data-theme] body .content :is(.gx-ranking,.gx-teams,.gx-fixtures,.gx-world,.gx-about,.gx-community){background:var(--surface)!important;color:var(--foreground)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body .content :is(.gx-ranking,.gx-teams,.gx-fixtures,.gx-world,.gx-about,.gx-community) :is(h2,h3){color:var(--foreground)!important}
html[data-theme] body .content :is(.gx-ranking,.gx-teams,.gx-fixtures,.gx-world,.gx-about,.gx-community) p{color:var(--text-secondary)!important}
html[data-theme] body .content :is(.gx-ranking-row,.gx-fixture,.gx-mini-stats>div){background:var(--surface-soft)!important;border-color:var(--border)!important;color:var(--foreground)!important;box-shadow:none!important}
html[data-theme] body .content :is(.gx-category button,.gx-group-picker button){border-color:var(--border)!important;color:var(--foreground)!important;background:var(--surface-raised)!important;box-shadow:none!important}
html[data-theme] body .content :is(.gx-category button[aria-pressed=true],.gx-group-picker button[aria-pressed=true]){background:var(--comfort-active)!important;border-color:var(--primary)!important}
html[data-theme] body main>footer{background:var(--comfort-nav)!important;color:var(--text-secondary)!important;border-color:var(--border)!important;box-shadow:none!important}
html[data-theme] body main>footer .brand-word{color:var(--foreground)!important}
html[data-theme] body .topbar :is(.season span,.season b,.brand-word em){color:var(--foreground)!important}
html[data-theme] body .topbar .season:before,html[data-theme] body .topbar .brand:after{color:var(--text-secondary)!important}
html[data-theme] body .main-nav button:before{color:var(--text-secondary)!important}
html[data-theme] body .main-nav button[data-state=active]:after,html[data-theme] body .content [class*="_group_"]>header:after{background:none!important;box-shadow:none!important}
html[data-theme] body .main-nav svg,html[data-theme] body .content ._date_d8lou_1:before{color:currentColor!important}
