/* My account additions on the demo's settings rows (kit.css `.srow`, account.js): the e-mail line with its Change button, the authenticator QR code beside its manual key, the sent-link notice and the photo dialog. */
.email-line { display: flex; align-items: center; gap: 8px; }
.email-line .with-icon { flex: 1; min-width: 0; }
.email-line .field[readonly] { color: var(--ink-2); }
.srow-control .state-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.srow-control .state-waiting strong { color: var(--ink); }

.totp-setup { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: center; }
.totp-qr { display: block; width: 168px; height: 168px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line); background: #FFFFFF; }
.totp-manual { display: grid; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.totp-manual .token-box { margin-top: 0; }
.totp-manual .token-box code { font-size: 13px; letter-spacing: 0.04em; }
.wizard .codes { margin-top: 0; }
.wizard .banner.compact, .avatar-edit .banner.compact { margin: 0; }

.mail-sent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; }
.mail-sent .tile { flex: none; }
.mail-sent .fhint { margin-top: 4px; }

.avatar-edit { display: grid; gap: 12px; margin-top: 4px; }
.crop-previews { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.crop-previews figure { display: grid; justify-items: center; gap: 4px; margin: 0; }
.crop-previews figcaption { font-size: 11.5px; color: var(--ink-3); }
.crop-previews .linkish { align-self: center; }

/* Security, « Connexion »: the configured passkeys, one row each (the session list's tile, name and added date, status, action),
   then « Ajouter une clé d'accès »; the note under the two-step rows. The actions (« Renommer » when Identity serves it,
   « Supprimer ») sit together at the row's end. */
.key-list { list-style: none; margin: 0; padding: 0; display: grid; }
.key-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.key-list li:first-child { border-top: 0; padding-top: 0; }
.key-list li:last-child { padding-bottom: 4px; }
.key-name { min-width: 0; }
.key-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-name .muted { display: block; font-size: 12px; }
.key-actions { display: flex; align-items: center; gap: 4px; }
.srow-control > .btn.small { justify-self: start; }
.settings-body > .key-note { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.settings-body > .key-note svg { flex: none; color: var(--ink-3); }

@media (max-width: 560px) {
  .totp-setup { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  /* On a phone the name takes the row's width; the status and the actions follow on the next line, the actions at its end
     (or on a line of their own when both do not fit). */
  .key-list li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; }
  .key-list li > .key-name { flex: 1 1 calc(100% - 50px); }
  .key-list li > .pill { margin-left: 42.5px; }
  .key-list li > .key-actions { margin-left: auto; }
}

/* Settings pages (account, Ops, ID, Endpoint) fill the page: on a phone the layout's two rows (sub-navigation, then body) would
   share the extra height and leave a gap under the sub-navigation. Rows keep their content's height. */
.page.account > .account-layout { align-content: start; }

/* A recent second-factor proof in place (address confirmation, resend). */
.recent-proof { margin-bottom: 14px; }
