{isMobile ? (
<>
{/* Mobile: Header + content with drill-down pattern */}
{!(isSettingsDialogOpen || isMultiRunLauncherOpen) &&
}
{/* Mobile drill-down: show sessions sidebar OR main content */}
{isSessionSwitcherOpen ? (
) : (
{secondaryView && (
{secondaryView}
)}
)}
{/* Mobile multi-run launcher: full screen */}
{isMultiRunLauncherOpen && (
setMultiRunLauncherOpen(false)}
onCancel={() => setMultiRunLauncherOpen(false)}
/>
)}
{/* Mobile settings: full screen */}
{isSettingsDialogOpen && (
setSettingsDialogOpen(false)} />
)}
>
) : (
<>
{/* Desktop: Header always on top, then Sidebar + Content below */}
{/* Normal view: Header above Sidebar + content (like SettingsView) */}
{secondaryView && (
{secondaryView}
)}
{/* Multi-Run Launcher: replaces tabs content only */}
{isMultiRunLauncherOpen && (
setMultiRunLauncherOpen(false)}
onCancel={() => setMultiRunLauncherOpen(false)}
/>
)}
{/* Desktop settings: windowed dialog with blur */}
>
)}