.account-navigation {
  position: relative;
  flex: none;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  max-width: min(23rem, 48vw);
  min-height: 3rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--navy-deep, var(--deep));
  background: var(--white);
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-avatar {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-weight: 750;
}

.account-label {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.chevron {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.2rem;
  flex: none;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: translateY(-0.15rem) rotate(45deg);
}

.account-menu[open] .chevron {
  transform: translateY(0.15rem) rotate(225deg);
}

.account-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: var(--shadow, 0 1.5rem 4rem rgb(23 42 59 / 14%));
}

.menu-eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-list li + li {
  border-top: 1px solid var(--line);
}

.app-list a {
  display: flex;
  padding: 0.85rem 0;
  flex-direction: column;
  color: var(--navy-deep, var(--deep));
  text-decoration: none;
}

.app-list a:hover span {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.13rem;
  text-underline-offset: 0.25rem;
}

.app-list a span {
  font-weight: 750;
}

.app-list a small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.empty-state {
  padding-block: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-panel form {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.logout-button {
  padding: 0.45rem 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
