/* Radar Nieba 0.2.36 — wspólny dolny dock Warstwy / Moja lokalizacja / Historia / Legenda */

:root {
    --rn-map-tools-dock-h: 54px;
    --rn-map-tools-dock-gap: 10px;
}

#rnMapToolsDock {
    position: fixed;
    z-index: 1400;
    left: 50%;
    bottom: 12px;
    width: min(620px, calc(100vw - 40px));
    height: var(--rn-map-tools-dock-h);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 16px;
    background: rgba(8,15,27,.96);
    box-shadow: 0 12px 38px rgba(0,0,0,.34);
    transform: translateX(-50%);
    font-family: Arial, sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#rnMapToolsDock[hidden] { display: none !important; }

#rnMapToolsDock button {
    min-width: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #9fb0c4;
    font: 800 10px/1 Arial, sans-serif;
    letter-spacing: .045em;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease, transform .12s ease;
}

#rnMapToolsDock button:hover {
    background: rgba(51,65,85,.58);
    color: #eff6ff;
}

#rnMapToolsDock button:active { transform: translateY(1px); }

#rnMapToolsDock button.is-active {
    border-color: rgba(96,165,250,.38);
    background: rgba(37,99,235,.20);
    color: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(147,197,253,.07);
}

.rn-map-tools-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    color: #89bde7;
    font-size: 14px;
    font-weight: 900;
}

.rn-map-tools-icon-history,
.rn-map-tools-icon-legend {
    border: 1px solid rgba(125,166,199,.38);
    border-radius: 50%;
}


.rn-map-tools-icon-location {
    position: relative;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}
.rn-map-tools-icon-location::before,
.rn-map-tools-icon-location::after {
    content: "";
    position: absolute;
    background: currentColor;
    opacity: .9;
}
.rn-map-tools-icon-location::before {
    width: 9px;
    height: 1.5px;
    left: 4.5px;
    top: 8.2px;
}
.rn-map-tools-icon-location::after {
    width: 1.5px;
    height: 9px;
    left: 8.2px;
    top: 4.5px;
}
.rn-map-tools-icon-location i {
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(56,189,248,.15);
}

#rnMapToolsDock [data-rn-user-location].is-busy .rn-map-tools-icon-location,
#rnMobileHeaderActions [data-rn-user-location].is-busy .rn-map-tools-icon-location {
    animation: rn-location-spin .8s linear infinite;
}
#rnMapToolsDock [data-rn-user-location].is-location-set,
#rnMobileHeaderActions [data-rn-user-location].is-location-set {
    color: #7dd3fc;
}
@keyframes rn-location-spin { to { transform: rotate(360deg); } }

.rn-user-location-icon {
    background: transparent !important;
    border: 0 !important;
}
.rn-user-location-marker {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 2px solid #e0f2fe;
    border-radius: 50%;
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14,165,233,.20), 0 3px 12px rgba(0,0,0,.35);
}
.rn-user-location-marker i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

#rnLocationToast {
    position: fixed;
    z-index: 1700;
    left: 50%;
    bottom: calc(12px + var(--rn-map-tools-dock-h) + 12px);
    max-width: min(420px, calc(100vw - 28px));
    padding: 9px 12px;
    border: 1px solid rgba(125,211,252,.32);
    border-radius: 11px;
    background: rgba(7,17,29,.96);
    color: #dbeafe;
    box-shadow: 0 12px 36px rgba(0,0,0,.34);
    font: 700 11px/1.35 Arial, sans-serif;
    opacity: 0;
    transform: translate(-50%, 7px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
#rnLocationToast.is-visible { opacity: 1; transform: translate(-50%, 0); }
#rnLocationToast.is-error { border-color: rgba(248,113,113,.42); color: #fecaca; }
#rnLocationToast.is-ok { border-color: rgba(34,197,94,.38); color: #bbf7d0; }

.rn-map-tools-icon-layers {
    position: relative;
}

.rn-map-tools-icon-layers::before,
.rn-map-tools-icon-layers::after,
.rn-map-tools-icon-layers i {
    content: "";
    position: absolute;
    left: 3px;
    width: 15px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    transform: skewY(-22deg);
}
.rn-map-tools-icon-layers::before { top: 2px; }
.rn-map-tools-icon-layers i { top: 6px; opacity: .72; }
.rn-map-tools-icon-layers::after { top: 10px; opacity: .46; }

/* Gdy działa nowy dock, stare osobne przyciski Warstw i Legendy znikają. */
body.rn-bottom-tools-ready #rnLayersToggle,
body.rn-bottom-tools-ready #rnLegendToggle {
    display: none !important;
}

/* Panele Warstw i Legendy rozwijają się nad wspólnym dockiem. */
body.rn-bottom-tools-ready #rnLayersPanel,
body.rn-bottom-tools-ready #rnLegendPanel {
    position: fixed !important;
    z-index: 1385 !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(12px + var(--rn-map-tools-dock-h) + var(--rn-map-tools-dock-gap)) !important;
    transform: translate(-50%, 8px) scale(.99) !important;
    transform-origin: bottom center !important;
}

body.rn-bottom-tools-ready #rnLayersPanel {
    width: min(390px, calc(100vw - 28px)) !important;
    max-height: min(70vh, 650px) !important;
}

body.rn-bottom-tools-ready #rnLegendPanel {
    width: min(440px, calc(100vw - 28px)) !important;
    max-height: min(72vh, 680px) !important;
}

body.rn-bottom-tools-ready #rnLayersUi.is-open #rnLayersPanel,
body.rn-bottom-tools-ready #rnLegendUi.is-open #rnLegendPanel {
    transform: translate(-50%, 0) scale(1) !important;
}

/* 0.2.99 — desktop: ważny komunikat RCB nie może nachodzić na dolny dock.
   Korzystamy z tych samych zmiennych wysokości/odstępu co Warstwy, Historia i Legenda,
   więc poprawka nie wymaga JS, pomiarów DOM ani dodatkowych requestów. */
@media (min-width: 901px) {
    body.rn-bottom-tools-ready .rn-rcb-air-banner {
        bottom: calc(12px + var(--rn-map-tools-dock-h) + var(--rn-map-tools-dock-gap)) !important;
    }
}

/* Historia nie zajmuje mapy stale — pojawia się dopiero nad kafelkiem HISTORIA. */
body.rn-bottom-tools-ready .rn-history-desktop-timeline:not(.is-mobile-history) {
    position: fixed !important;
    z-index: 1380 !important;
    bottom: calc(12px + var(--rn-map-tools-dock-h) + var(--rn-map-tools-dock-gap)) !important;
}

/* W nowym prostym widoku offset legendy nie jest już potrzebny — legenda ma własny panel. */
body.rn-bottom-tools-ready {
    --rn-desktop-history-timeline-offset: 0px;
}

#rnMobileQuickNav { display: none; }

@media (max-width: 900px) {
    :root {
        --rn-map-tools-dock-h: 58px;
        --rn-map-tools-dock-gap: 7px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileBar {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        left: 6px;
        right: 6px;
        bottom: calc(6px + var(--rn-mobile-safe-bottom, 0px));
        width: auto;
        height: var(--rn-map-tools-dock-h);
        padding: 5px;
        gap: 4px;
        border-radius: 16px;
        transform: none;
        background: rgba(7,14,25,.975);
        box-shadow: 0 8px 30px rgba(0,0,0,.38);
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        height: 46px;
        gap: 5px;
        padding: 0 5px;
        border-radius: 11px;
        font-size: 9.5px;
        letter-spacing: .02em;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendPanel {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(var(--rn-map-tools-dock-h) + var(--rn-mobile-safe-bottom, 0px) + 13px) !important;
        width: auto !important;
        max-height: min(72dvh, 680px) !important;
        transform: translateY(20px) !important;
        transform-origin: bottom center !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersUi.is-open #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendUi.is-open #rnLegendPanel {
        transform: translateY(0) !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-history-desktop-timeline.is-mobile-history {
        z-index: 1380 !important;
        bottom: calc(var(--rn-map-tools-dock-h) + var(--rn-mobile-safe-bottom, 0px) + 13px) !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileQuickNav {
        position: fixed;
        z-index: 1405;
        top: calc(6px + var(--rn-mobile-safe-top, 0px));
        right: 6px;
        display: grid;
        grid-template-columns: 42px;
        gap: 6px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileQuickNav[hidden] {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready.rn-map-tool-open #rnMobileQuickNav {
        opacity: 0;
        pointer-events: none;
    }

    #rnMobileQuickNav button {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 13px;
        background: #08111a;
        color: #b9cbe0;
        box-shadow: 0 7px 22px rgba(0,0,0,.30);
        font: 900 18px/1 Arial, sans-serif;
        cursor: pointer;
    }

    #rnMobileQuickNav button[data-rn-mobile-quick="news"] {
        color: #fbbf24;
        font-size: 15px;
    }

    #rnMobileQuickNav button.is-active {
        border-color: rgba(96,165,250,.45);
        background: #14283a;
        color: #fff;
    }

    /* Zachowujemy istniejące odstępy wszystkich bottom-sheetów, bo nowy dock ma tę samą wysokość co dawny rnMobileBar. */
    body.rn-mobile-ui.rn-bottom-tools-ready {
        --rn-mobile-bar-h: var(--rn-map-tools-dock-h);
    }
}

@media (max-width: 390px) {
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        font-size: 9px;
        gap: 4px;
        padding: 0 3px;
    }
}

/* Radar Nieba 0.1.102 — mobile: główna nawigacja na dole, narzędzia pomocnicze u góry. */
@media (max-width: 900px) {
    :root {
        --rn-mobile-map-tools-top-h: 42px;
    }

    /* Przywracamy główne zakładki: Radar / Historia / Komunikaty. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileBar {
        display: grid !important;
    }

    /* Warstwy i Legenda tworzą kompaktowy, dwukafelkowy pasek u góry. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        left: 50%;
        right: auto;
        top: var(--rn-mobile-map-tools-top, calc(8px + var(--rn-mobile-safe-top, 0px)));
        bottom: auto;
        width: min(204px, calc(100vw - 72px));
        height: var(--rn-mobile-map-tools-top-h);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 3px;
        gap: 3px;
        border-radius: 12px;
        transform: translateX(-50%);
        background: rgba(7,14,25,.96);
        box-shadow: 0 8px 28px rgba(0,0,0,.34);
    }

    /* Historia jest dostępna wyłącznie w głównym dolnym pasku. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock [data-rn-map-tool="history"] {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        height: 34px;
        gap: 4px;
        padding: 0 5px;
        border-radius: 9px;
        font-size: 9px;
        letter-spacing: .02em;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    /* Warstwy i Legenda rozwijają się w dół spod górnego paska. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendPanel {
        left: 8px !important;
        right: 8px !important;
        top: var(--rn-mobile-map-tools-panel-top, calc(8px + var(--rn-mobile-safe-top, 0px) + var(--rn-mobile-map-tools-top-h) + 8px)) !important;
        bottom: auto !important;
        width: auto !important;
        max-height: calc(100dvh - var(--rn-mobile-map-tools-panel-top, 64px) - var(--rn-mobile-safe-bottom, 0px) - var(--rn-mobile-bar-h, 58px) - 16px) !important;
        transform: translateY(-10px) scale(.99) !important;
        transform-origin: top center !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersUi.is-open #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendUi.is-open #rnLegendPanel {
        transform: translateY(0) scale(1) !important;
    }

    /* Replay Historii otwiera się nad główną dolną nawigacją. */
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-history-desktop-timeline.is-mobile-history {
        z-index: 1380 !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        transform: none !important;
        bottom: calc(var(--rn-mobile-bar-h, 58px) + var(--rn-mobile-safe-bottom, 0px) + 14px) !important;
    }

    /* Pionowy szybki dostęp z 0.1.101 nie jest już używany. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileQuickNav,
    #rnMobileQuickNav {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready {
        --rn-mobile-bar-h: 58px;
    }
}

@media (max-width: 390px) {
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        width: min(196px, calc(100vw - 56px));
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        font-size: 9px;
        gap: 4px;
        padding: 0 5px;
    }
}

/* Regression compatibility 0.1.102: top: calc(8px + var(--rn-mobile-safe-top, 0px)); */
/* Radar Nieba 0.1.103 — mobile: górne narzędzia omijają komunikat, Historia wykorzystuje pełną szerokość. */


/* Radar Nieba 0.1.104 — mobile: kompaktowe Warstwy/Legenda + pełnoszeroki status lotniczy. */
@media (max-width: 900px) {
    /* Narzędzia pomocnicze mają być dyskretne i nie konkurować z komunikatem sytuacyjnym. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        min-height: 0;
        box-shadow: 0 6px 20px rgba(0,0,0,.28);
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        min-height: 34px;
        line-height: 1;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::before,
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::after,
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers i {
        left: 2px;
        width: 13px;
        height: 7px;
    }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::before { top: 1px; }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers i { top: 5px; }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::after { top: 9px; }

    /* Górny status wykorzystuje prawie pełną szerokość telefonu. */
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status {
        left: 4px !important;
        right: 4px !important;
        width: auto !important;
        max-width: none !important;
        min-height: 38px;
        box-sizing: border-box;
        padding: 8px 11px !important;
        border-width: 1px !important;
        border-radius: 11px !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        letter-spacing: .012em;
        box-shadow: 0 7px 22px rgba(0,0,0,.28) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Regression compatibility 0.1.106: border-color: rgba(245,158,11,.78) !important; */
    /* 0.1.107: pięciostopniowa paleta statusu — zielony → żółty → bursztynowy → pomarańczowy → czerwony. */
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-normal {
        border-color: #15803d !important;
        background: linear-gradient(90deg, #15803d, #166534) !important;
        color: #f0fdf4 !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-combat {
        border-color: #eab308 !important;
        background: linear-gradient(90deg, #eab308, #ca8a04) !important;
        color: #1c1917 !important;
        box-shadow: 0 7px 24px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.10) !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-combat .rn-airspace-passive-dot {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
        background: #713f12 !important;
        box-shadow: 0 0 0 3px rgba(113,63,18,.16), 0 0 12px rgba(113,63,18,.24) !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-attention {
        border-color: #d97706 !important;
        background: linear-gradient(90deg, #d97706, #b45309) !important;
        color: #fff7ed !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-near {
        border-color: #ea580c !important;
        background: linear-gradient(90deg, #ea580c, #c2410c) !important;
        color: #fff7ed !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-passive-status.status-alert {
        border-color: #dc2626 !important;
        background: linear-gradient(90deg, #dc2626, #b91c1c) !important;
        color: #fff1f2 !important;
    }

    /* Rozwinięty komunikat również nie zostawia sztucznego miejsca po prawej. */
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-airspace-banner {
        left: 4px !important;
        right: 4px !important;
        width: auto !important;
        box-sizing: border-box;
    }
}

/* Radar Nieba 0.1.105 — mobile: jeszcze mniejsze Warstwy / Legenda. */
@media (max-width: 900px) {
    :root {
        --rn-mobile-map-tools-top-h: 34px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        width: min(176px, calc(100vw - 112px));
        height: var(--rn-mobile-map-tools-top-h);
        padding: 2px;
        gap: 2px;
        border-radius: 10px;
        box-shadow: 0 5px 16px rgba(0,0,0,.24);
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock button {
        height: 30px;
        min-height: 30px;
        gap: 3px;
        padding: 0 4px;
        border-radius: 8px;
        font-size: 8px;
        letter-spacing: .015em;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::before,
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::after,
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers i {
        left: 2px;
        width: 11px;
        height: 6px;
    }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::before { top: 1px; }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers i { top: 4px; }
    body.rn-mobile-ui.rn-bottom-tools-ready .rn-map-tools-icon-layers::after { top: 7px; }
}

@media (max-width: 390px) {
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        width: min(168px, calc(100vw - 96px));
    }
}

/* Radar Nieba 0.1.106 — mobile: jedno dyskretne menu narzędzi w prawym górnym rogu. */
#rnMapToolsDock .rn-mobile-map-tools-trigger,
#rnMobileMapToolsMenu {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --rn-mobile-map-tools-top-h: 36px;
    }

    /* Zamiast stale widocznych Warstw i Legendy pokazujemy jeden mały przycisk. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock {
        left: auto;
        right: 8px;
        top: var(--rn-mobile-map-tools-top, calc(8px + var(--rn-mobile-safe-top, 0px)));
        bottom: auto;
        width: 36px;
        height: 36px;
        min-height: 0;
        display: block;
        padding: 0;
        gap: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        box-shadow: none;
        transform: none;
        overflow: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Desktopowe kafelki pozostają w DOM dla wspólnej logiki, ale na mobile są niewidoczne. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock > [data-rn-map-tool] {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger {
        width: 36px;
        height: 36px;
        min-height: 36px;
        display: inline-grid !important;
        place-items: center;
        padding: 0;
        gap: 0;
        border: 1px solid rgba(148,163,184,.30);
        border-radius: 10px;
        background: rgba(8,15,27,.90);
        color: #a9c9e5;
        box-shadow: 0 5px 16px rgba(0,0,0,.24);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: .86;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger:hover,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger.is-active,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger.has-active-tool {
        border-color: rgba(96,165,250,.48);
        background: rgba(13,29,45,.96);
        color: #d9edff;
        opacity: 1;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers::before,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers::after,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers i {
        left: 2px;
        width: 14px;
        height: 7px;
    }
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers::before { top: 1px; }
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers i { top: 5px; }
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMapToolsDock .rn-mobile-map-tools-trigger .rn-map-tools-icon-layers::after { top: 9px; }

    /* Małe menu pojawia się dopiero po dotknięciu przycisku narzędzi. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu {
        position: absolute;
        z-index: 2;
        top: 44px;
        right: 0;
        width: 148px;
        box-sizing: border-box;
        padding: 4px;
        gap: 3px;
        border: 1px solid rgba(148,163,184,.24);
        border-radius: 12px;
        background: rgba(7,14,25,.97);
        box-shadow: 0 10px 28px rgba(0,0,0,.34);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu[hidden] {
        display: none !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu.is-open:not([hidden]) {
        display: grid !important;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu button {
        width: 100%;
        height: 36px;
        min-height: 36px;
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 9px;
        letter-spacing: .03em;
        color: #b7c7da;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu button.is-active {
        border-color: rgba(96,165,250,.34);
        background: rgba(37,99,235,.17);
        color: #f8fbff;
    }

    body.rn-mobile-ui.rn-bottom-tools-ready #rnMobileMapToolsMenu .rn-map-tools-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    /* Panele nadal otwierają się poniżej komunikatu i przycisku narzędzi. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendPanel {
        top: var(--rn-mobile-map-tools-panel-top, calc(8px + var(--rn-mobile-safe-top, 0px) + var(--rn-mobile-map-tools-top-h) + 8px)) !important;
    }
}

/* Radar Nieba 0.2.35 — mobile: stały pasek akcji obok logo. */
#rnMobileHeaderActions,
#rnMobileInfoBackdrop,
#rnMobileInfoPanel,
#rnMobileHeaderToast {
    display: none;
}

@media (max-width: 900px) {
    /* Stary pojedynczy trigger narzędzi pozostaje w kodzie jako fallback, ale nowy nagłówek przejmuje mobile. */
    body.rn-mobile-ui #rnMapToolsDock {
        display: none !important;
    }

    body.rn-mobile-ui .rn-mobile-brand {
        display: flex !important;
        width: min(188px, calc(100vw - 190px)) !important;
        min-width: 118px;
        height: 46px;
        box-sizing: border-box;
        top: calc(8px + var(--rn-mobile-safe-top, 0px)) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1320 !important;
    }

    body.rn-mobile-ui #rnMobileHeaderActions {
        position: fixed;
        z-index: 1335;
        top: calc(8px + var(--rn-mobile-safe-top, 0px));
        left: 8px;
        right: 8px;
        height: 46px;
        display: block;
        pointer-events: none;
    }

    body.rn-mobile-ui #rnMobileHeaderActions[hidden] {
        display: none !important;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(148,163,184,.30);
        border-radius: 10px;
        background: rgba(8,15,27,.92);
        color: #a9c9e5;
        box-shadow: 0 5px 16px rgba(0,0,0,.24);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        pointer-events: auto;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action:hover,
    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action.is-active,
    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action.is-on {
        border-color: rgba(96,165,250,.52);
        background: rgba(13,29,45,.97);
        color: #e7f5ff;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action:focus-visible {
        outline: 2px solid rgba(103,232,249,.95);
        outline-offset: 2px;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-action:disabled {
        opacity: .55;
        cursor: wait;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-actions-left {
        position: absolute;
        left: 0;
        top: 5px;
        display: flex;
        gap: 6px;
        pointer-events: none;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-actions-left > button {
        pointer-events: auto;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-actions-right {
        position: absolute;
        right: 0;
        top: 5px;
        display: flex;
        gap: 6px;
        pointer-events: none;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-actions-right > button {
        pointer-events: auto;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-location::before { width: 8px; left: 3.5px; top: 7.2px; }
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-location::after { height: 8px; left: 7.2px; top: 3.5px; }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers::before,
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers::after,
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers i {
        left: 2px;
        width: 14px;
        height: 7px;
    }
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers::before { top: 1px; }
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers i { top: 5px; }
    body.rn-mobile-ui #rnMobileHeaderActions .rn-map-tools-icon-layers::after { top: 9px; }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-push svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-push.is-on {
        border-color: rgba(34,197,94,.52);
        color: #bbf7d0;
        background: rgba(20,83,45,.72);
    }

    /* 0.2.202 — iOS: onboarding Push przeniesiony z dużej karty Komunikatów pod dzwonek. */
    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-push.needs-action {
        position: relative;
        border-color: rgba(251,191,36,.72);
        color: #fde68a;
        background: rgba(120,53,15,.64);
    }
    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-push.needs-action::after {
        content: '!';
        position: absolute;
        top: -5px;
        right: -5px;
        width: 15px;
        height: 15px;
        display: grid;
        place-items: center;
        border: 2px solid #07111d;
        border-radius: 50%;
        background: #f59e0b;
        color: #111827;
        font: 900 9px/1 Arial, sans-serif;
        box-shadow: 0 2px 7px rgba(0,0,0,.34);
    }
    body.rn-mobile-ui.rn-ios-push-compact-0202 #rnNewsPanel .rn-push-card,
    body.rn-mobile-ui.rn-ios-push-compact-0202 #rnRightDock .rn-push-card {
        display: none !important;
    }

    body.rn-mobile-ui #rnMobileHeaderActions .rn-mobile-header-info {
        font: 900 17px/1 Arial, sans-serif;
    }

    /* 0.2.122: Komunikaty mają własny kompaktowy status powiadomień i krótką stopkę informacyjną. */
    body.rn-mobile-ui #rnNewsPanel .rn-push-card,
    body.rn-mobile-ui #rnRightDock .rn-push-card { display: block !important; }
    body.rn-mobile-ui #rnNewsPanel .rn-news-unofficial-note,
    body.rn-mobile-ui #rnRightDock .rn-news-unofficial-note { display: grid !important; }

    /* Badge stylu mapy jest potrzebny na desktopie; na mobile jego rolę pełni bezpośredni przycisk Warstwy. */
    body.rn-mobile-ui .rn-map-theme-badge {
        display: none !important;
    }

    /* Panel Warstw otwiera się pod górnym rzędem; przy aktywnym statusie JS nadal ustawia niższą pozycję. */
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLayersPanel,
    body.rn-mobile-ui.rn-bottom-tools-ready #rnLegendPanel {
        top: var(--rn-mobile-map-tools-panel-top, calc(62px + var(--rn-mobile-safe-top, 0px))) !important;
    }

    body.rn-mobile-ui #rnMobileInfoBackdrop {
        position: fixed;
        z-index: 1450;
        inset: 0;
        display: block;
        background: rgba(2,8,15,.52);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .16s ease;
    }

    body.rn-mobile-ui #rnMobileInfoBackdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

    body.rn-mobile-ui #rnMobileInfoPanel {
        position: fixed;
        z-index: 1460;
        top: calc(62px + var(--rn-mobile-safe-top, 0px));
        left: 10px;
        right: 10px;
        display: block;
        max-height: calc(100dvh - 62px - var(--rn-mobile-safe-top, 0px) - var(--rn-mobile-safe-bottom, 0px) - 14px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 13px 14px 14px;
        border: 1px solid rgba(96,165,250,.28);
        border-radius: 14px;
        background: rgba(7,17,29,.985);
        box-shadow: 0 18px 50px rgba(0,0,0,.42);
        color: #dbeafe;
    }

    body.rn-mobile-ui #rnMobileInfoPanel[hidden] {
        display: none !important;
    }

    body.rn-mobile-ui .rn-mobile-info-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    body.rn-mobile-ui .rn-mobile-info-head > div {
        display: grid;
        gap: 3px;
    }

    body.rn-mobile-ui .rn-mobile-info-kicker {
        color: #60a5fa;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .10em;
    }

    body.rn-mobile-ui .rn-mobile-info-head strong {
        color: #f8fafc;
        font-size: 13px;
    }

    body.rn-mobile-ui .rn-mobile-info-head button {
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
        padding: 0;
        border: 1px solid rgba(148,163,184,.25);
        border-radius: 9px;
        background: rgba(255,255,255,.04);
        color: #cbd5e1;
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
    }

    body.rn-mobile-ui #rnMobileInfoPanel p {
        margin: 10px 0 9px;
        color: #a8bac9;
        font-size: 11px;
        line-height: 1.45;
    }

    body.rn-mobile-ui #rnMobileInfoPanel > a {
        color: #7dd3fc;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }

    /* 0.2.52: legenda jest częścią panelu informacji na mobile. */
    body.rn-mobile-ui .rn-mobile-info-legend-mount {
        margin-top: 13px;
        padding-top: 12px;
        border-top: 1px solid rgba(148,163,184,.16);
    }

    body.rn-mobile-ui .rn-mobile-info-legend {
        display: grid;
        gap: 12px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend-head strong {
        color: #f8fafc;
        font-size: 12px;
        font-weight: 900;
    }

    body.rn-mobile-ui .rn-mobile-info-legend-head span {
        padding: 3px 7px;
        border: 1px solid rgba(96,165,250,.24);
        border-radius: 999px;
        background: rgba(30,64,175,.12);
        color: #93c5fd;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    body.rn-mobile-ui .rn-mobile-info-legend-section {
        padding: 9px 10px;
        border: 1px solid rgba(148,163,184,.12);
        border-radius: 12px;
        background: rgba(15,23,42,.48);
    }

    body.rn-mobile-ui .rn-mobile-info-legend-title {
        margin: 0 0 5px;
        color: #8da9c0;
        font-size: 8.5px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 2px 6px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-item {
        min-height: 32px;
        gap: 6px;
        padding: 2px 0;
        font-size: 8.9px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-symbol {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-aircraft-symbol svg {
        width: 21px;
        height: 21px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-threat-symbol > .rn-tactical-threat-marker,
    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-threat-symbol .rn-tactical-threat-marker,
    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-threat-symbol > .rn-neptun-marker,
    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-threat-symbol .rn-neptun-marker {
        transform-origin: center !important;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-area,
    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-uncertainty {
        width: 22px;
        height: 15px;
        flex-basis: 22px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-border-line {
        width: 22px;
        flex-basis: 22px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-note,
    body.rn-mobile-ui .rn-mobile-info-legend .rn-legend-empty {
        font-size: 8.3px;
    }

    body.rn-mobile-ui .rn-mobile-info-legend-loading {
        color: #8da9c0;
        font-size: 9px;
    }

    body.rn-mobile-ui #rnMobileHeaderToast {
        position: fixed;
        z-index: 1475;
        left: 12px;
        right: 12px;
        bottom: calc(var(--rn-mobile-bar-h, 58px) + var(--rn-mobile-safe-bottom, 0px) + 14px);
        display: block;
        padding: 10px 12px;
        border: 1px solid rgba(96,165,250,.28);
        border-radius: 12px;
        background: rgba(7,17,29,.97);
        color: #dbeafe;
        box-shadow: 0 10px 30px rgba(0,0,0,.34);
        font-size: 10.5px;
        line-height: 1.4;
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        transition: opacity .16s ease, transform .16s ease;
    }

    body.rn-mobile-ui #rnMobileHeaderToast.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    body.rn-mobile-ui #rnMobileHeaderToast.is-error {
        border-color: rgba(248,113,113,.38);
        color: #fecaca;
    }

    body.rn-mobile-ui #rnMobileHeaderToast.is-ok {
        border-color: rgba(74,222,128,.34);
        color: #bbf7d0;
    }

    body.rn-mobile-ui #rnMobileHeaderToast.is-guide {
        border-color: rgba(251,191,36,.44);
        background: rgba(26,20,8,.98);
        color: #fef3c7;
        font-size: 11px;
        font-weight: 700;
    }
}

/* Radar Nieba 0.2.157 — laptop-safe Historia 12 h.
   Wyłącznie CSS: brak zmian replayu, danych, requestów i timerów. */
@media (min-width: 901px) and (max-width: 1600px) {
    body.rn-bottom-tools-ready .rn-history-desktop-timeline:not(.is-mobile-history) {
        left: calc(50% - 20px) !important;
        right: auto !important;
        width: min(1120px, calc(100vw - 744px)) !important;
        max-width: calc(100vw - 744px) !important;
        min-width: 0 !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) {
        padding: 8px 10px 7px !important;
        border-radius: 13px !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-head {
        grid-template-columns: minmax(0,1fr) auto !important;
        gap: 7px !important;
        margin-bottom: 7px !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-selected {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding: 4px 7px !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-head-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-share {
        display: none !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-replay-primary {
        grid-template-columns: minmax(54px,1fr) minmax(86px,1.35fr) minmax(54px,1fr) !important;
        width: min(100%, 330px) !important;
        margin: 0 auto !important;
        gap: 6px !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-replay-primary button {
        height: 36px !important;
        min-width: 0 !important;
        padding: 0 6px !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-scale {
        height: 44px !important;
        margin-left: 3px !important;
        margin-right: 3px !important;
    }
}

@media (min-width: 901px) and (max-width: 1250px) {
    body.rn-bottom-tools-ready .rn-history-desktop-timeline:not(.is-mobile-history) {
        width: min(100%, calc(100vw - 600px)) !important;
        max-width: calc(100vw - 600px) !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-open {
        min-width: 0 !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-open strong {
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-kicker {
        display: none !important;
    }

    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-timeline-tick:nth-child(even) {
        display: none !important;
    }
}


/* Radar Nieba 0.2.161 — Moja lokalizacja jest funkcją desktopową.
 * Na mobile nie renderujemy jej ani w docku, ani w nagłówku. Reguła nie czeka
 * na klasę rn-bottom-tools-ready, więc przycisk nie może mignąć podczas bootu. */
@media (max-width: 900px) {
    #rnMapToolsDock [data-rn-user-location],
    #rnMobileHeaderActions [data-rn-user-location],
    body.rn-mobile-ui #rnMapToolsDock [data-rn-user-location],
    body.rn-mobile-ui #rnMobileHeaderActions [data-rn-user-location] {
        display: none !important;
    }
}

/* Radar Nieba 0.2.185 — Historia 12 h: wycentrowane sterowanie replayem na desktopie.
 * Wyłącznie layout CSS; bez zmian logiki, timerów, requestów ani zachowania replayu. */
@media (min-width: 901px) {
    body.rn-bottom-tools-ready .rn-history-desktop-timeline.is-simple-history-ui:not(.is-mobile-history) .rn-history-desktop-replay-controls .rn-history-replay-primary {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 0.2.374: wspólny przycisk GPS na mapie mobilnej, poza górnym paskiem. */
#rnMobileLocationFab { display: none; }
@media (max-width: 900px) {
    body.rn-mobile-ui #rnMobileLocationFab:not([hidden]) {
        position: fixed;
        display: grid;
        place-items: center;
        right: 13px;
        bottom: calc(var(--rn-mobile-bar-h, 58px) + var(--rn-mobile-safe-bottom, 0px) + 18px);
        width: 46px;
        height: 46px;
        padding: 0;
        z-index: 1190;
        border: 1px solid rgba(125, 211, 252, .52);
        border-radius: 13px;
        color: #e4f6ff;
        background: rgba(7, 22, 37, .94);
        box-shadow: 0 6px 24px rgba(0, 0, 0, .37);
        backdrop-filter: blur(8px);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.rn-mobile-ui #rnMobileLocationFab svg {
        width: 25px;
        height: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    body.rn-mobile-ui #rnMobileLocationFab.is-location-set {
        color: #67e8f9;
        border-color: rgba(103, 232, 249, .72);
    }
    body.rn-mobile-ui #rnMobileLocationFab:disabled { opacity: .55; cursor: wait; }
    body.rn-mobile-ui #rnMobileLocationFab.is-busy svg { animation: rn-location-spin .8s linear infinite; }
    /* Przy pracy z panelami przycisk nie może zasłaniać treści ani suwaka historii. */
    body.rn-mobile-ui:has(#rnLeftDock:not(.closed)) #rnMobileLocationFab,
    body.rn-mobile-ui:has(#rnRightDock:not(.closed)) #rnMobileLocationFab,
    body.rn-mobile-ui:has(.rn-airspace-history:not(.hidden)) #rnMobileLocationFab,
    body.rn-mobile-ui:has(.rn-history-desktop-timeline:not(.hidden)) #rnMobileLocationFab,
    body.rn-mobile-ui.rn-mobile-info-open #rnMobileLocationFab {
        display: none !important;
    }
}
