.header-account-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.account-link { color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; text-underline-offset: 4px; }
.account-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -10px 0 24px; font-size: 12px; }
.account-caption a { font-weight: 700; text-underline-offset: 4px; }
.account-caption > span { color: var(--muted); }
#account-dialog { width: 480px; padding: 0; background: #fff; text-align: left; }
.account-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--rule); }
#account-title { margin: 0; font-size: 17px; letter-spacing: 0; }
.account-close { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 0; background: #f4f6f2; color: var(--ink); font-size: 25px; line-height: 1; }
.account-close:hover { background: #e9eee6; }
.account-loading { margin: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.account-loading[hidden] { display: none; }
.account-frame { display: block; width: 100%; height: min(560px, calc(90dvh - 125px)); border: 0; }
.account-fallback { margin: 0; padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--muted); text-align: center; font-size: 12px; }
.account-fallback a { margin-left: 4px; }
@media (max-width: 1050px) {
  .header-account-actions { gap: 12px; }
  .account-link { font-size: 12px; }
}
@media (max-width: 600px) {
  .masthead { grid-template-columns: 1fr; gap: 12px; }
  .masthead > .brand { justify-self: center; }
  .header-account-actions { justify-self: center; gap: 22px; }
  .account-link { font-size: 13px; }
  .account-caption { margin: -8px 0 22px; font-size: 11px; }
  .account-dialog-heading { padding: 10px 14px; }
  #account-title { font-size: 16px; }
}
