/* Mobile service navigation owns its surfaces independently of action buttons. */
@media (max-width: 920px) {
    body.mobile-launcher-mode .topbar,
    body.mobile-launcher-mode.mobile-launcher-home .topbar {
        min-height: 60px;
        height: auto;
        gap: 8px;
        padding: max(8px, env(safe-area-inset-top)) 12px 8px;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
    }

    body.mobile-launcher-mode.mobile-launcher-home .topbar { position: fixed; inset: 0 0 auto; width: 100%; margin: 0; }
    body.mobile-launcher-mode .launcher-brand { display: flex; gap: 8px; }
    body.mobile-launcher-mode .page-title,
    body.mobile-launcher-mode .global-search,
    body.mobile-launcher-mode.mobile-launcher-home #appView { display: none; }
    body.mobile-launcher-mode #appView { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    body.mobile-launcher-mode #mobileShellNav:not([hidden]) { display: grid; }
    body.mobile-launcher-mode .launcher-brand img { width: 30px; height: 30px; }
    body.mobile-launcher-mode .launcher-brand span { color: var(--text); font-size: 22px; font-weight: 650; }
    .topbar .mobile-menu,
    body.mobile-launcher-mode .topbar .btn-icon {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    body.mobile-launcher-mode.mobile-launcher-home #mobileLauncherView {
        display: block;
        min-height: 100dvh;
        padding: calc(60px + max(0px, env(safe-area-inset-top) - 8px)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
        background: var(--bg);
    }

    .launcher-strip {
        min-height: 30px;
        margin: 0;
        padding: 6px 0;
        border-top: 0;
        border-bottom: 1px solid var(--line);
        background: transparent;
        color: var(--muted);
        font-size: 11px;
        font-weight: 500;
    }
    .launcher-strip svg { width: 14px; height: 14px; color: var(--muted); }
    .launcher-hero { gap: 10px; padding: 14px 0 10px; }
    .launcher-hero-head { align-items: center; gap: 8px; }
    .launcher-hero-head > div:first-child { min-width: 0; flex: 1; }
    .launcher-user-name { max-width: 100%; color: var(--text); font-size: 22px; font-weight: 650; line-height: 1.2; }
    .launcher-company { color: var(--muted); font-size: 12px; font-weight: 500; }
    .launcher-role { max-width: 100px; border-color: var(--line); background: var(--panel); color: var(--muted); font-size: 10px; font-weight: 600; padding: 5px 8px; }
    .launcher-session-card { min-height: 54px; grid-template-columns: 24px minmax(0, 1fr) 20px; padding: 8px 10px; gap: 10px; border-color: var(--line); border-radius: 8px; background: var(--panel); box-shadow: none; }
    .launcher-session-card svg { width: 22px; height: 22px; color: var(--muted); }
    .launcher-session-card small,
    .launcher-session-card span { color: var(--muted); font-size: 11px; font-weight: 400; }
    .launcher-session-card b { color: var(--text); font-size: 13px; font-weight: 600; }
    .launcher-safe-icon svg { width: 20px; height: 20px; }
    .launcher-search input { min-height: 44px; padding-left: 40px; border-color: var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 400; }
    .launcher-search input:focus { border-width: 1px; border-color: var(--accent); padding: 9px 11px 9px 40px; outline: 1px solid var(--accent); }
    .launcher-search svg { left: 12px; width: 18px; height: 18px; color: var(--muted); }

    .launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; padding: 10px 0 calc(96px + env(safe-area-inset-bottom)); }
    .launcher-tile {
        min-height: 84px;
        grid-template-rows: 48px minmax(28px, auto);
        align-content: start;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        white-space: normal;
    }
    .launcher-tile-icon,
    .launcher-tile.active .launcher-tile-icon {
        width: 48px;
        height: 48px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--panel);
        box-shadow: none;
        transition: border-color .15s ease, transform .15s ease;
    }
    .launcher-tile-icon img { display: block; width: 36px; height: 36px; object-fit: contain; }
    .launcher-tile-icon svg { width: 24px; height: 24px; color: var(--tile-color, var(--accent)); stroke-width: 1.75; }
    .launcher-tile-label { min-height: 28px; max-width: 100%; color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.2; overflow-wrap: break-word; }
    .launcher-tile:active .launcher-tile-icon { transform: scale(.96); border-color: var(--accent); }
    .launcher-tile:focus-visible .launcher-tile-icon { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }
    .launcher-empty { color: var(--muted); font-weight: 500; }

    .launcher-bottom-nav {
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        min-height: 66px;
        gap: 2px;
        padding: 6px;
        border-color: var(--line);
        border-radius: 14px;
        background: var(--panel);
        box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
        backdrop-filter: none;
    }
    .launcher-bottom-nav button {
        position: relative;
        min-height: 52px;
        padding: 5px 2px;
        gap: 4px;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        -webkit-tap-highlight-color: transparent;
    }
    .launcher-bottom-nav svg { width: 21px; height: 21px; stroke-width: 1.75; }
    .launcher-bottom-nav img { display: block; width: 26px; height: 26px; object-fit: contain; }
    .launcher-bottom-nav button.active { background: transparent; color: var(--accent); font-weight: 650; }
    .launcher-bottom-nav button.active::after { content: ''; position: absolute; top: 0; left: calc(50% - 8px); width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
    .launcher-bottom-nav .launcher-fab { width: 48px; height: 48px; min-height: 48px; margin: 0 auto; border-radius: 12px; background: var(--button); color: var(--button-text); box-shadow: none; }
    .launcher-bottom-nav .launcher-fab svg { width: 24px; height: 24px; }
    .launcher-bottom-nav button:focus-visible,
    .topbar .btn-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

@media (max-width: 360px) {
    body.mobile-launcher-mode .launcher-brand span { font-size: 20px; }
    .launcher-user-name { font-size: 20px; }
    .launcher-grid { column-gap: 6px; }
    .launcher-tile-label { font-size: 11px; }
}

@media (min-width: 601px) and (max-width: 920px) {
    .launcher-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
}

@media (max-width: 920px) and (hover: hover) {
    .launcher-tile:hover .launcher-tile-icon { background: var(--panel); border-color: var(--accent); }
    .launcher-bottom-nav button:not(.launcher-fab):hover { background: transparent; color: var(--text); }
    body.mobile-launcher-mode .topbar .btn-icon:hover { background: var(--panel-2); border-color: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
    .launcher-tile-icon { transition: none; }
    .launcher-tile:active .launcher-tile-icon { transform: none; }
}
