/* Shared app switcher. Header geometry and voice stage stay unchanged. */
.current-app-title { align-self:center; padding-left:12px; border-left:1px solid var(--border); font-size:var(--fs-sm); font-weight:var(--fw-medium); white-space:nowrap; color:var(--text); }
.app-launcher { position:relative; align-self:center; flex:none; }
.app-launcher > summary { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid transparent; border-radius:8px; color:var(--text-2); cursor:pointer; list-style:none; background:transparent; transition:background-color 120ms,color 120ms; }
.app-launcher > summary::-webkit-details-marker { display:none; }
.app-launcher > summary:hover,.app-launcher[open] > summary { background:var(--surface-2); color:var(--text); }
.app-launcher svg,#appLeaveDialog svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.app-launcher > summary:focus-visible,#appLauncherPanel a:focus-visible,#appLeaveDialog button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
#appLauncherPanel { position:fixed; z-index:70; inset:auto; top:calc(var(--topbar, 56px) + env(safe-area-inset-top) + 8px); left:12px; right:auto; width:300px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 76px); overflow:auto; margin:0; padding:16px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); font-family:var(--font); }
#appLauncherPanel.launcher-positioned { position:fixed; transition-property:none; animation-name:none; }
#appLauncherPanel::backdrop { background:transparent; }
.launcher-heading { margin:0 0 12px; color:var(--text-2); font-size:var(--fs-sm); font-weight:var(--fw-medium); line-height:1.5; }
.launcher-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
#appLauncherPanel .launcher-grid a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:80px; padding:8px 2px; border:1px solid transparent; border-radius:8px; text-decoration:none; color:var(--text); font-size:var(--fs-xs); font-weight:var(--fw-medium); line-height:1.5; white-space:nowrap; transition:background-color 120ms; }
#appLauncherPanel .launcher-grid a > svg { width:28px; height:28px; }
#appLauncherPanel .launcher-grid a[aria-current="page"] { color:var(--accent); }
#appLauncherPanel .launcher-grid a:hover { background:var(--surface-2); }
#appLeaveDialog { width:400px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; margin:auto; padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); box-shadow:var(--shadow); font-family:var(--font); }
#appLeaveDialog::backdrop { background:var(--scrim); }
#appLeaveDialog h2 { margin:0 0 12px; font-size:var(--fs-lg); font-weight:var(--fw-semibold); line-height:1.5; }
#appLeaveDialog p { margin:0 0 20px; color:var(--text-2); font-size:var(--fs-md); line-height:1.5; }
#appLeaveDialog #appLeaveError { color:var(--danger); }
.launcher-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
#appLeaveDialog button { min-height:44px; padding:0 16px; border:1px solid var(--border-strong); border-radius:8px; background:var(--surface-2); color:var(--text); font:var(--fw-medium) var(--fs-sm)/1.5 var(--font); cursor:pointer; }
#appLeaveDialog button:hover { background:var(--surface-3); }
#appLeaveDialog #appLeaveConfirm { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
#appLeaveDialog #appLeaveConfirm:hover { background:var(--accent-hover); }
#appLeaveDialog button:disabled { opacity:.6; cursor:wait; }
@media (max-width:640px),(max-height:480px) { .current-app-title { padding-left:8px; } .topbar .brand .name { display:none; } }
@media (max-width:360px) { .topbar .brand { display:flex; } .topbar .brand .logo { height:26px; } .current-app-title { padding-left:4px; font-size:var(--fs-xs); } }
/* The landing header keeps its existing section navigation. */
.lp .nav-in { gap:16px; }
.lp .nav-in .app-launcher { margin-left:auto; }
.lp .nav-links { margin-left:0; }
@media (max-width:1080px) { .lp .nav-in { gap:8px; } .lp .nav-links a { padding-inline:8px; } }
@media (prefers-reduced-motion:reduce) { .app-launcher > summary,#appLauncherPanel .launcher-grid a { transition:none; } }
