.burger {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2001;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.panel-overlay.show {
    display: block;
}

@media (max-width: 1024px) {
    .panel {
        width: 340px;
        min-width: 340px;
    }

    .stat .val {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .burger {
        display: flex;
    }

    .app {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        min-width: 320px;
        height: 100vh;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        border-right: 1px solid var(--border);
    }

    .panel.open {
        transform: translateX(0);
    }

    .map-wrap {
        width: 100%;
        height: 100vh;
    }

    .panel-head {
        padding: 60px 16px 14px;
    }

    .panel-body {
        padding: 12px 16px 16px;
    }

    .brand {
        margin-bottom: 12px;
    }

    .welcome {
        padding: 20px;
        padding-top: 80px;
        justify-content: flex-start;
    }

    .map-tag {
        top: 14px;
        left: 62px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    .panel {
        width: 100%;
        min-width: 100%;
    }

    .map-tag {
        left: 62px;
        right: 14px;
    }

    .map-tag .val {
        font-size: 12px;
    }

    .stat .val {
        font-size: 18px;
    }

    .coord-cell .val {
        font-size: 11px;
    }

    .log {
        max-height: 120px;
        font-size: 10px;
    }
}
