/* Account and password recovery screens. Header controls belong to app.css. */
#account-dialog { width: min(640px, calc(100% - 32px)); }
.account-identity { margin-bottom: 24px; padding: 20px; border-radius: 12px; background: var(--raised); }
.account-identity > strong { display: block; font-size: 22px; font-weight: 650; margin-bottom: 20px; }
.account-identity dl { display: grid; gap: 20px; margin: 0; }
.account-identity dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-identity dl > div > div { min-width: 0; }
.account-identity dt { color: var(--muted); font-size: 13px; }
.account-identity dd { margin: 6px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.account-identity small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.account-identity button { flex: none; font-size: 13px; padding-inline: 12px; }
#account-username { font-family: ui-monospace, monospace; font-weight: 550; }
.account-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--raised); }
.account-tabs button { color: var(--muted); background: transparent; font-size: 14px; border-radius: 7px; padding-inline: 8px; }
.account-tabs button[aria-pressed=true] { color: var(--text); background: var(--panel); }
#account-dialog form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
#account-dialog form:first-child { margin: 0; padding: 0; border: 0; }
#account-dialog p { color: var(--muted); font-size: 14px; }
#account-status:not(:empty) { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; background: var(--raised); }
#account-dialog-footer { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
#account-dialog-footer button { flex: 1; font-size: 13px; }
#account-links > h3 { margin-bottom: 16px; }
#account-links .recovery-back { color: var(--lime); }
.account-reset-box { margin-bottom: 24px; padding: 20px; background: var(--raised); border-radius: 12px; }
.account-reset-box h3 { margin-bottom: 12px; }
.account-reset-box button { width: 100%; margin-top: 20px; }
.recovery-page { min-height: 100dvh; }
.recovery-shell { width: min(460px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0; }
.recovery-brand { display: inline-block; margin-bottom: 32px; font-size: 24px; font-weight: 700; letter-spacing: -.6px; }
.recovery-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.recovery-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border-radius: 12px; background: var(--accent-soft); color: var(--lime); font-size: 24px; }
.recovery-card h1 { font-size: 28px; margin-bottom: 16px; }
.recovery-card > p { font-size: 14px; color: var(--muted); }
.recovery-card form { display: grid; gap: 20px; margin: 24px 0; }
.recovery-card input { font-size: 16px; }
.recovery-card button { width: 100%; }
.recovery-help { font-size: 13px; color: var(--muted); }
.recovery-back { display: block; margin-top: 24px; color: var(--muted); font-size: 14px; }
#request-new-link { display: block; color: var(--lime); margin-top: 20px; font-size: 14px; }
#reset-status:not(:empty) { background: var(--raised); padding: 16px; border-radius: 10px; font-size: 14px; margin-top: 20px; }
.recovery-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
@media (max-width: 600px) {
  #account-dialog { width: calc(100% - 20px); }
  .account-identity { padding: 18px; }
  .account-identity dd { font-size: 14px; }
  .account-tabs button { font-size: 13px; }
  #account-dialog-footer { flex-direction: column; }
  .recovery-shell { padding-top: 28px; }
  .recovery-card { padding: 24px 20px; }
}
