/* Shared theme; keep supplied logos in their original colours. */
:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--ink:#e5eee8;--muted:#a0b3a8;--green:#7dd9ac;--line:#30453a;--paper:#101916}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:6px 12px;border-radius:20px;background:#fff;color:#345444;border:1px solid var(--line);font-size:11px;line-height:1.4;white-space:nowrap}
.theme-toggle [data-theme-icon]{font-size:19px;line-height:1}
.header-tools{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:16px;row-gap:7px}
.header-tools .top-label{grid-column:1;grid-row:1}.header-tools .header-clock{grid-column:1;grid-row:2}.header-tools .theme-toggle{grid-column:2;grid-row:1/3}
@media(max-width:600px){.header-tools{width:100%;grid-template-columns:minmax(0,1fr) auto;column-gap:10px}.header-tools .top-label{justify-content:center;letter-spacing:1px;font-size:8px}.header-tools .header-clock{text-align:center;font-size:12px}.theme-toggle{padding:6px 10px}}
:root[data-theme=dark] body{background:var(--paper);color:var(--ink)}
:root[data-theme=dark] :is(.schedule,.favorites-panel,.match-story,.cookie-banner,.cookie-dialog,.push-dialog){background:#18251e;color:var(--ink);border-color:var(--line);box-shadow:0 8px 32px #0002}
:root[data-theme=dark] :is(button,select,.search,.day-button,.league-card,.favorite-league-card){background:#1b2a22;color:#d2e3d8;border-color:var(--line)}
:root[data-theme=dark] input{color:var(--ink)}
:root[data-theme=dark] input::placeholder{color:#a0b3a8}
:root[data-theme=dark] :is(.intro p,.meta,.pill,.header-clock,.breadcrumbs,.match-story p,.match-facts dt,.match-facts small,.story-updated,.match-league,.time>span,.broadcast-label,.unknown,details,.schedule-foot,.note,.empty p,.cookie-copy p,.cookie-dialog p,.push-dialog p,.push-help,.app-tools p,.favorite-team,.favorites-content>p,.privacy-links button,.cookie-policy-link,footer p,footer>span,.league-card-text small,.league-tag,.day-button>span){color:#a9bdb0}
:root[data-theme=dark] :is(.day-group>h3,.match-facts,.app-tools,.other-channels span,.push-selected-teams){background:#203328;color:#c9ddcf;border-color:var(--line)}
:root[data-theme=dark] :is(.day-group>h3>span,.empty h3,.day-button strong,.channel-name){color:#e1ede5}
:root[data-theme=dark] :is(.channel,.channel-with-logo){background:#1e3026;border-color:#38543f;color:#d4e8d9}
:root[data-theme=dark] .channel-logo{background:transparent;border-radius:7px}
:root[data-theme=dark] :is(.channel-visit,.match-detail-link,.breadcrumbs a,footer>span a,.push-dialog legend,.favorites-content>.favorites-status){color:#8dddb4}
:root[data-theme=dark] :is(.match,.teams,.day-group>h3,.week-navigation,.filters,.search,.pill,.push-dialog fieldset){border-color:var(--line)}
:root[data-theme=dark] :is(.league-card.active,.favorite-league-card[aria-pressed=true],.favorite-team:has(input:checked)){background:#264331;border-color:#699f7b;color:#c7f3d7}
:root[data-theme=dark] :is(.league-card:hover,.favorite-league-card:hover,.favorite-team:hover){background:#26392d;border-color:#5a8168}
:root[data-theme=dark] :is(.league-card-count,.day-match-count,.all-leagues-art){background:#30483a;color:#d1e7d7}
:root[data-theme=dark] :is(.league-card.has-matches:not(.active),.day-button.has-matches:not(.active)){background:#263c2b;border-color:#557b59;color:#e1eeda}
:root[data-theme=dark] .day-button.has-matches:not(.active)>span{color:#bed5bb}
:root[data-theme=dark] :is(.league-card.no-matches:not(.active),.day-button.no-matches:not(.active)){background:#1b2921;border-color:#304237;color:#9caea1}
:root[data-theme=dark] :is(.league-card-count,.league-card.active .league-card-count,.league-card.has-matches:not(.active) .league-card-count,.league-card.no-matches:not(.active) .league-card-count,.day-button.has-matches:not(.active) .day-match-count,.day-button.no-matches:not(.active) .day-match-count){background:#532a32;color:#ffbac2}
:root[data-theme=dark] :is(button.active,.day-button.active){background:#337654;color:#fff;border-color:#6cbd8c}
:root[data-theme=dark] :is(.day-button.active strong,.day-button.active>span){color:#fff}
:root[data-theme=dark] .day-button.active .day-match-count{background:#672d38;color:#ffd3d8}
:root[data-theme=dark] .intro-number{color:#22372a}:root[data-theme=dark] .intro-number span{color:#34533d}
:root[data-theme=dark] .match--live{background:#2b2023}:root[data-theme=dark] .match--live .time strong{color:#ff9ca9}:root[data-theme=dark] .match--live .teams{border-color:#d96679}
:root[data-theme=dark] .match--scheduled{background:#19291f}:root[data-theme=dark] .match--scheduled .time strong{color:#a9d59c}
:root[data-theme=dark] :is(.match--finished .teams strong,.match--finished .time){color:#b0c1b5}
:root[data-theme=dark] .match-score{background:#243d5b;color:#b8d9ff;border-color:#476a93}
:root[data-theme=dark] .match-minute{color:#ffb5c0}
:root[data-theme=dark] :is(.notice,.match-story .archive-note){background:#3b3021;color:#edcf9b}
:root[data-theme=dark] .theme-toggle{background:#24382c;color:#cde8d5}
:root[data-theme=dark] .back-to-top{background:#2c533b;color:#edfff1;border-color:#517c5c}
:root[data-theme=dark] :is(.cookie-dialog,.push-dialog)::backdrop{background:#0009}
:root[data-theme=dark] :is(.cookie-actions #cookie-accept,.app-actions button:first-child,.push-buttons button:first-child,.favorites-content>button){background:#337654;color:#fff;border-color:#6cbd8c}

:root[data-theme=dark] .league-picker{background:#18251e;border-color:var(--line)}
:root[data-theme=dark] .league-card-art:not(.all-leagues-art){background:transparent;padding:0}
:root[data-theme=dark] .favorite-league-card img{background:transparent;padding:0}
:root[data-theme=dark] .match-league>img{background:transparent;padding:0}
