/* Quiet labels, material-specific type, and pins using the same ink as polygons. */
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]) .farm-pin-name:after{background:var(--site-color);opacity:.65}
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]) .farm-pin.is-selected .farm-pin-dot{box-shadow:0 0 0 2px #ffffffc0,0 0 0 3px var(--site-color)}
[data-site-theme=contours] .farm-pin-name,[data-site-theme=elevation] .farm-pin-name{--site-label-halo:#f3f4ea;background:#f3f4eade;border:0;border-radius:2px;color:var(--site-color);font:500 10.5px/1.4 system-ui;padding:2px 5px;box-shadow:none}
[data-site-theme=contours] .farm-pin-dot,[data-site-theme=elevation] .farm-pin-dot{width:7px;height:7px;left:7.5px;top:7.5px;border-width:1.5px;border-color:#f5f4e9;box-shadow:none}
[data-site-theme=blueprint] .farm-pin-name{--site-label-halo:#102a3d;background:#102a3ddd;border:0;border-bottom:1px solid var(--site-color);border-radius:0;color:var(--site-color);font:500 10px/1.5 ui-monospace,monospace;letter-spacing:.025em;padding:2px 5px;box-shadow:none}
[data-site-theme=blueprint] .farm-pin-dot{width:6px;height:6px;left:8px;top:8px;border:1px solid #d4e9ef;border-radius:0;box-shadow:none}
[data-site-theme=engraving] .farm-pin-name{--site-label-halo:#f6edd8;background:#f6edd8cc;border:0;border-radius:0;color:var(--site-color);font:italic 12px/1.4 Georgia,serif;padding:2px 5px;box-shadow:none;text-shadow:0 0 3px #f6edd8}
[data-site-theme=engraving] .farm-pin-dot{width:6px;height:6px;left:8px;top:8px;border:1px solid #f6edd8;box-shadow:0 0 0 1px var(--site-color)}
[data-site-theme=paper] .farm-pin-name{--site-label-halo:#fafbf9;background:#f9faf7e6;border:0;border-bottom:1px solid #b2bdb9;border-radius:1px;color:var(--site-color);font:500 10.5px/1.5 system-ui;padding:3px 6px;box-shadow:0 2px 2px #45524c12}
[data-site-theme=paper] .farm-pin-dot{width:7px;height:7px;left:7.5px;top:7.5px;border:1.5px solid #fff;border-radius:1px;box-shadow:0 1px 2px #485a5b33}
[data-site-theme=ink] .farm-pin-name{--site-label-halo:#ffffffed;color:var(--site-color);font:italic 11px/1.4 Georgia,serif;background:transparent;border:0;padding:2px 4px;box-shadow:none}
[data-site-theme=ink] .farm-pin-dot{width:5px;height:5px;left:8.5px;top:8.5px;border:0;box-shadow:0 0 0 1.5px #ffffffd9}
[data-site-theme=dark] .farm-pin-name{--site-label-halo:#191b1c;background:#191b1cbb;border:0;border-radius:0;color:var(--site-color);font:400 10px/1.5 ui-monospace,monospace;letter-spacing:.03em;padding:2px 5px;box-shadow:none}
[data-site-theme=dark] .farm-pin-dot{width:6px;height:6px;left:8px;top:8px;border:1px solid #202427;box-shadow:0 0 0 1px var(--site-color)}
[data-site-theme=mesh] .farm-pin-name{--site-label-halo:#f0f3df;background:#eef2d9bf;border:0;border-bottom:1px solid var(--site-color);border-radius:0;color:var(--site-color);font:500 10px/1.5 ui-monospace,monospace;padding:2px 5px;box-shadow:none}
[data-site-theme=mesh] .farm-pin-dot{width:6px;height:6px;left:8px;top:8px;border:1px solid #f0f3df;border-radius:0;box-shadow:none}
/* Art labels are part of the drawing; the default map retains its familiar cards. */
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]):not([data-site-theme=satellite]) .farm-pin-name{background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--site-color);text-shadow:0 0 3px var(--site-label-halo),0 1px 2px var(--site-label-halo);padding:2px 4px}
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]):not([data-site-theme=satellite]) .farm-pin-dot{width:9px;height:9px;left:6.5px;top:6.5px;border:2px solid var(--site-color);border-radius:50%;background:transparent;box-shadow:0 0 0 1px var(--site-label-halo,#f5f5ed)}
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]) .farm-pin{--site-label-halo:#f5f3e6e0}
#farm-map-dialog[data-site-theme=paper] .farm-pin{--site-label-halo:#eee7d8ee}
#farm-map-dialog[data-site-theme=paper] .farm-pin-name{--site-label-halo:#eee7d8ee;font:500 11px/1.4 system-ui}
#farm-map-dialog[data-site-theme=engraving] .farm-pin-name{--site-label-halo:#f6edd8e0;font:italic 12px/1.4 'Iowan Old Style',Baskerville,'Palatino Linotype',serif}
#farm-map-dialog[data-site-theme=ink] .farm-pin-name{font-size:12px}
#farm-map-dialog[data-site-theme=dark] .farm-pin,#farm-map-dialog[data-site-theme=blueprint] .farm-pin,#farm-map-dialog[data-site-theme=mesh] .farm-pin{--site-label-halo:#10272be0}
#farm-map-dialog[data-site-theme=dark] .farm-pin-name,#farm-map-dialog[data-site-theme=blueprint] .farm-pin-name,#farm-map-dialog[data-site-theme=mesh] .farm-pin-name{--site-label-halo:#10272be0;font-size:10.5px}
#farm-map-dialog[data-site-theme=mesh] .farm-pin-name{color:var(--site-color)}
#farm-map-dialog[data-site-theme=satellite] .farm-pin-dot{border:2px solid #edf5f2;box-shadow:0 0 0 1px #14343b}
#farm-map-dialog[data-site-theme=satellite] .farm-pin-name{background:#102b34d9;color:#edf4ed;border:1px solid var(--site-color);font-weight:500}
#farm-map-dialog[data-site-theme]:not([data-site-theme=default]):not([data-site-theme=satellite]) .fjord-water-name{font-family:'Iowan Old Style',Baskerville,Georgia,serif;font-size:16px;letter-spacing:.075em;color:#365e68b8}
#farm-map-dialog.preview-dark #map-mobile-toggle,#farm-map-dialog.preview-dark #map-mobile-panel,#farm-map-dialog.preview-dark .map-quick button{background:#142c35d9;color:#dfebe8;border-color:#b9d3d729;box-shadow:0 4px 24px #0002}
#farm-map-dialog.preview-dark #map-mobile-panel :is(summary,.preview-style,.map-view-controls,.map-primary-view,#preview-export-dimensions,.preview-status){color:#d4e3df}
#farm-map-dialog.preview-dark #map-mobile-panel :is(input[type=search],select,button){background-color:#c1d9df0c;color:#dfebe8;border-color:#bfd9dd33}
#farm-map-dialog.preview-dark #map-mobile-panel input::placeholder{color:#bbcfce}
#farm-map-dialog.preview-dark #map-mobile-panel :is(.map-filter-disclosure,.map-sites-disclosure,.map-advanced){border-color:#bfd9dd22}
#farm-map-dialog.preview-dark #map-mobile-panel select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23c8dfdf' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")}
#farm-map-dialog.preview-dark #map-mobile-panel .map-view-controls button[aria-pressed=true],#farm-map-dialog.preview-dark #map-mobile-panel [data-map-filter][aria-pressed=true]{background-color:#a8cccd;color:#102b34;border-color:#a8cccd}
/* Native select popups need their own palette; inherited pale text can land on white. */
#map-mobile-panel select{color-scheme:light}
#map-mobile-panel select option{background-color:#fafbf8;color:#173d49}
#farm-map-dialog.preview-dark #map-mobile-panel select{color-scheme:dark}
#farm-map-dialog.preview-dark #map-mobile-panel select option{background-color:#17313a;color:#edf4f0}
/* Details retain the same hierarchy as the light view, with their own dark palette. */
#farm-map-dialog.preview-dark #farm-map-detail,#farm-map-dialog.preview-dark #farm-map-detail .fjord-info{color:#e0ece8}
#farm-map-dialog.preview-dark #farm-map-detail :is(h3,h4,strong){color:#e0ece8}
#farm-map-dialog.preview-dark #farm-map-detail :is(small,.map-coordinate,.chart-period,.chart-scope,.chart-note,.chart-empty,.fjord-chart-source,.map-profile-note){color:#b4c8c3}
#farm-map-dialog.preview-dark #farm-map-detail a{color:#a4d6df}
#farm-map-dialog.preview-dark #farm-map-detail :is(.fjord-permit,.fjord-registry,.fjord-charts,.fjord-chart-card,.map-profile,.map-profile li){border-color:#bbd2d328}
#farm-map-dialog.preview-dark #farm-map-detail .fjord-permit>strong{display:block;font:600 12px/1.5 system-ui;margin-bottom:4px;color:#c7dad5}
#farm-map-dialog.preview-dark #farm-map-detail button.fjord-site{background:transparent;border:0;border-bottom:1px solid #bbd2d31a;border-radius:0;padding:9px 0;min-height:48px;color:#e0ece8;font:14px/1.45 system-ui;box-shadow:none}
#farm-map-dialog.preview-dark #farm-map-detail .fjord-site:last-child{border-bottom:0}
#farm-map-dialog.preview-dark #farm-map-detail button.fjord-site:hover{background:#bedbdc08;text-decoration:none;color:#b9e2e4}
#farm-map-dialog.preview-dark #farm-map-detail .fjord-site small{margin-top:2px;font:11px/1.5 system-ui;color:#b4c8c3}
#farm-map-dialog.preview-dark #map-mobile-panel .map-mobile-panel-heading button{background:transparent;border-color:transparent;border-radius:10px}
#farm-map-dialog.preview-dark #map-mobile-panel .map-mobile-panel-heading button:hover{background:#bedbdc0d}
#farm-map-dialog.preview-dark #map-mobile-panel #farm-map-list button{background:transparent;color:#e0ece8;border-color:#bbd2d322}
#farm-map-dialog.preview-dark #map-mobile-panel :is(#farm-map-count,#farm-map-list small){color:#b4c8c3}
#farm-map-dialog.preview-dark #farm-map-detail :is(.chart-legend button,.chart-scope-tabs button){background:transparent;color:#d9e8e3;border-color:transparent}
#farm-map-dialog.preview-dark #farm-map-detail .chart-range button[aria-pressed=true],#farm-map-dialog.preview-dark #farm-map-detail .chart-scope-tabs button[aria-pressed=true]{background:#a8cccd;color:#102b34}
#farm-map-dialog.preview-dark #farm-map-detail .chart-range input{background:#bfd9df0c;border-color:#bfd9dd33;color:#dfebe8;color-scheme:dark}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg text{fill:#b4c8c3}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg line[stroke="#173d4912"]{stroke:#bbd2d328}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg line[stroke="#173d4930"]{stroke:#bbd2d350}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg line[stroke="#173d4980"]{stroke:#bbd2d3a0}
#farm-map-dialog.preview-dark #farm-map-detail .chart-tooltip{background:#142e38f5;color:#e0ece8;border-color:#b7d1d333;box-shadow:0 4px 16px #0003}
#farm-map-dialog.preview-dark #map-mobile-panel.chart-expanded{background:#142b34f5!important}
#farm-map-dialog.preview-dark #map-mobile-panel.chart-expanded .chart-workbench-head,#farm-map-dialog.preview-dark #map-mobile-panel.chart-expanded .chart-expand{background:#142b34f5}
#farm-map-dialog.preview-dark #farm-map-detail .chart-range-error{color:#efac91}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#005573"]{stroke:#8fcbd8}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#005573"]{fill:#8fcbd8}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#005573"]{--series-color:#8fcbd8!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#a67b43"]{stroke:#d5b276}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#a67b43"]{fill:#d5b276}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#a67b43"]{--series-color:#d5b276!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#55806b"]{stroke:#96c6ad}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#55806b"]{fill:#96c6ad}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#55806b"]{--series-color:#96c6ad!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#668ba1"]{stroke:#aacbdc}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#668ba1"]{fill:#aacbdc}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#668ba1"]{--series-color:#aacbdc!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#bd6550"]{stroke:#e79c87}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#bd6550"]{fill:#e79c87}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#bd6550"]{--series-color:#e79c87!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#8b9567"]{stroke:#c1c99c}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#8b9567"]{fill:#c1c99c}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#8b9567"]{--series-color:#c1c99c!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#365f73"]{stroke:#90b6c8}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#365f73"]{fill:#90b6c8}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#365f73"]{--series-color:#90b6c8!important}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [stroke="#b69b71"]{stroke:#d8c29c}
#farm-map-dialog.preview-dark #farm-map-detail .chart-plot svg [fill="#b69b71"]{fill:#d8c29c}
#farm-map-dialog.preview-dark #farm-map-detail [style*="#b69b71"]{--series-color:#d8c29c!important}
#farm-map-dialog.preview-dark>#farm-map-fullscreen{background:#142c35d9;color:#dfebe8;border-color:#b9d3d729}
#farm-map-dialog.preview-dark #map-mobile-panel .map-mobile-panel-heading .map-panel-focus{background:#a8cccd12;color:#dfebe8;border-color:#b9d3d747}
#farm-map-dialog.preview-dark #map-mobile-panel .map-mobile-panel-heading .map-panel-focus[aria-expanded=true]{background:#a8cccd;color:#102b34;border-color:#a8cccd}
