/*
 * Identity (since UR-3, 2026-12-02, the pages of the accounts are the module Users, users.css): « Mon compte », the
 * extension of the account and the preview of its signature. Only the tokens of assets/style.css.
 */
@layer modules {
/* SG-3 (2026-11-27): « Mon compte »: my extension, and my signature as my replies carry it (an isolated frame). */
.security-extension { display: grid; gap: 4px; max-width: 220px; margin-bottom: 12px; }
.security-signature-preview { display: block; width: 100%; max-width: 520px; min-height: 520px; margin: 4px 0 14px; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--white); }

/* SE-1 to SE-8 (2026-12-04): « Sécurité » on the standards of Atlas. */
.security-tabs { margin-bottom: 18px; }
/* SE-3: « Mon compte », what protects the account, a line each with where it stands and its action. */
.security-checklist { margin: 0; padding: 0; list-style: none; }
.security-check { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.security-check:first-child { border-top: 0; padding-top: 4px; }
.security-check-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--status-success-bg); color: var(--status-success-fg); }
.security-check-icon.is-warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
.security-check-main { display: grid; gap: 4px; min-width: 0; }
.security-check-main > span { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.5; }
.security-check-main .badge { margin-right: 4px; }
.security-check-count { display: inline-flex; min-width: 22px; justify-content: center; margin-left: 4px; padding: 0 7px; border-radius: var(--radius-pill);
    background: var(--tab-count-bg); color: var(--tab-count-fg); font-size: var(--fs-xs); line-height: 20px; vertical-align: middle; }
.security-check-action { display: flex; justify-content: flex-end; }
.security-check-action form { margin: 0; }
.security-reset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.security-reset h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.security-reset p { margin: 0; color: var(--text-secondary); font-size: var(--fs-sm); }
.security-reset-text { flex: 1 1 360px; }
/* SE-4: the policy of the sessions, one informative box. */
.security-policy { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface-sunken); color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.5; }
.security-policy .ui-icon { flex: none; margin-top: 2px; color: var(--text-tertiary); }
.security-policy p { margin: 0; }
.security-policy p + p { margin-top: 4px; }
/* SE-5, SE-6: the head of a section with its action at the right; the tables of the lists. */
.security-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.security-section-head h2 { margin: 0; font-size: var(--fs-lg); }
.security-section-head p { margin: 4px 0 0; color: var(--text-secondary); font-size: var(--fs-sm); }
.security-section-head form { margin: 0; }
.security-sessions-table td, .security-devices-table td, .security-ended-table td, .security-activity-table td { vertical-align: top; }
.security-sessions-table tr.is-current td { background: var(--accent-soft); }
.security-sessions-table td:last-child, .security-devices-table td:last-child { width: 1%; }
.security-time { white-space: nowrap; }
.security-ended { margin-top: 14px; }
.security-ended > summary { cursor: pointer; color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600; }
.security-ended[open] > summary { margin-bottom: 10px; }
.security-activity-table code { font-size: var(--fs-xs); }
/* AT-1 to AT-3 (2026-12-04): the kinds of event wrap rather than hide; the date of an event always on one line. */
.security-activity-tabs { flex-wrap: wrap; overflow-x: visible; }
.security-activity-table .security-time { white-space: nowrap; }
/* SE-7: the forms of « Préférences ». */
.security-notification-field { align-self: end; min-height: var(--form-control-height); align-content: center; }
.security-form-save { margin-top: 18px; }
.security-notice-list { display: grid; gap: 10px; }
.security-signature textarea { width: 100%; max-width: 640px; }
.security-signature-company { margin: 0 0 6px; color: var(--text-secondary); font-size: var(--fs-sm); }
.security-signature-label { display: block; margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 500; }
/* SE-8: on a phone one column; the action of a line under it. */
@media (max-width: 720px) {
    .security-check { grid-template-columns: 32px minmax(0, 1fr); }
    .security-check-icon { width: 32px; height: 32px; }
    .security-check-action { grid-column: 2; justify-content: flex-start; }
    .security-time { white-space: normal; }
    :is(.security-sessions-table, .security-devices-table, .security-ended-table, .security-activity-table) :is(th, td) { padding-left: 4px; padding-right: 4px; overflow-wrap: anywhere; }
    :is(.security-sessions-table, .security-devices-table) .compact-button { padding: 4px 7px; }
}
}
