
#me-appearance{position:fixed;left:16px;bottom:16px;z-index:1200;display:flex;align-items:center;gap:8px;padding:5px 9px;background:#fff;color:#112b3c;border:1px solid #b5cbd8;border-radius:30px;box-shadow:0 4px 18px #061c2c30;font:500 13px/1.4 system-ui,sans-serif;max-width:calc(100vw - 32px);box-sizing:border-box}
#me-appearance label{display:flex;align-items:center;gap:5px;margin:0;padding:0;font:inherit;color:inherit}#me-appearance label span{font-size:21px}#me-appearance select{background:transparent;color:inherit;border:0;border-radius:16px;font:inherit;min-height:34px;width:auto;padding:5px 22px 5px 4px;margin:0;cursor:pointer;box-shadow:none}#me-appearance select:focus-visible{outline:3px solid #7dcaff;outline-offset:1px}#me-appearance-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-me-theme=dark]{--me-bg:#061522;--me-surface:#10283a;--me-raised:#18384c;--me-text:#ecf3fa;--me-muted:#b2c7d8;--me-border:#345368;--me-link:#a6d9ff;background:var(--me-bg);color:var(--me-text)}
html[data-me-theme=dark] body{background:var(--me-bg)!important;color:var(--me-text)!important}
html[data-me-theme=dark] #me-appearance{background:#10283a;color:#ecf3fa;border-color:#52748b}
html[data-me-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background:#0b2132!important;color:#ecf3fa!important;border-color:#52748b!important}
html[data-me-theme=dark] input::placeholder,html[data-me-theme=dark] textarea::placeholder{color:#adc1d0;opacity:1}
html[data-me-theme=dark] :is(a,.linkbtn,.textbutton){color:var(--me-link)}
html[data-me-theme=dark] :is(h1,h2,h3,h4){color:var(--me-text)}
html[data-me-theme=dark] :is(dialog,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:var(--me-surface);color:var(--me-text)}
html[data-me-theme=dark] dialog::backdrop{background:#000a}
html[data-me-theme=dark] :is(.muted,.topmeta,.topnote,.searchmeta,.profilemeta,.entry-count,.date,.footer,.facts dt,.record p,.facility p,.coveragecard p,.company small,.aside-note p,.workspace-status,.workspace-context,.workspace-import,.procurement-freshness){color:var(--me-muted)!important}
html[data-me-theme=dark] :is(.panel,.card,.stat,.coveragecard,.candidate,.timeline,.topideas,.campaign,.community-snapshot,.ideas-explorer,.report-sheet,.report-preview,.report-card,.sport-card,.player-card,.club-card,.metric-card,.coverage-card,.sheet,.summary-card,.map-detail,.layer-panel,.region-popup-body){background:var(--me-surface)!important;color:var(--me-text)!important;border-color:var(--me-border)!important}
html[data-me-theme=dark] :is(.panel,.card,.stat,.coveragecard,.timeline,.topideas,.community-snapshot,.report-sheet,.map-detail,.layer-panel) :is(h1,h2,h3,h4,p,strong,b,label){color:inherit}
html[data-me-theme=dark] :is(.note,.notice,.solutioncard,.duplicatebox,.dashboardstats,.workspace-note,.workspace-evidence,.workspace-banner,.facility-heading,.dialoghead,.quickchoice,.coverage-note,.report,.maphead,.mapfoot,.map-status-below,.map-tool-status,.badge,.alias,.chip){background:var(--me-raised)!important;color:var(--me-text)!important;border-color:var(--me-border)!important}
html[data-me-theme=dark] :is(.vote,.tabs button,.company,.load,.workspace-tabs button,.map-zoom-controls button,.map-small-regions button,.map-mode-switch button,.club-geo-outline,.club-geo-fit){background:var(--me-surface)!important;color:var(--me-link)!important;border-color:var(--me-border)!important}
html[data-me-theme=dark] :is(.company.active,.tabs button.active,.vote.active,.quickchoice[aria-pressed=true],.workspace-tabs button[aria-pressed=true],.map-mode-switch button[aria-pressed=true]){background:var(--me-raised)!important;color:#fff!important;border-color:var(--me-link)!important;box-shadow:inset 3px 0 0 var(--me-link)}
html[data-me-theme=dark] :is(.primary,.button,.cta,.profile-link,.workspace-save,.facility button,.popup-open){color:#fff!important}
html[data-me-theme=dark] :is(th,td,.record,.facility,.toprow,.counts,.tabs,.selected-check,.change-field){border-color:var(--me-border)!important}
html[data-me-theme=dark] table{background:var(--me-surface);color:var(--me-text)}html[data-me-theme=dark] :is(thead,th){background:var(--me-raised);color:var(--me-text)}html[data-me-theme=dark] tbody tr:nth-child(even){background:#153044}html[data-me-theme=dark] pre{background:#071b2b;color:#d6e8f8}
html[data-me-theme=dark] :is(.toptitle,.recordtitle,.amount,.state,.idea-popup,.glance-title){color:var(--me-text)!important}
html[data-me-theme=dark] .status:not(.caution){background:#123c32;color:#b5f3d3;border-color:#568e78}html[data-me-theme=dark] .status.caution{background:#45351c;color:#ffe0a4;border-color:#a98045}
html[data-me-theme=dark] .prototype-notice{background:#3e331e;color:#ffe8b7}html[data-me-theme=dark] .prototype-notice a{color:#b9dfff}
html[data-me-theme=dark] .leaflet-control-attribution{background:#10283aed;color:#d9e8f4}html[data-me-theme=dark] .leaflet-control-attribution a{color:#a6d9ff}html[data-me-theme=dark] .leaflet-container a.leaflet-popup-close-button{color:#d9e8f4}
html[data-me-theme=dark] :is(.maxim-copyright,footer){color:var(--me-muted)}
html[data-me-theme=dark] body[data-cci-page]{--ink:#ecf3fa;--paper:#061522;--pale:#18384c;--line:#345368;--muted:#b2c7d8;--blue:#83d3f0;--green:#83d3f0;--aqua:#b1e7f8;--lime:#b1e7f8;color:#ecf3fa}
html[data-me-theme=dark] body[data-cci-page] :is(.eyebrow,.number,h1 em,.region-popup-stats strong,.club-map-info-button,.map-live){color:#83d3f0}
html[data-me-theme=dark] body[data-cci-page] :is(.button,.cta,.primary,.profile-link){background:#0b6f91;color:#fff}
html[data-me-theme=dark] body[data-cci-page] :is(.button.secondary,button.secondary,.region-popup-sports>span,.region-popup-sports-link,.club-map-filters select){background:#18384c;color:#b1e7f8;border-color:#345368}
html[data-me-theme=dark] body[data-cci-page] :is(.hero-panel,.hero-panel p,.hero-panel h2,.hero-panel a){color:#eef7ff}
html[data-me-theme=dark] body[data-cci-page] .hero-panel{box-shadow:8px 8px 0 #18384c}
html[data-me-theme=dark] body[data-cci-page] .sports a{border-color:#345368}
html[data-me-theme=dark] body[data-me-product=common]{--me-link:#98ded1;accent-color:#98ded1}
html[data-me-theme=dark] body[data-me-product=common] :is(.eyebrow,.upvote,.linkbtn,.impact-data a){color:#98ded1}
html[data-me-theme=dark] body[data-me-product=common] :is(.upvote,.close){background:#18384c;color:#98ded1;border-color:#52748b}
html[data-me-theme=dark] body[data-me-product=common] .primary{background:#087f70}
html[data-me-theme=dark] body[data-me-product=record]{--me-link:#d0b8ff;--line:#345368;--text:#ecf3fa;--teal:#c7a9ff;--accent:#c7a9ff;--accent-soft:#2d2547;--accent-light:#997fc0}
html[data-me-theme=dark] body[data-me-product=record] aside{background:#0b2132;border-color:#345368}
html[data-me-theme=dark] body[data-me-product=record] :is(.eyebrow,.textbutton,.project-nav){color:#d0b8ff}
html[data-me-theme=dark] body[data-me-product=record] .searchbox{background:#10283a;border-color:#52748b}
html[data-me-theme=dark] body[data-me-product=record] :is(.button,.facility button,.workspace-save,.workspace-nav){background:#6b46ac;color:#fff}
html[data-me-theme=dark] .maxim-copyright{background:#061522!important;color:#b2c7d8!important;border-color:#345368!important}
html[data-me-theme=dark] body[data-cci-page] :is(section,aside,.region,.record,.sport-stat,.metric,.connections,.connection,.issue,.steps div,.table-scroll,.competition-card,.sport-coverage-card,.region-sport-coverage,.club-coverage-cards>details,.coverage-overview-panel,.coverage-overview-statuses button,.club-geo-explorer,.club-geo-layers,.club-map-panel,.club-map-list button,.club-map-info-popup,.map-region-popup,.live-card,.live-tabs button,.live-focus button,.live-controls button,.sport-jump-nav a,.oci-share-button,.oci-share-actions button,.oci-feedback button,.oci-feedback-public[open],.oci-feedback-modal,.oci-feedback-modal .oci-feedback-reasons label){background:var(--me-surface)!important;color:var(--me-text)!important;border-color:var(--me-border)!important}
html[data-me-theme=dark] body[data-cci-page] :is(.map-canvas,.club-map-canvas,.club-coverage-chart,.cci-region-map){background:#142c3c!important}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-popup [data-choice],.compare-score,.club-affiliation-note,.club-attention-row,.live-empty,.steps div){background:var(--me-raised)!important;color:var(--me-text)!important}
html[data-me-theme=dark] body[data-me-product=common] :is(.header-tool,.cluster-chip,.cluster-back,.cluster-action,.location-dialog-footer,.glance-card,.map-attribution-strip){background:var(--me-surface)!important;color:var(--me-text)!important;border-color:var(--me-border)!important}
html[data-me-theme=dark] .me-modern{--ink:#ecf3fa;--navy:#061c2c;background:#10283a!important;color:#ecf3fa!important}
html[data-me-theme=dark] :is(#content,#main,.entry-content,#maxim-home-direction){background:var(--me-bg)!important;color:var(--me-text)!important}
html[data-me-theme=dark] :is(.me-intro,.me-modern section,.me-feature,.mx-service){background:#18384c!important;border-color:#345368!important;color:#ecf3fa!important}
html[data-me-theme=dark] :is(.me-modern h2,.me-modern h3,.me-modern section p,.me-feature p,.mx-service h3,.mx-service p,.mx-service strong){color:#ecf3fa!important}
html[data-me-theme=dark] :is(.me-modern a:not([style*="display:inline-block"]),.me-intro>p:first-child){color:#a6d9ff!important}
html[data-me-theme=dark] #maxim-home-direction :is(.mx-platform-body,.mx-platform>div:not(.mx-picture),.mx-services,.mx-service,.mx-detail){background:#10283a!important;color:#ecf3fa!important;border-color:#345368!important}
html[data-me-theme=dark] #maxim-home-direction :is(.mx-platform h3,.mx-platform p,.mx-platform strong,.mx-services h2,.mx-services>div>p,.mx-detail h3,.mx-detail p){color:#ecf3fa!important}
html[data-me-theme=dark] #maxim-home-direction .mx-tags span{background:#234257;color:#d9e8f4}
html[data-me-theme=dark] .me-platform-quick a{background:#10283a;color:#ecf3fa;border-color:#345368}
html[data-me-theme=dark] :is(small,figcaption){color:var(--me-muted)}
html[data-me-theme=dark] :is(#site-wrapper,#lp-page,.lp-page-inside){background:var(--me-bg)!important}
html[data-me-theme=dark] #maxim-home-direction .mx-services p{color:#b2c7d8!important}
@media print{#me-appearance{display:none!important}}

/* CCI dark-mode contrast: semantic states shared by desktop and mobile. */
html[data-me-theme=dark] body[data-cci-page] :is(.sport-coverage-details,.sport-coverage-label,.sport-coverage-body li){color:#65D9A2!important}
html[data-me-theme=dark] body[data-cci-page] :is(.sport-coverage-details summary small,.sport-coverage-body p,.sport-coverage-body li small,.sport-coverage-card>a>small,.live-meta,.live-notice,.map-zoom-status,.map-gesture-hint,.club-map-label-help,.club-map-municipal-status,.entry small){color:#b2c7d8!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-results-badge,.cci-sport-recent .cci-sport-status,.cci-sport-recent .cci-card-status,.club-attention-badge.recent){background:#65D9A2!important;color:#102B25!important;border-color:#65D9A2!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-results-badge,.cci-sport-recent .cci-sport-status,.cci-sport-recent .cci-card-status,.club-attention-badge.recent) *{color:inherit!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-live-badge,.cci-sport-live .cci-sport-status,.cci-sport-live .cci-card-status,.club-attention-badge:not(.recent),.live-label.active){background:#a91f30!important;color:#fff!important;border-color:#f48491!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-live-badge,.cci-sport-live .cci-sport-status,.cci-sport-live .cci-card-status,.club-attention-badge:not(.recent),.live-label.active) *{color:inherit!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-sport-recent,.club-attention-recent){background:#10283a!important;color:#ecf3fa!important;border-color:#65D9A2!important;box-shadow:inset 0 0 0 1px #65D9A2!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-sport-live,.club-attention-live,.has-live-results){background:#10283a!important;color:#ecf3fa!important;border-color:#f48491!important;box-shadow:inset 0 0 0 1px #f48491!important}
html[data-me-theme=dark] body[data-cci-page] :is(.cci-live-link,.live-live-summary){background:#48212c!important;color:#ffdce1!important}
html[data-me-theme=dark] body[data-cci-page] :is(.live-score,.live-summary strong){color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page] :is(.tag,.live-label:not(.active):not(.stale)){background:#18384c!important;color:#b1e7f8!important}
html[data-me-theme=dark] body[data-cci-page] :is(.live-label.stale,.score-change){background:#45351c!important;color:#ffe0a4!important}
html[data-me-theme=dark] body[data-cci-page] :is(button,.button,.cta,.primary,.profile-link){background:#0b6f91!important;color:#fff!important;border-color:#83d3f0!important}
html[data-me-theme=dark] body[data-cci-page] :is(button.secondary,.live-tabs button,.live-focus button,.live-controls button,.oci-feedback button,.oci-share-button,.oci-share-actions button,.map-zoom-controls button,.map-mode-switch button,.club-map-list button,.club-map-popup [data-choice]){background:#18384c!important;color:#b1e7f8!important;border-color:#83d3f0!important}
html[data-me-theme=dark] body[data-cci-page] :is(.live-tabs button[aria-pressed=true],.map-mode-switch button[aria-pressed=true]){background:#0b6f91!important;color:#fff!important;outline:2px solid #83d3f0;outline-offset:2px}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-info-button,.club-map-popup button.club-map-close){background:transparent!important;color:#b1e7f8!important}
html[data-me-theme=dark] body[data-cci-page] .entry.read{opacity:1;border-left:3px solid #83d3f0;padding-left:12px}
html[data-me-theme=dark] body[data-cci-page] :is(button,a,summary,input,select):focus-visible{outline:3px solid #65D9A2!important;outline-offset:3px}

/* Club details and map popups must theme their surface with their text. */
html[data-me-theme=dark] body[data-cci-page] :is(dialog.club-map-popup,dialog.club-map-popup>article,.club-map-info-popup>article,.club-geo-popup .leaflet-popup-content-wrapper,.club-geo-popup .leaflet-popup-tip){background:#10283a!important;color:#ecf3fa!important;border-color:#345368!important}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-popup,.club-map-info-popup,.club-geo-popup) :is(h3,p,li,summary){color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-popup,.club-map-info-popup,.club-geo-popup) :is(.eyebrow,small){color:#b2c7d8!important}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-popup,.club-map-info-popup,.club-geo-popup) a:not(.button):not(.club-attention-badge){color:#a6d9ff!important}
html[data-me-theme=dark] body[data-cci-page] :is(.club-map-popup,.club-map-info-popup) .club-map-close{background:#18384c!important;color:#b1e7f8!important;border:1px solid #83d3f0!important;border-radius:8px}

/* Legacy prototype header and source-status strip share the CCI dark palette. */
html[data-me-theme=dark] .oci-data-freshness{background:#10283a!important;color:#b2c7d8!important;border-bottom:1px solid #345368}
html[data-me-theme=dark] .oci-data-freshness a{color:#a6d9ff!important}
html[data-me-theme=dark] .mast>a[href="/cci.html"]{background:#18384c!important;color:#ecf3fa!important;border:1px solid #83d3f0}

/* Screen-only report surfaces and shared header navigation; preserve print/light styles. */
@media screen{
html[data-me-theme=dark] body[data-cci-page="report-sample"] main{background:#061522!important;color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page="report-sample"] header{border-top-color:#65D9A2!important}
html[data-me-theme=dark] body[data-cci-page="report-sample"] :is(.callout,.metrics>div){background:#18384c!important;color:#ecf3fa!important;border-color:#65D9A2!important}
html[data-me-theme=dark] body[data-cci-page] header>a:is([href="/cci.html"],[href^="/alerts.html"]){background:#18384c!important;color:#ecf3fa!important;border:1px solid #83d3f0!important}
html[data-me-theme=dark] body[data-cci-page] section[aria-label="Prototype notice"] a{color:#a6d9ff!important}
}

/* Dark map-group disclosures: opaque surfaces prevent pale overlays behind white labels. */
html[data-me-theme=dark] body[data-cci-page] .club-map-popup .club-cluster-region{background:#18384c!important;border-color:#345368!important;color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page] .club-map-popup .club-cluster-town{background:#10283a!important;border-color:#345368!important;color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page] .club-map-popup :is(.club-cluster-region,.club-cluster-town)>summary{background:transparent!important;color:#ecf3fa!important}
html[data-me-theme=dark] body[data-cci-page] .club-map-popup :is(.club-cluster-region,.club-cluster-town)>summary:hover{background:#24475b!important}
html[data-me-theme=dark] body[data-cci-page] .club-map-popup :is(.club-cluster-region,.club-cluster-town)>summary:focus-visible{outline:3px solid #65d9a2!important;outline-offset:-3px}
