.site-header.topbar {
  --nav-text: #e3daf5;
  --nav-muted: #c8bedb;
  --nav-accent: #dfceff;
  --nav-border: #b59bd044;
  background: radial-gradient(ellipse at 82% 0, #503c7296, transparent 64%),
    linear-gradient(110deg, #241c3e, #211d36 63%, #302445);
  border-bottom: 1px solid #b89cdb66;
  box-shadow: inset 0 1px 0 #f2dcff26, 0 12px 32px #130e2840;
}
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  grid-template-areas: "brand navigation account";
  align-items: center;
  gap: clamp(10px, 2.6vw, 32px);
  min-height: 78px;
}
.topbar-brand { grid-area: brand; width: 156px; border-radius: 9px; justify-self: start; }
.topbar-brand img { filter: drop-shadow(0 0 7px #b98cf76b); }
.topbar-navigation, .topbar-group, .topbar-account {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.topbar-navigation { grid-area: navigation; justify-content: center; gap: 10px; }
.topbar-group {
  padding: 3px;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  background: #15112172;
  box-shadow: inset 0 1px 0 #10092688;
}
.topbar-staff { background: #45345a48; border-color: #aa8ec959; }
.topbar-account { grid-area: account; justify-self: end; }
.topbar-account form { margin: 0; }
.topbar :is(.topbar-group a, .topbar-account-link, .topbar-quiet, .topbar-signup) {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: .89rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--nav-text);
}
.topbar .topbar-quiet { color: var(--nav-muted); background: transparent; }
.topbar :is(.topbar-group a, .topbar-quiet):hover { background: #c9abff24; color: #fff; }
.topbar :is(.topbar-group a, .topbar-account-link, .topbar-quiet)[aria-current="page"] {
  color: #fff7ff;
  background: linear-gradient(145deg, #654880, #493461);
  border-color: #dac2fd75;
  box-shadow: inset 0 1px 0 #f7e6ff38, 0 0 14px #b281f740;
}
.topbar .topbar-account-link {
  background: linear-gradient(145deg, #4b3764, #302640);
  border-color: #ac92cf82;
  box-shadow: inset 0 1px 0 #e3ccfb26;
}
.topbar .topbar-account-link:hover { border-color: #eed8ff; }
.topbar-account-icon { display: inline-block; position: relative; width: 14px; height: 15px; color: var(--nav-accent); }
.topbar-account-icon::before, .topbar-account-icon::after { content: ""; position: absolute; border: 1.3px solid currentColor; }
.topbar-account-icon::before { inset: 0 4px auto; height: 6px; border-radius: 50%; }
.topbar-account-icon::after { inset: auto 1px 0; height: 6px; border-radius: 6px 6px 3px 3px; }
.topbar a.topbar-signup {
  color: #241438;
  background: linear-gradient(150deg, #f4e0ff, #c5a2f9);
  border-color: #f3e1ff;
  box-shadow: inset 0 1px 0 #fff9, 0 3px 0 #775897, 0 5px 17px #be86fb55;
  padding-inline: 13px;
}
.topbar .topbar-signup[aria-current="page"]:not(:focus-visible) {
  outline: 1px solid #e9d7ff;
  outline-offset: 2px;
}
.topbar .topbar-signup:hover { filter: brightness(1.08); }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 2px solid #b2f6ed; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .topbar :is(a, button) { transition: background-color .16s, border-color .16s, filter .16s, box-shadow .16s; }
}
@media (max-width: 840px) {
  .topbar-inner {
    grid-template: "brand account" auto "navigation navigation" auto / minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding-block: 10px;
  }
  .topbar-navigation { justify-content: start; flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .topbar-brand { width: min(132px, 100%); }
  .topbar-navigation { gap: 6px; }
  .topbar-group { gap: 2px; }
  .topbar :is(.topbar-group a, .topbar-account-link, .topbar-quiet, .topbar-signup) {
    padding-inline: 8px;
    font-size: .81rem;
    min-height: 40px;
  }
}
