#bbNavAuth {
  position: fixed;
  top: 0;
  right: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 2000;
  font-family: var(--font-code, "JetBrains Mono", monospace);
}

#bbNavAuth .bb-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-component-primary-81);
  border: 1px solid var(--theme-component-primary-82);
  color: var(--bb-kelly, var(--theme-component-primary-1));
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

#bbNavAuth .bb-nav-pill:hover {
  background: var(--theme-component-primary-83);
}

#bbNavAuth .bb-nav-menu {
  position: absolute;
  top: 56px;
  right: 0;
  min-width: 200px;
  background: var(--theme-component-page-46);
  border: 1px solid var(--theme-component-primary-35);
  border-radius: 8px;
  padding: 8px;
  display: none;
  box-shadow: 0 12px 40px var(--theme-component-page-47);
}

#bbNavAuth .bb-nav-menu.open {
  display: block;
}

#bbNavAuth .bb-nav-email {
  padding: 8px 10px;
  font-size: 15px;
  color: var(--bb-text-muted, var(--theme-component-muted-13));
  word-break: break-all;
  border-bottom: 1px solid var(--theme-component-border-13);
  margin-bottom: 6px;
}

#bbNavAuth .bb-nav-menu a, #bbNavAuth .bb-nav-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--bb-text-main, var(--theme-component-ink-18));
  font-family: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

#bbNavAuth .bb-nav-menu a:hover, #bbNavAuth .bb-nav-menu button:hover {
  background: var(--theme-component-primary-27);
  color: var(--bb-kelly, var(--theme-component-primary-1));
}

@media (max-width: 900px) {

  #bbNavAuth {
    right: 12px;
  }
}

/* T133: account participates in header layout instead of covering actions. */
.bb-page-header .bb-return-pair{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:12px}
#bbNavAuth.bb-nav-in-header{position:relative!important;inset:auto!important;height:auto!important;margin-left:auto;flex:0 0 auto;z-index:2000}
#bbNavAuth .bb-nav-pill,#bbNavAuth .bb-nav-menu :is(a,button){min-height:44px;font-size:15px;box-sizing:border-box}
#bbNavAuth .bb-nav-menu{top:calc(100% + 8px);max-width:calc(100vw - 32px)}
body:has(#drill-overlay.active) #bbNavAuth{display:none!important}
@media(max-width:700px){#bbNavAuth.bb-nav-in-header{margin-left:0}.bb-page-header .bb-return-pair{gap:8px}}
