html:has([data-profile-topbar]) {
  scroll-padding-top: calc(var(--profile-topbar-height, 4.375rem) + 1rem);
}

.profile-topbar {
  --topbar-border: #d8dadd;
  --topbar-surface: #fff;
  --topbar-ink: #202326;
  --topbar-accent: #e20613;
  --topbar-accent-hover: #b60712;
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--topbar-ink);
  background: var(--topbar-surface);
  border-bottom: 1px solid var(--topbar-border);
  line-height: 1.35;
}

.profile-topbar *, .profile-topbar *::before, .profile-topbar *::after { box-sizing: border-box; }
.profile-topbar [hidden] { display: none !important; }
.profile-topbar__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  width: min(74rem, calc(100% - 2 * clamp(1rem, 5.55vw, 4.75rem)));
  min-height: 4.25rem;
  margin-inline: auto;
  padding-block: 0.625rem;
}
.profile-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  min-height: 2.75rem;
  flex: 1 1 0%;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: inherit;
  text-decoration: none;
}
.profile-topbar__brand:hover { color: var(--topbar-accent); }
.profile-topbar__name { overflow-wrap: anywhere; }
.profile-topbar__logo { display: block; flex: none; width: 2.375rem; height: 2.375rem; object-fit: contain; }

.profile-topbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 0.48rem;
  min-height: 2.75rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid #afb3b8;
  border-radius: 0.54rem;
  color: inherit;
  background: var(--topbar-surface);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}
.profile-topbar__toggle:hover,
.profile-topbar__toggle[aria-expanded="true"] { border-color: #8e949a; background: #f2f3f4; }
.profile-topbar__menu-icon {
  --menu-stroke: 1.5px;
  position: relative;
  width: 1rem;
  height: 0.875rem;
}
.profile-topbar__menu-icon::before, .profile-topbar__menu-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--menu-stroke);
  background: currentColor;
}
.profile-topbar__menu-icon::before { transform: translateY(-0.22rem); }
.profile-topbar__menu-icon::after { transform: translateY(0.16rem); }
.profile-topbar__toggle[aria-expanded="true"] .profile-topbar__menu-icon::before { transform: rotate(45deg); }
.profile-topbar__toggle[aria-expanded="true"] .profile-topbar__menu-icon::after { transform: rotate(-45deg); }
.profile-topbar :focus-visible { outline: 2px solid var(--topbar-accent); outline-offset: 3px; }

.profile-topbar__nav { flex: 1 0 100%; min-width: 0; }
.profile-topbar__list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.profile-topbar__link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.52rem 0.75rem;
  color: #3c4146;
  border-radius: 0.47rem;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.profile-topbar__link:hover { color: var(--topbar-accent); background: #f4f4f5; }
.profile-topbar__link[aria-current="location"] { color: #e20613; background: #fceef0; }
.profile-topbar__item--action { margin-top: 0.4rem; }
.profile-topbar__item--action .profile-topbar__link {
  justify-content: center;
  color: #fff;
  background: var(--topbar-accent);
}
.profile-topbar__item--action .profile-topbar__link:hover { background: var(--topbar-accent-hover); }
.profile-topbar__item--action .profile-topbar__link[aria-current="location"] {
  box-shadow: inset 0 0 0 2px #ffffff73;
}

@media (width < 40rem) {
  .profile-topbar[data-enhanced] .profile-topbar__toggle { display: inline-flex; }
  .profile-topbar[data-enhanced] .profile-topbar__nav {
	position: absolute;
	inset: calc(100% + 0.5rem) 0 auto auto;
	width: min(100%, 24rem);
	max-height: calc(100dvh - var(--profile-topbar-height, 4.375rem) - 1.5rem);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 0.55rem;
	border: 1px solid #b9bec3;
	border-radius: 0.72rem;
	background: var(--topbar-surface);
	box-shadow: 0 0.875rem 2rem #15191e25;
  }
}

.profile-topbar__overflow { position: relative; }
.profile-topbar__more {
  gap: 0.55rem;
  border: 1px solid #afb3b8;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  list-style: none;
}
.profile-topbar__more::-webkit-details-marker { display: none; }
.profile-topbar__more-details[open] > .profile-topbar__more,
.profile-topbar__more[data-current] {
  color: #e20613;
  background: #fceef0;
}
.profile-topbar__chevron {
  width: 0.42rem;
  height: 0.42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.12rem) rotate(45deg);
}
.profile-topbar__more-details[open] .profile-topbar__chevron {
  transform: translateY(0.08rem) rotate(225deg);
}
.profile-topbar__overflow-list {
  position: absolute;
  inset: calc(100% + 0.55rem) 0 auto auto;
  width: max-content;
  min-width: 11rem;
  max-width: 18rem;
  max-height: calc(100dvh - var(--profile-topbar-height, 4.625rem) - 1rem);
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid #b9bec3;
  border-radius: 0.65rem;
  background: var(--topbar-surface);
  box-shadow: 0 0.875rem 1.9rem #15191e25;
  list-style: none;
}

@media (width < 40rem) {
  .profile-topbar:not([data-enhanced]) .profile-topbar__overflow-list {
	position: static;
	width: auto;
	max-width: none;
	margin-inline-start: 0.4rem;
	box-shadow: none;
  }
}

@media (width >= 40rem) {
  .profile-topbar__inner { flex-wrap: nowrap; min-height: 4.625rem; gap: clamp(1.25rem, 3vw, 3rem); }
  .profile-topbar__brand { flex: 0 1 auto; max-width: min(35%, 19rem); font-size: 1.1875rem; }
  .profile-topbar[data-enhanced] .profile-topbar__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
  }
  .profile-topbar__logo { width: 2.625rem; height: 2.625rem; }
  .profile-topbar__nav { flex: 1 1 0%; }
  .profile-topbar__list { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.2rem; }
  .profile-topbar[data-enhanced] .profile-topbar__list { flex-wrap: nowrap; }
  .profile-topbar[data-enhanced] .profile-topbar__list > li { flex: none; }
  .profile-topbar[data-enhanced] .profile-topbar__list > li > .profile-topbar__link { white-space: nowrap; }
  .profile-topbar__item--action { margin: 0 0 0 0.75rem; }
  .profile-topbar__item--action .profile-topbar__link { padding-inline: 1rem; }
}