/* mobile.css */

@media screen and (max-width: 768px) {
    #sidebar {
        width: 220px;
    }
}

@media screen and (max-width: 412px) {
    #app-shell {
        overflow: hidden;
        position: relative;
    }

    #sidebar.closed {
        position: absolute;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 0;
        z-index: 9999;
        transition: left 0.25s ease;
    }

    #sidebar.opened {
        width: 100vw;
        min-width: 256px;
        left: 0;
    }

    #sidebar-hamburger {
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: var(--c4);
        border: 1px solid var(--border-dim);
        border-radius: 6px;
        color: var(--text-dim);
        cursor: pointer;
    }

    #sidebar-hamburger svg {
        width: 16px;
        height: 16px;
    }

    #app-shell > :not(#sidebar):not(#sidebar-hamburger) {
        width: 100% !important;
        flex: 1;
    }
}