/* The native map shares the page's light, flat appearance. Loaded last and
   exempt from the legacy palette migration; no camera or layout rules change. */
html body .mapboxgl-map{
 --tx-primary:#EEF6FB;--tx-canvas:#EEF6FB;--tx-surface:#FFFFFF;
 --tx-accent:#164F73;--tx-text:#164F73;--tx-ink:#164F73;--tx-heading:#164F73;--tx-muted:#164F73;
 --tx-line:#9BBBD1;--tx-control-line:#9BBBD1;--tx-shadow-overlay:none;
 color-scheme:light;color:#164F73;background:#EEF6FB
}
html body [data-discovery] .discovery-map-shell,
html body [data-discovery]:not(.discovery-immersive) .discovery-map-shell,
html body .customer-opportunities-page .customer-map-frame{
 background:#EEF6FB;border-color:#9BBBD1;box-shadow:none
}
html body [data-discovery] .discovery-map-loading{
 background:#EEF6FB;color:#164F73
}
html body [data-discovery] .discovery-map-loading small{color:#164F73}
html body [data-discovery] .discovery-loading-line{background:#CFE6F0}
html body [data-discovery] .discovery-loading-line::after{background:#164F73}
html body [data-discovery]:not(.discovery-immersive) .discovery-map-actions{
 background:#EEF6FB;border-color:#9BBBD1;box-shadow:none
}
html body [data-discovery] .discovery-map-actions button{color:#164F73}
html body [data-discovery] .discovery-map-actions button:hover{background:#FFFFFF;color:#164F73}
html body [data-discovery] .discovery-map-actions button:focus-visible{outline:3px solid #164F73;outline-offset:-3px}

/* Keep the existing zoom targets and symbols. Only their paint changes. */
html body .mapboxgl-map .mapboxgl-ctrl-group{
 background:#FFFFFF;color:#164F73;border-color:#9BBBD1;box-shadow:none;backdrop-filter:none
}
html body .mapboxgl-map .mapboxgl-ctrl-group button{color:#164F73}
html body .mapboxgl-map .mapboxgl-ctrl-group button+button{border-top-color:#9BBBD1}
html body .mapboxgl-map .mapboxgl-ctrl-group button:hover{background:#EEF6FB}
html body .mapboxgl-map .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon{filter:none}
html body :is(.discovery-globe,.customer-opportunities-page .owner-opportunity-map-canvas) .mapboxgl-ctrl-group button:is(.mapboxgl-ctrl-zoom-in,.mapboxgl-ctrl-zoom-out) .mapboxgl-ctrl-icon{filter:none;color:#164F73}
html body .mapboxgl-map .mapboxgl-ctrl-group button:focus-visible,
html body .mapboxgl-map .mapboxgl-canvas:focus-visible{outline:3px solid #164F73;outline-offset:-3px}

/* The native cooperative-gesture overlay keeps its visibility and touch rules. */
html body .mapboxgl-map :is(.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker){
 background:rgba(255,255,255,.7);color:#164F73;text-shadow:none;box-shadow:none;backdrop-filter:none
}

/* White popups keep anchored tips and hit areas intact. */
html body .mapboxgl-map .mapboxgl-popup-content{background:#FFFFFF;color:#164F73;border-color:#9BBBD1;box-shadow:none}
html body .mapboxgl-map .mapboxgl-popup-content :is(h1,h2,h3,h4,p){color:#164F73}
html body .mapboxgl-map .mapboxgl-popup-content .discovery-pin-category{color:#164F73}
html body .mapboxgl-map .mapboxgl-popup-content .discovery-pin-popup a{background:#164F73;color:#FFFFFF}
html body .mapboxgl-map .mapboxgl-popup-close-button{color:#164F73;background:transparent}
html body .mapboxgl-map .mapboxgl-popup-close-button:hover{background:#EEF6FB}
html body .mapboxgl-map .mapboxgl-popup-content :is(a,button):focus-visible{outline:3px solid #164F73;outline-offset:2px}
html body .mapboxgl-map :is(.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right) .mapboxgl-popup-tip{border-top-color:transparent;border-bottom-color:#FFFFFF}
html body .mapboxgl-map :is(.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right) .mapboxgl-popup-tip{border-top-color:#FFFFFF;border-bottom-color:transparent}
html body .mapboxgl-map .mapboxgl-popup-anchor-left .mapboxgl-popup-tip{border-top-color:transparent;border-bottom-color:transparent;border-right-color:#FFFFFF}
html body .mapboxgl-map .mapboxgl-popup-anchor-right .mapboxgl-popup-tip{border-top-color:transparent;border-bottom-color:transparent;border-left-color:#FFFFFF}

/* Preserve Mapbox's original attribution artwork and attribution behaviour. */
html body .mapboxgl-map .mapboxgl-ctrl.mapboxgl-ctrl-attrib{color:#164F73;background-color:#FFFFFF!important;color-scheme:light}
html body .mapboxgl-map .mapboxgl-ctrl-attrib a{color:#164F73!important}
html body .mapboxgl-map .mapboxgl-ctrl-attrib-button{background-color:#FFFFFF;color:#164F73;filter:none}
html body .mapboxgl-map .mapboxgl-ctrl-attrib :is(a,button,summary):focus-visible{outline:3px solid #164F73;outline-offset:2px}

/* The surrounding key and in-map panels follow the same data palette. */
html body [data-discovery] .discovery-legend,
html body [data-discovery] .discovery-map-caption>small{color:#164F73}
html body [data-discovery] .discovery-activity-key{border-color:#9BBBD1;background:linear-gradient(90deg,#FFFFFF 0 25%,#CFE6F0 25% 50%,#4FA3BE 50% 75%,#164F73 75% 100%)}
html body [data-discovery] .discovery-legend .map-key-icon:has(.spectral-featured-frame)>path{fill:#164F73}
html body [data-discovery] .discovery-legend .spectral-featured-frame{fill:#164F73;stroke:#FFFFFF}
html body [data-discovery] .discovery-legend .spectral-featured-mark{color:#FFFFFF;stroke:currentColor}
html body [data-discovery] :is(.discovery-selection,.discovery-map-peek){background:#FFFFFF;color:#164F73;border-color:#9BBBD1;box-shadow:none;backdrop-filter:none}
html body [data-discovery] :is(.discovery-selection,.discovery-map-peek) :is(h3,p,small,strong,span,.discovery-selection-close){color:#164F73}
html body [data-discovery] .discovery-group-filter{background:#EEF6FB;color:#164F73;border-color:#9BBBD1}
html body [data-discovery] .discovery-group-filter[aria-pressed=true]{background:#164F73;color:#FFFFFF;border-color:#164F73}
html body [data-discovery] .discovery-group-filter:focus-visible{outline-color:#164F73}

/* Fullscreen retains its existing positions and controls, using flat surfaces. */
html body [data-discovery].discovery-immersive{background:#EEF6FB}
html body [data-discovery].discovery-immersive .discovery-search>div{background:#FFFFFF;box-shadow:none;backdrop-filter:none}
html body [data-discovery].discovery-immersive :is(.discovery-fullscreen,.discovery-world){background:#FFFFFF;color:#164F73;border-color:#9BBBD1;box-shadow:none}
html body [data-discovery].discovery-immersive :is(.discovery-fullscreen-status,.discovery-map-error,.discovery-data-notice,.discovery-opportunity-search-note){background:#FFFFFF;color:#164F73;box-shadow:none}
@media(prefers-reduced-motion:reduce){
 html body .mapboxgl-map :is(.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker){transition:none}
}
