/* Wave 6 A: activity export + retention panel, sign-in lockout notice, account devices, unlock on Users & access.
   Page-only sheet linked from identity/audit.html, identity/users.html, identity/account.html and auth/login.html. */
.id-activity-tools { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; margin-bottom: 16px; }
.id-activity-tools > .panel + .panel { margin-top: 0; }
.id-activity-tools > .panel:only-child { grid-column: 1 / -1; }
.id-export-form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.id-export-form .field { min-width: 0; }
.id-export-submit { display: flex; justify-content: flex-end; }
.id-export-form .field:nth-of-type(3), .id-export-form .field:nth-of-type(4) { grid-column: span 1; }
.id-export-submit .btn { width: 100%; justify-content: center; }

.card dl.id-retention-facts, .panel dl.id-retention-facts, dl.id-retention-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 14px; }
.id-retention-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
.id-retention-facts > div:last-child { border-bottom: 0; }
.id-retention-facts dt { color: var(--text-2); }
.id-retention-facts dd { margin: 0; text-align: right; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.id-retention-form { padding-top: 12px; border-top: 1px solid var(--border); }
.id-retention-history ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.75rem; color: var(--text-2); }

.id-locked { margin: 0 0 14px; }
.id-locked p { margin: 0; line-height: 1.5; }
.id-locked .callout-title { margin-bottom: 4px; }

.id-lock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.id-lock-row form { margin: 0; }
.id-lock-tag { display: inline-flex; align-items: center; gap: 4px; border-color: var(--amber-line); background: var(--amber-soft); color: var(--amber-text); }
.id-lock-tag .ico { width: 12px; height: 12px; }

.id-account { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.id-account > .panel + .panel { margin-top: 0; }
.id-policy { margin: 0 0 12px; line-height: 1.5; max-width: 70ch; }
.id-device-list { list-style: none; margin: 0; padding: 0; }
.id-device { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.id-device:first-child { border-top: 0; }
.id-device form { margin: 0 0 0 auto; }
.id-device-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); }
.id-device.is-current .id-device-icon { color: var(--cobalt-text); }
.id-device-main { min-width: 0; }
.id-device-name { margin: 0; font-weight: 600; font-size: 0.875rem; color: var(--text); }
.id-device-meta { margin: 2px 0 0; font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.id-this-device { margin-left: 6px; }

@media (max-width: 1100px) {
  .id-activity-tools, .id-account { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .id-export-form { grid-template-columns: minmax(0, 1fr); }
  .id-device { flex-wrap: wrap; }
  .id-device form { margin-left: 46px; }
}

/* wave 20 (builder A, PLAN B1): the MFA grace banner, the shown-once recovery codes, the /account MFA block */
.mfa-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: 0.75rem 1.5rem 0; padding: 0.75rem 1rem; border: 1px solid var(--amber-line); border-radius: var(--r-sm);
  background: var(--amber-soft); color: var(--amber-text); }
.mfa-banner-text { margin: 0; font-weight: 600; }
.mfa-forced { color: var(--text); font-weight: 600; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2.75rem; margin: 1rem 0;
  padding: 1rem 1rem 1rem 3rem; border: 1px dashed var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--text); }
.mfa-codes li { padding-left: 0.35rem; white-space: nowrap; }
.mfa-remember { margin-top: 0.25rem; }
.id-mfa-on { background: var(--teal-soft, var(--surface-2)); color: var(--teal-text, var(--text)); }
.id-mfa-off, .id-mfa-low { background: var(--amber-soft); color: var(--amber-text); }
.id-mfa-form { margin-top: 1rem; }
.id-mfa-note { color: var(--text); }
@media (max-width: 480px) { .mfa-codes { grid-template-columns: 1fr; } .mfa-banner { margin: 0.5rem 0.75rem 0; } }
