/* Formulários: diálogo da lista de espera + primitivas de formulário (.field, .check, .form-error, .mock-strip).
   Fora da carga inicial da home (v-experience-7): o diálogo traz este arquivo quando abre (React 19 espera a folha
   antes de mostrar o diálogo; WaitlistTrigger já o pré-carrega no hover/foco); as outras páginas o recebem por
   PageStylesheet (src/lib/styles.tsx), antes de pages.css e portal.css. */
/* ------------------------------------------------------------ lista de espera: diálogo */
.wl-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--sa-radius-card);
  background: var(--sa-paper);
  color: var(--sa-ink);
  box-shadow: 0 24px 60px rgb(33 30 27 / .3);
  overflow: auto;
  overscroll-behavior: contain;
}
.wl-dialog::backdrop { background: rgb(33 30 27 / .72); }
.wl-head { display: flex; align-items: center; gap: .875rem; padding: 1rem 1rem .5rem 1.5rem; }
.wl-title { flex: 1; min-width: 0; font-size: var(--sa-type-h3); line-height: 1.2; letter-spacing: -.02em; }
.wl-close { flex: none; }
.wl-form, .wl-done { display: grid; gap: 1rem; padding: .5rem 1.5rem 1.5rem; }
.wl-intro { color: var(--sa-ink); line-height: 1.55; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 700; }
.field input {
  width: 100%;
  min-height: var(--sa-target);
  padding: .625rem .875rem;
  border: 1px solid var(--sa-border-control); /* 3,71:1 */
  border-radius: var(--sa-radius-field);
  background: var(--sa-white);
  color: var(--sa-ink);
  font: 450 1rem/1.4 var(--sa-font-body);
}
.field input[aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--sa-action); outline: 2px solid var(--sa-action); outline-offset: 0; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; }
.check input { width: 1.375rem; height: 1.375rem; margin: .125rem 0 0; accent-color: var(--sa-action); }
.check label { line-height: 1.5; cursor: pointer; }
.field-error, .form-error { display: flex; gap: .5rem; align-items: flex-start; color: var(--sa-action); font-size: .9375rem; font-weight: 700; line-height: 1.45; } /* 5,36:1 */
.field-error .icon, .form-error .icon { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }
.form-error { padding: .75rem 1rem; border-radius: var(--sa-radius-field); background: var(--sa-coral-soft); color: var(--sa-ink); font-weight: 450; }
.form-error .icon { color: var(--sa-action); }
.wl-error:empty { display: none; }
.wl-error:focus { outline: none; }
.wl-error:focus-visible .form-error { outline: var(--sa-focus-width) solid var(--sa-ink); outline-offset: 2px; }
.wl-privacy { color: var(--sa-text-muted); font-size: .875rem; }
.wl-submit { justify-self: stretch; min-height: 3.25rem; }
.wl-submit[aria-disabled="true"] { cursor: progress; }
.wl-submit:disabled { background: var(--sa-surface-disabled); color: var(--sa-text-muted); cursor: not-allowed; }
.wl-challenge { display: grid; gap: .75rem; padding: 1rem; border-radius: var(--sa-radius-field); background: var(--sa-white); border: 1px solid var(--sa-border-soft); }
.wl-challenge[hidden] { display: none; }
.wl-challenge-widget:empty { display: none; }
.wl-done { justify-items: start; }
.wl-done-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--sa-white); color: var(--sa-success); }
.wl-done-icon .icon { width: 1.75rem; height: 1.75rem; }
.wl-done-title { font-size: 1.25rem; letter-spacing: -.02em; }
.wl-done-title:focus { outline: none; }
.mock-strip {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin: 0 1.5rem .5rem;
  padding: .5rem .75rem;
  border: 1px dashed var(--sa-border-control);
  border-radius: var(--sa-radius-field);
  background: var(--sa-white);
  font-size: .875rem;
  font-weight: 700;
}
.mock-strip .icon { width: 1.125rem; height: 1.125rem; }
