/* Opaque, edge-to-edge mobile chrome; keep content and notch gutters separate. */
@media (max-width: 1199px) {
    html:has(.iv-workspace),
    html body:has(.iv-workspace),
    html body:has(.iv-workspace) #app {
        width: 100%;
        min-width: 0;
        margin: 0;
        background: var(--iv-design-canvas);
    }

    html .iv-workspace {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    html .iv-mobile-topbar,
    html .iv-mobile-tabbar {
        background: var(--iv-design-surface);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    html.dark .iv-mobile-topbar,
    html.dark .iv-mobile-tabbar {
        background: var(--iv-design-canvas);
    }

    html .iv-mobile-topbar {
        padding-left: max(var(--iv-page-pad), env(safe-area-inset-left, 0px));
        padding-right: max(var(--iv-page-pad), env(safe-area-inset-right, 0px));
    }

    html .iv-mobile-tabbar {
        padding-left: max(4px, env(safe-area-inset-left, 0px));
        padding-right: max(4px, env(safe-area-inset-right, 0px));
    }

    html .iv-workspace .iv-main {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }
}
