/* CP225.13.2 – Dark mode with contrast-preserving semantic surfaces.
   Light mode intentionally retains original colors. No display:none on content. */
:root{--zk13-bg:#f5f8f6;--zk13-surface:#fff;--zk13-elevated:#f2f8f3;--zk13-text:#183b29;--zk13-sub:#55715f;--zk13-line:#d9e7de;--zk13-accent:#176b4a;--zk13-accent-text:#fff}
html[data-zk-theme="dark"]{
 --zk13-bg:#101914;--zk13-surface:#1b2820;--zk13-elevated:#23352a;--zk13-text:#edf5ef;--zk13-sub:#bfd0c2;--zk13-line:#395344;--zk13-accent:#80c9a0;--zk13-accent-text:#10241a;
 color-scheme:dark;
}
.zk13-theme-panel{display:block!important;flex:none!important;margin:8px 0 0!important;padding:13px!important;border:1px solid #cfe2d4!important;border-radius:10px!important;background:#f4f9f6!important;color:#204d33!important;font-family:Inter,system-ui,-apple-system,Arial,sans-serif!important;text-align:left!important;max-width:none!important}
.zk13-theme-panel .zk13-theme-heading{display:block!important;color:inherit!important;font-size:12px!important;line-height:1.3!important;letter-spacing:0!important;margin:0 0 10px!important}
.zk13-theme-choices{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;width:100%!important;margin:0!important}
.zk13-theme-choices button{display:block!important;min-width:0!important;width:100%!important;min-height:40px!important;padding:8px 6px!important;border-radius:7px!important;border:1px solid #c9dfd0!important;background:#fff!important;color:#28533a!important;font:750 11px/1.4 Inter,system-ui,sans-serif!important;cursor:pointer!important;text-align:center!important;box-shadow:none!important}
.zk13-theme-choices button[aria-pressed="true"]{background:#176b4a!important;border-color:#176b4a!important;color:#fff!important}
.zk13-theme-panel p{color:#607c69!important;font:400 10px/1.5 Inter,system-ui,sans-serif!important;margin:10px 0 0!important}
#zk2256-mobile-drawer .zk13-theme-panel,#zk2258-desktop-menu .zk13-theme-panel{width:100%!important;box-sizing:border-box!important;min-height:0!important;position:static!important;order:100!important}
.zk13-standalone-wrap{position:relative;display:flex;align-items:center;margin-left:auto;z-index:6500}
.zk13-standalone-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:8px 12px;border-radius:9px;background:#176b4a;color:#fff;border:1px solid #176b4a;font:750 12px Inter,system-ui,sans-serif;cursor:pointer}
#zk13-standalone-menu{position:absolute;top:calc(100% + 8px);right:0;width:min(315px,92vw);max-height:80vh;overflow-y:auto;padding:12px;background:var(--zk13-surface);color:var(--zk13-text);border:1px solid var(--zk13-line);border-radius:12px;box-shadow:0 10px 38px #0004;z-index:6900}
#zk13-standalone-menu[hidden]{display:none!important}
#zk13-standalone-menu .zk13-mini-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#zk13-standalone-menu .zk13-mini-links a{display:block;border:1px solid var(--zk13-line);background:var(--zk13-elevated);color:var(--zk13-text);padding:10px 8px;text-decoration:none;border-radius:8px;font:700 11px Inter,system-ui,sans-serif}
body:has(>.zk13-standalone-wrap)>.zk13-standalone-wrap{position:fixed;top:9px;right:12px;z-index:7900}
html[data-zk-theme="dark"]{background:var(--zk13-bg)!important;color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body{background:var(--zk13-bg)!important;color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body :is(main,.section.light,.section.dark,.account-hero,.matchday-hero,.zk-help-content,.zk-help-hero,.club-detail-hero,.club-v169-page,.club-v169-hero,.groundhop-hero,.zk186-shell,.zk2311-hero,.club-stats-hero-v124,.ultra-profile-hero-v131,.ultra-profile-content-v131,.ultra-profile-main-v131,.k24-landing,.k24-coming,.k24-faq,.k24-hero,.app,.wrap,.container,.community-view){color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body :is(.section.light,.section.dark,.account-hero,.matchday-hero,.zk-help-content,.zk-help-hero,.club-detail-hero,.club-v169-page,.club-v169-hero,.ultra-profile-hero-v131,.ultra-profile-content-v131,.ultra-profile-main-v131,.club-stats-hero-v124,.zk2311-hero,.zk186-shell,.k24-landing,.k24-coming,.k24-faq,.k24-hero,.community-view){background-color:var(--zk13-bg)!important;background-image:none!important}
html[data-zk-theme="dark"] body :is(.site-header,.header-inner,.main-nav,.global-nav,.club-v169-nav,.club-subnav-v124,.club-v169-subnav,.mobile-bottom-nav,.zk2258-desktop-menu,.ground-filter-tabs,.k24-nav){background-color:var(--zk13-surface)!important;color:var(--zk13-text)!important;border-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body :is(.site-header,.site-header a,.site-header button,.main-nav a,.global-nav a,.mobile-bottom-nav a,.club-v169-nav a,.club-subnav-v124 a){color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body :is(
.card, .panel, .box, .feature, .k24-tool, .k24-plan, .zk218-workspace [class*="card"],
.zk218-workspace [class*="panel"], .zk2311-panel, .zk186-panel,
.club-v169-section .club-v169-facts-panel, .club-v169-ticket-card,
.club-v169-pulse-panel, .club-v169-matchbox, .club-detail-head,
.score-card, .zk10-score-expand, .ranking-verdict-card-v121,
.visit-card-v159, .ranking-profile-grid-v123 article,
.ranking-strengths-v123 article, .zk10-detail-note,
.z k13-placeholder,
.club-stat-card-v124, .league-stat-summary-v124,
.ground-card, .groundhop-stat, .groundhopper-leaderboard-v86,
.groundhopper-my-progress-v86, .groundhopper-ranking,
.zk11-hub, .zk11-leaderboard-tools, .zk11-summary-legend,
.zk2258-pro-area, .zk2258-detail, .zk2258-detail-inner,
.zk2258-next-fixture, .zk2258-status-grid>div, .zk2258-trip-check,
.zk2258-trip-group .zk186-panel, .zk2258-phase .zk2311-panel,
.zk9-summary, .matchday-side, #matchday-guide, #matchday-intel-v123,
.zk-help-step, .zk10-help-tools, .zk207-status, .zk-help-final,
.zk10-help-extra article, .zk10-kette-bar, .zk10-kette-extra,
.zk10-ground-tools, .zk10-ground-progress, .zk92-pro-callout,
.club-v169-check-grid article, .ultra-fact-v131, .person-card,
.profile-card, .account-card, .zk12-tool-switch,.zk12-stat-switch,
.zk11-hub-links a, .club-v169-facts-grid article
){background-color:var(--zk13-surface)!important;color:var(--zk13-text)!important;border-color:var(--zk13-line)!important;box-shadow:none!important}
html[data-zk-theme="dark"] body :is(
.stat, .stat-card, .ground-card .ground-card-meta,
.club-v169-facts-grid article,.club-v169-check-grid article,
.zk186-stat, .zk2311-stat, .zk11-summary-legend span,
.matchday-guide-grid article, .matchday-intel-stats-v123 article,
.matchday-intel-main-v123 article, .zk9-summary-links a,
.zk10-score-expand[open]>summary, .zk10-score-expand>summary,
.zk10-kette-extra[open]>summary,.zk11-hub-links button,
.zk2258-tile-links a,.zk2258-fixture-actions a,
.zk2258-phase-nav button:not([aria-selected="true"]),
.zk2258-trip-nav a,.ground-search-wrap,
.zk10-help-extra .zk-help-step summary,
.zk13-theme-panel
){background-color:var(--zk13-elevated)!important;color:var(--zk13-text)!important;border-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body :is(h1,h2,h3,h4,h5,h6,strong,b,legend,label,.headline,.title,.club-detail-head h1,.club-v169-hero h1,.ground-card h3,.section-head h2){color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body :is(p,small,summary,li,dd,dt,.muted,.subtitle,.description,.text-muted,.eyebrow,.lead,.zk186-muted,.zk2311-sub,.club-v169-lead,.matchday-date,.zk11-hub-text small,.zk10-detail-note){color:var(--zk13-sub)!important}
html[data-zk-theme="dark"] body :is(a:not([class*="btn"]):not(.zk13-standalone-toggle), .content-shell a):not(.brand):not(.zk13-theme-choices button){color:#a0e7bb}
html[data-zk-theme="dark"] body :is(input,select,textarea,option,[contenteditable="true"],.ground-search-wrap input,.zk10-help-tools input,.zk11-leaderboard-tools input){background-color:#132117!important;color:var(--zk13-text)!important;border-color:#4b6d54!important;caret-color:#a8edbf!important}
html[data-zk-theme="dark"] body :is(input,textarea)::placeholder{color:#b2c8b9!important;opacity:1!important}
html[data-zk-theme="dark"] body :is(input,select,textarea,button,a):focus-visible{outline:2px solid #9aeabb!important;outline-offset:3px!important}
html[data-zk-theme="dark"] body :is(table,thead,tbody,tr,td,th,.groundhopper-table-v86,.club-stat-table-wrap-v124){background-color:transparent!important;border-color:var(--zk13-line)!important;color:var(--zk13-text)!important}
html[data-zk-theme="dark"] body :is(th,.groundhopper-table-v86 th){background:#263d2e!important;color:#eaf5ed!important}
html[data-zk-theme="dark"] body :is(td,.groundhopper-table-v86 td){color:var(--zk13-text)!important;border-bottom-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body :is(.tablewrap,.club-stat-table-wrap-v124,.groundhopper-table-wrap-v86){border-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body :is(.btn,.primary,.zk186-primary,.zk2311-primary,.zk11-hub-links a:first-child,.zk2258-cta,.matchday-actions .zk9-primary):not(:disabled){background-color:#276c45!important;border-color:#43825b!important;color:#fff!important}
html[data-zk-theme="dark"] body :is(.btn-outline,.secondary,.zk186-outline,.matchday-actions #matchday-share,.zk2258-fixture-actions a){background-color:#26402e!important;border-color:#52735b!important;color:#d9f7e2!important}
html[data-zk-theme="dark"] body :is(.notice,.alert,.message,.zk186-notice,.zk11-section-note,.zk13-theme-panel p,.zk2311-feedback,.zk186-inline-feedback){background-color:var(--zk13-elevated)!important;color:var(--zk13-text)!important;border-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body :is(.badge,.tag,.pill,.zk2258-free-label,.zk2258-pro-label){background:#244a32!important;color:#dcf8e5!important;border-color:#466f50!important}
html[data-zk-theme="dark"] body :is(.zk2258-status-grid strong,.groundhop-stat strong,.big-score,.score-card strong,.club-detail-head .big-score){color:#a9ecc2!important}
html[data-zk-theme="dark"] body :is(.site-header .brand,.site-header .brand span,.logo,.brand){color:#f6fef8!important}
html[data-zk-theme="dark"] body :is(.zk13-theme-panel,.zk13-theme-panel .zk13-theme-heading){background:#213529!important;color:#eaf6ee!important;border-color:#526b57!important}
html[data-zk-theme="dark"] body .zk13-theme-choices button{background:#17261b!important;color:#f1fcf3!important;border-color:#56745d!important}
html[data-zk-theme="dark"] body .zk13-theme-choices button[aria-pressed="true"]{background:#176b4a!important;color:#fff!important;border-color:#86c7a0!important}
html[data-zk-theme="dark"] body .zk13-theme-panel p{background:transparent!important;color:#bcd2c2!important}
html[data-zk-theme="dark"] body #zk2258-desktop-menu{background:#1a2920!important;border-color:#44634c!important}
html[data-zk-theme="dark"] body #zk2258-desktop-menu a{color:#e2f4e6!important}
html[data-zk-theme="dark"] body #zk2256-mobile-drawer{background:#16271b!important}
html[data-zk-theme="dark"] body #zk2256-mobile-drawer a{color:#e9f8ec!important}
html[data-zk-theme="dark"] body :is(.zk12-items button,.zk13-mini-links a){background:var(--zk13-elevated)!important;color:var(--zk13-text)!important;border-color:var(--zk13-line)!important}
html[data-zk-theme="dark"] body .zk12-items button[aria-current="true"]{background:#176b4a!important;color:#fff!important}
@media(prefers-reduced-motion:reduce){.zk13-theme-panel *,#zk13-standalone-menu *{transition:none!important;animation:none!important}}

/* CP225.13.3: header controls and focus contrast, including notification icons. */
html[data-zk-theme="dark"] body .site-header :is(button,[role="button"]):not(.zk13-standalone-toggle):not([data-zk13-choice]){
  background-color:#24392b!important;
  color:#f2fbf4!important;
  border-color:#486c55!important;
}
html[data-zk-theme="dark"] body .site-header :is(button,[role="button"]) svg{
  color:#eefbf1!important;
  stroke:currentColor!important;
}
html[data-zk-theme="dark"] body #zk2258-desktop-menu :is(a,button):focus-visible,
html[data-zk-theme="dark"] body #zk2256-mobile-drawer :is(a,button):focus-visible{
  outline:2px solid #b0f5ca!important;outline-offset:2px!important;
}
