/* INNI / Alpha Research v15 — scrollable primary navigation.
   Mirror the third-tier's horizontal scrolling without clipping the account
   menu. A dedicated scroll region holds branding and the top-level tabs. */
#alphaApplication .inni-primary-bar {
  overflow: visible !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}
#alphaApplication .inni-primary-scroll {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 5px;
  width: auto;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
#alphaApplication .inni-primary-scroll > .inni-brand-link,
#alphaApplication .inni-primary-scroll > .inni-main-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
#alphaApplication .inni-primary-scroll > .inni-brand-link {
  margin-right: 14px;
}
#alphaApplication .inni-primary-bar > .inni-user {
  position: relative;
  flex: 0 0 auto !important;
  min-width: 0;
  margin-left: auto !important;
  z-index: 1;
}
/* Avoid account text encroaching on the tab-scrolling region at narrow widths. */
@media (max-width: 700px) {
  #alphaApplication .inni-primary-scroll {
    gap: 0;
  }
  #alphaApplication .inni-primary-scroll > .inni-brand-link {
    margin-right: 4px;
  }
  #alphaApplication .inni-primary-bar > .inni-user {
    max-width: clamp(80px, 25vw, 154px);
  }
  #alphaApplication .inni-primary-bar #inniUserTrigger {
    min-width: 0;
    max-width: 100%;
  }
  #alphaApplication .inni-primary-bar #inniUsername {
    min-width: 0;
  }
}

/* Guest top bar is deliberately separate from the authenticated app header.
   Never expose the last logged-in username when a new visitor signs in. */
#alphaApplication[hidden], #alphaAuth[hidden] {display:none!important;}
#alphaAuth .inni-login-header {
  box-sizing:border-box;position:absolute;inset:0 0 auto 0;
  z-index:2;height:54px;display:flex;align-items:center;justify-content:space-between;
  gap:14px;padding:0 16px;background:#062b28;color:white;
  border-bottom:1px solid rgba(255,255,255,.14);
}
#alphaAuth .inni-guest-brand {display:inline-flex;align-items:center;gap:9px;min-width:0;white-space:nowrap;}
#alphaAuth .inni-guest-username {
  color:#f2f7f5;font-size:12px;font-weight:600;white-space:nowrap;cursor:text;
}
#alphaAuth .alpha-login-card > .alpha-auth-brand {display:none!important;}
@media(max-width:700px) {
  #alphaAuth .inni-login-header {height:50px;padding:0 10px;gap:8px;}
}
