/* AEROA Fold-ready app layout.
 * One theme and navigation rhythm from narrow cover display to unfolded workspace.
 * Scoped to touch/standalone layouts; desktop mouse layouts keep their sidebar. */
:root {--aeroa-app-safe-bottom:env(safe-area-inset-bottom,0px)}
html {text-size-adjust:100%;-webkit-text-size-adjust:100%}
@media(max-width:760px){
 :root{--app-nav-height:4.25rem;--app-gutter:clamp(.75rem,2.8vw,1rem)}
 .appShell .mobileNav{
  display:grid!important;
  height:calc(var(--app-nav-height) + var(--aeroa-app-safe-bottom))!important;
  padding:5px max(6px,env(safe-area-inset-right)) var(--aeroa-app-safe-bottom) max(6px,env(safe-area-inset-left))!important;
  border-top:1px solid var(--t-border)!important;
  background:color-mix(in srgb,var(--t-panel) 96%,transparent)!important;
  box-shadow:0 -7px 20px rgba(0,0,0,.09)!important;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
 }
 .appShell .mobileNav button{
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  min-width:0!important;
  min-height:54px!important;
  height:100%!important;
  gap:4px!important;
  padding:6px 2px!important;
  margin:0 2px;
  border-radius:11px!important;
  font-size:11px!important;
  font-weight:650;
  line-height:1.15;
  white-space:nowrap;
  touch-action:manipulation;
 }
 .appShell .mobileNav button svg{height:20px;width:20px;flex:none}
 .appShell .appMain{
  padding:var(--app-gutter) var(--app-gutter) calc(var(--app-nav-height) + var(--aeroa-app-safe-bottom) + 1.4rem)!important;
 }
 .appShell .workspaceView>header{margin-bottom:13px;gap:8px}
 .appShell .workspaceView>header h1{font-size:clamp(23px,5.4vw,29px);line-height:1.15}
 .appShell .workspaceView .pageSubtitle{font-size:12px;line-height:1.4}
 .appShell .mobileMenuSheet{
  max-height:calc(100dvh - 90px - var(--aeroa-app-safe-bottom))!important;
  overscroll-behavior:contain;
  padding-bottom:calc(14px + var(--aeroa-app-safe-bottom));
 }
 .appShell .mobileMenuGrid button,.appShell .mobileInstallLink{
  min-height:50px!important;
  touch-action:manipulation;
 }
 .appShell .mobileInstallLink{
  display:flex;align-items:center;gap:9px;
  padding:12px 14px;border:1px solid var(--t-border);
  border-radius:11px;background:var(--t-panel2);
  color:var(--t-text);font-size:13px;font-weight:750;
  text-decoration:none;
 }
 .appShell .mobileInstallLink svg{height:20px;width:20px;color:var(--t-blue)}
 .appShell .workspaceView:not([hidden])[data-page="SMS"]{
  height:calc(100dvh - var(--app-nav-height) - var(--aeroa-app-safe-bottom) - 2*var(--app-gutter))!important;
 }
 .appShell .workspaceView:not([hidden]){max-width:100%;min-width:0}
 .appShell :is(button,a){-webkit-tap-highlight-color:transparent}
}
@media(max-width:385px){
 .appShell .mobileNav{padding-left:3px!important;padding-right:3px!important}
 .appShell .mobileNav button{font-size:10px!important;margin:0 1px;padding:5px 0!important}
 .appShell .mobileNav button svg{width:19px;height:19px}
}
/* The Fold3 inner screen has tablet-sized CSS pixels but is still touch-first.
 * Preserve the bottom-nav flow so folding doesn't move navigation to a tiny rail. */
@media (min-width:761px) and (max-width:980px) and (pointer:coarse){
 :root{--app-gutter:clamp(13px,2.2vw,20px);--app-nav-height:4.25rem}
 .appShell,.appShell.compactSidebar{display:block!important;grid-template-columns:none!important;min-width:0}
 .appShell>.appSidebar{display:none!important}
 .appShell .appMain{
  width:100%;min-width:0;max-width:100%;
  padding:var(--app-gutter) var(--app-gutter) calc(var(--app-nav-height) + var(--aeroa-app-safe-bottom) + 1.4rem)!important;
 }
 .appShell .mobileNav{
  display:grid!important;
  position:fixed!important;inset:auto 0 0!important;z-index:30!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  height:calc(var(--app-nav-height) + var(--aeroa-app-safe-bottom))!important;
  padding:5px 12px var(--aeroa-app-safe-bottom)!important;
  border-top:1px solid var(--t-border);
  background:color-mix(in srgb,var(--t-panel) 96%,transparent);
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
 }
 .appShell .mobileNav button{
  display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;
  min-width:0!important;height:100%!important;min-height:54px!important;
  gap:4px!important;padding:5px 3px!important;
  font-size:12px!important;line-height:1.2!important;border-radius:11px!important;
 }
 .appShell .mobileNav button svg{width:21px;height:21px}
 .appShell .mobileMenuSheet{
  max-height:calc(100dvh - 90px - var(--aeroa-app-safe-bottom))!important;
  overflow-y:auto;overscroll-behavior:contain;
 }
 .appShell .mobileInstallLink{
  display:flex;align-items:center;gap:9px;
  padding:12px 14px;border:1px solid var(--t-border);
  border-radius:11px;background:var(--t-panel2);
  color:var(--t-text);font-size:13px;font-weight:750;text-decoration:none;
 }
 .appShell .mobileInstallLink svg{height:20px;width:20px;color:var(--t-blue)}
 .appShell .mobileMenuGrid button,.appShell .mobileInstallLink{min-height:50px}
 .workspaceView>header{margin-bottom:14px!important;gap:9px!important}
 .workspaceView>header h1{font-size:27px!important}
 .workspaceView:not([hidden])[data-page="SMS"]{
  height:calc(100dvh - var(--app-nav-height) - var(--aeroa-app-safe-bottom) - 2*var(--app-gutter))!important;
 }
 .appMain :is(input:not([type=checkbox]),select,textarea){font-size:16px!important;min-height:44px}
 .appMain :is(button,a){touch-action:manipulation}
 .todayCommandHero,.todayOpsGrid,.todayColumnsV2,.campaignWorkspace,.teamPulseV5,.teamWorkAreaV5,.teamIntelGridV5,.opsWorkspaceGridV2,.billingPlanGridV2{grid-template-columns:minmax(0,1fr)!important}
}
@media (display-mode:standalone){
 body{padding-top:env(safe-area-inset-top,0px)}
 .appShell .mobileNav{padding-bottom:max(env(safe-area-inset-bottom,0px),4px)!important}
}
/* Standalone Fold cover and inner screens keep source theme colors and status colors. */
@media(prefers-reduced-motion:reduce){
 .appShell .mobileNav,.appShell .mobileNav button{transition:none!important}
}
.appShell .mobileInstallLink .aeroaInstallGlyph{display:grid;place-items:center;height:20px;width:20px;flex:none;color:var(--t-blue);font-size:20px;font-weight:800;line-height:1}

/* Extend the actual mobile menu sheet to the Fold inner display, not only the nav bar. */
@media (min-width:761px) and (max-width:980px) and (pointer:coarse){
 .appShell .mobileNav{border-top:1px solid var(--t-border)}
 .appShell .mobileNav button{border:0!important;background:transparent;color:var(--t-muted)}
 html[data-theme] .appShell .mobileNav button.on{color:var(--t-on-action)}
 .appShell .mobileMenuBackdrop{
  display:block!important;position:fixed!important;inset:0!important;
  z-index:150!important;background:var(--t-overlay)!important;
 }
 .appShell .mobileMenuSheet{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;
  max-width:760px!important;margin-inline:auto!important;
  border:1px solid var(--t-border)!important;border-bottom:0!important;
  border-radius:18px 18px 0 0!important;
  background:var(--t-panel)!important;
  padding:16px 16px calc(20px + var(--aeroa-app-safe-bottom))!important;
  box-shadow:0 -20px 60px rgba(0,0,0,.30);
 }
 .appShell .mobileMenuHead{display:flex;justify-content:space-between;align-items:center;padding:3px 4px 12px}
 .appShell .mobileMenuHead>div{display:grid;gap:3px}
 .appShell .mobileMenuHead button{
  display:grid;place-items:center;width:44px;height:44px;min-height:44px;
  border:1px solid var(--t-border);border-radius:10px;background:var(--t-panel2);color:var(--t-text);
 }
 .appShell .mobileMenuGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .appShell .mobileMenuGrid button{
  display:grid;justify-items:center;align-content:center;gap:6px;
  min-height:76px!important;border:1px solid var(--t-border);
  border-radius:12px;background:var(--t-panel2);color:var(--t-muted);
 }
 .appShell .mobileMenuGrid button.on{border-color:var(--t-blue);color:var(--t-text)}
 .appShell .mobileAccount{
  width:100%;min-height:52px;margin-top:12px;
  display:flex;align-items:center;gap:10px;
  border:1px solid var(--t-border);border-radius:12px;
  background:var(--t-panel);color:var(--t-text);padding:9px 12px;
 }
 .appShell .mobileAccount i{display:grid;place-items:center;height:33px;width:33px;border-radius:99px;background:var(--t-panel2);font-style:normal}
 .appShell .mobileAccount span{display:grid;gap:3px}
 .appShell .mobileAccount small{color:var(--t-muted)}
}
