.mobile-tabs { display: none; }

@media screen and (max-width: 767px) {
    .app-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
    }
    .app-stage { grid-row: 1; height: 100%; }
    .mobile-tabs {
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 3px env(safe-area-inset-right) calc(3px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 45;
    }
    .mobile-tabs > :is(a,button) {
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 3px;
        min-width: 0;
        min-height: 46px;
        padding: 2px 0;
        color: var(--text-2);
        background: transparent;
        border: 0;
        border-radius: var(--radius-sm);
        text-decoration: none;
        font: inherit;
        font-size: 11px;
        line-height: 1.15;
    }
    .mobile-tabs [data-icon], .mobile-tabs svg { width: 18px; height: 18px; }
    .mobile-tabs [aria-current="page"] { color: var(--accent); background: var(--surface-2); font-weight: 700; }
    .app-nav { overflow-y: auto; }
}

@media screen and (min-width: 701px) and (max-width: 767px) {
    .app-nav {
        position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 100;
        transform: translateX(-102%);
    }
    .app-nav.is-open { transform: none; }
    .app-nav .brand-copy, .app-nav .nav-item > span:nth-child(2),
    .app-nav .source-status > span:last-child { display: grid; }
    .app-nav .nav-item { grid-template-columns: 22px 1fr; justify-items: start; padding-inline: 12px; }
    .app-nav .nav-close { display: inline-grid; position: absolute; top: 16px; right: 12px; }
    .nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 90; background: #080c1266; border: 0; }
}
