.account-space { max-width: 600px; text-align: center; justify-items: center; gap: 28px; }
.account-space [data-session-message] { max-width: 36ch; margin: 24px auto 16px; }
.account-space [data-session-name] { color: #d0dcea; margin: 26px 0 0; font-size: 1.25rem; }
.account-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.account-actions :is(button,a) { font-size: .875rem; }
.account-utilities { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; font-size: .75rem; }
.account-danger { display: flex; justify-content: center; min-width: min(240px, 100%); padding-top: 6px; border-top: 1px solid #242a33; font-size: .75rem; }
.quiet-dialog { max-width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); width: 560px; overflow: clip; border: 0; background: #05080c; color: #e7edf5; padding: 56px clamp(22px, 4vw, 44px) 32px; text-align: center; }
.quiet-dialog::backdrop { background: #000d; }
.quiet-dialog h2 { font-size: 1.6rem; font-weight: 400; letter-spacing: -.055em; line-height: 1.15; margin: 0 0 22px; }
.quiet-dialog p { color: #a4aebd; line-height: 1.5; font-size: .8125rem; margin: 18px 0; }
.dialog-close { position: absolute; right: 14px; top: 8px; width: 44px; font-size: 1.5rem; }
#saved-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
#saved-list a { color: #d1e3f5; min-height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: .875rem; }
#saved-list a:hover { color: #fff; }
#passport-delete-confirmation p { color: #e3e9f1; }
#public-passport:has(#passport-delete-confirmation:not([hidden])) > :is(#passport-status,.account-actions,#passport-records) { display: none; }
#account-delete-status { color: #e3e9f1; }
#account-delete-result { max-width: 42ch; margin: 0; font-size: .8125rem; line-height: 1.5; }
#account-delete-result a { color: #d9eaf8; text-underline-offset: 3px; }
#account-delete-result a:hover { color: #fff; }
@media (max-height: 620px) {
  .account-space { gap: 8px; }
  .account-space [data-session-message] { margin: 16px auto 4px; }
  .quiet-dialog { padding-block: 42px 18px; }
  .quiet-dialog h2 { margin-bottom: 12px; }
  .quiet-dialog p { margin-block: 10px; }
  #saved-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 12px; }
}
/* Short landscape screens keep Delete account beside the utilities, behind a
   rule, instead of on a row of its own, so a wrapped display name still fits. */
@media (max-height: 480px) and (min-width: 480px) {
  .account-space { grid-template-columns: 1fr auto auto 1fr; column-gap: 0; }
  .account-space > * { grid-column: 1 / -1; }
  .account-space > .account-utilities { grid-column: 2; }
  .account-space > .account-danger { grid-column: 3; min-width: 0; margin-left: 30px; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid #242a33; }
}
