:root {
    color-scheme: light;
    --ink: #10232d;
    --muted: #657780;
    --paper: #f7faf9;
    --panel: rgba(255, 255, 255, .96);
    --night: #0a1a24;
    --night-soft: #132b37;
    --cyan: #44c0cf;
    --border: rgba(15, 43, 54, .14);
    --shadow: 0 18px 50px rgba(4, 22, 29, .18);
}

* { box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: var(--night);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "tnum" 1, "ss01" 1;
}

.embed-denied-notice { display: none; }
body.is-embed-denied .app-shell { display: none; }
body.is-embed-denied .embed-denied-notice {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100svh;
    padding: clamp(24px, 7vw, 80px);
    background:
        radial-gradient(circle at 20% 15%, rgba(68, 192, 207, .16), transparent 35%),
        linear-gradient(145deg, #0a1a24, #173743);
    text-align: center;
}
.embed-denied-notice a {
    max-width: 1120px;
    color: #fff;
    font-size: clamp(24px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.embed-denied-notice a span,
.embed-denied-notice a strong { display: block; }
.embed-denied-notice a strong {
    margin-top: .18em;
    color: #85e2eb;
    font: inherit;
    text-decoration: underline;
    text-decoration-color: #44c0cf;
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}
.embed-denied-notice a:hover { color: #85e2eb; }
.embed-denied-notice a:focus-visible { outline: 4px solid #44c0cf; outline-offset: 8px; border-radius: 4px; }

button, input { font: inherit; }

.app-shell {
    display: grid;
    grid-template-rows: 76px minmax(0, 1fr);
    width: 100%;
    height: 100svh;
}

body.is-embedded .topbar { display: none; }
body.is-embedded .app-shell { grid-template-rows: minmax(0, 1fr); }

.topbar {
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Bündig mit Titelblock und Hilfe-Button der weißen Kartenkopfzeile. */
    padding: 0 24px;
    color: #fff;
    background: var(--night);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand { display: flex; align-items: center; min-width: 0; gap: 13px; }
.brand > div:last-child { min-width: 0; }

.brand-favicon,
.summary-mode-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
}
.brand-favicon {
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 22px rgba(0,0,0,.2);
}
.brand-favicon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}
.summary-mode-mark {
    background: linear-gradient(145deg, #3dc8d4, #2b8eab);
    box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(45, 181, 202, .22);
}

.summary-mode-mark svg { width: 26px; fill: #fff; }
.summary-mode-mark .brand-rain-symbol { width: 30px; }
.summary-mode-mark .brand-rain-cloud,
.summary-mode-mark .brand-rain-drops {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.summary-mode-mark .shine { fill: none; stroke: rgba(10, 26, 36, .24); stroke-width: 2.5; stroke-linecap: round; }
.brand-tree-symbol,
.brand-forecast-symbol,
.brand-protected-areas-symbol,
.brand-soil-symbol,
.brand-moisture-symbol,
.brand-temperature-symbol,
.brand-parent-material-symbol,
.brand-nutrients-symbol { display: none; }
.summary-mode-mark[data-map-mode="forecast"] {
    background: linear-gradient(145deg, #588fbd, #315d8d);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(49,93,141,.25);
}
.summary-mode-mark[data-map-mode="forecast"] .brand-rain-symbol { display: none; }
.summary-mode-mark[data-map-mode="forecast"] .brand-forecast-symbol { display: block; width: 31px; }
.brand-forecast-symbol circle { fill: #ffe47b; }
.brand-forecast-symbol .forecast-cloud { fill: #fff; }
.brand-forecast-symbol .forecast-rain {
    fill: none;
    stroke: #c9edff;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.summary-mode-mark[data-map-mode="temperature"] {
    background: linear-gradient(145deg, #f59a3d, #d84a2f);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(216,74,47,.25);
}
.summary-mode-mark[data-map-mode="temperature"] .brand-rain-symbol { display: none; }
.summary-mode-mark[data-map-mode="temperature"] .brand-temperature-symbol {
    display: block;
    width: 29px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.summary-mode-mark[data-map-mode="moisture"] {
    background: linear-gradient(145deg, #56b9d0, #28788e);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(40, 120, 142, .26);
}
.summary-mode-mark[data-map-mode="moisture"] .brand-rain-symbol { display: none; }
.summary-mode-mark[data-map-mode="moisture"] .brand-moisture-symbol { display: block; width: 30px; }
.brand-moisture-drop { fill: #fff; }
.brand-moisture-ground {
    fill: none;
    stroke: #d6f5e5;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.summary-mode-mark[data-map-mode="trees"] {
    background: linear-gradient(145deg, #65b95f, #2e7d43);
    box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(58, 142, 70, .24);
}
.summary-mode-mark[data-map-mode="trees"] .brand-rain-symbol { display: none; }
.summary-mode-mark[data-map-mode="trees"] .brand-tree-symbol { display: block; width: 28px; }
.summary-mode-mark[data-map-mode="protected-areas"] {
    background: linear-gradient(145deg, #62ad77, #245f42);
    box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 22px rgba(36,95,66,.26);
}
.summary-mode-mark[data-map-mode="protected-areas"] .brand-rain-symbol,
.summary-mode-mark[data-map-mode="protected-areas"] .brand-tree-symbol,
.summary-mode-mark[data-map-mode="protected-areas"] .brand-soil-symbol,
.summary-mode-mark[data-map-mode="protected-areas"] .brand-moisture-symbol,
.summary-mode-mark[data-map-mode="protected-areas"] .brand-parent-material-symbol { display: none; }
.summary-mode-mark[data-map-mode="protected-areas"] .brand-protected-areas-symbol { display: block; width: 29px; }
.brand-protected-areas-symbol .protected-shield { fill: #fff; }
.brand-protected-areas-symbol .protected-leaf {
    fill: none;
    stroke: #367c4c;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.summary-mode-mark[data-map-mode="soil"] {
    background: linear-gradient(145deg, #9b5de5, #67359a);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(103, 53, 154, .26);
}
.summary-mode-mark[data-map-mode="soil"] .brand-rain-symbol,
.summary-mode-mark[data-map-mode="soil"] .brand-tree-symbol,
.summary-mode-mark[data-map-mode="soil"] .brand-moisture-symbol { display: none; }
.summary-mode-mark[data-map-mode="soil"] .brand-soil-symbol { display: block; width: 30px; }
.summary-mode-mark[data-map-mode="parent-material"] {
    background: linear-gradient(145deg, #aa7650, #674638);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(80, 53, 42, .28);
}
.summary-mode-mark[data-map-mode="parent-material"] .brand-rain-symbol,
.summary-mode-mark[data-map-mode="parent-material"] .brand-tree-symbol,
.summary-mode-mark[data-map-mode="parent-material"] .brand-soil-symbol,
.summary-mode-mark[data-map-mode="parent-material"] .brand-moisture-symbol { display: none; }
.summary-mode-mark[data-map-mode="parent-material"] .brand-parent-material-symbol { display: block; width: 31px; }
.brand-rock-back { fill: #f0c9a8; }
.brand-rock-front { fill: #fff1df; }
.brand-rock-line {
    fill: none;
    stroke: rgba(93,55,39,.72);
    stroke-width: 1.8;
    stroke-linecap: round;
}
.summary-mode-mark[data-map-mode="nutrients"] {
    background: linear-gradient(145deg, #a5873e, #665229);
    box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 22px rgba(102,82,41,.28);
}
.summary-mode-mark[data-map-mode="nutrients"] .brand-rain-symbol,
.summary-mode-mark[data-map-mode="nutrients"] .brand-tree-symbol,
.summary-mode-mark[data-map-mode="nutrients"] .brand-protected-areas-symbol,
.summary-mode-mark[data-map-mode="nutrients"] .brand-soil-symbol,
.summary-mode-mark[data-map-mode="nutrients"] .brand-moisture-symbol,
.summary-mode-mark[data-map-mode="nutrients"] .brand-parent-material-symbol { display: none; }
.summary-mode-mark[data-map-mode="nutrients"] .brand-nutrients-symbol { display: block; width: 31px; }
.brand-nutrients-ground,
.brand-nutrients-leaf { fill: #fff; }
.brand-nutrients-leaf { fill-opacity: .88; stroke: #fff; stroke-width: 1.1; }
.brand-nutrients-symbol circle { fill: #f5d369; }
.brand-soil-mound { fill: #ead6bf; }
.brand-soil-liquid { fill: #f1d8ff; }
.brand-soil-tube {
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand h1 { overflow: hidden; margin: 0; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.brand h1 a { color: #fff; text-decoration: none; }
.brand h1 a:hover,
.brand h1 a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.brand p { margin: 4px 0 0; color: #9eb0b9; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.topbar-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    color: #bed0d7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}
.topbar-meta-primary { display: flex; align-items: center; gap: 10px; }
.topbar-copyright { color: #8198a3; font-size: 9px; font-weight: 500; letter-spacing: .03em; }
.topbar-network { display: flex; align-items: center; gap: 8px; }
.topbar-network[hidden],
.topbar-meta .divider[hidden] { display: none; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #62d6a5; box-shadow: 0 0 0 4px rgba(98,214,165,.12); }
.divider { width: 1px; height: 18px; margin: 0 4px; background: rgba(255,255,255,.15); }

.map-stage {
    --map-header-height: 72px;
    --map-overlay-gutter: 24px;
    --map-mode-panel-width: 190px;
    --map-rail-gap: 12px;
    position: relative;
    min-height: 0;
    isolation: isolate;
}
.map-stage::after {
    position: absolute;
    z-index: 1200;
    inset: 1px;
    border: 1px solid rgba(194,147,38,0);
    box-shadow: inset 0 0 0 1px rgba(255,216,112,0);
    content: '';
    opacity: 0;
    pointer-events: none;
}
.map-stage.is-public-zoom-limit::after {
    animation: public-zoom-border-flash 1.2s ease-out both;
}
.public-zoom-limit-hint {
    position: absolute;
    z-index: 1201;
    top: 50%;
    right: 10px;
    max-width: min(220px, calc(100% - 24px));
    padding: 6px 9px;
    border: 1px solid rgba(184,137,30,.32);
    border-radius: 8px;
    color: #594416;
    background: rgba(255,249,225,.94);
    box-shadow: 0 5px 16px rgba(54,40,9,.14);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(7px,-50%);
    white-space: nowrap;
}
.public-zoom-limit-hint[hidden] { display: none; }
.map-stage.is-public-zoom-limit .public-zoom-limit-hint {
    animation: public-zoom-hint-flash 1.45s ease-out both;
}
@keyframes public-zoom-border-flash {
    0%, 100% { border-color: rgba(194,147,38,0); box-shadow: inset 0 0 0 1px rgba(255,216,112,0); opacity: 0; }
    14% { border-color: rgba(194,147,38,.7); box-shadow: inset 0 0 0 1px rgba(255,216,112,.28); opacity: 1; }
    48% { border-color: rgba(194,147,38,.3); box-shadow: inset 0 0 0 1px rgba(255,216,112,.1); opacity: .55; }
}
@keyframes public-zoom-hint-flash {
    0%, 100% { opacity: 0; transform: translate(7px,-50%); }
    13%, 68% { opacity: 1; transform: translate(0,-50%); }
}
.map-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background: #dce7e8;
}
#map { position: absolute; inset: 0; z-index: 0; background: #dce7e8; }
.precipitation-canvas { transition: opacity .2s ease; }

.map-context-menu {
    position: absolute;
    z-index: 1100;
    width: 210px;
    max-width: calc(100% - 16px);
    padding: 6px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 38px rgba(4,22,29,.28);
    backdrop-filter: blur(12px);
}
.map-context-menu[hidden] { display: none; }
.map-context-menu button[hidden],
.map-context-menu a[hidden] { display: none; }
.map-context-menu button,
.map-context-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}
.map-context-menu button:hover,
.map-context-menu button:focus-visible,
.map-context-menu a:hover,
.map-context-menu a:focus-visible {
    color: #126c78;
    background: rgba(18,108,120,.1);
    outline: none;
}
.map-context-icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 21px;
    height: 21px;
    color: #395963;
}
.map-context-fullscreen-icon svg,
.map-context-search-icon svg,
.map-context-save-icon svg,
.map-context-google-maps-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-context-help-icon {
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.tree-species-tile {
    display: block;
    image-rendering: auto;
}
.soil-ph-tile {
    display: block;
    image-rendering: auto;
}
.soil-moisture-tile {
    display: block;
    image-rendering: auto;
}
.parent-material-tile {
    display: block;
    image-rendering: auto;
}
.soil-nutrients-tile {
    display: block;
    image-rendering: auto;
}
.protected-area-tile {
    display: block;
    image-rendering: auto;
}
.leaflet-baseMap-pane .leaflet-tile {
    transition: filter .2s ease;
}
.map-stage.is-tree-mode .leaflet-baseMap-pane .leaflet-tile,
.map-stage.is-protected-areas-mode .leaflet-baseMap-pane .leaflet-tile,
.map-stage.is-soil-mode .leaflet-baseMap-pane .leaflet-tile,
.map-stage.is-moisture-mode .leaflet-baseMap-pane .leaflet-tile,
.map-stage.is-parent-material-mode .leaflet-baseMap-pane .leaflet-tile,
.map-stage.is-nutrients-mode .leaflet-baseMap-pane .leaflet-tile {
    filter: grayscale(1) saturate(0) contrast(.82) brightness(1.08) !important;
}

.leaflet-control-zoom {
    overflow: hidden;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 28px rgba(15,35,45,.2) !important;
}
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 36px !important; color: var(--ink) !important; border-color: #e8efef !important; }
.leaflet-control-attribution { color: #708087; background: rgba(255,255,255,.82) !important; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.leaflet-popup-content-wrapper.is-map-draggable {
    cursor: grab;
    touch-action: none;
}
.leaflet-popup-content-wrapper.is-map-draggable a,
.leaflet-popup-content-wrapper.is-map-draggable button,
.leaflet-popup-content-wrapper.is-map-draggable input,
.leaflet-popup-content-wrapper.is-map-draggable select,
.leaflet-popup-content-wrapper.is-map-draggable textarea {
    cursor: pointer;
}
.leaflet-popup-content-wrapper.is-map-dragging {
    cursor: grabbing;
    user-select: none;
}
.station-popup { min-width: 170px; }
.station-popup strong { display: block; color: var(--ink); font-size: 14px; }
.station-popup-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 3px; }
.station-popup-meta span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.station-popup b {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid var(--border);
    color: #126c78;
    font-size: 17px;
    line-height: 1.15;
}
.station-popup-color {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(16,35,45,.38);
    border-radius: 3px;
    background: var(--station-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.station-analysis-popup .leaflet-popup-content { width: min(350px, calc(100vw - 76px)) !important; margin: 13px 15px 14px; }
.station-analysis-popup .leaflet-popup-content-wrapper { overflow: hidden; }
.station-popup { width: 100%; }
.station-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 11px; }
.station-chart-heading strong { color: var(--ink); font-size: 12px; }
.station-chart-heading span { color: var(--muted); font-size: 9px; }
.station-series-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 50px;
    margin-top: 10px;
    padding: 9px;
    border: 1px solid rgba(16,35,45,.12);
    border-radius: 10px;
    color: var(--muted);
    background: rgba(255,255,255,.82);
    font-size: 10px;
}
.station-series-status .point-analysis-spinner { width: 20px; height: 20px; }
.station-series-error { align-items: flex-start; flex-direction: column; gap: 2px; }
.station-series-error strong { color: var(--ink); font-size: 11px; }

.point-analysis-popup .leaflet-popup-content { width: min(350px, calc(100vw - 76px)) !important; margin: 13px 15px 14px; }
.point-analysis-popup .leaflet-popup-content-wrapper { overflow: hidden; }
.leaflet-container .point-analysis-popup a.leaflet-popup-close-button,
.leaflet-container .station-analysis-popup a.leaflet-popup-close-button {
    top: 3px;
    right: 3px;
}
#place-search-close,
.leaflet-container .point-analysis-popup a.leaflet-popup-close-button,
.leaflet-container .station-analysis-popup a.leaflet-popup-close-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #526871;
    background: #edf3f3;
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
#place-search-close:hover,
.leaflet-container .point-analysis-popup a.leaflet-popup-close-button:hover,
.leaflet-container .station-analysis-popup a.leaflet-popup-close-button:hover {
    color: #fff;
    background: #1f94a6;
}
#place-search-close:focus-visible,
.leaflet-container .point-analysis-popup a.leaflet-popup-close-button:focus-visible,
.leaflet-container .station-analysis-popup a.leaflet-popup-close-button:focus-visible {
    outline: 3px solid rgba(31,148,166,.25);
    outline-offset: 1px;
}
.point-analysis { width: 100%; color: var(--ink); }
.point-analysis-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 30px; }
.point-analysis-heading strong { font-size: 15px; letter-spacing: -.01em; }
.point-analysis-heading span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.forecast-point-meta-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 37px;
    align-items: start;
    gap: 6px;
}
.forecast-point-meta-toolbar .point-analysis-meta { margin-top: 10px; }
.forecast-point-view-toggle {
    position: relative;
    display: grid;
    grid-template-rows: repeat(2, 31px);
    gap: 3px;
    margin-top: 10px;
    padding: 3px;
    border: 1px solid rgba(16,35,45,.12);
    border-radius: 9px;
    background: #edf3f3;
}
.forecast-point-view-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.forecast-point-view-toggle label {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 31px;
    padding: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    color: #536871;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.forecast-point-view-toggle label svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forecast-point-view-toggle label:hover { color: #126c78; }
.forecast-point-view-input:not(:checked) ~ .forecast-point-meta-toolbar .forecast-view-meteogram,
.forecast-point-view-input:checked ~ .forecast-point-meta-toolbar .forecast-view-simple {
    color: #fff;
    background: #177f91;
    box-shadow: 0 2px 6px rgba(13,93,106,.2);
    pointer-events: none;
}
.forecast-point-view-input:not(:checked):focus-visible ~ .forecast-point-meta-toolbar .forecast-view-meteogram,
.forecast-point-view-input:checked:focus-visible ~ .forecast-point-meta-toolbar .forecast-view-simple {
    outline: 2px solid rgba(23,127,145,.38);
    outline-offset: 1px;
}
.forecast-point-current-simple { display: none !important; }
.forecast-point-view-input:checked ~ .forecast-point-meta-toolbar .forecast-point-current-meteogram { display: none; }
.forecast-point-view-input:checked ~ .forecast-point-meta-toolbar .forecast-point-current-simple { display: flex !important; }
.forecast-point-view-panel.is-simple { display: none; }
.forecast-point-view-input:checked ~ .forecast-point-view-panels .forecast-point-view-panel.is-meteogram { display: none; }
.forecast-point-view-input:checked ~ .forecast-point-view-panels .forecast-point-view-panel.is-simple { display: block; }
.point-analysis-meta {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    gap: 12px;
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(247,250,249,.82);
}
.point-analysis-meta div,
.point-nearest-station { display: flex; flex-direction: column; min-width: 0; }
.point-nearest-station {
    width: 100%;
    margin: -5px;
    padding: 5px;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.point-nearest-station:hover { color: #126c78; background: rgba(18,108,120,.09); }
.point-nearest-station:focus-visible {
    outline: 2px solid #126c78;
    outline-offset: 1px;
    background: rgba(18,108,120,.09);
}
.point-nearest-station b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.point-analysis-meta span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.point-analysis-meta b { margin-top: 3px; overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.point-analysis-meta .point-coordinate-line {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 6px;
}
.point-coordinate-line > b { flex: 1 1 auto; min-width: 0; }
.point-favorite-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 3px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #8a969a;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.point-favorite-toggle svg { width: 19px; height: 19px; }
.point-favorite-toggle .favorite-star-body { fill: transparent; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.point-favorite-toggle .favorite-star-shine,
.point-favorite-toggle .favorite-star-sparkle { display: none; }
.point-favorite-toggle:hover { color: #b58313; background: rgba(226,180,57,.12); transform: scale(1.07); }
.point-favorite-toggle:focus-visible { outline: 2px solid rgba(181,131,19,.5); outline-offset: 1px; }
.point-favorite-toggle.is-favorite { color: #c28d14; }
.point-favorite-toggle.is-favorite .favorite-star-body { fill: currentColor; }
.point-favorite-toggle:disabled { opacity: .42; cursor: wait; transform: none; }
.point-analysis-meta .forecast-point-current b {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}
.forecast-wind-arrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(23, 127, 145, 0.1);
    color: #125e6c;
    font-size: 10.5px;
    font-weight: 750;
    vertical-align: middle;
    line-height: 1.2;
}
.forecast-wind-arrow-badge.is-meteogram {
    margin-left: 4px;
    padding: 0 4px;
    font-size: 9.5px;
}
.forecast-wind-arrow-badge .forecast-wind-compass {
    font-size: 10px;
    letter-spacing: .02em;
}
.forecast-wind-arrow-icon {
    display: inline-block;
    flex: 0 0 auto;
    color: currentColor;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.forecast-wind-arrow-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.point-analysis-meta small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.2; }
.point-analysis-meta .point-near-place {
    overflow-wrap: anywhere;
    text-transform: none;
}
.layer-point-result b {
    display: flex;
    align-items: center;
    gap: 7px;
}
.nutrient-point-result b {
    align-items: flex-start;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}
.nutrient-point-result .layer-point-swatch { margin-top: 1px; }
.layer-point-swatch {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(16,35,45,.48);
    border-radius: 50%;
    background: var(--layer-point-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}
.layer-point-result.is-empty b { white-space: normal; }
.soil-profile-result {
    grid-column: 1 / -1;
    gap: 5px;
}
.soil-profile-list {
    display: grid !important;
    gap: 3px;
    margin-top: 2px;
}
.soil-profile-row {
    display: grid !important;
    grid-template-columns: 12px 62px 58px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 6px 3px 4px;
    border-radius: 6px;
    background: rgba(255,255,255,.74);
}
.soil-profile-row b,
.soil-profile-row strong,
.soil-profile-row small { margin: 0; font-size: 9px; line-height: 1.15; white-space: nowrap; }
.soil-profile-row b { overflow: visible; color: #314952; }
.soil-profile-row strong { color: var(--ink); font-size: 10px; }
.soil-profile-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.soil-profile-color {
    align-self: stretch;
    min-height: 18px;
    border: 1px solid rgba(16,35,45,.34);
    border-radius: 4px;
    background: var(--soil-profile-color);
}
.point-chart { position: relative; margin-top: 9px; border: 1px solid rgba(16,35,45,.12); border-radius: 10px; overflow: visible; background: rgba(255,255,255,.82); }
.point-chart svg { display: block; width: 100%; height: auto; }
.point-chart-background { stroke: rgba(16,35,45,.1); stroke-width: 1; }
.point-chart-grid { fill: none; stroke: rgba(16,35,45,.17); stroke-width: .75; stroke-dasharray: 2 3; }
.point-chart-axis, .point-chart-date, .point-chart-unit { fill: #60747c; font-family: inherit; font-size: 8px; }
.point-chart-unit { font-size: 7px; font-weight: 700; }
.point-chart-line-underlay { fill: none; stroke: rgba(255,255,255,.82); stroke-width: 4.4; stroke-linejoin: round; stroke-linecap: round; }
.point-chart-line { fill: none; stroke: #123b48; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.point-chart circle { stroke: rgba(255,255,255,.95); stroke-width: .75; }
.point-chart-data-point {
    transition: r .1s ease, opacity .1s ease, stroke-width .1s ease, filter .1s ease;
    transform-box: fill-box;
    transform-origin: center;
}
.point-chart-data-point.is-hovered {
    stroke: #fff;
    stroke-width: 2.2;
    filter: drop-shadow(0 1px 2px rgba(16,35,45,.65));
}
.point-chart-hover-label {
    position: absolute;
    z-index: 3;
    display: flex;
    min-width: 92px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 8px;
    background: rgba(16,35,45,.94);
    box-shadow: 0 4px 12px rgba(16,35,45,.24);
    color: #fff;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 5px));
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    white-space: nowrap;
    will-change: left, top;
    transition:
        left .16s cubic-bezier(.22,.61,.36,1),
        top .16s cubic-bezier(.22,.61,.36,1);
}
.point-chart-hover-label::after {
    position: absolute;
    top: 100%;
    left: var(--point-chart-arrow-x, 50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: rgba(16,35,45,.94);
    content: '';
    transform: translateX(-50%);
    transition: left .16s cubic-bezier(.22,.61,.36,1);
}
.point-chart-hover-label strong { font-size: 10px; font-weight: 800; }
.point-chart-hover-label small { margin-top: 2px; color: rgba(255,255,255,.8); font-size: 9px; font-weight: 650; }
.point-chart-hover-label span { margin-top: 2px; font-size: 11px; font-weight: 700; }
.point-chart-slider-marker {
    stroke: #0f6575;
    stroke-width: 1.15;
    stroke-dasharray: 3 3;
    opacity: .9;
    pointer-events: none;
    vector-effect: non-scaling-stroke;
}
.point-chart-slider-start { stroke: #8a4f18; }
.forecast-point-chart {
    border-color: rgba(16,35,45,.15);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(16,35,45,.025);
    transition: width .2s ease;
}
.forecast-meteogram-zoom {
    display: none !important;
    position: absolute;
    z-index: 4;
    bottom: 7px;
    right: 6px;
    display: grid;
    width: 27px;
    height: 27px;
    padding: 4px;
    place-items: center;
    border: 1px solid rgba(16,35,45,.16);
    border-radius: 8px;
    color: #365a66;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 7px rgba(16,35,45,.12);
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.forecast-meteogram-zoom svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forecast-meteogram-zoom .forecast-zoom-lens {
    fill: none;
    stroke: currentColor;
}
.forecast-meteogram-zoom:hover { color: #fff; background: #177f91; transform: scale(1.05); }
.forecast-meteogram-zoom:focus-visible { outline: 2px solid rgba(23,127,145,.42); outline-offset: 2px; }
.forecast-meteogram-overlay .forecast-meteogram-zoom .forecast-zoom-plus { display: none; }
.forecast-point-view-toggle label::after,
.forecast-meteogram-zoom::after {
    position: absolute;
    z-index: 8;
    top: 50%;
    right: calc(100% + 7px);
    padding: 5px 7px;
    border-radius: 6px;
    color: #fff;
    background: rgba(16,35,45,.95);
    box-shadow: 0 3px 9px rgba(16,35,45,.2);
    content: attr(data-view-tooltip);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(3px, -50%);
    transition: opacity .12s ease .45s, transform .12s ease .45s;
    white-space: nowrap;
}
.forecast-point-view-toggle label:hover::after,
.forecast-point-view-toggle label:focus-visible::after,
.forecast-meteogram-zoom:hover::after,
.forecast-meteogram-zoom:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}
.forecast-meteogram-zoom::after {
    top: auto;
    right: 0;
    bottom: calc(100% + 6px);
    transform: translateY(3px);
}
.forecast-meteogram-zoom:hover::after,
.forecast-meteogram-zoom:focus-visible::after { transform: translateY(0); }
.forecast-meteogram-overlay {
    position: absolute;
    z-index: 900;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    padding: calc(var(--map-header-height) + 14px) 18px 132px;
    place-items: center;
    background: rgba(8,25,32,.24);
    backdrop-filter: blur(2px);
}
.forecast-meteogram-overlay .forecast-point-chart.is-meteogram {
    width: min(860px, calc(100vw - 36px));
    max-width: 100%;
    margin: 0;
    border-color: rgba(255,255,255,.82);
    background: #fff;
    box-shadow: 0 18px 48px rgba(5,20,27,.34), 0 0 0 1px rgba(16,35,45,.12);
    pointer-events: auto;
}
.forecast-meteogram-overlay .forecast-meteogram-zoom {
    bottom: 9px;
    right: 9px;
    color: #fff;
    background: #177f91;
}
.forecast-point-chart .forecast-chart-background { fill: #fff; }
.forecast-point-chart .point-chart-grid,
.forecast-point-chart .meteogram-grid {
    fill: none;
    stroke: rgba(16,35,45,.18);
    stroke-width: .75;
    stroke-dasharray: 2 3;
}
.forecast-point-chart .point-chart-axis,
.forecast-point-chart .point-chart-date,
.forecast-point-chart .point-chart-unit,
.forecast-point-chart .meteogram-axis {
    fill: #4f666f;
    font-family: inherit;
    font-size: 8.5px;
}
.forecast-point-chart .point-chart-unit,
.forecast-point-chart .meteogram-axis { font-size: 7.5px; font-weight: 750; }
.forecast-point-chart .point-chart-line-underlay,
.forecast-point-chart .meteogram-temperature-underlay {
    fill: none;
    stroke: rgba(16,35,45,.2);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forecast-point-chart .point-chart-line,
.forecast-point-chart .meteogram-temperature-line {
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forecast-point-chart .point-chart-data-point { stroke: #fff; stroke-width: 1; }
.forecast-point-chart .point-chart-data-point.is-hovered { stroke: #10232d; stroke-width: 2.2; }
.forecast-point-chart .forecast-simple-hover-point { opacity: 0; }
.forecast-point-chart .forecast-simple-hover-point.is-hovered { opacity: 1; }
.forecast-point-chart .meteogram-temperature-hover-point { opacity: 0; }
.forecast-point-chart .meteogram-temperature-hover-point.is-hovered { opacity: 1; }
.forecast-simple-extreme {
    fill: #263f49;
    stroke: rgba(255,255,255,.96);
    stroke-width: 2px;
    paint-order: stroke fill;
    font-family: inherit;
    font-size: 8px;
    font-weight: 850;
    pointer-events: none;
}
.forecast-simple-extreme.is-precip { fill: #17677a; }
.forecast-simple-extreme.is-wind { fill: #4c4f75; }
.forecast-simple-extreme.is-temperature.is-max { fill: #a44d14; }
.forecast-simple-extreme.is-temperature.is-min { fill: #176b91; }
.forecast-point-chart .point-chart-hover-label strong { font-size: 12px; }
.forecast-point-chart .point-chart-hover-label small { font-size: 10px; }
.forecast-point-chart .point-chart-hover-label span { font-size: 12px; }
.forecast-point-chart .forecast-chart-slider-marker {
    stroke: #d52f70;
    stroke-width: 1.55;
    stroke-dasharray: none;
    opacity: .96;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px rgba(213,47,112,.45));
}
.meteogram-cloud-band { fill: #50656e; }
.meteogram-day-boundary {
    stroke: rgba(16,35,45,.38);
    stroke-width: 1;
    stroke-dasharray: 4 3;
}
.meteogram-time-label {
    fill: #4f666f;
    font-family: inherit;
    font-size: 8px;
    font-weight: 750;
}
.meteogram-time-label.is-midnight { fill: #284c58; font-weight: 850; }
.meteogram-precipitation-bar {
    stroke: rgba(16,35,45,.32);
    stroke-width: .35;
}
.meteogram-precipitation-value {
    fill: #17677a;
    font-family: inherit;
    font-size: 6.5px;
    font-weight: 700;
    text-anchor: end;
}
.meteogram-wind path {
    fill: none;
    stroke: #263f49;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.meteogram-wind circle {
    fill: none;
    stroke: #263f49;
    stroke-width: 1.15;
}
.meteogram-wind text {
    fill: #405b65;
    font-family: inherit;
    font-size: 7px;
    font-weight: 700;
}
.meteogram-temperature-extreme {
    fill: #263f49;
    stroke: rgba(255,255,255,.92);
    stroke-width: 1.8px;
    paint-order: stroke fill;
    font-family: inherit;
    font-size: 7.5px;
    font-weight: 850;
}
.meteogram-temperature-extreme.is-high { fill: #a44d14; }
.meteogram-temperature-extreme.is-low { fill: #176b91; }
.temperature-threshold-line {
    stroke: #a72f26;
    stroke-width: 1;
    stroke-dasharray: 5 4;
    opacity: .82;
}
.temperature-threshold-label {
    fill: #8f2b24;
    font-family: inherit;
    font-size: 7px;
    font-weight: 800;
}
.temperature-point-chart .point-chart-line { stroke: #a5302c; }
.point-analysis-loading { display: flex; align-items: center; gap: 11px; min-height: 68px; }
.point-analysis-loading div, .point-analysis-error { display: flex; flex-direction: column; }
.point-analysis-loading strong, .point-analysis-error strong { font-size: 13px; }
.point-analysis-loading span:not(.point-analysis-spinner), .point-analysis-error span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.point-analysis-spinner { flex: 0 0 auto; width: 25px; height: 25px; border: 3px solid rgba(20,127,145,.18); border-top-color: #147f91; border-radius: 50%; animation: spin .8s linear infinite; }
.point-analysis-error { min-height: 55px; justify-content: center; }

.map-summary,
.map-options,
.control-panel,
.loading-state,
.error-state { z-index: 500; }

.map-logo {
    position: absolute;
    z-index: 450;
    display: block;
    bottom: 10px;
    left: 10px;
    width: clamp(130px, 14vw, 200px);
    height: auto;
    opacity: .96;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.9)) drop-shadow(0 5px 14px rgba(4,22,29,.28));
    cursor: pointer;
    user-select: none;
}
.map-logo img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.map-logo.is-unlinked {
    pointer-events: none;
    cursor: default;
}

.map-summary {
    position: absolute;
    z-index: 520;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--map-header-height);
    min-width: 0;
    padding: 11px 24px;
    border: 0;
    border-bottom: 1px solid rgba(147,165,171,.35);
    border-radius: 0;
    background: rgba(255,255,255,.96);
    opacity: 80%;
    box-shadow: 0 5px 18px rgba(10,30,40,.12);
    backdrop-filter: blur(14px);
    pointer-events: none;
    transition: height .18s ease;
}

.summary-heading-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 14px;
}
.summary-heading-copy { order: 1; flex: 1 1 auto; min-width: 0; }
.summary-premium {
    order: 2;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 9px 5px 7px;
    border: 1px solid rgba(174,119,0,.3);
    border-radius: 999px;
    color: #8c6200;
    background: rgba(244,202,83,.2);
    box-shadow: inset 0 1px rgba(255,255,255,.65);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
    line-height: 1;
}
.summary-premium[hidden] { display: none; }
.summary-premium svg {
    width: 15px;
    height: 15px;
    fill: #e2ad20;
    stroke: #8c6200;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.summary-title { color: var(--ink); font-size: clamp(17px, 1.8vw, 22px); font-weight: 780; letter-spacing: -.035em; line-height: 1.08; }
.summary-subtitle {
    overflow: hidden;
    margin-top: 4px;
    color: #647b84;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.summary-help {
    order: 4;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 4px 9px 4px 7px;
    border: 1.5px solid #55717b;
    border-radius: 999px;
    color: #395963;
    background: rgba(255,255,255,.65);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
    pointer-events: auto;
}
.summary-help span:first-child {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1.3px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
}
.summary-help:hover { color: #fff; border-color: #147f91; background: #147f91; transform: scale(1.06); }
.summary-help:focus-visible { outline: 3px solid rgba(31,148,166,.3); outline-offset: 2px; }
@media (min-width: 701px) {
    .forecast-point-popup .leaflet-popup-content {
        width: min(525px, calc(100vw - 96px)) !important;
    }
    .summary-metrics {
        padding-right: 16px;
        border-right: 1px solid var(--border);
    }
}
.summary-metrics {
    order: 3;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(64px, 1fr));
    gap: 9px;
    min-width: 226px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}
.summary-metrics div { display: flex; align-items: flex-end; flex-direction: column; min-width: 0; }
.summary-metrics strong { font-size: 17px; line-height: 1; }
.summary-metrics span { margin-top: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.map-stage.is-tree-mode .summary-metrics,
.map-stage.is-protected-areas-mode .summary-metrics,
.map-stage.is-soil-mode .summary-metrics,
.map-stage.is-moisture-mode .summary-metrics,
.map-stage.is-parent-material-mode .summary-metrics,
.map-stage.is-nutrients-mode .summary-metrics { display: none; }

.map-options {
    position: absolute;
    top: calc(var(--map-header-height) + 12px);
    right: var(--map-overlay-gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    transition: top .18s ease;
}
.map-secondary-options {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.place-search-stack {
    display: contents;
}
.soil-depth-control {
    --soil-depth-height: 180px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    min-width: 86px;
    padding: 9px 8px 10px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 15px;
    color: #314952;
    background: rgba(255,255,255,.95);
    box-shadow: 0 9px 30px rgba(10,30,40,.17);
    backdrop-filter: blur(14px);
}
.soil-depth-control[hidden] { display: none; }
.soil-depth-control output {
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    padding-inline: 3px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}
.soil-depth-picker {
    display: grid;
    grid-template-columns: 28px auto;
    gap: 5px;
    height: var(--soil-depth-height);
}
.soil-depth-picker input[type="range"] {
    position: relative;
    top: calc((var(--soil-depth-height) - 26px) / 2);
    left: calc((28px - var(--soil-depth-height)) / 2);
    width: var(--soil-depth-height);
    height: 26px;
    margin: 0;
    accent-color: #1f94a6;
    cursor: ns-resize;
    transform: rotate(90deg);
}
.soil-depth-picker input[type="range"]:focus-visible {
    outline: 3px solid rgba(31,148,166,.28);
    outline-offset: 3px;
}
.soil-depth-ticks {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    height: var(--soil-depth-height);
    padding-block: 4px;
}
.soil-depth-ticks button {
    appearance: none;
    margin: -3px -4px;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    color: #657980;
    background: transparent;
    font-family: inherit;
    font-size: 8px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease, opacity .15s ease, font-weight .15s ease;
}
.soil-depth-ticks button:hover { color: #126c78; background: rgba(31,148,166,.1); }
.soil-depth-ticks button:focus-visible { outline: 2px solid rgba(31,148,166,.55); outline-offset: 1px; }
.soil-depth-ticks button.is-active { color: #126c78; font-weight: 850; background: rgba(31,148,166,.1); }
.soil-depth-ticks button.is-premium-locked { opacity: .38; }
.map-mode-switcher {
    position: absolute;
    z-index: 500;
    top: calc(var(--map-header-height) + 12px);
    left: var(--map-overlay-gutter);
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    max-width: calc(100% - 2 * var(--map-overlay-gutter));
    padding: 7px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 15px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 9px 30px rgba(10,30,40,.17);
    backdrop-filter: blur(14px);
    transition: top .18s ease, width .24s ease, padding .24s ease, border-radius .24s ease;
}
.map-mode-collapse-toggle {
    appearance: none;
    position: absolute;
    top: 7px;
    left: calc(100% + 7px);
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(62,88,98,.16);
    border-radius: 7px;
    color: #536971;
    background-color: #fff;
    box-shadow: 0 7px 22px rgba(10,30,40,.16);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, transform .24s ease, right .24s ease;
}
.map-mode-collapse-toggle[hidden] { display: none; }
.map-mode-collapse-toggle:hover { color: #0f7181; background-color: #e8f4f5; }
.map-mode-collapse-toggle:focus-visible { outline: 3px solid rgba(31,148,166,.3); outline-offset: 1px; }
.map-mode-collapse-toggle:disabled { cursor: wait; opacity: .55; }
.map-mode-collapse-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .24s ease;
}
.map-mode-switcher.is-user-collapsed {
    width: 47px;
    padding-top: 35px;
    padding-inline: 6px;
    border-radius: 14px;
}
.map-mode-switcher.is-user-collapsed .map-mode-collapse-toggle {
    left: 11px;
    box-shadow: none;
}
.map-mode-switcher.is-user-collapsed .map-mode-collapse-toggle svg { transform: rotate(180deg); }
.map-mode-switcher.is-user-collapsed .map-mode-button {
    justify-content: center;
    gap: 0;
    padding-inline: 5px;
}
.map-mode-switcher.is-user-collapsed .map-mode-button > span:last-child {
    max-width: 0;
    opacity: 0;
    transform: translateX(-5px);
}
.map-mode-button {
    appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    min-height: 33px;
    margin: 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    color: #4b616a;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.map-mode-button[hidden] { display: none; }
.map-mode-button > span:last-child {
    overflow: hidden;
    min-width: 0;
    max-width: 180px;
    text-overflow: ellipsis;
    transition: max-width .24s ease, opacity .16s ease, transform .24s ease;
}
.map-mode-icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 17px;
    height: 17px;
    color: #263f49;
}
.map-mode-icon svg { width: 17px; height: 17px; }
.map-mode-rain-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-mode-forecast-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-mode-forecast-icon circle { fill: currentColor; stroke: none; opacity: .55; }
.map-mode-temperature-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-mode-tree-icon svg { fill: currentColor; }
.map-mode-protected-areas-icon .protected-shield { fill: currentColor; }
.map-mode-protected-areas-icon .protected-leaf {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-mode-moisture-icon .mode-moisture-drop { fill: currentColor; }
.map-mode-moisture-icon .mode-moisture-ground {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}
.map-mode-soil-icon .mode-soil-mound,
.map-mode-soil-icon .mode-soil-liquid { fill: currentColor; }
.map-mode-soil-icon .mode-soil-liquid { opacity: .72; }
.map-mode-soil-icon .mode-soil-tube {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-mode-parent-material-icon .mode-material-rock-back { fill: currentColor; opacity: .72; }
.map-mode-parent-material-icon .mode-material-rock-front { fill: currentColor; }
.map-mode-nutrients-icon .mode-nutrients-ground,
.map-mode-nutrients-icon .mode-nutrients-leaf { fill: currentColor; }
.map-mode-nutrients-icon .mode-nutrients-leaf { fill-opacity: .82; }
.map-mode-nutrients-icon circle { fill: currentColor; opacity: .72; }
.map-mode-button:hover:not(.is-active) { color: #147f91; background: rgba(31,148,166,.1); }
.map-mode-button.is-active {
    color: #fff;
    background: #147f91;
    box-shadow: 0 2px 8px rgba(20,127,145,.25);
}
.map-mode-button.is-active .map-mode-icon { color: #17333c; }
.map-mode-button:focus-visible { outline: 3px solid rgba(31,148,166,.3); outline-offset: 1px; }
.map-mode-button:disabled { cursor: wait; }
@media (hover: hover) {
    .map-mode-switcher:is(.is-user-collapsed, .is-popup-overlap-collapsed) .map-mode-button::after {
        content: attr(data-collapsed-label);
        position: absolute;
        z-index: 6;
        top: 50%;
        left: calc(100% + 9px);
        width: max-content;
        max-width: min(190px, calc(100vw - 80px));
        padding: 6px 8px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 7px;
        color: #fff;
        background: #263a43;
        box-shadow: 0 5px 16px rgba(8,24,32,.22);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.15;
        text-align: left;
        white-space: normal;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transform: translate(3px, -50%);
        transition:
            opacity .14s ease,
            transform .14s ease,
            visibility 0s linear .14s;
    }
    .map-mode-switcher:is(.is-user-collapsed, .is-popup-overlap-collapsed) .map-mode-button:hover::after {
        visibility: visible;
        opacity: 1;
        transform: translate(0, -50%);
        transition-delay: .48s;
    }
}
.popup-return-button {
    position: relative;
    z-index: 510;
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 13px;
    color: #fff;
    background: #0b6f80;
    box-shadow: 0 8px 30px rgba(10,30,40,.22);
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease;
}
.popup-return-button[hidden] { display: none; }
.popup-return-button:hover { background: #095b69; transform: translateY(-1px); }
.popup-return-button:focus-visible { outline: 3px solid rgba(31,148,166,.3); outline-offset: 2px; }
.popup-return-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.location-control { position: relative; }
.location-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 13px;
    color: #354d57;
    background: var(--panel);
    box-shadow: 0 8px 30px rgba(10,30,40,.15);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.location-button:hover { color: #147f91; transform: translateY(-1px); }
.location-button:focus-visible { outline: 3px solid rgba(31,148,166,.25); outline-offset: 2px; }
.location-button:disabled { cursor: wait; opacity: .65; }
.location-button.is-locating svg { animation: location-pulse 1s ease-in-out infinite; }
.location-button.has-location { color: #fff; background: #1f94a6; }
.location-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
@keyframes location-pulse { 50% { opacity: .42; transform: scale(.86); } }
.precipitation-source-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 13px;
    color: #354d57;
    background: var(--panel);
    box-shadow: 0 8px 30px rgba(10,30,40,.15);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.precipitation-source-toggle:hover { color: #147f91; transform: translateY(-1px); }
.precipitation-source-toggle:focus-visible { outline: 3px solid rgba(31,148,166,.25); outline-offset: 2px; }
.precipitation-source-toggle[aria-pressed="true"] { color: #fff; background: #1f94a6; }
.precipitation-source-toggle:disabled { cursor: wait; opacity: .58; }
.precipitation-source-toggle[hidden] { display: none; }
.precipitation-source-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.place-search-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 13px;
    color: #354d57;
    background: var(--panel);
    box-shadow: 0 8px 30px rgba(10,30,40,.15);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.place-search-button:hover { color: #147f91; transform: translateY(-1px); }
.place-search-button:focus-visible { outline: 3px solid rgba(31,148,166,.25); outline-offset: 2px; }
.place-search-button[aria-expanded="true"] { color: #fff; background: #1f94a6; }
.place-search-button svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}
.premium-feature {
    opacity: .42;
    filter: grayscale(.6);
    transition: opacity .18s ease, filter .18s ease;
}
.has-premium-access .premium-feature {
    opacity: 1;
    filter: none;
}
.map-mode-button.is-active.is-layer-dimmed {
    color: #405760;
    background: rgba(20,127,145,.2);
    box-shadow: none;
}
.map-mode-button.is-active.is-layer-dimmed .map-mode-icon { color: #405760; }
.place-search-label { white-space: nowrap; }
.place-search-panel {
    position: absolute;
    z-index: 60;
    top: 48px;
    right: 0;
    width: min(350px, calc(100vw - 48px));
    padding: 13px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 15px;
    color: var(--ink);
    background: rgba(255,255,255,.97);
    box-shadow: 0 16px 42px rgba(6,26,35,.25);
    backdrop-filter: blur(16px);
}
.place-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.place-search-heading label { font-size: 13px; font-weight: 800; }
.place-search-heading-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.place-search-heading-meta small {
    overflow: hidden;
    color: #88979c;
    font-size: 9px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.place-search-heading button {
    flex: 0 0 auto;
}
#place-search-input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #c7d5d8;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
    outline: none;
}
#place-search-input:focus {
    border-color: #1f94a6;
    box-shadow: 0 0 0 3px rgba(31,148,166,.16);
}
.place-search-status {
    min-height: 15px;
    margin: 7px 2px 4px;
    color: var(--muted);
    font-size: 9px;
}
.place-search-results {
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    gap: 3px;
    max-height: min(310px, calc(100vh - 290px));
    margin: 0;
    padding: 0;
    list-style: none;
    overscroll-behavior: contain;
}
.favorite-places-panel {
    position: absolute;
    z-index: 1;
    top: calc(100% + 8px);
    right: 0;
    box-sizing: border-box;
    width: min(310px, 100%);
    padding: 10px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 13px;
    color: var(--ink);
    background: rgba(255,255,255,.97);
    box-shadow: 0 12px 34px rgba(6,26,35,.2);
    backdrop-filter: blur(16px);
}
.favorite-places-panel[hidden] { display: none; }
.favorite-places-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 6px;
}
.favorite-places-heading strong { font-size: 11px; }
.favorite-places-heading span { color: var(--muted); font-size: 9px; font-weight: 700; }
.favorite-places-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.favorite-places-list li { display: flex; align-items: center; gap: 3px; min-width: 0; }
.favorite-place-item {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    border-radius: 9px;
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}
.favorite-place-item.is-dragging {
    position: fixed;
    z-index: 1200;
    box-sizing: border-box;
    opacity: .94;
    background: #fff;
    box-shadow: 0 9px 24px rgba(16,35,45,.26);
    pointer-events: none;
    transform: scale(1.015);
}
.favorite-place-placeholder {
    box-sizing: border-box;
    flex: 0 0 auto;
    border: 1px dashed rgba(20,127,145,.42);
    border-radius: 9px;
    background: rgba(31,148,166,.09);
}
.favorite-places-list.is-saving-order { cursor: wait; }
.favorite-place-drag-handle {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #8a9a9f;
    background: transparent;
    cursor: grab;
    touch-action: none;
}
.favorite-place-drag-handle span { font-size: 17px; line-height: 1; transform: rotate(90deg); }
.favorite-place-drag-handle:hover,
.favorite-place-drag-handle:focus-visible { color: #147f91; background: rgba(31,148,166,.1); outline: none; }
.favorite-place-drag-handle:active { cursor: grabbing; }
.favorite-places-list.is-saving-order .favorite-place-drag-handle { opacity: .45; pointer-events: none; }
.favorite-place-select,
.favorite-place-remove {
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.favorite-place-select {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 8px;
    text-align: left;
}
.favorite-place-select:hover,
.favorite-place-select:focus-visible { background: rgba(31,148,166,.1); outline: none; }
.favorite-place-select svg { flex: 0 0 auto; width: 16px; height: 16px; color: #c28d14; }
.favorite-place-select .favorite-star-body { fill: currentColor; stroke: #8b6410; stroke-width: 1.2; stroke-linejoin: round; }
.favorite-place-select .favorite-star-shine { fill: none; stroke: rgba(255,255,255,.72); stroke-width: 1; stroke-linecap: round; }
.favorite-place-select .favorite-star-sparkle { fill: rgba(255,255,255,.82); stroke: none; }
.favorite-place-select span { overflow: hidden; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.favorite-place-remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #71848b;
    font-size: 19px;
    line-height: 1;
}
.favorite-place-remove:hover,
.favorite-place-remove:focus-visible { color: #9c382f; background: rgba(156,56,47,.1); outline: none; }
.favorite-places-empty,
.favorite-places-status { margin: 0; padding: 6px 8px; color: var(--muted); font-size: 9px; }
.favorite-places-status.is-error { color: #a43b32; }
.favorite-map-marker {
    border: 0;
    background: transparent;
    pointer-events: auto !important;
    cursor: pointer;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.65)) drop-shadow(0 3px 4px rgba(75,48,2,.42));
}
.favorite-map-marker svg {
    display: block;
    width: 26px;
    height: 26px;
    color: #f5c83e;
    transition: transform .15s ease;
}
.favorite-map-marker .favorite-star-body {
    fill: #f5c83e;
    stroke: #82570a;
    stroke-width: 1.35;
    stroke-linejoin: round;
}
.favorite-map-marker .favorite-star-shine {
    fill: none;
    stroke: rgba(255,255,255,.92);
    stroke-width: 1.25;
    stroke-linecap: round;
}
.favorite-map-marker .favorite-star-sparkle { fill: #fff8c9; stroke: none; }
.favorite-map-marker:hover svg { transform: scale(1.14); }
.place-search-result {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.place-search-result:hover,
.place-search-result:focus-visible { background: rgba(31,148,166,.11); outline: none; }
.place-search-result strong { font-size: 11px; line-height: 1.25; }
.place-search-result small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.location-feedback {
    position: absolute;
    z-index: 30;
    top: calc(100% + 9px);
    right: 0;
    width: max-content;
    max-width: min(260px, calc(100vw - 30px));
    padding: 8px 10px;
    border-radius: 9px;
    color: #fff;
    background: rgba(10,26,36,.96);
    box-shadow: 0 8px 24px rgba(4,22,29,.25);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}
.location-feedback[hidden] { display: none; }
.map-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 13px;
    background: var(--panel);
    box-shadow: 0 8px 30px rgba(10,30,40,.15);
    color: #354d57;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.map-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { position: relative; width: 31px; height: 18px; border-radius: 10px; background: #c7d2d5; transition: .2s ease; }
.toggle-track span { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s ease; }
.map-toggle input:checked + .toggle-track { background: #1f94a6; }
.map-toggle input:checked + .toggle-track span { transform: translateX(13px); }
.map-toggle input:focus-visible + .toggle-track { outline: 3px solid rgba(31,148,166,.25); outline-offset: 2px; }
.map-toggle input:disabled + .toggle-track { opacity: .55; }
.map-toggle.icon-toggle {
    isolation: isolate;
    justify-content: center;
    min-width: 40px;
    width: auto;
    height: 40px;
    padding: 0 12px;
    overflow: visible;
}
.icon-toggle .toggle-track {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 13px;
}
.icon-toggle .toggle-track span { display: none; }
.icon-toggle input:checked + .toggle-track { background: #1f94a6; }
.icon-toggle input:checked ~ .toggle-label,
.icon-toggle input:checked ~ .station-toggle-label { color: #fff; }
.icon-toggle .toggle-label,
.icon-toggle .station-toggle-label {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #354d57;
}
.sum-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 30px;
    border: 0;
    line-height: 1;
}
.icon-toggle-text {
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}
.cumulative-scale-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.station-mast-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.map-stage.is-tree-mode .cumulative-toggle,
.map-stage.is-tree-mode .station-toggle,
.map-stage.is-protected-areas-mode .cumulative-toggle,
.map-stage.is-protected-areas-mode .station-toggle,
.map-stage.is-soil-mode .cumulative-toggle,
.map-stage.is-soil-mode .station-toggle,
.map-stage.is-moisture-mode .cumulative-toggle,
.map-stage.is-moisture-mode .station-toggle,
.map-stage.is-parent-material-mode .cumulative-toggle,
.map-stage.is-parent-material-mode .station-toggle,
.map-stage.is-nutrients-mode .cumulative-toggle,
.map-stage.is-nutrients-mode .station-toggle,
.map-stage.is-forecast-mode .cumulative-toggle,
.map-stage.is-forecast-mode .station-toggle,
.map-stage.is-temperature-mode .station-toggle { display: none; }
.station-toggle[hidden] { display: none !important; }
.toggle-label { position: relative; }
.cumulative-tooltip-trigger { border-bottom: 1px dotted #6f848d; outline: none; }
.cumulative-tooltip-trigger.sum-symbol { border: 0; }
.cumulative-tooltip-trigger:focus-visible { border-radius: 3px; outline: 3px solid rgba(31,148,166,.22); outline-offset: 2px; }
.cumulative-help {
    position: absolute;
    top: calc(100% + 16px);
    right: -12px;
    width: 265px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    background: rgba(10, 26, 36, .97);
    box-shadow: 0 10px 28px rgba(4, 22, 29, .28);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    visibility: hidden;
}
.cumulative-help::before {
    position: absolute;
    top: -5px;
    right: 26px;
    width: 10px;
    height: 10px;
    background: #0a1a24;
    content: "";
    transform: rotate(45deg);
}
.cumulative-tooltip-trigger:hover + .cumulative-help,
.cumulative-tooltip-trigger:focus-visible + .cumulative-help,
.cumulative-help.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.station-help {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 190px;
    padding: 9px 11px;
    border-radius: 9px;
    color: #fff;
    background: rgba(10,26,36,.97);
    box-shadow: 0 10px 28px rgba(4,22,29,.28);
    font-size: 10px;
    font-weight: 550;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    visibility: hidden;
}
.station-help::before {
    position: absolute;
    top: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #0a1a24;
    content: "";
    transform: rotate(45deg);
}
.station-toggle:hover .station-help,
.station-toggle:focus-within .station-help {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.loading-state,
.error-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 16px;
    background: rgba(10, 26, 36, .9);
    box-shadow: var(--shadow);
    color: #fff;
    backdrop-filter: blur(12px);
}
.loading-state { z-index: 900; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 12px; font-weight: 650; pointer-events: none; }
.loading-state[hidden], .error-state[hidden] { display: none; }
.spinner { flex: 0 0 auto; width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.28); border-top-color: #5ed5dd; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { display: flex; flex-direction: column; align-items: center; min-width: min(350px, calc(100vw - 36px)); padding: 20px; text-align: center; }
.error-state span { margin: 5px 0 14px; color: #bbcad0; font-size: 12px; }
.error-state button { border: 0; border-radius: 9px; padding: 9px 13px; color: #fff; background: #258f9f; cursor: pointer; }

.premium-dialog-backdrop {
    position: absolute;
    z-index: 1800;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5,20,28,.66);
    backdrop-filter: blur(5px);
}
.premium-dialog-backdrop[hidden] { display: none; }
.premium-dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100% - 20px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(198,146,18,.3);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(3,19,27,.38);
    color: #17303a;
}
.premium-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #53666d;
    background: #edf2f3;
    font: 24px/1 system-ui, sans-serif;
    cursor: pointer;
}
.premium-dialog-close:hover { color: #142d36; background: #dfe8ea; }
.premium-dialog-close:focus-visible,
.premium-dialog input:focus-visible,
.premium-dialog button:focus-visible,
.premium-info-button:focus-visible {
    outline: 3px solid rgba(198,146,18,.32);
    outline-offset: 2px;
}
.premium-dialog-crown {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 15px;
    color: #765300;
    background: linear-gradient(145deg, #f8e39b, #d7a824);
    box-shadow: inset 0 0 0 1px rgba(112,76,0,.16), 0 8px 20px rgba(151,108,8,.2);
    font: 30px/1 Georgia, "Times New Roman", serif;
}
.premium-dialog h2 { margin: 0 42px 8px 0; font-size: 25px; line-height: 1.15; }
.premium-dialog > p { margin: 0 0 18px; color: #5b6e75; font-size: 14px; line-height: 1.5; }
.premium-dialog form { display: grid; gap: 8px; }
.premium-dialog label { color: #304851; font-size: 12px; font-weight: 800; }
.premium-dialog input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9c8cc;
    border-radius: 10px;
    color: #142d36;
    background: #fbfdfd;
    font: inherit;
}
.premium-dialog input:invalid:not(:placeholder-shown) { border-color: #b74d45; }
.premium-dialog form button,
.premium-info-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.premium-dialog form button {
    margin-top: 3px;
    color: #fff;
    background: #946f12;
}
.premium-dialog form button:disabled { cursor: wait; opacity: .62; }
.premium-info-button {
    width: 100%;
    margin-top: 10px;
    color: #5f490d;
    background: #f7edcc;
}
.premium-dialog .premium-status {
    margin: 13px 0 0;
    padding: 10px 11px;
    border-radius: 9px;
    color: #31525d;
    background: #eaf4f5;
    font-size: 12px;
    font-weight: 700;
}
.premium-dialog .premium-status.is-error { color: #7b302b; background: #f9e8e6; }

.high-zoom-warning-dialog { width: min(500px, 100%); }
.high-zoom-warning-icon {
    display: grid;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 15px;
    color: #604600;
    background: linear-gradient(145deg, #fff1b8, #e1b83d);
    box-shadow: inset 0 0 0 1px rgba(112,76,0,.16), 0 8px 20px rgba(151,108,8,.16);
    font-size: 28px;
    font-weight: 900;
}
.high-zoom-warning-choice {
    display: flex;
    min-height: 46px;
    margin-top: 6px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid #d5dfe1;
    border-radius: 10px;
    background: #f7fafb;
    cursor: pointer;
}
.premium-dialog .high-zoom-warning-choice input {
    flex: 0 0 auto;
    width: 19px;
    min-height: 19px;
    height: 19px;
    margin: 0;
    padding: 0;
    accent-color: #946f12;
}
.high-zoom-warning-choice span { font-size: 13px; font-weight: 750; }
.high-zoom-warning-confirm {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #946f12;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.high-zoom-warning-confirm:disabled { cursor: wait; opacity: .62; }

.premium-hint-dialog {
    width: min(500px, 100%);
    padding: 26px 28px 24px;
}
.premium-hint-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-right: 36px;
}
.premium-hint-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7df8f, #dfab24);
    color: #5c4103;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 2px 8px rgba(181, 137, 20, .22);
}
.premium-hint-badge.is-neu {
    background: linear-gradient(135deg, #4edbd4, #1fa59c);
    color: #033c37;
    box-shadow: 0 2px 8px rgba(31, 165, 156, .25);
}
.premium-hint-dialog h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    color: #122830;
    font-weight: 800;
}
.premium-hint-body {
    margin: 0 0 22px;
    color: #485f67;
    font-size: 14.5px;
    line-height: 1.58;
}
.premium-hint-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.premium-hint-confirm {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #946f12;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(134, 98, 9, .25);
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.premium-hint-confirm:hover {
    background: #84620d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(134, 98, 9, .32);
}
.premium-hint-confirm:active {
    transform: translateY(0);
}
.premium-hint-confirm:disabled {
    cursor: wait;
    opacity: .62;
}
.premium-hint-later {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #637981;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s ease;
}
.premium-hint-later:hover {
    color: #17323b;
}

@media (max-width: 540px) {
    .premium-hint-dialog {
        padding: 20px 20px 18px;
    }
    .premium-hint-dialog h2 {
        font-size: 18px;
    }
    .premium-hint-body {
        font-size: 13.5px;
    }
}

.control-panel {
    position: absolute;
    right: 60px;
    bottom: 24px;
    left: calc(clamp(130px, 14vw, 200px) + 20px);
    max-width: 1120px;
    margin-inline: auto;
    padding: 15px 20px 11px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 20px 55px rgba(5, 24, 32, .22);
    backdrop-filter: blur(16px);
}

.control-row { display: flex; align-items: center; gap: 17px; }
.forecast-variable-switcher {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(108px, auto);
    gap: 4px;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 2 * var(--map-overlay-gutter));
    padding: 5px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 13px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 9px 30px rgba(10,30,40,.17);
    backdrop-filter: blur(14px);
    transition: width .24s ease, padding .24s ease, border-radius .24s ease;
}
.forecast-variable-switcher[hidden] { display: none; }
.forecast-variable-switcher button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid rgba(28,76,92,.14);
    border-radius: 9px;
    color: #526770;
    background: rgba(239,245,246,.92);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}
.forecast-variable-switcher .forecast-variable-collapse-toggle {
    position: absolute;
    z-index: 9;
    top: 5px;
    right: calc(100% + 7px);
    display: grid !important;
    width: 29px;
    min-height: 29px !important;
    height: 29px;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    place-items: center;
    border: 1px solid rgba(255,255,255,.78) !important;
    border-radius: 9px !important;
    color: #526770;
    background: #fff !important;
    box-shadow: 0 7px 22px rgba(10,30,40,.16);
    line-height: 0;
}
.forecast-variable-collapse-toggle[hidden] { display: none !important; }
.forecast-variable-collapse-toggle:hover { color: #126f80; background: #e8f4f5 !important; }
.forecast-variable-collapse-toggle svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .24s ease;
}
.forecast-variable-switcher.is-collapsed {
    grid-template-columns: 28px 34px;
    width: 76px;
    padding-top: 38px;
}
.forecast-variable-switcher.is-collapsed .forecast-variable-collapse-toggle {
    top: 5px;
    right: 50%;
    transform: translateX(50%);
    box-shadow: none;
}
.forecast-variable-switcher.is-collapsed .forecast-variable-collapse-toggle svg { transform: rotate(180deg); }
.forecast-variable-switcher button[data-forecast-variable] > span {
    overflow: hidden;
    max-width: 110px;
    opacity: 1;
    transition: max-width .24s ease, opacity .16s ease, transform .24s ease;
}
.forecast-variable-switcher.is-collapsed button[data-forecast-variable] {
    justify-content: center;
    gap: 0;
    padding-inline: 5px;
}
.forecast-variable-switcher.is-collapsed button[data-forecast-variable] > span {
    max-width: 0;
    opacity: 0;
    transform: translateX(4px);
}
.forecast-variable-switcher button[data-forecast-variable] {
    grid-column: 2;
    width: 100%;
}
.forecast-variable-switcher button[data-forecast-variable="precip"] { grid-row: 1; }
.forecast-variable-switcher button[data-forecast-variable="clouds"] { grid-row: 2; }
.forecast-variable-switcher button[data-forecast-variable="temperature"] { grid-row: 3; }
.forecast-variable-switcher button[data-forecast-variable="wind"] { grid-row: 4; }
.forecast-variable-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.forecast-variable-switcher button:hover { border-color: rgba(20,127,145,.45); color: #126f80; }
.forecast-variable-switcher button:focus-visible { outline: 3px solid rgba(31,148,166,.25); outline-offset: 1px; }
.forecast-variable-switcher button[aria-pressed="true"] { color: #fff; background: #147f91; border-color: #147f91; }
.forecast-variable-switcher .forecast-rain-cloud-link {
    position: relative;
    display: grid;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    padding: 0;
    place-items: center;
    border-color: transparent;
    color: #61767e;
    background: transparent;
}
.forecast-variable-switcher .forecast-rain-cloud-link::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: 22px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    border-radius: 7px 0 0 7px;
    opacity: .68;
}
.forecast-variable-switcher .forecast-rain-cloud-link:hover {
    border-color: transparent;
    color: #126f80;
    background: transparent;
}
.forecast-variable-switcher .forecast-rain-cloud-link[aria-pressed="true"] {
    border-color: transparent;
    color: #147f91;
    background: transparent;
}
.forecast-rain-cloud-link svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 6px;
    color: #526770;
    background: #fff;
    fill: currentColor;
    box-shadow: 0 0 0 1px rgba(28,76,92,.15);
}
.forecast-rain-cloud-link[aria-pressed="true"] svg {
    color: #fff;
    background: #147f91;
    box-shadow: 0 0 0 1px #147f91;
}
@media (hover: hover) {
    .forecast-variable-switcher.is-collapsed button[data-forecast-variable]::after,
    .forecast-variable-switcher.is-collapsed .forecast-rain-cloud-link::after {
        content: attr(data-forecast-label);
        position: absolute;
        z-index: 8;
        top: 50%;
        right: calc(100% + 9px);
        width: max-content;
        max-width: min(220px, calc(100vw - 95px));
        padding: 6px 8px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 7px;
        color: #fff;
        background: #263a43;
        box-shadow: 0 5px 16px rgba(8,24,32,.22);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.15;
        text-align: left;
        white-space: normal;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transform: translate(-3px, -50%);
        transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
    }
    .forecast-variable-switcher.is-collapsed .forecast-rain-cloud-link::after {
        right: calc(100% + 13px);
    }
    .forecast-variable-switcher.is-collapsed button[data-forecast-variable]:hover::after,
    .forecast-variable-switcher.is-collapsed .forecast-rain-cloud-link:hover::after {
        visibility: visible;
        opacity: 1;
        transform: translate(0, -50%);
        transition-delay: .48s;
    }
}
.play-button { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--night-soft); box-shadow: 0 6px 16px rgba(10,26,36,.2); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.play-button:hover { transform: scale(1.04); background: #1c4b5b; }
.play-button:focus-visible { outline: 3px solid rgba(31,148,166,.3); outline-offset: 3px; }
.play-button svg { width: 19px; height: 19px; fill: currentColor; }
.play-button .icon-play { margin-left: 2px; }
.play-button .icon-pause, .play-button.is-playing .icon-play { display: none; }
.play-button.is-playing .icon-pause { display: block; }

.slider-wrap { flex: 1; min-width: 0; }
.slider-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-heading label { color: #536871; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slider-heading output { font-size: 14px; font-weight: 780; letter-spacing: -.01em; white-space: nowrap; }
.slider-heading output.is-now-action {
    border-radius: 6px;
    cursor: pointer;
}
.slider-heading output.is-now-action:hover { color: #177d8f; }
.slider-heading output.is-now-action:focus-visible {
    outline: 2px solid rgba(23, 135, 154, .34);
    outline-offset: 3px;
}
.slider-heading-value { display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 8px; }
.temporal-sync-toggle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 1px solid rgba(26,126,144,.22);
    border-radius: 8px;
    color: #126f80;
    background: rgba(36,148,166,.11);
    cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.temporal-sync-toggle:hover { transform: translateY(-1px); background: rgba(36,148,166,.18); }
.temporal-sync-toggle:focus-visible { outline: 3px solid rgba(31,148,166,.25); outline-offset: 2px; }
.temporal-sync-toggle[aria-pressed="false"] { border-color: rgba(82,101,108,.18); color: #76878d; background: rgba(91,111,118,.08); }
.temporal-sync-toggle svg { width: 15px; height: 15px; fill: currentColor; }
.temporal-sync-toggle .temporal-sync-unlocked,
.temporal-sync-toggle[aria-pressed="false"] .temporal-sync-locked { display: none; }
.temporal-sync-toggle[aria-pressed="false"] .temporal-sync-unlocked { display: block; }
.temporal-sync-toggle[hidden] { display: none; }
.slider-track-wrap {
    --selection-start: 0%;
    --selection-end: 100%;
    position: relative;
    height: 26px;
}
.slider-track-wrap.is-forecast-timeline { height: 45px; }
.slider-track-wrap::before,
.slider-track-wrap::after {
    position: absolute;
    top: 12.5px;
    right: 0;
    left: 0;
    height: 5px;
    border-radius: 4px;
    content: "";
    pointer-events: none;
}
.slider-track-wrap::before { background: #d4dfe1; }
.slider-track-wrap::after {
    right: auto;
    left: var(--selection-start);
    width: calc(var(--selection-end) - var(--selection-start));
    background: #278fa2;
}
.slider-track-wrap.is-forecast-timeline::before {
    top: 10.5px;
    height: 9px;
    border: 1px solid rgba(26,55,66,.22);
    background: var(--forecast-day-night, #d4dfe1);
    box-shadow: inset 0 1px rgba(255,255,255,.34);
}
.slider-track-wrap.is-forecast-timeline::after {
    top: 13px;
    height: 4px;
    background: rgba(28,139,158,.72);
    box-shadow: 0 0 0 1px rgba(255,255,255,.32);
}
.range-drag-handle {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: var(--selection-start);
    width: calc(var(--selection-end) - var(--selection-start));
    height: 22px;
    border-radius: 11px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.range-drag-handle::after {
    position: absolute;
    top: 8.5px;
    right: 8px;
    left: 8px;
    height: 5px;
    border-radius: 4px;
    background: rgba(255,255,255,.22);
    content: "";
    opacity: 0;
    transition: opacity .15s ease;
}
.range-drag-handle:hover::after,
.range-drag-handle:focus-visible::after,
.range-drag-handle.is-dragging::after { opacity: 1; }
.range-drag-handle.is-dragging { cursor: grabbing; }
.range-drag-handle:focus-visible {
    outline: 3px solid rgba(23,135,154,.22);
    outline-offset: 1px;
}

.forecast-time-markers {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 11px;
    left: 11px;
    height: 44px;
    pointer-events: none;
}
.forecast-time-markers[hidden] { display: none; }
.forecast-time-marker {
    position: absolute;
    top: 7px;
    height: 17px;
    border-left: 1px solid rgba(44, 77, 87, .48);
    color: #64777e;
    pointer-events: none;
}
.forecast-time-marker.is-day-boundary {
    top: 4px;
    height: 22px;
    border-left: 2px solid rgba(23, 77, 91, .82);
    color: #304f59;
}
.forecast-time-marker::after {
    position: absolute;
    top: -7px;
    left: 0;
    font-size: 7px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(255,255,255,.8);
    transform: translateX(-50%);
}
.forecast-time-marker.is-daytime::after { color: #9b7108; content: "☀"; }
.forecast-time-marker.is-nighttime::after { color: #334e65; content: "☾"; }
.forecast-time-marker.is-daytime .forecast-time-marker-clock { color: #79621e; }
.forecast-time-marker.is-nighttime .forecast-time-marker-clock { color: #40596b; }
.forecast-time-marker-clock,
.forecast-time-marker-date {
    position: absolute;
    left: 0;
    display: block;
    font-weight: 750;
    line-height: 1;
    transform: translateX(-50%);
    white-space: nowrap;
}
.forecast-time-marker-clock { top: 22px; font-size: 8px; }
.forecast-time-marker-date { top: 31px; font-size: 7px; font-weight: 650; color: #7c8d92; }
.forecast-now-marker {
    position: absolute;
    z-index: 2;
    top: 0;
    width: 34px;
    height: 43px;
    padding: 0;
    border: 0;
    color: #a53d32;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
    transform: translateX(-50%);
}
.forecast-now-line {
    position: absolute;
    top: 2px;
    bottom: 16px;
    left: 50%;
    width: 2px;
    border-radius: 2px;
    background: #bc4a3d;
    box-shadow: 0 0 0 1px rgba(255,255,255,.82);
    transform: translateX(-50%);
}
.forecast-now-line::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #bc4a3d;
    box-shadow: 0 1px 4px rgba(80,20,15,.32);
    content: "";
    transform: translate(-50%, -50%);
}
.forecast-now-label {
    position: absolute;
    bottom: 1px;
    left: 50%;
    padding: 1px 4px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #a94338;
    font-size: 7px;
    font-weight: 800;
    font-family: inherit;
    line-height: 1.2;
    transform: translateX(-50%);
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
}
.forecast-now-label:hover,
.forecast-now-label:focus-visible { background: #7f2c25; }
.forecast-now-label:focus-visible { outline: 2px solid rgba(188,74,61,.34); outline-offset: 1px; }

.slider-tooltip {
    position: absolute;
    z-index: 20;
    bottom: 35px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 186px;
    padding: 9px 12px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    color: #fff;
    background: rgba(10, 26, 36, .96);
    box-shadow: 0 9px 26px rgba(4, 22, 29, .28);
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}
.slider-tooltip[hidden] { display: none; }
.slider-tooltip::after {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 11px;
    height: 11px;
    background: #0a1a24;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}
.slider-tooltip strong { position: relative; z-index: 1; font-size: 12px; line-height: 1.2; }
.slider-tooltip span { position: relative; z-index: 1; margin-top: 3px; color: #a9c2ca; font-size: 9px; font-weight: 650; }

#date-slider,
#start-date-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 22px;
    margin: 4px 0 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
    touch-action: pan-y;
}
#start-date-slider { position: absolute; inset: 0; z-index: 3; }
#start-date-slider[hidden] { display: none; }
#date-slider::-webkit-slider-runnable-track,
#start-date-slider::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; background: transparent; }
#date-slider::-moz-range-track,
#start-date-slider::-moz-range-track { height: 5px; border-radius: 4px; background: transparent; }
#date-slider::-moz-range-progress,
#start-date-slider::-moz-range-progress { background: transparent; }
#date-slider::-webkit-slider-thumb,
#start-date-slider::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8.5px; appearance: none; border: 4px solid #fff; border-radius: 50%; background: #17879a; box-shadow: 0 2px 9px rgba(13,93,106,.45); pointer-events: auto; }
#date-slider::-moz-range-thumb,
#start-date-slider::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid #fff; border-radius: 50%; background: #17879a; box-shadow: 0 2px 9px rgba(13,93,106,.45); pointer-events: auto; }
#start-date-slider::-webkit-slider-thumb { background: #0e6272; }
#start-date-slider::-moz-range-thumb { background: #0e6272; }
.slider-track-wrap.is-cumulative input { pointer-events: none; }
#date-slider:focus-visible,
#start-date-slider:focus-visible { z-index: 4; outline: none; }
#date-slider:focus-visible::-webkit-slider-thumb,
#start-date-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(23,135,154,.22), 0 2px 9px rgba(13,93,106,.45); }
#date-slider:disabled,
#start-date-slider:disabled { cursor: wait; opacity: .55; }
.range-labels { display: flex; justify-content: space-between; margin-top: -1px; color: #85949a; font-size: 9px; }
.map-stage.is-forecast-mode .range-labels { display: none; }

.legend { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); }
.legend-title { display: flex; flex-direction: column; gap: 2px; color: #4d626b; font-size: 10px; font-weight: 800; white-space: nowrap; }
.legend-title small, .legend-high { color: #88969b; font-size: 8px; font-weight: 600; }
.legend-scale { display: grid; grid-template-columns: repeat(30, 1fr); height: 20px; min-width: 0; }
.legend-stop { position: relative; min-width: 0; border-top: 1px solid rgba(15,35,45,.35); border-bottom: 1px solid rgba(15,35,45,.35); border-left: 1px solid rgba(15,35,45,.35); }
.legend-stop:last-child { border-right: 1px solid rgba(15,35,45,.35); }
.legend-stop span { position: absolute; top: 21px; left: 50%; transform: translateX(-50%); color: #65777d; font-size: 7px; white-space: nowrap; }
.moisture-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--border);
}
.moisture-legend[hidden] { display: none; }
.moisture-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.moisture-legend-heading strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.moisture-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.moisture-legend-items {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}
.moisture-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #455b64;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
}
.moisture-legend-swatch {
    flex: 0 0 auto;
    width: 18px;
    height: 14px;
    border: 1px solid rgba(16,35,45,.42);
    border-radius: 3px;
    background: var(--moisture-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.moisture-legend-label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.legend-point-info,
.tree-legend-point-info { display: none !important; }
.tree-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.tree-legend[hidden] { display: none; }
.tree-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.tree-legend-heading strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tree-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.tree-legend-items {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px 8px;
    min-width: 0;
}
.tree-legend-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 22px;
    margin: 0;
    padding: 3px 2px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #455b64;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    transition: opacity .16s ease, filter .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.tree-legend-item:hover { background: rgba(31,148,166,.1); }
.tree-legend-item:focus-visible {
    outline: 2px solid #1f94a6;
    outline-offset: 1px;
}
.tree-legend-items.has-selection .tree-legend-item:not(.is-selected) {
    opacity: .2;
    filter: grayscale(.85);
}
.tree-legend-item.is-selected {
    background: rgba(31,148,166,.13);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.38);
}
.tree-legend-swatch {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(16,35,45,.42);
    border-radius: 3px;
    background: var(--tree-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.tree-legend-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.protected-areas-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.protected-areas-legend[hidden] { display: none; }
.protected-areas-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.protected-areas-legend-heading strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.protected-areas-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.protected-areas-legend-items {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px 8px;
    min-width: 0;
}
.protected-areas-legend-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 24px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #455b64;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    transition: opacity .16s ease, filter .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.protected-areas-legend-item:hover { background: rgba(31,148,166,.16); }
.protected-areas-legend-item:focus-visible { outline: 2px solid #1f94a6; outline-offset: 1px; }
.protected-areas-legend-item.is-active {
    background: rgba(31,148,166,.13);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.38);
}
.protected-areas-legend-item.is-dimmed {
    opacity: .2;
    filter: grayscale(.9);
    background: transparent;
    box-shadow: none;
}
.protected-areas-legend-swatch {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(16,35,45,.48);
    border-radius: 3px;
    background: var(--protected-area-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.protected-areas-legend-item span:last-child {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.protected-area-point-list {
    display: grid;
    gap: 5px;
    min-width: 0;
    margin-top: 4px;
}
.protected-area-point-list > span {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    text-transform: none;
    white-space: normal;
}
.protected-area-point-list .layer-point-swatch {
    width: 11px;
    height: 11px;
    margin-top: 1px;
    border-width: 1px;
}
.soil-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.soil-legend[hidden] { display: none; }
.soil-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.soil-legend-heading strong { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.soil-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.soil-legend-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}
.soil-legend-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 24px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #455b64;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    transition: opacity .16s ease, filter .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.soil-legend-item:hover { background: rgba(31,148,166,.1); }
.soil-legend-item:focus-visible {
    outline: 2px solid #1f94a6;
    outline-offset: 1px;
}
.soil-legend-items.has-selection .soil-legend-item:not(.is-selected) {
    opacity: .2;
    filter: grayscale(.85);
}
.soil-legend-item.is-selected {
    background: rgba(31,148,166,.13);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.38);
}
.soil-legend-swatch {
    flex: 0 0 auto;
    width: 19px;
    height: 15px;
    border: 1px solid rgba(16,35,45,.42);
    border-radius: 3px;
    background: var(--soil-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.soil-legend-label { min-width: 0; }
.parent-material-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.parent-material-legend[hidden] { display: none; }
.parent-material-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.parent-material-legend-heading strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.parent-material-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.parent-material-legend-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px 6px;
    min-width: 0;
}
.parent-material-legend-item {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 5px;
    min-width: 0;
    min-height: 29px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    color: #455b64;
    background: transparent;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
    transition: opacity .16s ease, filter .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.parent-material-legend-item:hover { background: rgba(31,148,166,.1); }
.parent-material-legend-item:focus-visible {
    outline: 2px solid #1f94a6;
    outline-offset: 1px;
}
.parent-material-legend-items.has-selection .parent-material-legend-item:not(.is-selected) {
    opacity: .2;
    filter: grayscale(.85);
}
.parent-material-legend-item.is-selected {
    background: rgba(31,148,166,.13);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.38);
}
.parent-material-legend-swatch {
    grid-row: 1 / 3;
    flex: 0 0 auto;
    width: 17px;
    height: 20px;
    border: 1px solid rgba(16,35,45,.42);
    border-radius: 3px;
    background: var(--parent-material-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.parent-material-legend-label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.parent-material-legend-item small {
    overflow: hidden;
    color: #849197;
    font-size: 7px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nutrient-legend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.nutrient-legend[hidden] { display: none; }
.nutrient-legend-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #4d626b;
    white-space: nowrap;
}
.nutrient-legend-heading strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.nutrient-legend-heading span { color: #88969b; font-size: 8px; font-weight: 650; }
.nutrient-legend-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.nutrient-legend-view-toggle {
    display: flex;
    align-items: stretch;
    padding: 2px;
    border: 1px solid #d5e0e3;
    border-radius: 7px;
    background: #eef3f4;
}
.nutrient-legend-view-toggle button {
    appearance: none;
    min-height: 25px;
    margin: 0;
    padding: 4px 7px;
    border: 0;
    border-radius: 5px;
    color: #60737b;
    background: transparent;
    font: inherit;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.nutrient-legend-view-toggle button:hover { color: #126c78; }
.nutrient-legend-view-toggle button.is-active {
    color: #fff;
    background: #23899a;
    box-shadow: 0 1px 4px rgba(18,79,89,.22);
}
.nutrient-legend-view-toggle button:focus-visible,
.nutrient-filter-option input:focus-visible + span {
    outline: 2px solid rgba(31,148,166,.55);
    outline-offset: 2px;
}
.nutrient-legend-items {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 5px 6px;
    min-width: 0;
}
.nutrient-legend-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 29px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    color: #455b64;
    background: transparent;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
    transition: opacity .16s ease, filter .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.nutrient-legend-item:hover { background: rgba(31,148,166,.1); }
.nutrient-legend-item:focus-visible { outline: 2px solid #1f94a6; outline-offset: 1px; }
.nutrient-legend-items.has-selection .nutrient-legend-item:not(.is-selected) {
    opacity: .2;
    filter: grayscale(.85);
}
.nutrient-legend-item.is-selected {
    background: rgba(31,148,166,.13);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.38);
}
.nutrient-legend-swatch {
    flex: 0 0 auto;
    width: 17px;
    height: 20px;
    border: 1px solid rgba(16,35,45,.42);
    border-radius: 3px;
    background: var(--nutrient-color);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.nutrient-legend-label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
}
.nutrient-legend-items[hidden],
.nutrient-filter-options[hidden] { display: none; }
.nutrient-filter-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 5px;
    min-width: 0;
}
.nutrient-filter-option { position: relative; display: flex; min-width: 0; cursor: pointer; }
.nutrient-filter-option input { position: absolute; opacity: 0; pointer-events: none; }
.nutrient-filter-option > span {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 29px;
    padding: 3px 6px;
    border: 1px solid #d8e1e3;
    border-radius: 6px;
    background: rgba(246,249,249,.92);
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.nutrient-filter-option b { font-size: 9px; line-height: 1.12; }
.nutrient-filter-option small { margin-top: 2px; color: #809096; font-size: 8px; line-height: 1.12; }
.nutrient-filter-option b,
.nutrient-filter-option small { overflow-wrap: anywhere; }
.nutrient-filter-option input:checked + span {
    border-color: rgba(20,127,145,.62);
    color: #0d6573;
    background: rgba(31,148,166,.14);
    box-shadow: inset 0 0 0 1px rgba(31,148,166,.12);
}
.nutrient-filter-reset {
    appearance: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 29px;
    padding: 3px 6px;
    border: 1px solid #d8e1e3;
    border-radius: 6px;
    color: #536970;
    background: rgba(246,249,249,.92);
    font: inherit;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}
.nutrient-filter-reset span { font-size: 14px; line-height: 1; }
.nutrient-filter-reset b {
    min-width: 0;
    font-size: 9px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.nutrient-filter-reset:hover:not(:disabled) {
    border-color: rgba(20,127,145,.62);
    color: #0d6573;
    background: rgba(31,148,166,.1);
}
.nutrient-filter-reset:focus-visible { outline: 2px solid rgba(31,148,166,.55); outline-offset: 2px; }
.nutrient-filter-reset:disabled { opacity: .38; cursor: default; }
.map-stage.is-tree-mode .control-panel,
.map-stage.is-protected-areas-mode .control-panel,
.map-stage.is-soil-mode .control-panel,
.map-stage.is-parent-material-mode .control-panel,
.map-stage.is-nutrients-mode .control-panel { padding-block: 12px; }
.map-stage.is-tree-mode .control-panel > .control-row,
.map-stage.is-tree-mode .control-panel > .legend,
.map-stage.is-tree-mode .control-panel > #weather-legend-point-info,
.map-stage.is-protected-areas-mode .control-panel > .control-row,
.map-stage.is-protected-areas-mode .control-panel > .legend,
.map-stage.is-protected-areas-mode .control-panel > #weather-legend-point-info,
.map-stage.is-soil-mode .control-panel > .control-row,
.map-stage.is-soil-mode .control-panel > .legend,
.map-stage.is-soil-mode .control-panel > #weather-legend-point-info,
.map-stage.is-moisture-mode .control-panel > .legend,
.map-stage.is-moisture-mode .control-panel > #weather-legend-point-info,
.map-stage.is-parent-material-mode .control-panel > .control-row,
.map-stage.is-parent-material-mode .control-panel > .legend,
.map-stage.is-parent-material-mode .control-panel > #weather-legend-point-info,
.map-stage.is-nutrients-mode .control-panel > .control-row,
.map-stage.is-nutrients-mode .control-panel > .legend,
.map-stage.is-nutrients-mode .control-panel > #weather-legend-point-info { display: none; }
@media (min-width: 701px) and (max-width: 1250px) {
    .nutrient-legend-items,
    .nutrient-filter-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nutrient-legend-item {
        align-items: flex-start;
        min-height: 38px;
        padding: 5px 6px;
    }
    .nutrient-legend-label {
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }
    .nutrient-filter-option > span,
    .nutrient-filter-reset { min-height: 48px; }
    .nutrient-filter-reset {
        flex-direction: column;
        gap: 2px;
    }
    .nutrient-filter-reset span { font-size: 12px; }
}
@media (min-width: 701px) and (max-width: 1050px) {
    .topbar { padding-inline: 18px; }
    .map-stage {
        --map-overlay-gutter: 18px;
        --map-mode-panel-width: 180px;
    }
    .map-summary { padding-inline: 18px; }
    .map-mode-button {
        width: 100%;
        min-width: 0;
        min-height: 30px;
        padding: 5px 7px;
        font-size: 9px;
    }
}
@media (max-width: 700px) {
    .forecast-meteogram-overlay {
        padding: calc(var(--map-header-height) + 8px) 6px 104px;
    }
    .forecast-meteogram-overlay .forecast-point-chart.is-meteogram {
        width: calc(100vw - 12px);
    }
    .map-stage.has-expanded-meteogram .map-options {
        pointer-events: none;
    }
    .map-stage.has-expanded-meteogram .forecast-variable-switcher,
    .map-stage.has-expanded-meteogram .popup-return-button {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .leaflet-control-zoom { display: none !important; }
    .app-shell { grid-template-rows: 64px minmax(0, 1fr); }
    .map-stage {
        --map-header-height: 64px;
        --map-overlay-gutter: 12px;
        --map-mode-panel-width: 156px;
    }
    .map-stage.is-stats-expanded { --map-header-height: 88px; }
    .topbar { padding-inline: 12px; }
    .brand-favicon,
    .summary-mode-mark { width: 36px; height: 36px; border-radius: 11px; }
    .brand-favicon img { width: 30px; height: 30px; }
    .summary-mode-mark svg { width: 23px; }
    .summary-mode-mark .brand-rain-symbol { width: 27px; }
    .brand h1 { font-size: clamp(8px, 2.55vw, 11px); letter-spacing: -.01em; }
    .brand p { font-size: 9px; }
    .topbar-meta-primary > :not(#header-date) { display: none; }
    .topbar-copyright { font-size: 8px; }
    .topbar-meta { font-size: 10px; }
    .map-summary {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: var(--map-header-height);
        min-width: 0;
        padding: 8px 12px;
        border-radius: 0;
    }
    .summary-heading-row {
        display: grid;
        grid-template-areas: "icon copy premium help";
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-rows: 1fr;
        gap: 3px 6px;
    }
    .map-stage.is-stats-expanded .summary-heading-row {
        grid-template-areas:
            "icon copy premium help"
            "icon copy metrics metrics";
        grid-template-rows: auto auto;
    }
    .summary-mode-mark { grid-area: icon; align-self: center; }
    .summary-heading-copy { grid-area: copy; align-self: center; }
    .summary-heading-copy.is-mobile-statistics-toggle {
        cursor: pointer;
        border-radius: 7px;
        pointer-events: auto;
    }
    .map-stage.has-offscreen-popup .summary-heading-copy.is-mobile-statistics-toggle {
        pointer-events: none;
    }
    .summary-heading-copy.is-mobile-statistics-toggle:focus-visible {
        outline: 3px solid rgba(31,148,166,.28);
        outline-offset: 3px;
    }
    .summary-title { font-size: clamp(14px, 4vw, 17px); }
    .map-stage.is-temperature-mode .summary-title { white-space: pre-line; }
    .summary-subtitle {
        overflow: visible;
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.2;
        text-overflow: clip;
        white-space: normal;
    }
    .map-stage.is-nutrients-mode .map-summary { padding-block: 6px; }
    .map-stage.is-nutrients-mode .summary-title { line-height: 1.02; }
    .map-stage.is-nutrients-mode .summary-subtitle {
        margin-top: 1px;
        line-height: 1.05;
    }
    .map-stage.is-nutrients-mode .summary-mode-mark { transform: translateY(-1px); }
    .summary-premium {
        order: 0;
        grid-area: premium;
        align-self: center;
        gap: 4px;
        padding: 4px 6px 4px 5px;
        font-size: 8px;
    }
    .summary-premium[hidden] { display: none; }
    .summary-premium svg { width: 13px; height: 13px; }
    .summary-help {
        order: 0;
        grid-area: help;
        align-self: center;
        justify-self: end;
        min-height: 24px;
        padding: 2px 7px 2px 5px;
        font-size: 9px;
    }
    .map-stage.is-stats-expanded .summary-help { align-self: start; }
    .summary-help span:first-child { width: 15px; height: 15px; font-size: 9px; }
    .summary-metrics {
        order: 0;
        grid-area: metrics;
        display: none;
        align-self: end;
        grid-template-columns: repeat(3, minmax(38px, 1fr));
        gap: 5px;
        min-width: 136px;
        margin-left: 0;
        padding-left: 8px;
    }
    .map-stage.is-stats-expanded:not(.is-tree-mode):not(.is-protected-areas-mode):not(.is-soil-mode):not(.is-moisture-mode):not(.is-parent-material-mode):not(.is-nutrients-mode) .summary-metrics {
        display: grid;
    }
    .summary-metrics div { align-items: flex-end; }
    .summary-metrics strong { font-size: 14px; }
    .summary-metrics span { margin-top: 4px; font-size: 7px; }
    .point-analysis-popup .leaflet-popup-content,
    .station-analysis-popup .leaflet-popup-content { width: min(290px, calc(100vw - 64px)) !important; margin: 11px 12px 12px; }
    .point-analysis-heading { align-items: flex-start; flex-direction: column; gap: 1px; }
    .point-analysis-meta { grid-template-columns: 1fr; gap: 7px; padding: 8px 9px; }
    .point-analysis-meta b { white-space: normal; }
    .soil-profile-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 3px 6px !important;
    }
    .soil-profile-row {
        display: grid !important;
        grid-template-columns: 10px auto 1fr !important;
        align-items: center !important;
        gap: 5px !important;
        min-height: 22px !important;
        padding: 3px 6px 3px 4px !important;
        border-radius: 5px;
    }
    .soil-profile-row b {
        margin: 0;
        color: #314952;
        font-size: 8px !important;
        line-height: 1.15;
        white-space: nowrap;
    }
    .soil-profile-row strong {
        margin: 0;
        color: var(--ink, #10232d);
        font-size: 8.5px !important;
        line-height: 1.15;
        text-align: right !important;
        white-space: nowrap;
    }
    .soil-profile-row small,
    .soil-legend-point-info .soil-profile-row small,
    .soil-legend-point-info .layer-point-result:not(.soil-profile-result) > small {
        display: none !important;
    }
    .soil-profile-color {
        min-height: 15px;
        border-radius: 3px;
    }
    .point-chart { margin-top: 7px; }
    .map-secondary-options { flex-direction: row; align-items: flex-start; gap: 6px; }
    .place-search-stack { display: contents; }
    .soil-depth-control {
        --soil-depth-height: 145px;
        min-width: 78px;
        padding: 8px 7px 9px;
        border-radius: 13px;
    }
    .soil-depth-control output { font-size: 9px; }
    .soil-depth-ticks button { font-size: 7px; }
    .place-search-button { width: 40px; padding: 0; }
    .place-search-label { display: none; }
    .place-search-panel {
        width: min(350px, calc(100vw - 24px));
        max-height: calc(100vh - 188px);
        padding: 11px;
    }
    .map-mode-switcher {
        gap: 2px;
        width: var(--mode-switcher-expanded-width, max-content);
        overflow: visible;
        padding: 5px;
    }
    .map-mode-collapse-toggle { top: 5px; left: calc(100% + 6px); }
    .map-mode-switcher.is-user-collapsed {
        width: 39px;
        padding-top: 32px;
        padding-inline: 4px;
        border-radius: 13px;
    }
    .map-mode-switcher.is-user-collapsed .map-mode-collapse-toggle { left: 7px; }
    .map-mode-button {
        width: 100%;
        min-height: 29px;
        padding: 5px 7px;
        font-size: 9px;
    }
    .map-mode-button > span:last-child { display: inline; }
    .map-mode-switcher.is-popup-overlap-collapsed {
        width: 39px;
        padding-inline: 4px;
        border-radius: 13px;
    }
    .map-mode-switcher.is-popup-overlap-collapsed .map-mode-button {
        justify-content: center;
        gap: 0;
        padding-inline: 5px;
    }
    .map-mode-switcher.is-popup-overlap-collapsed .map-mode-button > span:last-child {
        max-width: 0;
        opacity: 0;
        transform: translateX(-5px);
    }
    .map-stage.has-mobile-point-info .map-mode-switcher,
    .map-mode-switcher.is-point-info-compact {
        display: grid !important;
        grid-template-columns: repeat(3, 34px) !important;
        grid-auto-rows: 32px !important;
        gap: 3px !important;
        width: max-content !important;
        max-width: calc(100vw - 2 * var(--map-overlay-gutter, 12px)) !important;
        padding: 4px !important;
        border-radius: 12px !important;
        overflow: visible !important;
    }
    .map-stage.has-mobile-point-info .map-mode-collapse-toggle,
    .map-mode-switcher.is-point-info-compact .map-mode-collapse-toggle {
        display: none !important;
    }
    .map-stage.has-mobile-point-info .map-mode-button,
    .map-mode-switcher.is-point-info-compact .map-mode-button {
        width: 34px !important;
        min-width: 34px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        border-radius: 8px !important;
    }
    .map-stage.has-mobile-point-info .map-mode-button > span:last-child,
    .map-mode-switcher.is-point-info-compact .map-mode-button > span:last-child {
        display: none !important;
    }
    .map-stage.has-mobile-point-info .map-mode-icon,
    .map-mode-switcher.is-point-info-compact .map-mode-icon {
        margin: 0 !important;
    }
    .map-toggle { gap: 7px; padding: 8px 9px; font-size: 11px; }
    .map-toggle.icon-toggle { min-width: 40px; width: 40px; height: 40px; padding: 0; }
    .icon-toggle-text { display: none; }
    .sum-symbol { width: 30px; }
    .station-toggle-label { display: inline; }
    .map-logo {
        bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--control-panel-height, 104px) + 8px);
        left: 10px;
        width: min(115px, 29vw);
    }
    .cumulative-help { right: -8px; width: min(265px, calc(100vw - 32px)); }
    .control-panel {
        right: 9px;
        bottom: max(16px, env(safe-area-inset-bottom));
        left: 9px;
        padding: 12px 13px 9px;
        border-radius: 17px;
        max-height: calc(100svh - var(--map-header-height, 64px) - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .control-row {
        position: relative;
        z-index: 2;
        gap: 12px;
    }
    .forecast-variable-switcher {
        gap: 4px;
        width: max-content;
        max-width: calc(100vw - 18px);
        grid-template-columns: 28px minmax(102px, auto);
        padding: 4px;
    }
    .forecast-variable-switcher button { min-height: 27px; padding: 4px 7px; font-size: 8px; }
    .play-button { width: 40px; height: 40px; }
    .slider-heading output { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
    .slider-heading-value { flex: 1; gap: 5px; }
    .temporal-sync-toggle { width: 24px; height: 24px; border-radius: 7px; }
    .slider-wrap.is-cumulative .slider-heading label { display: none; }
    .slider-wrap.is-cumulative .slider-heading-value { width: 100%; }
    .slider-wrap.is-cumulative .slider-heading output { flex: 1; width: auto; font-size: 11px; text-align: right; }
    #date-slider, #start-date-slider { height: 28px; margin-top: 1px; }
    #date-slider::-webkit-slider-thumb,
    #start-date-slider::-webkit-slider-thumb { width: 25px; height: 25px; margin-top: -10px; }
    .forecast-time-markers { right: 12.5px; left: 12.5px; }
    .slider-tooltip { bottom: 40px; min-width: 174px; padding: 8px 10px 7px; }
    .legend { gap: 7px; margin-top: 5px; padding-top: 7px; }
    .legend-scale { height: 20px; overflow: visible; align-items: start; }
    .legend-stop { height: 8px; }
    .legend-stop span { display: none; }
    .legend-stop:nth-child(1) span,
    .legend-stop:nth-child(5) span,
    .legend-stop:nth-child(10) span,
    .legend-stop:nth-child(14) span,
    .legend-stop:nth-child(17) span,
    .legend-stop:nth-child(24) span,
    .legend-stop:nth-child(30) span { display: block; top: 10px; font-size: 7px; }
    .legend-stop:nth-child(1) span { left: 0; transform: none; }
    .legend-stop:nth-child(30) span { right: 0; left: auto; transform: none; }
    .map-stage.is-temperature-mode .legend-stop span { display: none; }
    .map-stage.is-temperature-mode .legend-stop:nth-child(1) span,
    .map-stage.is-temperature-mode .legend-stop:nth-child(3) span,
    .map-stage.is-temperature-mode .legend-stop:nth-child(5) span,
    .map-stage.is-temperature-mode .legend-stop:nth-child(7) span,
    .map-stage.is-temperature-mode .legend-stop:nth-child(9) span,
    .map-stage.is-temperature-mode .legend-stop:nth-child(11) span { display: block; top: 10px; font-size: 7px; }
    .map-stage.is-temperature-mode .legend-stop:nth-child(1) span { left: 0; transform: none; }
    .map-stage:not(.is-tree-mode):not(.is-protected-areas-mode):not(.is-soil-mode):not(.is-moisture-mode):not(.is-parent-material-mode):not(.is-nutrients-mode) .control-panel > .legend-point-info:not(#weather-legend-point-info),
    .map-stage.is-forecast-mode .control-panel > .legend-point-info:not(#weather-legend-point-info),
    .map-stage.is-temperature-mode .control-panel > .legend-point-info:not(#weather-legend-point-info),
    .map-stage.is-moisture-mode .control-panel > .legend-point-info:not(#moisture-legend-point-info),
    .map-stage.is-tree-mode .control-panel > .legend-point-info:not(#tree-legend-point-info),
    .map-stage.is-protected-areas-mode .control-panel > .legend-point-info:not(#protected-areas-legend-point-info),
    .map-stage.is-soil-mode .control-panel > .legend-point-info:not(#soil-legend-point-info),
    .map-stage.is-parent-material-mode .control-panel > .legend-point-info:not(#parent-material-legend-point-info),
    .map-stage.is-nutrients-mode .control-panel > .legend-point-info:not(#nutrient-legend-point-info) {
        display: none !important;
    }
    .legend-point-info:not([hidden]),
    .tree-legend-point-info:not([hidden]) {
        display: block !important;
        width: 100%;
        margin-bottom: 7px;
        padding-bottom: 7px;
        border-bottom: 1px solid rgba(16, 35, 45, 0.12);
    }
    .legend-point-info-container,
    .tree-point-info-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .legend-point-info-header,
    .tree-point-info-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .legend-point-info-heading,
    .tree-point-info-heading,
    .legend-point-info .point-analysis-heading {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
        min-width: 0;
        padding-right: 0;
    }
    .legend-point-info-heading strong,
    .tree-point-info-heading strong,
    .legend-point-info .point-analysis-heading strong {
        font-size: 9.5px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: #126c78;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .legend-point-info-heading span,
    .tree-point-info-heading span,
    .legend-point-info .point-analysis-heading span {
        font-size: 8px;
        font-weight: 650;
        color: #88969b;
        white-space: nowrap;
    }
    .point-info-close,
    .tree-point-info-close {
        display: grid;
        place-items: center;
        width: 19px;
        height: 19px;
        margin: -2px -2px -2px 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #60747c;
        font-size: 15px;
        line-height: 1;
        cursor: pointer;
        transition: color .15s ease, background-color .15s ease;
    }
    .point-info-close:hover,
    .point-info-close:active,
    .tree-point-info-close:hover,
    .tree-point-info-close:active {
        color: #10232d;
        background: rgba(16, 35, 45, 0.08);
    }
    .legend-point-info-meta,
    .tree-point-info-meta,
    .legend-point-info .point-analysis-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        gap: 8px;
        align-items: start;
        padding: 5px 8px;
        border-radius: 8px;
        background: rgba(247, 250, 249, 0.85);
        border: 1px solid rgba(16, 35, 45, 0.08);
    }
    .legend-point-info-coords,
    .legend-point-info-value,
    .legend-point-info-species,
    .tree-point-info-coords,
    .tree-point-info-species,
    .legend-point-info .point-analysis-meta > div {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .legend-point-info-coords span,
    .legend-point-info-value span,
    .legend-point-info-species span,
    .tree-point-info-coords span,
    .tree-point-info-species span,
    .legend-point-info .point-analysis-meta > div > span {
        color: var(--muted, #60747c);
        font-size: 8px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
    }
    .legend-point-info-coords b,
    .legend-point-info-value b,
    .legend-point-info-species b,
    .tree-point-info-coords b,
    .tree-point-info-species b,
    .legend-point-info .point-analysis-meta > div > b,
    .legend-point-info .point-analysis-meta .layer-point-result b {
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 10.5px;
        font-weight: 750;
        color: #1a2e38;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .legend-point-info-coords .point-coordinate-line,
    .tree-point-info-coords .point-coordinate-line,
    .legend-point-info .point-coordinate-line {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .legend-point-info-coords .point-coordinate-line > b,
    .tree-point-info-coords .point-coordinate-line > b,
    .legend-point-info .point-coordinate-line > b {
        flex: 1 1 auto;
        min-width: 0;
    }
    .legend-point-info-coords .point-favorite-toggle,
    .tree-point-info-coords .point-favorite-toggle,
    .legend-point-info .point-favorite-toggle {
        width: 20px;
        height: 20px;
        padding: 2px;
    }
    .legend-point-info-coords .point-favorite-toggle svg,
    .tree-point-info-coords .point-favorite-toggle svg,
    .legend-point-info .point-favorite-toggle svg {
        width: 15px;
        height: 15px;
    }
    .legend-point-info .layer-point-swatch {
        width: 12px;
        height: 12px;
    }
    .legend-point-info-value small,
    .legend-point-info-species small,
    .legend-point-info-coords small,
    .tree-point-info-species small,
    .tree-point-info-coords small,
    .legend-point-info .point-analysis-meta small {
        margin-top: 1px;
        color: var(--muted, #60747c);
        font-size: 8px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .legend-point-info .point-analysis-loading {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 4px 6px;
    }
    .legend-point-info .point-analysis-loading strong {
        font-size: 9.5px;
        font-weight: 800;
        color: #126c78;
    }
    .legend-point-info .point-analysis-loading span:not(.point-analysis-spinner) {
        font-size: 8px;
        color: #88969b;
    }
    .legend-point-info .point-analysis-spinner,
    .tree-point-info-container.is-loading .point-analysis-spinner {
        width: 11px;
        height: 11px;
        border-width: 1.5px;
    }
    .legend-point-info .point-analysis-error {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 4px 6px;
        min-height: 34px;
    }
    .legend-point-info .point-analysis-error strong {
        font-size: 9.5px;
        color: #a5302c;
    }
    .legend-point-info .point-analysis-error span {
        font-size: 8px;
        color: #60747c;
    }
    .weather-legend-point-info .point-chart {
        position: relative;
        margin-top: 6px;
        max-height: none;
        overflow: hidden;
    }
    .weather-legend-point-info .point-chart svg {
        display: block;
        width: 100%;
        height: auto;
    }
    .weather-legend-point-info .forecast-point-current {
        font-size: 9.5px;
    }
    .weather-legend-point-info .forecast-point-current b {
        gap: 4px;
        font-size: 10px;
    }
    .tree-legend {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .tree-legend-heading { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .tree-legend-items {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px 5px;
    }
    .tree-legend-item { gap: 4px; font-size: 8px; }
    .tree-legend-swatch { width: 12px; height: 12px; }
    .protected-areas-legend {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .protected-areas-legend-heading {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
    .protected-areas-legend-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px 4px;
    }
    .protected-areas-legend-item { gap: 4px; min-height: 20px; font-size: 7px; }
    .protected-areas-legend-swatch { width: 12px; height: 12px; }
    .soil-legend {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .soil-legend-heading { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .soil-legend-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px 6px;
    }
    .soil-legend-item { gap: 4px; font-size: 8px; }
    .soil-legend-swatch { width: 14px; height: 12px; }
    .parent-material-legend {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .parent-material-legend-heading {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
    .parent-material-legend-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }
    .parent-material-legend-item {
        gap: 0 4px;
        min-height: 25px;
        padding: 2px;
        font-size: 7px;
    }
    .parent-material-legend-swatch { width: 12px; height: 18px; }
    .parent-material-legend-item small { font-size: 6px; }
    .nutrient-legend {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .nutrient-legend-heading { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .nutrient-legend-body {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .nutrient-legend-view-toggle { width: 100%; }
    .nutrient-legend-view-toggle button { flex: 1 1 50%; min-height: 23px; }
    .nutrient-legend-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 4px; }
    .nutrient-legend-item { gap: 4px; min-height: 22px; font-size: 7px; }
    .nutrient-legend-swatch { width: 12px; height: 16px; }
    .nutrient-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .nutrient-filter-option > span { min-height: 31px; padding: 4px 6px; }
    .nutrient-filter-option b { font-size: 8px; }
    .nutrient-filter-option small { font-size: 7.5px; }
    .nutrient-filter-reset { min-height: 31px; padding: 4px 6px; }
    .nutrient-filter-reset b { font-size: 8px; }
    .moisture-legend {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 5px;
        padding-top: 6px;
    }
    .moisture-legend-heading { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .moisture-legend-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px 4px;
    }
    .moisture-legend-item { gap: 3px; font-size: 7px; }
    .moisture-legend-swatch { width: 12px; height: 10px; }
    .map-stage.is-tree-mode .control-panel,
    .map-stage.is-protected-areas-mode .control-panel,
    .map-stage.is-soil-mode .control-panel,
    .map-stage.is-parent-material-mode .control-panel { padding: 10px 12px; }
    .map-stage.is-nutrients-mode .control-panel { padding: 10px 12px; }
    .leaflet-control-attribution { max-width: 210px; overflow: hidden; white-space: nowrap; font-size: 8px; }
}

@media (max-width: 430px) {
    .map-summary { min-width: 0; }
    .legend-title small, .legend-high { display: none; }
}

@media (max-width: 360px) {
    .map-stage {
        --map-header-height: 78px;
        --map-overlay-gutter: 8px;
        --map-mode-panel-width: 150px;
    }
    .map-stage.is-stats-expanded { --map-header-height: 100px; }
    .topbar { padding-inline: 8px; }
    .map-summary { padding-inline: 8px; }
    .summary-heading-row { gap-inline: 5px; }
    .summary-title { font-size: 14px; }
    .summary-metrics {
        grid-template-columns: repeat(3, minmax(34px, 1fr));
        gap: 3px;
        min-width: 120px;
        padding-left: 5px;
    }
    .summary-metrics strong { font-size: 12px; }
    .map-secondary-options {
        display: grid;
        grid-template-columns: repeat(2, 40px);
        gap: 6px;
    }
    .map-stage.is-soil-mode .map-secondary-options {
        display: flex;
        align-items: flex-start;
        flex-direction: row;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
