.portal-header { position: sticky; top: 0; z-index: 20; background: #181818; border-bottom: 1px solid #333; color: #f5f5f5; line-height: 1.5; }
.portal-header [hidden] { display: none !important; }
.portal-header a { color: inherit; text-decoration: none; }
.portal-nav-inner {
  width: min(1160px, calc(100% - 2rem)); margin: auto; min-height: 4rem;
  display: flex; gap: clamp(.5rem, 3vw, 1.5rem); align-items: center;
}
.portal-account { position: relative; min-width: 0; }
.portal-account-toggle, .portal-links a, .portal-account-menu button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem;
  border: 0; border-radius: .6rem; padding: .45rem .65rem; background: transparent;
  color: #f5f5f5; font-weight: 650; font-size: .875rem; cursor: pointer;
}
.portal-account-toggle { max-width: min(36vw, 13rem); background: #292725; list-style: none; }
.portal-account-toggle::-webkit-details-marker { display: none; }
.portal-account-toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-account-toggle svg, .portal-account-toggle img, .portal-links svg { flex: none; }
.portal-account-toggle img { border-radius: .35rem; image-rendering: pixelated; width: 28px; height: 28px; }
.portal-header :focus-visible { outline: 2px solid #ffbc5b; outline-offset: 2px; }
.portal-wordmark { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.portal-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; white-space: nowrap; }
.portal-links svg { color: #ffbc5b; }
.portal-links a:hover, .portal-account-menu button:hover { background: #35312a; }
.portal-account-menu {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 10rem; padding: .35rem;
  border: 1px solid #47423c; border-radius: .625rem; background: #24211e; box-shadow: 0 .75rem 2rem #0008;
}
.portal-account-menu button { width: 100%; }
.portal-account-menu button:disabled { opacity: .5; cursor: default; }
.portal-account-menu p { margin: .25rem; color: #ffe0be; font-size: .875rem; }
.portal-account-menu p:empty { display: none; }
@media (max-width: 460px) {
  .portal-nav-inner { width: calc(100% - 1rem); gap: .25rem; min-height: 3.5rem; }
  .portal-account-toggle, .portal-links a { padding-inline: .32rem; }
  .portal-account-toggle { max-width: 25vw; }
  .portal-links { gap: 0; }
  .portal-links a { font-size: .75rem; }
  .portal-wordmark { font-size: .875rem; }
  .portal-links svg { display: none; }
}
