/* Loaded only for the diagnostic panel; normal map styling is untouched. */
#map-diagnostics{position:fixed;right:16px;bottom:16px;z-index:1000;width:min(350px,calc(100vw - 32px));max-height:85vh;overflow:auto;background:#fffdf8;color:#17352f;border:1px solid #aabda6;border-radius:10px;box-shadow:0 4px 20px #0002;font:13px/1.4 Inter,system-ui,sans-serif}
#map-diagnostics summary{padding:12px;cursor:pointer;font-weight:600}
#map-diagnostics .diagnostic-body{padding:0 12px 12px}#map-diagnostics p{margin:8px 0}#map-diagnostics label{display:grid;gap:5px}#map-diagnostics select,#map-diagnostics button{font:inherit;border:1px solid #bdc9b4;background:#f2f3e8;color:#17352f;padding:8px;border-radius:6px;min-height:36px}#map-diagnostics .diagnostic-actions{display:flex;flex-wrap:wrap;gap:6px}#map-diagnostics pre{white-space:pre-wrap;font-size:11px;line-height:1.5;margin-bottom:0}#map-diagnostics textarea{width:100%;height:120px;box-sizing:border-box}#map-diagnostics [hidden]{display:none!important}
#atlas-flow[data-diagnostic-test="labels"] .region-pin{display:none!important}
#atlas-flow[data-diagnostic-test="relief"] .terrain-layer{display:none!important}
#atlas-flow[data-diagnostic-test="strokes"] .country,#atlas-flow[data-diagnostic-test="strokes"] .wine-region,#atlas-flow[data-diagnostic-test="strokes"] .region-signature{stroke:none!important}
#atlas-flow[data-map-style="6"][data-diagnostic-test="hover"] .wine-region{fill:#647d5530;stroke:#64806c;stroke-width:.85;stroke-opacity:.6;transition:none}
#atlas-flow[data-map-style="6"][data-diagnostic-test="hover"] .wine-region.appellation{stroke-width:.6}
#atlas-flow[data-map-style="6"][data-diagnostic-test="hover"] .wine-region.selected{fill:#671d3540;stroke:#6e2941;stroke-width:1.25;stroke-opacity:.8}
#atlas-flow[data-map-style="6"][data-diagnostic-test="hover"] .wine-region.appellation.selected{stroke-width:1.8}
#atlas-flow[data-map-style="6"][data-diagnostic-test="hover"] .wine-region.grape-match{fill:#671d3540;stroke:#6e2941;stroke-width:1.6}
#map-diagnostics .diagnostic-layers{display:grid;gap:6px;margin:12px 0}
#map-diagnostics .diagnostic-layers label{display:flex;align-items:center;gap:8px}
#atlas-flow[data-layer-countries="false"] .country,#atlas-flow[data-layer-countries="false"] .ocean-shallows,
#atlas-flow[data-layer-polygons="false"] .wine-boundaries,
#atlas-flow[data-layer-relief="false"] .terrain-layer,
#atlas-flow[data-layer-labels="false"] .region-pin,#atlas-flow[data-layer-labels="false"] #atlas-pin,#atlas-flow[data-layer-labels="false"] .place-labels,
#atlas-flow[data-layer-rivers="false"] .main-rivers,
#atlas-flow[data-layer-signatures="false"] .region-signatures,
#atlas-flow[data-layer-latitude="false"] .latitude-scale{display:none!important}
/* Polygon investigations apply only when the opt-in controller sets this attribute. */
#atlas-flow[data-polygon-test="fill"] .wine-region{stroke:none!important}
#atlas-flow[data-polygon-test="stroke"] .wine-region{fill:none!important;pointer-events:all}
#atlas-flow[data-polygon-test="hover"] .wine-region{fill:#647d5530!important;stroke:#64806c!important;stroke-width:.85!important;stroke-opacity:.6!important;transition:none!important}
#atlas-flow[data-polygon-test="hover"] .wine-region.selected{fill:#671d3540!important;stroke:#6e2941!important;stroke-width:1.25!important;stroke-opacity:.8!important}
#atlas-flow[data-polygon-test="large"] .wine-region.appellation{display:none!important}
#atlas-flow[data-polygon-test="small"] .wine-region:not(.appellation){display:none!important}
