/* Shared by the Astro header and selection's standalone headers. */
.header-account { position: relative; flex: none; }
.header > .header-account { margin-inline-start: auto; }
.header-account > a.account-link.is-authenticated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 3px 8px;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
}
.header-account .account-link.is-authenticated:is(:hover,[aria-expanded='true']) {
  background: var(--sea-accent-soft, #fdeee7);
  color: var(--sea-accent-text, #ad350d);
}
.header-account .account-link__avatar,
.header-account .account-link__avatar img { width: 40px; height: 40px; }
.header-account .account-link__name {
  max-width: 128px;
  font-size: 16px;
  font-weight: 600;
}
.header-account-panel {
  position: absolute;
  z-index: 80;
  inset-block-start: 100%;
  inset-inline-end: 0;
  width: min(216px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--sea-line, #e3e5e9);
  border-radius: 12px;
  background: #fff;
  color: #17191b;
  box-shadow: 0 12px 32px #17191b1c;
}
.header-account-panel[hidden] { display: none; }
.header-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 13px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--sea-line, #e3e5e9);
}
.header-account-identity div { min-width: 0; }
.header-account-identity strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
}
.header-account-identity small { color: #545a61; font-size: 12px; }
.header-account-identity small[data-status='approved'] { color: #256344; }
.header-account-identity small[data-status='pending'] { color: #80510c; }
.header-account-panel :is(a, button) {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.header-account-panel :is(a, button):hover {
  background: var(--sea-accent-soft, #fdeee7);
  color: var(--sea-accent-text, #ad350d);
}
.header-account-panel :is(a, button):focus-visible {
  outline: 2px solid var(--sea-accent-text, #ad350d);
  outline-offset: -2px;
}
.header-account-panel svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-account-panel .header-account-logout {
  border-top: 1px solid var(--sea-line, #e3e5e9);
  border-radius: 0 0 7px 7px;
  color: #545a61;
}
.header-account-error { margin: 4px 8px; color: #a33126; font-size: 13px; }
.header-account-confirm {
  width: min(360px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--sea-line, #e3e5e9);
  border-radius: 12px;
  background: #fff;
  color: #17191b;
}
.header-account-confirm::backdrop { background: #17191b60; }
.header-account-confirm h2 { margin: 0 0 16px; font-size: 20px; }
.header-account-confirm > div { display: flex; justify-content: flex-end; gap: 8px; }
.header-account-confirm button { min-height: 44px; padding: 8px 14px; border: 1px solid #c6cad0; border-radius: 7px; background: #fff; color: #17191b; font: inherit; cursor: pointer; }
.header-account-confirm button[value='logout'] { background: #ad350d; border-color: #ad350d; color: #fff; }
@media (max-width: 767px) {
  .site-header--compact .header__actions > .header-account:has(.is-authenticated) {
    display: block;
    grid-column: 3;
    grid-row: 1;
    min-width: 44px;
  }
  .header-account > a.account-link.is-authenticated {
    width: 44px;
    justify-content: center;
    padding-inline: 1px;
  }
  .header-account .account-link.is-authenticated .account-link__name { display: none; }
  .header-account-panel { width: min(200px, calc(100vw - 32px)); }
  .selection-mobile-ready .header > .header-account:not(:has(.is-authenticated)) { display: none; }
  .selection-mobile-ready .header > .header-account:has(.is-authenticated) + .selection-mobile-header-actions { margin-left: 0; }
  .selection-mobile-ready .header:has(.header-account .is-authenticated) .brand-logo { width: min(144px, calc(100vw - 192px)); }
  .selection-mobile-ready .header-account-panel { inset-inline-end: -76px; }
}
