.account-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  white-space: nowrap;
}
.account-area a, .account-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.account-toggle {
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.account-toggle bdi {
  max-inline-size: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-toggle::after {
  content: "";
  inline-size: .45em;
  block-size: .45em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.15em) rotate(45deg);
}
.account-links {
  position: absolute;
  z-index: 5;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-inline-size: max-content;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.account-links a { display: flex; }
.account-links a + a { border-block-start: 1px solid var(--line); }
.account-area :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.account-recheck body { visibility: hidden; }
.account-photo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-block: 24px;
}
.account-photo label, .account-photo input { display: block; max-inline-size: 100%; }
.account-photo input { margin-block: 8px; }
.account-photo > div:not(.account-avatar) { min-inline-size: 0; }
.account-photo button {
  border: 0;
  background: none;
  color: inherit;
  padding-inline: 0;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.account-photo [role=status] { flex-basis: 100%; margin: 0; }
.account-photo [role=status]:empty { display: none; }
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft);
  font-size: 1.4rem;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-profile-form { max-width: 680px; }
@media (min-width: 701px) {
  .header .nav-wrap { flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
  .header .nav { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .header .nav-wrap.is-open { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .account-area { grid-row: 1; grid-column: 1 / -1; display: block; border-block-end: 1px solid var(--line); }
  .account-area > a { margin-inline-end: 18px; }
  .account-links { position: static; border: 0; padding: 0; }
}
.account-avatar [hidden] { display: none; }

.account-links button {
  display: flex;
  align-items: center;
  inline-size: 100%;
  min-block-size: 44px;
  padding: 0;
  border: 0;
  border-block-start: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.email-access-form {
  max-inline-size: 36rem;
  margin-block-end: 1.25rem;
}
.email-access-form details summary { cursor: pointer; }
.member-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  margin-block-end: 1rem;
}
.member-identity p { margin: 0; }
.member-identity strong { font-size: 1.25rem; }

#journey-profile { padding-block-start: clamp(32px, 6vw, 64px); }
#journey-profile h1 { margin-block-end: 1rem; }
#journey-profile .member-identity { gap: 1rem; padding-block: 1.15rem; }
#journey-profile .account-avatar { flex-basis: 4rem; }
#journey-profile .member-identity p { color: var(--muted); overflow-wrap: anywhere; }
#journey-profile .member-identity > div:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
#journey-profile .actions .button { font-size: 1rem; }
#journey-profile .actions .button::after { display: none; }
.journey-next { max-inline-size: 38rem; margin-block-start: 2rem; border: 1px solid var(--line); padding: 1.3rem; }
.journey-next h2 { margin: 0 0 .45rem; font-size: 1.25rem; font-weight: 700; letter-spacing: normal; }
.journey-next p { margin: 0 0 1.25rem; color: var(--muted); font-size: 1rem; }
.journey-next a { font-weight: 700; text-underline-offset: .2em; }
#my-journey button[hidden], .membership-grid[hidden], #my-journey[hidden] { display: none; }

.journey-priority { display: grid; gap: 1rem; margin-block-end: 1.5rem; }
.journey-priority:empty { display: none; }
.journey-priority article { padding: 1rem; border-block-start: 2px solid var(--red); background: var(--soft); }
.journey-priority h3 { margin-block: 0 .5rem; }
@media (min-width: 48rem) {
 .journey-priority { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
