/* Games: shared screen palette. No effect on light mode, print or exports. */
@media screen {
 :root[data-theme="dark"] {
  --mf-bg:#101923!important;--mf-surface:#1c2b3b!important;
  --mf-surface-soft:#25364a!important;--mf-text:#edf3fa!important;
  --mf-muted:#b9c8da!important;--mf-border:#42566e!important;--mf-link:#a6ccff!important;
 }
 :root[data-theme="dark"] body main {
  --surface:var(--mf-surface)!important;--surface-alt:var(--mf-surface-soft)!important;
  --surface-soft:var(--mf-surface-soft)!important;--text:var(--mf-text)!important;
  --muted:var(--mf-muted)!important;--border:var(--mf-border)!important;
  --border-color:var(--mf-border)!important;--text-muted:var(--mf-muted)!important;
  color:var(--mf-text);
 }
 :root[data-theme="dark"] body main :is(.card,.panel,.stat,.quick-action,.admin-module,.mf-photo-card,.overview-summary,.overview-league,.live-game,.calendar-mobile-mandate,.calendar-list-panel,.pmx-roster,.pmx-export-share,.iptc-import,.permission-stat,.permission-item,.club-profile-group,.sp-folds details,.sp-note-document) {
  background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-border)!important;
 }
 :root[data-theme="dark"] body main :is(h1,h2,h3,h4,.mf-photo-date strong,.mf-photo-date .mf-date-value,.mf-photo-next-bottom strong) {color:var(--mf-text)!important}
 :root[data-theme="dark"] body main :is(.mf-photo-identity p,.mf-photo-date>span,.mf-photo-date .mf-date-weekday,.mf-photo-muted,.mf-photo-details>summary,.mf-sheet-status.is-not_published) {color:var(--mf-muted)!important}
 :root[data-theme="dark"] body main .mf-photo-card.is-next {border-top-color:#6ba8ed!important}
 :root[data-theme="dark"] body main .mf-photo-next-label {color:#a6ccff!important}
 :root[data-theme="dark"] body main .mf-photo-details {border-color:var(--mf-border)!important}
 :root[data-theme="dark"] body main .mf-photo-details>summary:hover {background:var(--mf-surface-soft)!important}
 :root[data-theme="dark"] body main :is(.button.secondary,.button.outline,.mf-refined-secondary,.pmx-outline,.btn-secondary) {
  background:#25364a!important;color:#d7e8ff!important;border-color:#607c9c!important;box-shadow:none!important;
 }
 :root[data-theme="dark"] body main :is(.button.secondary,.button.outline,.mf-refined-secondary,.pmx-outline,.btn-secondary):hover {
  background:#304a67!important;color:#fff!important;border-color:#91b8e6!important;
 }
 :root[data-theme="dark"] body main :is(.button.secondary,.mf-refined-secondary)[aria-current="page"],
 :root[data-theme="dark"] body main :is(.button.secondary,.mf-refined-secondary)[aria-pressed="true"] {
  background:#285a94!important;color:#fff!important;border-color:#8bbbf2!important;
 }
 :root[data-theme="dark"] body main .mf-photo-state {background:#263d57!important;color:#cde3ff!important;border-color:#52769c!important}
 :root[data-theme="dark"] body main .mf-photo-state.is-confirmed {background:#203e33!important;color:#a2e7bf!important;border-color:#407c5e!important}
 :root[data-theme="dark"] body main :is(.mf-photo-attention,.mf-photo-notes-button) {background:#493b25!important;color:#ffda99!important;border-color:#9c7741!important}
 :root[data-theme="dark"] body main .mf-photo-agency {background:#293d56!important;color:#b7d6ff!important;border-color:#4b6788!important}
 :root[data-theme="dark"] body main .mf-photo-next-bottom .is-granted {color:#a2e7bf!important}
 :root[data-theme="dark"] body main :is(.mf-photo-check-summary,.mf-photo-checks) {color:#ffda99!important}
 :root[data-theme="dark"] body main :is(a,button,summary):focus-visible {outline:3px solid #9ac5fa!important;outline-offset:3px}
 :root[data-theme="dark"] body main :is(.clubs-readable .club-contact-table a.club-contact-link,.mf-photo-secondary-actions a:not(.button)) {color:var(--mf-link)!important}
}

/* Complete audit: selected public-calendar rows, editorial helpers and states. */
@media screen {
 :root[data-theme="dark"] body main .mf-public-calendar :is(.pc-panel,.pc-manual-list article,.pc-manual-form) {
  background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-border)!important;
 }
 :root[data-theme="dark"] body main .mf-public-calendar .pc-match {
  background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-border)!important;
 }
 :root[data-theme="dark"] body main .mf-public-calendar .pc-match:has(input:checked) {background:#263e59!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-match:hover {background:#304b69!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-match:focus-within {outline:2px solid var(--mf-link);outline-offset:-2px}
 :root[data-theme="dark"] body main .mf-public-calendar :is(.pc-match-info,.pc-date,.pc-match .mf-team,.pc-match .mf-match-separator) {color:var(--mf-text)!important}
 :root[data-theme="dark"] body main .mf-public-calendar :is(.pc-date small,.pc-match-info small,.pc-manual-list p,.pc-manual-list .mf-date-display,.pc-manual-list .mf-date-weekday,.pc-manual-list .mf-date-value,.pc-manual-grid small) {color:var(--mf-muted)!important}
 :root[data-theme="dark"] body main .mf-public-calendar :is(.pc-count,.pc-notice,.pc-manual-status) {background:var(--mf-surface-soft)!important;color:var(--mf-text)!important;border-color:var(--mf-border)!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-error {background:var(--mf-danger-bg)!important;color:var(--mf-danger)!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-manual-edit {background:#25364a!important;color:#d7e8ff!important;border-color:#607c9c!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-address-results {background:var(--mf-surface)!important;border-color:var(--mf-border)!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-address-results li {border-color:var(--mf-border)!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-address-results button {background:var(--mf-surface)!important;color:var(--mf-text)!important}
 :root[data-theme="dark"] body main .mf-public-calendar .pc-address-results button:is(:hover,:focus-visible) {background:var(--mf-surface-soft)!important;color:var(--mf-link)!important}
 :root[data-theme="dark"] body main .health-badge {background:var(--mf-surface-soft)!important;color:var(--mf-text)!important;border-color:var(--mf-border)!important}
 :root[data-theme="dark"] body main .reportage-agency-badge {background:#293d56!important;color:#b7d6ff!important;border-color:#4b6788!important}
 :root[data-theme="dark"] body main :is(.reportage-badge,.reportage-check-dot,.reportage-participation[data-state="assigned"]) {background:#493b25!important;color:#ffda99!important;border-color:#9c7741!important}
 :root[data-theme="dark"] body main :is(.reportage-badge[data-state="ready"],.reportage-participation[data-state="confirmed"]) {background:#203e33!important;color:#a2e7bf!important;border-color:#407c5e!important}
 /* Branding preview intentionally shows the configured public light palette. */
 :root[data-theme="dark"] body main .appearance-preview.appearance-preview.appearance-preview :is(h2,h3,h4) {color:inherit!important}
 /* Override the legacy high-specificity button decorator consistently, including hover. */
 html:root[data-theme="dark"] body main .mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-secondary {
  background:#25364a!important;color:#d7e8ff!important;border-color:#607c9c!important;
 }
 html:root[data-theme="dark"] body main .mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-secondary:hover {
  background:#304a67!important;color:#fff!important;border-color:#91b8e6!important;
 }
 html:root[data-theme="dark"] body main .mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-danger {
  background:#442d36!important;color:#ffd5da!important;border-color:#ad7076!important;
 }
 html:root[data-theme="dark"] body main .mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-danger:hover {
  background:#583540!important;color:#fff!important;
 }
}
@media screen {
 html:root[data-theme="dark"] body main .mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-button.mf-refined-secondary:is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]) {background:#285a94!important;color:#fff!important;border-color:#8bbbf2!important}
}
