body {
    overflow: hidden;
}

#main-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}

#map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/*#region MAPBOX POPUP OVERRIDE */

.mapboxgl-popup {
    display: none !important;
}

/*#endregion*/

/*#region ALERT MARKER */

@keyframes markerPulse {
    0%   { transform: scale(1);   opacity: 0.65; }
    100% { transform: scale(2.4); opacity: 0; }
}

.alert-marker {
    width: 2vh;
    height: 2vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    border: 0.2vh solid transparent;
    padding: 0.75vh;
    overflow: visible;
    transition: border-color var(--transition-fast), border-width var(--transition-fast), transform var(--transition-fast);
}

.alert-marker::after {
    content: '';
    position: absolute;
    inset: -0.15vh;
    border-radius: 50%;
    border: 0.15vh solid rgba(255, 255, 255, 0.5);
    animation: markerPulse 0.6s ease-out;
    pointer-events: none;
}

.alert-marker:hover {
    transform: scale(1.15);
    cursor: pointer;
}

.alert-marker:hover::after {
    animation: none;
    opacity: 0;
}

.alert-marker span {
    font-size: 2vh;
    color: var(--white);
}

.alert-mini-marker {
    width: 0.4vh;
    height: 0.4vh;
    border-radius: 50%;
    background-color: var(--white);
}

/*#endregion*/

/*#region LEFT PANEL */

#left-panel {
    width: 35vh;
    position: absolute;
    left: 1.5vh;
    top: 1.5vh;
    bottom: 1.5vh;
    display: flex;
    flex-direction: column;
    background-color: var(--dark);
    backdrop-filter: blur(12px);
    border: 0.05vh solid var(--thin-border);
    border-radius: 1vh;
    overflow: hidden;
    z-index: 1;
}

#left-panel.left-panel--collapsed {
    max-height: 6.5vh;
}

#left-panel-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#left-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 2vh;
    padding: 1.5vh;
    flex-shrink: 0;
    border-bottom: 0.05vh solid var(--thin-border);
    cursor: pointer;
    user-select: none;
}

#project-title {
    font-size: 2vh;
    font-weight: normal;
    color: var(--white);
    letter-spacing: 0.1vh;
    white-space: nowrap;
    pointer-events: none;
}

#left-panel-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/*#endregion*/

/*#region NEWS FEED */

#news-feed-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#news-feed-search-bar-container {
    display: flex;
    column-gap: 0.5vh;
    padding: 1.25vh 1.5vh 1.25vh 1.5vh;
    flex-shrink: 0;
}

#news-feed-search-bar {
    width: 0;
    flex: auto;
}

#news-feed-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.news-feed-item {
    display: flex;
    align-items: center;
    padding: 0.9vh 1.25vh;
    column-gap: 1vh;
    cursor: pointer;
    border-bottom: 0.05vh solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.news-feed-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.news-feed-item.selected {
    background-color: rgba(255, 255, 255, 0.09);
}

.news-feed-item-icon {
    font-size: 1.8vh;
    flex-shrink: 0;
    color: var(--white);
    opacity: 0.75;
}

.news-feed-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    row-gap: 0.25vh;
}

.news-feed-item-meta {
    font-size: 1.2vh;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-feed-item-time {
    font-size: 1.0vh;
    color: var(--white);
    opacity: 0.4;
}

.news-feed-item-level {
    width: 0.35vh;
    height: 2.5vh;
    border-radius: 1vh;
    flex-shrink: 0;
    opacity: 0.75;
}

/*#endregion*/

/*#region GLOBAL STATS */

#global-stats-container {
    position: absolute;
    top: calc(1.5vh + 4vh + 0.75vh);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    column-gap: 1.5vh;
    z-index: 1;
}

.global-stats-subcontainer {
    display: flex;
    align-items: center;
    column-gap: 1.5vh;
}

#global-stats-numbers-container {
    display: flex;
    column-gap: 1.5vh;
    padding-left: 1.5vh;
    border-left: 0.05vh solid rgba(255, 255, 255, 0.2);
}

.global-stats-item {
    display: flex;
    column-gap: 0.75vh;
    align-items: center;
}

.global-stats-item-dot {
    width: 0.75vh;
    height: 0.75vh;
    background-color: #474747;
    border-radius: 50%;
    flex-shrink: 0;
}

.global-stats-item-text {
    font-size: 1.2vh;
    font-weight: normal;
    color: var(--white);
    letter-spacing: 0.04vh;
    text-shadow: 0 0.1vh 0.6vh rgba(0, 0, 0, 0.9);
}

/*#endregion*/

/*#region ALERT DETAIL */

@keyframes alertDetailIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#alert-detail-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: alertDetailIn 0.2s ease-out both;
}

#alert-popup {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#alert-popup-top-container {
    display: flex;
    align-items: center;
    column-gap: 1.25vh;
    padding: 1.25vh 1.5vh;
    border-bottom: 0.05vh solid var(--thin-border);
}

#alert-popup-icon {
    font-size: 2.25vh;
    color: var(--white);
    opacity: 0.6;
    flex-shrink: 0;
}

#alert-popup-id {
    flex: auto;
    color: var(--white);
    font-size: 1.4vh;
    font-weight: 700;
    letter-spacing: 0.1vh;
}

#alert-popup-close-button {
    width: 3vh;
    height: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5vh;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition-fast);
}

#alert-popup-close-button span {
    font-size: 2vh;
    color: var(--white);
    opacity: 0.45;
    transition: opacity var(--transition-fast);
}

#alert-popup-close-button:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

#alert-popup-close-button:hover span {
    opacity: 1;
}

#alert-popup-event-map {
    width: 100%;
    height: 16vh;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 0.05vh solid var(--thin-border);
}

#alert-popup-event-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

#alert-popup-infos-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 1.5vh;
    overflow-y: auto;
}

.alert-popup-infos-subcontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8vh 0;
    border-bottom: 0.05vh solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.alert-popup-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    row-gap: 0.75vh;
    padding: 1.25vh 0 1.5vh 0;
    border-top: 0.05vh solid var(--thin-border);
    margin-top: 0.25vh;
}

#alert-popup-level-dot {
    width: 0.9vh;
    height: 0.9vh;
    background-color: #474747;
    border-radius: 50%;
    flex-shrink: 0;
}

.alert-popup-info-title {
    font-size: 1.05vh;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1vh;
    color: var(--white);
    opacity: 0.4;
}

.alert-popup-info-text {
    font-size: 1.3vh;
    font-weight: 500;
    color: var(--white);
}

.alert-popup-info-long-text {
    font-size: 1.25vh;
    font-weight: normal;
    color: var(--white);
    opacity: 0.7;
    line-height: 1.85vh;
}

.alert-popup-info-text--right {
    text-align: right;
    max-width: 22vh;
}

.alert-popup-score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 0.35vh;
    min-width: 8vh;
}

.alert-popup-score-track {
    width: 8vh;
    height: 0.2vh;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1vh;
    overflow: hidden;
}

.alert-popup-score-fill {
    height: 100%;
    border-radius: 1vh;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.alert-popup-source-link {
    font-size: 1.1vh;
    font-weight: 500;
    color: var(--white);
    opacity: 0.45;
    text-decoration: none;
    letter-spacing: 0.04vh;
    transition: opacity var(--transition-fast);
    align-self: flex-start;
    margin-top: 0.25vh;
    display: flex;
    align-items: center;
    column-gap: 0.3vh;
}

.alert-popup-source-link .material-symbols-rounded {
    font-size: 1.3vh;
}

.alert-popup-source-link:hover {
    opacity: 0.9;
}

/*#endregion*/

/*#region POPUP TEMPORAL DETAILS */

.alert-popup-date-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 0.2vh;
}

.alert-popup-info-age {
    font-size: 1.0vh;
    font-weight: 500;
    color: var(--white);
    opacity: 0.4;
}

#alert-popup-lifetime-container {
    padding: 0.75vh 0 0.6vh 0;
    border-bottom: 0.05vh solid rgba(255, 255, 255, 0.05);
}

#alert-popup-lifetime-track {
    width: 100%;
    height: 0.2vh;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1vh;
    overflow: hidden;
    margin-bottom: 0.45vh;
}

#alert-popup-lifetime-fill {
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 1vh;
    transition: width 0.5s ease;
}

#alert-popup-lifetime-meta {
    display: flex;
    justify-content: space-between;
}

/*#endregion*/

/*#region TIMELINE */

#top-bar {
    position: absolute;
    top: 1.5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1vh;
}

#top-bar-project-name {
    font-size: 3vh;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5vh;
    opacity: 1;
}

#top-bar-row {
    position: relative;
}

#timeline-range-container {
    height: 4vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    column-gap: 0.5vh;
    background-color: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(12px);
    border: 0.05vh solid var(--thin-border);
    border-radius: 1vh;
    padding: 0.5vh;
}

.timeline-range-btn {
    font-size: 1.4vh;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    opacity: 0.4;
    letter-spacing: 0.12vh;
    padding: 0.75vh 1.5vh;
    border-radius: 0.65vh;
    cursor: pointer;
    transition: opacity var(--transition-fast), background-color var(--transition-fast);
    user-select: none;
}

.timeline-range-btn:hover {
    opacity: 0.75;
}

.timeline-range-btn.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.14);
}

#timeline-container {
    position: absolute;
    bottom: 1.5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vh;
    z-index: 1;
}

#timeline-inner {
    display: flex;
    flex-direction: column;
    row-gap: 0.6vh;
}

#timeline-time-labels {
    display: flex;
    justify-content: space-between;
}

#timeline-time-labels span {
    font-size: 1.0vh;
    font-weight: 600;
    color: var(--white);
    opacity: 0.55;
    letter-spacing: 0.04vh;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 1), 0 0 12px rgba(0, 0, 0, 0.8);
}

#timeline-track-wrapper {
    position: relative;
    height: 3.5vh;
    display: flex;
    align-items: center;
}

#timeline-track {
    position: relative;
    width: 100%;
    height: 0.3vh;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 1vh;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

#timeline-dots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.timeline-dot {
    position: absolute;
    width: 1.2vh;
    height: 1.2vh;
    border-radius: 50%;
    background-color: var(--dot-color, white);
    box-shadow: 0 0 3px var(--dot-color, white);
    opacity: 0.5;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    z-index: 1;
}

.timeline-dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 5px var(--dot-color, white);
    opacity: 1;
}

.timeline-dot.selected {
    transform: translate(-50%, -50%) scale(1.7);
    box-shadow: 0 0 6px var(--dot-color, white);
    opacity: 1;
    z-index: 2;
}

#timeline-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.75vh);
    transform: translateX(-50%);
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    border: 0.05vh solid var(--thin-border);
    border-radius: 0.65vh;
    padding: 0.65vh 0.9vh;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.timeline-tooltip-icon-row {
    display: flex;
    align-items: center;
    column-gap: 0.5vh;
}

.timeline-tooltip-icon {
    font-size: 1.5vh;
    flex-shrink: 0;
}

.timeline-tooltip-type {
    font-size: 1.1vh;
    font-weight: 600;
    color: var(--white);
}

.timeline-tooltip-level {
    font-size: 0.95vh;
    font-weight: 500;
    opacity: 0.75;
    margin-left: 0.25vh;
}

.timeline-tooltip-time {
    font-size: 0.95vh;
    color: var(--white);
    opacity: 0.45;
    margin-top: 0.2vh;
}

/*#region NOTIFICATIONS */

#notif-btn {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 1.5vh;
    width: 4vh;
    height: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 0.05vh solid var(--thin-border);
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

#notif-btn:hover {
    background: var(--light);
    border-color: rgba(255,255,255,0.35);
}

#notif-btn.active {
    border-color: rgba(255, 200, 0, 0.4);
}

#notif-btn-icon {
    font-size: 2vh;
    color: var(--white);
    opacity: 0.65;
    transition: opacity var(--transition-fast);
}

#notif-btn:hover #notif-btn-icon {
    opacity: 1;
}

#notif-btn.active #notif-btn-icon {
    color: #ffcc00;
    opacity: 1;
}

#notif-panel {
    position: fixed;
    top: calc(1.5vh + 4vh + 0.75vh);
    left: 50%;
    transform: translateX(0);
    z-index: 200;
    width: 28vh;
    max-height: calc(100vh - 8vh);
    overflow-y: auto;
    background-color: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(12px);
    border: 0.15vh solid rgba(255,255,255,0.08);
    border-radius: 1.2vh;
    flex-direction: column;
    gap: 0;
}

#notif-panel-header {
    display: flex;
    align-items: center;
    gap: 0.7vh;
    padding: 1.2vh 1.4vh;
    font-size: 1.1vh;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    border-bottom: 0.1vh solid rgba(255,255,255,0.07);
}

#notif-panel-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    display: flex;
    align-items: center;
}

#notif-panel-close:hover { opacity: 1; }
#notif-panel-close .material-symbols-rounded { font-size: 1.4vh; }

#notif-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
    padding: 1.2vh 1.4vh 1.4vh;
}

.notif-section-label {
    font-size: 0.95vh;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.6vh;
}

/* Position buttons */
#notif-position-row {
    display: flex;
    gap: 0.6vh;
}

.notif-position-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4vh;
    padding: 0.7vh 0.5vh;
    background: rgba(255,255,255,0.05);
    border: 0.15vh solid rgba(255,255,255,0.08);
    border-radius: 0.8vh;
    color: rgba(255,255,255,0.45);
    font-size: 1vh;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.notif-position-btn .material-symbols-rounded { font-size: 1.3vh; }

.notif-position-btn.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

/* Manual coord inputs */
#notif-manual-coords {
    flex-direction: column;
    gap: 0.5vh;
}

.notif-coord-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 0.15vh solid rgba(255,255,255,0.1);
    border-radius: 0.6vh;
    color: rgba(255,255,255,0.85);
    font-size: 1.05vh;
    padding: 0.55vh 0.7vh;
    box-sizing: border-box;
    outline: none;
}

.notif-coord-input:focus {
    border-color: rgba(255,255,255,0.25);
}

/* Radius slider */
#notif-radius-slider {
    width: 100%;
    accent-color: rgba(255,255,255,0.6);
    cursor: pointer;
    margin: 0.2vh 0;
}

#notif-radius-hints {
    display: flex;
    justify-content: space-between;
    font-size: 0.85vh;
    color: rgba(255,255,255,0.25);
    margin-top: -0.3vh;
}

/* Type chips */
#notif-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5vh;
}

.notif-type-chip {
    display: flex;
    align-items: center;
    gap: 0.4vh;
    padding: 0.55vh 0.7vh;
    background: rgba(255,255,255,0.04);
    border: 0.15vh solid rgba(255,255,255,0.07);
    border-radius: 0.7vh;
    font-size: 1vh;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    user-select: none;
}

.notif-type-chip input { display: none; }
.notif-type-chip .material-symbols-rounded { font-size: 1.3vh; }

.notif-type-chip.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
}

/* Level buttons */
#notif-level-row {
    display: flex;
    gap: 0.5vh;
}

.notif-level-btn {
    flex: 1;
    padding: 0.6vh 0.4vh;
    background: rgba(255,255,255,0.04);
    border: 0.15vh solid rgba(255,255,255,0.07);
    border-radius: 0.7vh;
    color: rgba(255,255,255,0.35);
    font-size: 1vh;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.notif-level-btn.active {
    background: var(--level-color);
    border-color: transparent;
    color: rgba(0,0,0,0.75);
    font-weight: 600;
}

/* Enable / Disable buttons */
#notif-enable-btn,
#notif-disable-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vh;
    width: 100%;
    padding: 0.85vh;
    border-radius: 0.9vh;
    font-size: 1.05vh;
    cursor: pointer;
    transition: opacity 0.12s;
    margin-top: 0.4vh;
}

#notif-enable-btn {
    background: rgba(255,200,0,0.12);
    border: 0.15vh solid rgba(255,200,0,0.35);
    color: #ffcc00;
}

#notif-enable-btn:hover { opacity: 0.8; }
#notif-enable-btn:disabled { opacity: 0.4; cursor: default; }

#notif-disable-btn {
    background: rgba(255,255,255,0.05);
    border: 0.15vh solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

#notif-disable-btn:hover { opacity: 0.8; }

#notif-enable-btn .material-symbols-rounded,
#notif-disable-btn .material-symbols-rounded {
    font-size: 1.3vh;
}

.notif-hint {
    font-size: 0.9vh;
    color: rgba(255,255,255,0.35);
    min-height: 1.2vh;
}

/*#endregion*/

/*#endregion*/

@media screen and (max-width: 768px) {

    /* ── Left panel → bottom sheet ── */

    #left-panel {
        width: 100%;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        max-height: 55vh;
        border-radius: 1.5vh 1.5vh 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transition: max-height 0.3s ease;
    }

    #left-panel.left-panel--collapsed {
        max-height: 6.5vh;
    }

    #left-panel-header {
        padding: 1.5vh 3vh;
    }

    #project-title {
        font-size: 2vh;
    }

    /* ── News feed — touch targets ── */

    .news-feed-item {
        padding: 2vh 3vh;
        column-gap: 1.75vh;
    }

    .news-feed-item-icon {
        font-size: 2.5vh;
    }

    .news-feed-item-meta {
        font-size: 1.75vh;
    }

    .news-feed-item-time {
        font-size: 1.4vh;
    }

    .news-feed-item-level {
        width: 0.5vh;
        height: 3vh;
    }

    /* ── Alert popup ── */

    #alert-popup-top-container {
        padding: 1.75vh 2.5vh;
    }

    #alert-popup-icon {
        font-size: 3vh;
    }

    #alert-popup-id {
        font-size: 1.75vh;
    }

    #alert-popup-close-button {
        width: 4.5vh;
        height: 4.5vh;
    }

    #alert-popup-close-button span {
        font-size: 2.5vh;
    }

    #alert-popup-infos-container {
        padding: 0 2.5vh;
    }

    .alert-popup-infos-subcontainer {
        padding: 1.2vh 0;
    }

    .alert-popup-info-title {
        font-size: 1.3vh;
    }

    .alert-popup-info-text {
        font-size: 1.6vh;
    }

    .alert-popup-info-long-text {
        font-size: 1.5vh;
        line-height: 2.25vh;
    }

    .alert-popup-info-age {
        font-size: 1.3vh;
    }

    .alert-popup-source-link {
        font-size: 1.4vh;
    }

    /* ── Timeline (hidden on mobile) ── */

    #timeline-container {
        display: none;
    }

    #timeline-range-container {
        height: 5vh;
    }

    .timeline-range-btn {
        font-size: 1.75vh;
        padding: 1vh 2vh;
    }

    /* Notif button → left of range buttons via flex row-reverse */
    #notif-btn {
        margin-left: 0;
        left: -10vh;
        width: 5vh;
        height: 5vh;
    }

    #notif-btn-icon {
        font-size: 2.5vh;
    }

    /* ── Global stats — more spacing below top bar ── */

    #global-stats-container {
        top: calc(1.5vh + 5vh + 2vh);
    }

    .global-stats-item-text {
        font-size: 1.5vh;
    }

    .global-stats-item-dot {
        width: 1vh;
        height: 1vh;
    }

    /* ── Alert markers ── */

    .alert-marker {
        width: 2.5vh;
        height: 2.5vh;
        padding: 1vh;
    }

    .alert-marker span {
        font-size: 2.5vh;
    }

    /* ── Notification panel ── */

    #notif-panel {
        width: 85vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-height: 75vh;
    }

    #notif-panel-header {
        padding: 2vh 2.5vh;
        font-size: 1.5vh;
    }

    #notif-panel-close .material-symbols-rounded {
        font-size: 2vh;
    }

    #notif-panel-body {
        padding: 1.5vh 2.5vh 2vh;
        gap: 1.25vh;
    }

    .notif-section-label {
        font-size: 1.3vh;
        margin-top: 0.8vh;
    }

    .notif-position-btn {
        padding: 1.25vh 1vh;
        font-size: 1.5vh;
    }

    .notif-position-btn .material-symbols-rounded {
        font-size: 1.75vh;
    }

    .notif-coord-input {
        font-size: 1.5vh;
        padding: 1vh 1.25vh;
    }

    .notif-type-chip {
        padding: 1vh 1.25vh;
        font-size: 1.4vh;
        gap: 0.75vh;
    }

    .notif-type-chip .material-symbols-rounded {
        font-size: 1.75vh;
    }

    .notif-level-btn {
        padding: 1vh 0.75vh;
        font-size: 1.4vh;
    }

    #notif-enable-btn,
    #notif-disable-btn {
        padding: 1.25vh;
        font-size: 1.5vh;
    }

    #notif-enable-btn .material-symbols-rounded,
    #notif-disable-btn .material-symbols-rounded {
        font-size: 1.75vh;
    }

    .notif-hint {
        font-size: 1.25vh;
    }

    #notif-radius-hints {
        font-size: 1.2vh;
    }
}
