/* Block J4.7: the shared app bar and tab bar. Same Noir Deco tokens as the rest (midnight navy, antique gold); fixed
   sizes so it looks the same on pages with different stylesheets. */
.appbar { position: sticky; top: 0; z-index: 18; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 52px;
  padding: calc(4px + env(safe-area-inset-top)) 10px 4px; background: rgba(11, 15, 42, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 162, 75, .22);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.appbar[hidden], .tabbar[hidden] { display: none !important; }
.appbar-back { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; color: #E8C476; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; -webkit-tap-highlight-color: transparent; }
.appbar-back:active { opacity: .8; } .appbar-back[hidden] { visibility: hidden; display: inline-flex; }
.appbar-title { font-weight: 600; font-size: 16px; color: #F2EDE4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 15, 42, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(201, 162, 75, .28); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: #B8BCD6; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; }
.tabbar-item svg { width: 24px; height: 24px; }
.tabbar-item.active { color: #E8C476; }
.tabbar-item:active { opacity: .8; }
.appbar-back:focus-visible, .tabbar-item:focus-visible { outline: 2px solid #E8C476; outline-offset: -2px; }
body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
body.has-tabbar .chat-fab, body.has-tabbar .voice-fab, body.has-tabbar .voice-people { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .tabbar { position: sticky; top: 52px; bottom: auto; height: 48px; padding: 0; max-width: 560px; margin: 0 auto; background: transparent; border-top: 0; border-bottom: 1px solid rgba(201, 162, 75, .2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar-item { flex-direction: row; gap: 8px; min-height: 48px; font-size: 14px; }
  .tabbar-item svg { width: 20px; height: 20px; }
  .tabbar-item.active { box-shadow: inset 0 -2px 0 #E8C476; }
  body.has-tabbar { padding-bottom: 0 !important; }
}
@media (min-width: 900px) { body.nav-own-header .tabbar { position: static; } } /* the homepage keeps its own sticky header; the tabs follow it */
