/*
 * Account lifecycle: recovery codes, the Your data section (export, erase, delete), sign-in status in Team, and the
 * standalone "set a new password" and "business deleted" pages. Flat: borders only.
 */

/* Recovery codes, shown once (recovery-codes.js). */
.recovery-codes { display: grid; gap: 14px; min-width: 0; }
.recovery-codes h2, .recovery-codes h3 { font: 800 1.0625rem/1.3 var(--font); letter-spacing: -.02em; margin: 0; color: var(--navy); }
.recovery-codes p { margin: 0; font-size: .8125rem; line-height: 1.7; color: var(--ink); }
.recovery-list { list-style: none; margin: 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--mist); }
.recovery-list code { font: 600 .9375rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--navy); user-select: all; overflow-wrap: anywhere; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.recovery-status:empty { display: none; }
.recovery-codes .recovery-status { color: var(--navy); font-weight: 650; }
.recovery-saved { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; color: var(--navy); font-weight: 650; cursor: pointer; }
.recovery-codes > .btn-primary { justify-self: start; }
@media (max-width: 380px) { .recovery-list { grid-template-columns: 1fr; } }

/* Two-step verification card on Account (dashboard/security.js). */
.security-facts { margin: 0 0 14px; }
.security-facts.is-low { color: var(--warn); font-weight: 650; }
.security-fold { margin-top: 12px; }
.security-fold > summary { cursor: pointer; }
.security-fold > form { margin-top: 14px; }

/* Your data on Account (dashboard/lifecycle.js). */
.data-part { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 12px; min-width: 0; }
.data-part:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.data-part h3 { font: 800 .9375rem/1.4 var(--font); letter-spacing: -.02em; margin: 0; color: var(--navy); }
.data-part p, .data-part ul { margin: 0; max-width: 78ch; }
.data-part ul { padding-left: 20px; display: grid; gap: 4px; font-size: .8125rem; line-height: 1.7; color: var(--ink); }
.data-part form { max-width: 520px; }
.data-part .btn { justify-self: start; }
.data-part fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.data-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 78ch; }
.data-columns h4 { font: 700 .8125rem/1.5 var(--font); margin: 0 0 4px; color: var(--navy); }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid var(--bad); border-radius: 10px; background: var(--bad-tint); color: var(--bad); font-size: .8125rem; line-height: 1.6; font-weight: 650; }
.form-error a { color: inherit; }
.form-error[hidden] { display: none; }
.erase-result { padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--mist); max-width: 78ch; }
.erase-result strong { display: block; color: var(--navy); font-size: .875rem; }
.erase-result p { margin-top: 6px; }
.confirm-name { font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
@media (max-width: 640px) { .data-columns { grid-template-columns: 1fr; } }

/* Sign-in status in Settings, Team (logins.js): words first, colour second. */
.login-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: .75rem; color: var(--ink); }
.ops-row[data-login] .ops-reset, .ops-row[data-login] > .footnote { flex-basis: 100%; }

/* The standalone pages: new-password.html and deleted.html. */
.auth-card .lifecycle-facts { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--mist); font-size: .8125rem; line-height: 1.7; color: var(--ink); }
.auth-card .lifecycle-facts strong { color: var(--navy); }
.auth-card .lifecycle-actions { display: grid; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.auth-card .lifecycle-actions form { gap: 12px; }
.auth-card .lifecycle-actions .btn { justify-self: start; }
.auth-card [hidden] { display: none; }
/* A note inside a form on these pages is part of the form, not the card's closing footnote. */
.auth-card form .footnote { border-top: 0; padding-top: 0; margin: 0; }
