/*
 * Form fields rendered by AppFormBuilder#field: a label, the control, and
 * optional hint and error text, stacked. The control's own look, including
 * its invalid state, comes from base.css, so it's the same outside a field.
 */
@layer components {
  .field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);

    & label { color: var(--color-text-subtle); font-weight: 600; }
  }

  .field__hint { color: var(--color-text-subtle); font-size: var(--text-sm); }

  .field__error { color: var(--color-danger); font-size: var(--text-sm); }
}
