@layer components {
  /* Vault setup: a narrow centered column on the usual sheet. The promise up
     top, the form, the no-reset warning right above the button that commits
     to it, and the quieter fine print beneath. */
  .vault-setup {
    display: flex;
    flex-direction: column;
    gap: var(--block-space-double);
    margin-inline: auto;
    max-inline-size: 46ch;
    padding-block: var(--block-space);
  }

  .vault-setup__header {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--block-space-half);
    text-align: center;

    > h1 {
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    > p {
      margin: 0;
      max-inline-size: 36ch;
    }
  }

  .vault-setup__icon {
    align-items: center;
    /* From ink rather than a fixed grey, so it shows on either backdrop. */
    background-color: color-mix(in oklch, var(--color-ink) 10%, transparent);
    block-size: 3.5rem;
    border-radius: 50%;
    color: var(--color-ink);
    display: flex;
    font-size: 1.6rem;
    inline-size: 3.5rem;
    justify-content: center;
    margin-block-end: var(--block-space-half);
  }

  /* Tinted from the negative colour itself so it reads in both themes. */
  .vault-setup__warning {
    background-color: color-mix(in oklch, var(--color-negative) 12%, transparent);
    border-inline-start: 3px solid var(--color-negative);
    border-radius: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    padding: var(--block-space-half) var(--block-space);

    > p {
      margin: 0;
    }

    > :first-child {
      color: var(--color-negative);
    }
  }

  .vault-setup__notes {
    color: var(--color-ink-medium);
    display: flex;
    flex-direction: column;
    font-size: var(--text-small);
    gap: var(--block-space);
    list-style: none;
    margin: 0;
    padding: 0;

    > li {
      align-items: baseline;
      display: grid;
      gap: var(--inline-space);
      grid-template-columns: auto 1fr;
    }

    svg {
      flex-shrink: 0;
      transform: translateY(0.15em);
    }

    p {
      margin: 0;
    }

    strong {
      color: var(--color-ink);
      font-weight: 600;
    }
  }
}
