@layer components {
  /* The activation steps as pages: the mockup's dialog card, in the app shell or the auth shell alike. */
  .page--enroll { max-width: 440px; }
  .enroll-card { gap: 18px; }
  .enroll-card .card-footer { justify-content: flex-start; }
  .enroll-step { margin: 0; color: var(--muted-foreground); font-size: 13px; }
  .enroll-card .form { display: grid; gap: 14px; min-width: 0; }
  .enroll-card .input { width: 100%; min-width: 0; box-sizing: border-box; }
  .enroll-qr { margin: 0 auto; width: 176px; padding: 8px; border-radius: var(--radius-md); background: #fff; line-height: 0; }
  .enroll-qr svg { width: 100%; height: auto; }
  .enroll-key { display: grid; gap: 6px; color: var(--muted-foreground); font-size: 14px; }
  .enroll-key p { margin: 0; }
  .enroll-key__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--foreground); }
  .enroll-key__line code, .code-grid code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
  .input--code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .2em; }
  .enroll-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .enroll-actions--start { justify-content: flex-start; }

  .recovery-codes { display: grid; gap: 14px; }
  .code-grid {
    list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px;
    border: 1px dashed var(--border); border-radius: 10px; background: var(--surface);
  }
  .check-line { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: var(--tap); }
  .check-line input { width: 18px; height: 18px; flex: none; }

  /* .field and .button set a display of their own, which beats the UA rule for [hidden] inside a layer. */
  #reverify-dialog [hidden] { display: none; }

  /* « Réglages › Sécurité »: the legend is the card's title, each choice a title with its hint below. */
  .security-levels { border: 0; padding: 0; margin: 0; min-width: 0; gap: 12px; }
  .security-levels legend { padding: 0; font-size: 15px; font-weight: 600; }
  .security-levels .check label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
  .security-levels .check label .hint { font-weight: 400; }

  /* The 2FA pill sits under the name and hugs its text; the dialog's lead keeps its distance from the first field. */
  .cell-strong + .badge { display: inline-flex; width: fit-content; align-self: flex-start; }
  #reverify-dialog .hint { margin: 0 0 12px; }
  .security-foot { margin: 0; padding: 14px 0 20px; }
}
