.home-account { grid-area: account; justify-self: end; position: relative; }
.home-account [hidden] { display: none !important; }
.home-account-link, .home-user > summary {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 44px; font-family: inherit; font-weight: 650; line-height: 1.2;
}
.home-account-link {
  color: white; text-decoration: none; font-size: .94rem; padding-inline: 12px;
  border: 1px solid #ffffff70; border-radius: 24px;
}
.home-account-link:hover { background: #ffffff14; }
.home-user { margin: 0; padding: 0; border: 0; }
.home-user > summary {
  position: relative; width: 44px; margin: 0; border-radius: 50%; border: 2px solid #adc2d6;
  list-style: none; background: #e4edf6; color: #182541; font-size: 1.05rem;
  font-weight: 750; line-height: 1; cursor: pointer; letter-spacing: .015em;
}
.home-user > summary::-webkit-details-marker { display: none; }
.home-account :is(summary,a):focus-visible { outline: 2px solid white; outline-offset: 3px; }
.home-check {
  position: absolute; right: -3px; bottom: -2px; width: 16px; height: 16px; box-sizing: border-box;
  background: #22724e; border: 2px solid var(--navy-deep, var(--cal-deep, #142e50)); border-radius: 50%; fill: none;
  stroke: white; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.home-user-panel {
  position: absolute; z-index: 25; inset-inline-end: 0; top: calc(100% + 9px);
  width: max-content; max-width: min(20rem, calc(100vw - 40px)); box-sizing: border-box;
  padding: 12px 16px; border: 1px solid #c2cedc; border-radius: 9px; background: white;
  color: #182541; text-align: start; letter-spacing: normal; line-height: 1.45; box-shadow: 0 6px 20px #131d3526;
}
.home-user-panel span { display: block; overflow-wrap: anywhere; color: #566680; font-size: .875rem; }
.home-user-panel strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
@media print { .home-account { display: none; } }

.home-full-name:empty { display: none; }
.home-user-panel .home-profile-link { display: inline-block; color: #245479; margin-top: .5rem; font-size: .94rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.home-account .home-profile-link:focus-visible { outline-color: #245479; }

.account-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand account";
  align-items: center;
  gap: 12px;
}
.account-header .brand { grid-area: brand; justify-self: start; }
.account-header .home-user-panel #account {
  display: grid; justify-items: start; gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #d8e0e8;
}
.account-header #account .home-profile-link { margin: 0; }
.account-header .home-user-panel button:focus-visible { outline-color: #245479; }
@media (max-width: 380px) {
  .home-account-link { padding-inline: 7px; }
  .account-header { padding-inline: 12px; gap: 8px; }
  .account-header .brand { gap: 6px; font-size: 1rem; }
  .account-header .brand-pipe { width: 32px; height: 32px; }
}

.home-user-panel .badge-admin-link { display: block; width: fit-content; }
