:root {
    --presura-bg: #071019;
    --presura-surface: rgba(22, 24, 34, 0.92);
    --presura-surface-strong: rgba(22, 24, 34, 0.96);
    --presura-timeline-surface: rgba(0, 75, 70, 0.52);
    --presura-timeline-surface-strong: rgba(0, 75, 70, 0.6);
    --presura-timeline-border: rgba(214, 240, 233, 0.16);
    --presura-line: rgba(255, 255, 255, 0.1);
    --presura-text: #e0e0e0;
    --presura-text-soft: #9ca3af;
    --presura-accent: #4ea8de;
    --presura-accent-hover: #5bb8ee;
    --presura-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    --z-map: 0;
    --z-map-controls: 1200;
    --z-layer-toolbar: 1300;
    --z-timeline: 1400;
    --z-mobile-header: 1500;
    --z-backdrop: 1800;
    --z-panel: 1900;
    --z-modal: 2000;
    --presura-desktop-timeline-clearance: 92px;
    --presura-mobile-timeline-height: clamp(86px, 14dvh, 118px);
    --presura-mobile-toolbar-offset: calc(var(--presura-mobile-timeline-height) + env(safe-area-inset-bottom, 0px) + 12px);
    --mobile-panel-bg: rgba(7, 15, 24, 0.88);
    --mobile-panel-border: rgba(255, 255, 255, 0.12);
    --mobile-text-primary: #f5f7fa;
    --mobile-text-secondary: rgba(245, 247, 250, 0.68);
    --mobile-accent: #4dafff;
    --mobile-danger: #ff7043;
    --mobile-radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--presura-text);
    background: #0f1117;
    overflow: hidden;
}

body.presura-has-overlay {
    overflow: hidden;
}

body[data-theme="light"] {
    --presura-surface: rgba(255, 255, 255, 0.96);
    --presura-surface-strong: rgba(255, 255, 255, 0.98);
    --presura-timeline-surface: rgba(0, 75, 70, 0.48);
    --presura-timeline-surface-strong: rgba(0, 75, 70, 0.56);
    --presura-timeline-border: rgba(214, 240, 233, 0.2);
    --presura-line: rgba(12, 18, 24, 0.12);
    --presura-text: #333;
    --presura-text-soft: #666;
    background: #f0f2f5;
}

body[data-map-style="gray"] {
    background: #e5e8ed;
}

body[data-map-style="satellite"] {
    background: #0b0f14;
}

body[data-theme="light"] .presura-startbase__credits {
    border-color: rgba(12, 18, 24, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(23, 32, 42, 0.84);
}

body[data-theme="light"] .presura-startbase__credits a {
    color: rgba(23, 32, 42, 0.96);
}

body[data-theme="light"] .presura-startbase__layer-btn {
    background: rgba(255, 255, 255, 0.94);
    color: rgba(23, 32, 42, 0.92);
    border-color: rgba(12, 18, 24, 0.12);
}

body[data-theme="light"] .presura-startbase__layer-btn.is-active,
body[data-theme="light"] .presura-startbase__legend-toggle.is-active {
    background: linear-gradient(180deg, #ffb35c, #f08a2c);
    color: #fff;
    border-color: rgba(210, 110, 28, 0.54);
}

.presura-startbase {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.presura-site-header,
.presura-startbase__topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: var(--z-mobile-header);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
    pointer-events: none;
}

.presura-site-header--map-shell {
    background: linear-gradient(180deg, rgba(2, 5, 10, 0.98), rgba(2, 5, 10, 0.78) 70%, rgba(2, 5, 10, 0));
}

.presura-site-header__inner,
.presura-startbase__topbar {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(8, 14, 22, 0.74);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.presura-site-header__brand,
.presura-startbase__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-self: start;
    color: #eef4f8;
    text-decoration: none;
}

.presura-site-header__brand-mark,
.presura-startbase__brand-mark {
    width: 42px;
    height: 42px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(8, 16, 24, 0.28);
    overflow: hidden;
    flex-shrink: 0;
}

.presura-site-header__brand-glyph,
.presura-startbase__brand-glyph {
    position: relative;
    z-index: 2;
    font-size: 1.45rem;
    font-weight: 900;
    color: #16345f;
    transform: translateX(2px);
}

.presura-site-header__brand-wing,
.presura-startbase__brand-wing {
    position: absolute;
    left: 6px;
    right: 18px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7aa7ff, #2f8dff 72%, #1d5ecf);
}

.presura-site-header__brand-wing--top,
.presura-startbase__brand-wing--top {
    top: 10px;
    transform: skewX(-22deg);
}

.presura-site-header__brand-wing--bottom,
.presura-startbase__brand-wing--bottom {
    top: 19px;
    right: 14px;
    transform: skewX(-26deg);
}

.presura-site-header__brand-copy,
.presura-startbase__brand-copy {
    display: grid;
    gap: 2px;
    line-height: 1;
}

.presura-site-header__brand-copy strong,
.presura-startbase__brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
}

.presura-site-header__brand-copy small,
.presura-startbase__brand-copy small {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9fc2ff;
}

.presura-site-header__mobile-page,
.presura-site-header__menu-toggle,
.presura-mobile-menu,
.presura-startbase__panel-backdrop,
.presura-startbase__legend-toggle,
.presura-startbase__legend-panel-header,
.presura-startbase__legend-close {
    display: none;
}

.presura-site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.presura-site-header__nav::-webkit-scrollbar {
    display: none;
}

.presura-site-header__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(238, 244, 248, 0.78);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.presura-site-header__nav a[aria-current="page"] {
    color: #f5fbff;
    border-color: rgba(122, 167, 255, 0.28);
    background: rgba(122, 167, 255, 0.12);
}

.presura-site-header__nav a:hover {
    color: #f5fbff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.presura-site-header__controls {
    display: grid;
    align-items: center;
    gap: 8px;
    justify-self: end;
    min-width: 0;
}

.presura-site-header__language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.presura-site-header__language-link,
.presura-mobile-menu__language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(238, 244, 248, 0.78);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.presura-site-header__language-link.is-active,
.presura-mobile-menu__language-link.is-active {
    border-color: rgba(122, 167, 255, 0.3);
    background: rgba(122, 167, 255, 0.14);
    color: #f5fbff;
}

.presura-startbase__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.presura-startbase__toolbar select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--presura-line);
    border-radius: 999px;
    background: rgba(10, 18, 27, 0.9);
    color: #eef4f8;
    color-scheme: dark;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.presura-startbase__toolbar select option,
.presura-startbase__toolbar select optgroup,
.presura-mobile-menu__field select option,
.presura-mobile-menu__field select optgroup {
    background: #0b171f;
    color: #eef4f8;
}

.presura-site-header__info-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.presura-site-header__info-links a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(238, 244, 248, 0.7);
    text-decoration: none;
    font-size: 0.72rem;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.presura-site-header__info-links a:hover {
    color: #f5fbff;
    border-color: rgba(122, 167, 255, 0.24);
    background: rgba(122, 167, 255, 0.12);
}

.presura-startbase__toolbar select:hover,
.presura-mobile-menu__field select:hover {
    border-color: var(--presura-accent);
}

.presura-startbase__map-shell {
    position: relative;
    min-height: 100dvh;
}

.presura-startbase__map {
    width: 100%;
    height: 100dvh;
    background: #05080d;
}

.presura-startbase__map.leaflet-container {
    font: inherit;
    background: #05080d;
}

.presura-startbase__hud-rail {
    position: absolute;
    top: 96px;
    bottom: calc(var(--presura-desktop-timeline-clearance) + 18px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    z-index: var(--z-layer-toolbar);
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: start;
    overflow-y: auto;
    overflow-x: visible;
    max-height: calc(100dvh - 96px - var(--presura-desktop-timeline-clearance) - 18px - env(safe-area-inset-bottom, 0px));
    padding-right: 2px;
    scrollbar-width: none;
    pointer-events: none;
}

.presura-startbase__hud-rail::-webkit-scrollbar {
    display: none;
}

.presura-startbase__legend-panel {
    position: fixed;
    left: 16px;
    bottom: calc(var(--presura-desktop-timeline-clearance) + 86px);
    z-index: calc(var(--z-layer-toolbar) + 1);
    display: block;
    pointer-events: auto;
}

.presura-startbase__legend {
    width: 48px;
    display: grid;
    gap: 5px;
    padding: 7px 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(8, 14, 22, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.presura-startbase__legend-header {
    display: grid;
    gap: 2px;
    color: #eef4f8;
}

.presura-startbase__legend-header strong {
    font-size: 0.68rem;
    line-height: 1;
}

.presura-startbase__legend-header span {
    font-size: 0.4rem;
    line-height: 1.2;
    color: rgba(238, 244, 248, 0.7);
}

.presura-startbase__legend-scale {
    display: grid;
    gap: 1px;
}

.presura-startbase__legend-row {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: center;
    gap: 2px;
}

.presura-startbase__legend-label {
    font-size: 0.4rem;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    color: #eef4f8;
}

.presura-startbase__legend-swatch {
    min-height: 8px;
    border-radius: 2px;
}

.presura-startbase__layer-dock {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 68px;
    pointer-events: auto;
}

.presura-startbase__layer-btn {
    min-width: 60px;
    min-height: 46px;
    display: inline-grid;
    grid-template-rows: 16px auto;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 4px 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    background: rgba(8, 14, 22, 0.84);
    color: #eef4f8;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.presura-startbase__layer-btn span {
    pointer-events: none;
}

.presura-startbase__layer-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
}

.presura-startbase__layer-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.presura-startbase__layer-label {
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.presura-startbase__layer-btn:hover,
.presura-startbase__legend-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
}

.presura-startbase__layer-btn.is-active,
.presura-startbase__legend-toggle.is-active {
    background: linear-gradient(180deg, #ffb35c, #f08a2c);
    color: #fffdf8;
    border-color: rgba(240, 138, 44, 0.72);
}

.presura-startbase__layer-btn.is-disabled,
.presura-startbase__layer-btn:disabled {
    opacity: 0.46;
    cursor: default;
    box-shadow: none;
}

.presura-startbase__layer-btn.is-disabled:hover,
.presura-startbase__layer-btn:disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.12);
}

.presura-mobile-layer-list {
    display: none;
}

.presura-mobile-layer-option {
    display: none;
}

.presura-startbase__temperature-labels {
    position: absolute;
    inset: 0;
    z-index: 660;
    pointer-events: none;
    overflow: hidden;
}

.presura-startbase__temperature-label {
    position: absolute;
    transform: translate(-50%, -120%);
    color: #ffe293;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(3, 6, 10, 0.96), 0 0 8px rgba(3, 6, 10, 0.55);
    opacity: 0.96;
    will-change: transform, left, top;
}

.presura-startbase__forecast-labels {
    position: absolute;
    inset: 0;
    z-index: 655;
    pointer-events: none;
    overflow: hidden;
}

.presura-startbase__forecast-label {
    position: absolute;
    transform: translate(-50%, -120%);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(3, 6, 10, 0.96), 0 0 8px rgba(3, 6, 10, 0.55);
    opacity: 0.95;
    will-change: transform, left, top;
}

.presura-startbase__forecast-label--cloud_cover {
    opacity: 0.88;
}

.presura-startbase__station-overlay {
    position: absolute;
    inset: 0;
    z-index: 670;
    pointer-events: none;
    overflow: hidden;
}

.presura-startbase__station-overlay-node {
    position: absolute;
    transform: translate(-50%, -100%);
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: auto;
    cursor: pointer;
}

.presura-startbase__station-overlay-pin {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    background: #f1842f;
    box-shadow: 0 0 0 2px rgba(241, 132, 47, 0.16);
}

.presura-startbase__station-overlay-node.is-lightning .presura-startbase__station-overlay-pin {
    background: #ffd24d;
    box-shadow: 0 0 0 2px rgba(255, 210, 77, 0.18);
}

.presura-startbase__station-overlay-badge {
    display: none;
    gap: 2px;
    min-width: 112px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(7, 14, 22, 0.94);
    color: #f4f7fb;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.presura-startbase__station-overlay-badge strong {
    font-size: 1rem;
    line-height: 1;
}

.presura-startbase__station-overlay-badge span {
    font-size: 0.72rem;
    line-height: 1.1;
    color: rgba(244, 247, 251, 0.84);
}

.presura-startbase__station-overlay-badge small {
    font-size: 0.66rem;
    line-height: 1.12;
    color: rgba(244, 247, 251, 0.72);
}

.presura-startbase__wind-canvas {
    position: absolute;
    inset: 0;
    z-index: 520;
    pointer-events: none;
}

.presura-startbase__thunder-icon {
    background: transparent;
    border: 0;
}

.presura-startbase__thunder-icon span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffe066;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    background: radial-gradient(circle at center, rgba(46, 22, 8, 0.85) 0%, rgba(46, 22, 8, 0.42) 62%, rgba(46, 22, 8, 0) 100%);
    text-shadow: 0 0 8px rgba(62, 32, 13, 0.95), 0 0 18px rgba(255, 214, 102, 0.5);
    animation: presura-thunder-pulse 1.3s ease-in-out infinite;
}

.presura-startbase__thunder-icon--watch span {
    color: #ffe49b;
}

.presura-startbase__thunder-icon--developing span {
    color: #ffd25f;
}

.presura-startbase__thunder-icon--active span {
    color: #ffb347;
}

.presura-startbase__thunder-icon--severe span {
    color: #ff7a1a;
    text-shadow: 0 0 10px rgba(91, 25, 0, 0.96), 0 0 22px rgba(255, 122, 26, 0.72);
}

@keyframes presura-thunder-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.92;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.presura-startbase__station-icon {
    background: transparent;
    border: 0;
}

.presura-startbase__station-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.presura-startbase__station-pin {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px 14px 14px 4px;
    background: linear-gradient(180deg, #ffb259 0%, #f1842f 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    transform: rotate(45deg);
}

.presura-startbase__station-pin svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    transform: rotate(-45deg);
}

.presura-startbase__station-card {
    min-width: 112px;
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(7, 14, 22, 0.88);
    color: #f4f7fb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(12px);
}

.presura-startbase__station-card strong {
    font-size: 0.95rem;
    line-height: 1.05;
}

.presura-startbase__station-card span {
    font-size: 0.68rem;
    line-height: 1.15;
    color: rgba(244, 247, 251, 0.72);
}

.presura-startbase__station-pinpoint,
.presura-startbase__station-pulse {
    filter: drop-shadow(0 0 12px rgba(241, 132, 47, 0.42));
}

.presura-startbase__station-pulse {
    animation: presura-station-pulse 1.8s ease-in-out infinite;
}

.presura-startbase__station-bolt {
    position: absolute;
    top: -8px;
    left: 20px;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 214, 102, 0.94);
    color: #4d2d00;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.18), 0 0 18px rgba(255, 214, 102, 0.34);
}

.presura-startbase__station-chip.is-lightning .presura-startbase__station-card {
    border-color: rgba(255, 214, 102, 0.28);
    box-shadow: 0 14px 32px rgba(255, 181, 64, 0.24);
}

@keyframes presura-station-pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.78;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.presura-startbase__station-popup .leaflet-popup-content-wrapper {
    border-radius: 18px;
    background: rgba(9, 16, 24, 0.96);
    color: #f4f7fb;
}

.presura-startbase__station-label {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.presura-startbase__station-label::before {
    display: none;
}

.presura-startbase__station-label .leaflet-tooltip-content {
    margin: 0;
}

.presura-startbase__station-label-card {
    display: inline-grid;
    gap: 2px;
    min-width: 72px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(7, 14, 22, 0.92);
    color: #f4f7fb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    text-align: left;
}

.presura-startbase__station-label-card strong {
    font-size: 0.95rem;
    line-height: 1;
}

.presura-startbase__station-label-card span {
    font-size: 0.68rem;
    line-height: 1.12;
    color: rgba(244, 247, 251, 0.76);
}

.presura-startbase__station-label-card.is-lightning {
    border-color: rgba(255, 214, 102, 0.34);
    box-shadow: 0 14px 32px rgba(255, 181, 64, 0.24);
}

.presura-startbase__station-popup .leaflet-popup-tip {
    background: rgba(9, 16, 24, 0.96);
}

.presura-startbase__station-popup-card {
    min-width: 240px;
    display: grid;
    gap: 10px;
}

.presura-startbase__station-popup-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.presura-startbase__station-popup-head strong {
    font-size: 1rem;
}

.presura-startbase__station-popup-head span,
.presura-startbase__station-popup-sub {
    font-size: 0.76rem;
    color: rgba(244, 247, 251, 0.68);
}

.presura-startbase__station-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.presura-startbase__station-popup-grid div {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.presura-startbase__station-popup-grid dt {
    margin: 0 0 4px;
    font-size: 0.68rem;
    color: rgba(244, 247, 251, 0.62);
}

.presura-startbase__station-popup-grid dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
}

.presura-startbase__map .leaflet-control-zoom {
    margin-top: 92px;
    margin-left: 10px;
}

.presura-startbase__map .leaflet-control-zoom a {
    border: 0;
    color: var(--presura-text);
    background: var(--presura-surface-strong);
}

.presura-startbase__map .leaflet-control-attribution {
    padding: 2px 8px;
    border-radius: 10px 0 0 0;
    color: var(--presura-text-soft);
    background: rgba(8, 15, 24, 0.76);
}

.presura-startbase__map .leaflet-control-attribution a {
    color: inherit;
}

.presura-startbase__radar-tile {
    opacity: 0;
    background: transparent !important;
    image-rendering: auto;
    transition: opacity 0.12s linear;
}

.presura-startbase__radar-tile.leaflet-tile-loaded {
    opacity: 1;
}

.leaflet-pane img.presura-startbase__radar-tile,
.leaflet-pane img.leaflet-tile {
    background: transparent !important;
}

.presura-startbase__loading,
.presura-startbase__timeline {
    border: 1px solid var(--presura-line);
    background: var(--presura-surface);
    box-shadow: var(--presura-shadow);
    backdrop-filter: blur(12px);
}

.presura-startbase__loading {
    position: absolute;
    top: 118px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-map-controls);
    min-width: 220px;
    max-width: min(320px, calc(100vw - 240px));
    padding: 8px 12px;
    border-radius: 12px;
    pointer-events: none;
}

.presura-startbase__loading[hidden] {
    display: none;
}

.presura-startbase__loading-text {
    display: block;
    font-size: 12px;
    color: var(--presura-text-soft);
}

.presura-startbase__loading-bar {
    margin-top: 4px;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.presura-startbase__loading-fill {
    width: 0%;
    height: 100%;
    border-radius: 2px;
    background: var(--presura-accent);
    transition: width 0.2s ease;
}

.presura-startbase__locate {
    position: absolute;
    top: 92px;
    left: 10px;
    right: auto;
    z-index: var(--z-map-controls);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--presura-line);
    border-radius: 6px;
    color: var(--presura-text);
    background: var(--presura-surface-strong);
    cursor: pointer;
    box-shadow: var(--presura-shadow);
}

.presura-startbase__home {
    position: absolute;
    top: 136px;
    left: 10px;
    right: auto;
    z-index: var(--z-map-controls);
    display: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(245, 247, 250, 0.82);
    background: rgba(8, 14, 22, 0.56);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.presura-startbase__station-focus {
    position: absolute;
    top: 176px;
    left: 10px;
    z-index: var(--z-map-controls);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(180deg, #ffb259 0%, #f1842f 100%);
    cursor: pointer;
    box-shadow: var(--presura-shadow);
}

.presura-startbase__locate svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.presura-startbase__home svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.presura-startbase__station-focus svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.presura-startbase__credits {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: calc(var(--presura-desktop-timeline-clearance) + 22px);
    z-index: var(--z-layer-toolbar);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 14, 22, 0.84);
    color: rgba(238, 244, 248, 0.84);
    font-size: 0.7rem;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.presura-startbase__credits a {
    color: #ffffff;
    text-decoration: none;
}

.presura-startbase__credits a:hover {
    text-decoration: underline;
}

.presura-startbase__timeline {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--z-timeline);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 14px 6px;
    border-radius: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-top-color: var(--presura-timeline-border);
    background: var(--presura-timeline-surface);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(135%);
    pointer-events: auto;
}

.presura-startbase__timeline-actions {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    align-items: center;
}

.presura-startbase__timeline-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(239, 245, 251, 0.92);
    background: rgba(10, 18, 27, 0.82);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.presura-startbase__timeline-button--debug {
    min-width: 46px;
    padding-inline: 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.presura-startbase__timeline-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(14, 24, 36, 0.94);
}

.presura-startbase__timeline-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.presura-startbase__timeline-button.is-active {
    color: #fff;
    border-color: rgba(84, 188, 255, 0.54);
    background: linear-gradient(180deg, #53b8ff, #238de2);
    box-shadow: 0 8px 20px rgba(35, 141, 226, 0.3);
}

.presura-startbase__timeline-button--debug.is-active {
    color: #fff;
}

.presura-startbase__timeline-button:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.presura-startbase__timeline-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.presura-startbase__timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.presura-startbase__timeline-meta strong {
    font-size: 12px;
    line-height: 1.15;
}

.presura-startbase__timeline-meta span {
    color: var(--presura-text-soft);
    font-size: 10px;
    line-height: 1.1;
}

.presura-startbase__mobile-legend {
    display: none;
}

.presura-startbase__range-wrap {
    display: block;
    pointer-events: auto;
}

.presura-startbase__range {
    width: 100%;
    height: 22px;
    padding: 5px 0;
    appearance: none;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
    cursor: ew-resize;
}

.presura-startbase__range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f8dff 0%, #2f8dff var(--presura-progress, 0%), rgba(255, 255, 255, 0.12) var(--presura-progress, 0%), rgba(255, 255, 255, 0.12) 100%);
}

.presura-startbase__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--presura-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.presura-startbase__range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.presura-startbase__range::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--presura-accent);
}

.presura-startbase__range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--presura-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.presura-startbase__ticks {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 13px;
    color: rgba(239, 245, 251, 0.54);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.presura-startbase__tick.is-active {
    color: var(--presura-accent);
    font-weight: 600;
}

.presura-startbase__tick.is-observed {
    color: rgba(239, 245, 251, 0.66);
}

.presura-startbase__tick.is-forecast {
    color: rgba(126, 212, 255, 0.94);
}

.presura-startbase__debug {
    grid-column: 1 / -1;
    color: var(--presura-text-soft);
    font-size: 11px;
    line-height: 1.4;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presura-startbase__debug[hidden] {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .presura-site-header,
    .presura-startbase__topbar {
        padding-inline: 10px;
    }

    .presura-site-header__inner,
    .presura-startbase__topbar {
        gap: 12px;
        padding: 10px 14px;
    }

    .presura-site-header__nav a {
        padding: 6px 10px;
    }

    .presura-startbase__toolbar {
        gap: 8px;
    }

    .presura-startbase__toolbar select {
        font-size: 12px;
        padding-inline: 9px;
    }

    .presura-startbase__hud-rail,
    .presura-startbase__credits {
        right: 12px;
    }
}

@media (max-width: 767px) {
    :root {
        --presura-workspace-mobile-edge: clamp(10px, 3vw, 16px);
        --presura-workspace-mobile-gap: clamp(8px, 2vw, 12px);
        --presura-workspace-mobile-control-size: clamp(38px, 9.8vw, 44px);
        --presura-workspace-mobile-control-step: calc(var(--presura-workspace-mobile-control-size) + clamp(10px, 2.3vw, 14px));
        --presura-workspace-mobile-footer-gap: clamp(8px, 1.8dvh, 12px);
        --presura-workspace-mobile-timeline-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(4px, 1.2dvh, 8px));
        --presura-mobile-timeline-height: clamp(58px, 11dvh, 74px);
        --presura-workspace-mobile-legend-height: clamp(40px, 6.8dvh, 48px);
        --presura-workspace-mobile-attribution-width: min(26vw, 112px);
    }

    .presura-startbase {
        min-height: 100dvh;
    }

    .presura-site-header,
    .presura-startbase__topbar {
        left: 0;
        right: 0;
        padding: calc(6px + env(safe-area-inset-top, 0px)) var(--presura-workspace-mobile-edge) 0;
        background: none;
    }

    .presura-site-header--map-shell {
        background: none;
    }

    .presura-site-header__inner,
    .presura-startbase__topbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 8px;
        padding: 6px 8px 6px 10px;
        border-radius: 14px;
        border-color: var(--mobile-panel-border);
        background: rgba(7, 15, 24, 0.74);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .presura-site-header__brand,
    .presura-startbase__brand {
        gap: 8px;
    }

    .presura-site-header__brand-mark,
    .presura-startbase__brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .presura-site-header__brand-copy strong,
    .presura-startbase__brand-copy strong {
        font-size: 0.76rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .presura-site-header__brand-copy::after {
        content: attr(data-page-label);
        display: block;
        margin-top: 1px;
        font-size: 0.5rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--mobile-text-secondary);
    }

    .presura-site-header__mobile-page,
    .presura-site-header__nav,
    .presura-site-header__controls,
    .presura-site-header__info-links,
    .presura-startbase__legend-toggle,
    .presura-startbase__legend-panel,
    .presura-startbase__credits,
    .presura-startbase__station-label {
        display: none !important;
    }

    .presura-site-header__menu-toggle {
        width: 36px;
        height: 36px;
        display: inline-grid;
        gap: 4px;
        align-content: center;
        justify-items: center;
        padding: 0;
        border: 1px solid var(--mobile-panel-border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--mobile-text-primary);
        cursor: pointer;
        pointer-events: auto;
    }

    .presura-site-header__menu-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .presura-startbase__map-shell {
        min-height: 100dvh;
    }

    .presura-startbase__map {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
    }

    .presura-mobile-menu {
        position: fixed;
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + 12px);
        right: auto;
        left: var(--presura-workspace-mobile-edge);
        width: min(360px, calc(100vw - (var(--presura-workspace-mobile-edge) * 2)));
        bottom: calc(env(safe-area-inset-bottom, 0px) + var(--presura-workspace-mobile-gap));
        z-index: var(--z-panel);
        display: grid;
        gap: 16px;
        max-height: calc(100dvh - var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) - env(safe-area-inset-bottom, 0px) - 24px);
        padding: 16px 14px;
        border: 1px solid var(--mobile-panel-border);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 28%),
            rgba(7, 15, 24, 0.94);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(20px);
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: auto;
        opacity: 0;
        transform: translateX(calc(-100% - 18px));
        visibility: hidden;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .presura-mobile-menu[data-open="true"] {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
    }

    .presura-mobile-menu__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .presura-mobile-menu__header strong {
        font-size: 0.94rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--mobile-text-primary);
    }

    .presura-mobile-menu__close {
        width: 40px;
        height: 40px;
        display: inline-grid;
        place-items: center;
        padding: 0;
        border: 1px solid var(--mobile-panel-border);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--mobile-text-primary);
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }

    .presura-mobile-menu__layers,
    .presura-mobile-menu__settings,
    .presura-mobile-menu__about {
        display: grid;
        gap: 12px;
        padding-top: 2px;
    }

    .presura-mobile-menu__section-title {
        font-size: 0.76rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #9fc2ff;
    }

    .presura-mobile-layer-list {
        display: grid;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.025);
        overflow: hidden;
    }

    .presura-mobile-layer-option {
        min-height: 54px;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) 20px;
        align-items: center;
        gap: 12px;
        padding: 0 14px;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        color: var(--mobile-text-primary);
        text-align: left;
        cursor: pointer;
    }

    .presura-mobile-layer-option:first-child {
        border-top: 0;
    }

    .presura-mobile-layer-option__icon,
    .presura-mobile-layer-option__icon svg {
        width: 22px;
        height: 22px;
    }

    .presura-mobile-layer-option__icon {
        display: inline-grid;
        place-items: center;
        color: rgba(245, 247, 250, 0.94);
    }

    .presura-mobile-layer-option__icon svg {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .presura-mobile-layer-option__label {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .presura-mobile-layer-option__state {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        position: relative;
    }

    .presura-mobile-layer-option.is-active {
        background:
            linear-gradient(90deg, rgba(77, 175, 255, 0.18), rgba(77, 175, 255, 0.04) 70%);
    }

    .presura-mobile-layer-option.is-active .presura-mobile-layer-option__state {
        border-color: var(--mobile-accent);
        background: var(--mobile-accent);
    }

    .presura-mobile-layer-option.is-active .presura-mobile-layer-option__state::after {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 50%;
        background: #071019;
    }

    .presura-mobile-menu__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .presura-mobile-menu__nav a,
    .presura-mobile-menu__field select {
        min-height: 42px;
        border-radius: 13px;
    }

    .presura-mobile-menu__nav a {
        display: flex;
        align-items: center;
        padding: 9px 11px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--mobile-text-primary);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.84rem;
    }

    .presura-mobile-menu__nav a[aria-current="page"] {
        border-color: rgba(122, 167, 255, 0.34);
        background: rgba(122, 167, 255, 0.14);
    }

    .presura-mobile-menu__control-grid {
        display: grid;
        gap: 8px;
    }

    .presura-mobile-menu__field {
        display: grid;
        gap: 5px;
        font-size: 0.76rem;
        color: rgba(238, 244, 248, 0.76);
    }

    .presura-mobile-menu__language {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .presura-mobile-menu__field select {
        width: 100%;
        padding: 0 11px;
        border: 1px solid var(--presura-line);
        background: rgba(10, 18, 27, 0.9);
        color: #eef4f8;
        font-size: 0.84rem;
    }

    .presura-mobile-menu__about p {
        margin: 0;
        color: var(--mobile-text-secondary);
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .presura-mobile-menu__about a {
        color: var(--mobile-text-primary);
        text-decoration: none;
    }

    .presura-mobile-menu__info-links {
        display: grid;
        gap: 8px;
        margin-top: 4px;
    }

    .presura-mobile-menu__info-links a {
        color: var(--mobile-text-primary);
        text-decoration: none;
        font-size: 0.82rem;
    }

    .presura-startbase__panel-backdrop {
        position: fixed;
        inset: 0;
        z-index: var(--z-backdrop);
        display: block;
        background: rgba(3, 8, 14, 0.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    .presura-startbase__panel-backdrop.is-active {
        opacity: 1;
        visibility: visible;
    }

    .presura-startbase__hud-rail {
        position: fixed;
        top: auto;
        left: var(--presura-workspace-mobile-edge);
        right: var(--presura-workspace-mobile-edge);
        bottom: calc(var(--presura-mobile-timeline-height) + var(--presura-workspace-mobile-timeline-bottom) + 10px);
        z-index: var(--z-layer-toolbar);
        display: block;
        max-height: none;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        pointer-events: auto;
        scrollbar-width: none;
    }

    .presura-startbase__hud-rail::-webkit-scrollbar {
        display: none;
    }

    .presura-startbase__layer-dock {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(58px, 62px);
        gap: 8px;
        width: max-content;
        min-width: 100%;
        justify-content: start;
        pointer-events: auto;
    }

    .presura-startbase__layer-btn {
        min-width: 58px;
        min-height: 44px;
        grid-template-rows: 14px auto;
        gap: 2px;
        padding: 5px 4px 4px;
        border-radius: 14px;
        background: rgba(8, 14, 22, 0.88);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }

    .presura-startbase__layer-icon,
    .presura-startbase__layer-icon svg {
        width: 15px;
        height: 15px;
    }

    .presura-startbase__layer-label {
        font-size: 0.52rem;
    }

    .presura-startbase__map .leaflet-top.leaflet-left {
        left: auto;
        right: var(--presura-workspace-mobile-edge);
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + var(--presura-workspace-mobile-gap) + (var(--presura-workspace-mobile-control-step) * 3) + 4px);
    }

    .presura-startbase__map .leaflet-control-zoom {
        margin: 0;
        border-radius: 13px;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    }

    .presura-startbase__map .leaflet-control-zoom a {
        width: var(--presura-workspace-mobile-control-size);
        height: var(--presura-workspace-mobile-control-size);
        line-height: var(--presura-workspace-mobile-control-size);
        font-size: clamp(20px, 5vw, 23px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(13, 20, 31, 0.92);
        color: #f3f7fb;
    }

    .presura-startbase__map .leaflet-bottom.leaflet-right {
        right: var(--presura-workspace-mobile-edge);
        left: auto;
        bottom: calc(var(--presura-mobile-timeline-height) + var(--presura-workspace-mobile-timeline-bottom) + 8px);
    }

    .presura-startbase__map .leaflet-control-attribution {
        margin: 0;
        left: auto;
        max-width: var(--presura-workspace-mobile-attribution-width);
        padding: 3px 7px;
        border-radius: 9px;
        background: rgba(7, 15, 24, 0.62);
        backdrop-filter: blur(10px);
        font-size: 0.46rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
    }

    .presura-startbase__loading {
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + 8px);
        left: var(--presura-workspace-mobile-edge);
        transform: none;
        right: calc(var(--presura-workspace-mobile-edge) + var(--presura-workspace-mobile-control-size) + 16px);
        min-width: 0;
        max-width: none;
        border-radius: 14px;
    }

    .presura-startbase__locate,
    .presura-startbase__home,
    .presura-startbase__station-focus {
        right: var(--presura-workspace-mobile-edge);
        left: auto;
        display: grid;
        width: var(--presura-workspace-mobile-control-size);
        height: var(--presura-workspace-mobile-control-size);
        border-radius: clamp(12px, 3vw, 14px);
        background: rgba(13, 20, 31, 0.92);
        color: #f3f7fb;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    }

    .presura-startbase__locate:hover,
    .presura-startbase__home:hover,
    .presura-startbase__station-focus:hover {
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(17, 25, 37, 0.96);
    }

    .presura-startbase__locate {
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + var(--presura-workspace-mobile-gap));
    }

    .presura-startbase__home {
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + var(--presura-workspace-mobile-gap) + var(--presura-workspace-mobile-control-step));
        background: rgba(13, 20, 31, 0.82);
    }

    .presura-startbase__station-focus {
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + var(--presura-workspace-mobile-gap) + (var(--presura-workspace-mobile-control-step) * 2));
        background: linear-gradient(180deg, #ffb259 0%, #f1842f 100%);
    }

    .presura-startbase__timeline {
        left: var(--presura-workspace-mobile-edge);
        right: var(--presura-workspace-mobile-edge);
        top: auto;
        width: auto;
        bottom: var(--presura-workspace-mobile-timeline-bottom);
        grid-template-columns: clamp(34px, 9vw, 40px) minmax(0, 1fr);
        gap: clamp(6px, 1.6vw, 9px);
        align-items: center;
        min-height: auto;
        padding: 6px 9px;
        border: 1px solid var(--presura-timeline-border);
        border-radius: 14px;
        background: var(--presura-timeline-surface-strong);
        backdrop-filter: blur(18px) saturate(135%);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    }

    .presura-startbase__timeline-actions {
        gap: 6px;
        align-self: center;
    }

    .presura-startbase__timeline-button {
        width: clamp(34px, 9vw, 40px);
        height: clamp(34px, 9vw, 40px);
    }

    .presura-startbase__timeline-button--debug {
        width: auto;
        min-width: clamp(44px, 12vw, 52px);
        padding-inline: 10px;
    }

    .presura-startbase__timeline-main {
        gap: 2px;
    }

    .presura-startbase__timeline-meta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 5px;
    }

    .presura-startbase__timeline-meta strong {
        font-size: clamp(0.66rem, 1.7vw, 0.72rem);
        letter-spacing: 0.03em;
    }

    .presura-startbase__timeline-meta span {
        font-size: clamp(0.54rem, 1.5vw, 0.6rem);
        color: rgba(255, 255, 255, 0.9);
        font-variant-numeric: tabular-nums;
    }

    .presura-startbase__range-wrap {
        margin-top: 0;
    }

    .presura-startbase__range::-webkit-slider-runnable-track,
    .presura-startbase__range::-moz-range-track {
        height: 3px;
    }

    .presura-startbase__range::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
        margin-top: -4px;
    }

    .presura-startbase__range::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }

    .presura-startbase__ticks {
        display: none;
    }

    .presura-startbase__mobile-legend {
        position: fixed;
        left: 0;
        right: auto;
        width: clamp(44px, 11vw, 54px);
        bottom: calc(var(--presura-mobile-timeline-height) + var(--presura-workspace-mobile-timeline-bottom) + var(--presura-workspace-mobile-footer-gap));
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 4px;
        min-height: auto;
        padding: 6px 4px 7px 3px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
        border-radius: 0 11px 11px 0;
        background: rgba(7, 15, 24, 0.72);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
        z-index: calc(var(--z-timeline) + 1);
    }

    .presura-startbase__mobile-legend .presura-startbase__legend-header strong {
        font-size: 0.58rem;
    }

    .presura-startbase__mobile-legend .presura-startbase__legend-header span {
        font-size: 0.32rem;
    }

    .presura-startbase__mobile-legend .presura-startbase__legend-row {
        grid-template-columns: 13px 1fr;
        gap: 2px;
    }

    .presura-startbase__mobile-legend .presura-startbase__legend-label {
        font-size: 0.34rem;
    }

    .presura-startbase__mobile-legend .presura-startbase__legend-swatch {
        min-height: 7px;
    }

    .presura-startbase__mobile-legend-meta {
        display: grid;
        gap: 1px;
        align-content: start;
    }

    .presura-startbase__mobile-legend-meta strong {
        font-size: 0.44rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--mobile-text-primary);
    }

    .presura-startbase__mobile-legend-meta span {
        font-size: 0.31rem;
        color: var(--mobile-text-secondary);
    }

    .presura-startbase__mobile-legend-scale {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        gap: 2px;
        align-items: stretch;
    }

    .presura-startbase__mobile-legend-scale .presura-startbase__legend-row {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 4px;
        align-items: center;
        gap: 1px;
    }

    .presura-startbase__mobile-legend-scale .presura-startbase__legend-swatch {
        min-height: 4px;
        border-radius: 999px;
    }

    .presura-startbase__mobile-legend-scale .presura-startbase__legend-label {
        font-size: 0.34rem;
        text-align: left;
        color: rgba(245, 247, 250, 0.84);
        font-variant-numeric: tabular-nums;
    }

    .presura-startbase__station-overlay {
        display: block !important;
        z-index: 260;
    }

    .presura-startbase__station-overlay-node {
        transform: translate(-50%, -92%);
        width: 14px;
        height: 14px;
    }

    .presura-startbase__station-overlay-pin {
        width: 8px;
        height: 8px;
        border-width: 2px;
        box-shadow: 0 0 0 2px rgba(241, 132, 47, 0.18);
    }

    .presura-startbase__station-overlay-node.is-lightning .presura-startbase__station-overlay-pin {
        box-shadow: 0 0 0 2px rgba(255, 210, 77, 0.18);
    }

    .presura-startbase__station-overlay-badge {
        display: none;
    }

    .presura-startbase__timeline[data-timeline-enabled="false"] .presura-startbase__play,
    .presura-startbase__timeline[data-timeline-enabled="false"] .presura-startbase__range-wrap,
    .presura-startbase__timeline[data-timeline-enabled="false"] .presura-startbase__ticks {
        display: none;
    }

    .presura-startbase__timeline[data-timeline-enabled="false"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .presura-startbase__debug {
        display: none !important;
    }

    .presura-startbase__station-card {
        display: none;
    }
}

@media (max-width: 479px) {
    .presura-startbase__mobile-legend {
        left: env(safe-area-inset-left, 0px);
        right: auto;
        width: clamp(54px, 14vw, 68px);
        bottom: calc(var(--presura-mobile-timeline-height) + var(--presura-workspace-mobile-timeline-bottom) + var(--presura-workspace-mobile-footer-gap));
    }

    .presura-startbase__mobile-legend-scale .presura-startbase__legend-label,
    .presura-startbase__timeline-meta span {
        font-size: 0.34rem;
    }

    .presura-startbase__mobile-legend-scale .presura-startbase__legend-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
}

@media (max-width: 767px) and (orientation: landscape) {
    :root {
        --presura-mobile-timeline-height: clamp(54px, 18dvh, 68px);
    }

    .presura-mobile-menu {
        top: calc(var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) + 12px);
        bottom: 12px;
        right: auto;
        left: var(--presura-workspace-mobile-edge);
        width: min(360px, calc(100vw - (var(--presura-workspace-mobile-edge) * 2)));
        max-height: calc(100dvh - var(--presura-shell-topbar-bottom, calc(72px + env(safe-area-inset-top, 0px))) - 24px);
        transform: translateX(calc(-100% - 18px));
    }

    .presura-mobile-menu[data-open="true"] {
        transform: translateX(0);
    }

    .presura-startbase__timeline {
        left: var(--presura-workspace-mobile-edge);
        right: calc(var(--presura-workspace-mobile-edge) + min(360px, calc(100vw - (var(--presura-workspace-mobile-edge) * 2))) + 12px);
        width: auto;
        top: auto;
        bottom: var(--presura-workspace-mobile-timeline-bottom);
    }

    .presura-startbase__map .leaflet-control-attribution {
        max-width: min(22vw, 108px);
    }

    .presura-startbase__mobile-legend {
        position: fixed;
        left: var(--presura-workspace-mobile-edge);
        right: auto;
        width: min(52vw, 208px);
        bottom: calc(var(--presura-mobile-timeline-height) + var(--presura-workspace-mobile-timeline-bottom) + var(--presura-workspace-mobile-footer-gap));
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: center;
        gap: 6px;
        min-height: var(--presura-workspace-mobile-legend-height);
        padding: 5px 7px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        background: rgba(7, 15, 24, 0.64);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    }
}

@media (min-width: 768px) and (max-height: 800px) {
    .presura-startbase__hud-rail {
        top: auto;
        bottom: calc(var(--presura-desktop-timeline-clearance) + 18px);
        max-height: calc(100dvh - 188px - var(--presura-desktop-timeline-clearance));
    }

    .presura-startbase__legend-panel {
        bottom: calc(var(--presura-desktop-timeline-clearance) + 78px);
    }

    .presura-startbase__credits {
        left: 16px;
        right: auto;
        bottom: calc(var(--presura-desktop-timeline-clearance) + 18px);
    }
}

@media (min-width: 1024px) and (max-height: 1040px) {
    .presura-startbase__hud-rail {
        gap: 10px;
    }

    .presura-startbase__layer-dock {
        grid-template-columns: repeat(2, minmax(58px, 1fr));
        width: 138px;
        gap: 8px;
    }

    .presura-startbase__layer-btn {
        min-width: 0;
    }

    .presura-startbase__credits {
        left: 18px;
        right: auto;
        bottom: calc(var(--presura-desktop-timeline-clearance) + 18px);
        max-width: min(32vw, 360px);
    }
}

@media (min-width: 768px) and (max-height: 520px) {
    .presura-startbase__hud-rail {
        left: 12px;
        right: 12px;
        bottom: calc(var(--presura-desktop-timeline-clearance) + 20px);
        justify-items: stretch;
    }

    .presura-startbase__layer-dock {
        grid-template-columns: repeat(4, minmax(56px, 1fr));
        width: min(420px, 100%);
        margin-left: auto;
    }

    .presura-startbase__credits {
        left: 12px;
        right: auto;
        bottom: calc(var(--presura-desktop-timeline-clearance) + 16px);
        max-width: min(60vw, 360px);
    }
}


