/* Mobile-only workspace navigation; server-side access controls remain authoritative. */
@media (max-width: 700px) {
  body:has(> .app-header) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .app-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .app-header > .app-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    width: 100%; margin: 0; padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
    border-top: 1px solid #28443a; background: #081410;
    box-shadow: 0 -8px 24px #0006;
  }
  .app-nav > .app-nav-link, .app-nav > .app-profile, .app-nav > .app-notifications { min-width: 0; }
  .app-nav > .app-nav-link {
    display: flex; flex: 1 0 56px; align-items: center; justify-content: center;
    padding: 9px 1px; min-height: 48px; border: 0; border-radius: 9px;
    font-size: clamp(9px, 2.7vw, 12px); text-align: center; overflow: hidden; text-overflow: ellipsis;
  }
  .app-nav > .app-nav-link.active { background: #174331; }
  .app-nav > .app-nav-link[hidden] { display:none!important; }
  .app-nav > .app-notifications, .app-nav > .app-profile { display: grid; flex: 0 0 44px; place-items: center; }
  .app-nav > .app-notifications summary,.app-nav > .app-profile summary { min-height: 44px; min-width: 44px; display:grid;place-items:center; }
  .app-profile-menu { position:fixed;right:12px;bottom:calc(72px + env(safe-area-inset-bottom));top:auto;max-height:75vh;overflow:auto; }
  .app-notification-panel { position:fixed;left:8px;right:8px;bottom:calc(72px + env(safe-area-inset-bottom));top:auto;max-width:none;max-height:65vh;overflow:auto; }
  body:has(> .app-header) main { min-width:0; }
  .app-header .app-brand { min-width:0; }
}
