/**
 * Proto `.check` — Twig CheckRow (checkbox + strong + help).
 * Shell-agnostic base; legacy EA `.mw-ds-check-row` stays under `.mw-ds-app`.
 * Tokens only — no hex.
 */
.mw-ds-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--bi-border-subtle);
  border-radius: var(--bi-radius);
  background: var(--bi-bg-surface);
  cursor: pointer;
}

.mw-ds-check > input[type='checkbox'] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--bi-primary);
}

.mw-ds-check__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mw-ds-check__text > strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bi-text);
  line-height: 1.35;
}

.mw-ds-check__text > span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--bi-muted);
  line-height: 1.35;
}

.mw-ds-check__text code {
  font-size: 0.7rem;
}

/* Legacy EasyAdmin boolean rows (Pipeline EDIT + pipeline component CRUD) */
.mw-ds-app .mw-ds-pipeline-edit .form-group.mw-ds-check-row,
.mw-ds-app .mw-ds-pipeline-edit .field-boolean.mw-ds-check-row,
.mw-ds-app .mw-ds-pipeline-edit .form-group.field-boolean,
.mw-ds-app .ea-new-form .form-group.mw-ds-check-row,
.mw-ds-app .ea-edit-form .form-group.mw-ds-check-row {
  display: block;
  padding: 0;
  margin: 0 0 0.625rem;
  border: 0;
  background: transparent;
}

.mw-ds-app .ea-new-form .form-group.mw-ds-check-row .mw-ds-check,
.mw-ds-app .ea-edit-form .form-group.mw-ds-check-row .mw-ds-check {
  width: 100%;
}

.mw-ds-app .mw-ds-pipeline-edit .form-group.field-boolean .form-check,
.mw-ds-app .mw-ds-pipeline-edit .form-group.mw-ds-check-row .form-check {
  margin: 0;
  min-height: 0;
  padding-left: 1.75rem;
}

.mw-ds-app .mw-ds-pipeline-edit .form-group.field-boolean .form-check-label,
.mw-ds-app .mw-ds-pipeline-edit .form-group.mw-ds-check-row .form-check-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bi-text);
}

.mw-ds-app .mw-ds-pipeline-edit .form-group.field-boolean .form-help,
.mw-ds-app .mw-ds-pipeline-edit .form-group.mw-ds-check-row .form-help {
  display: block;
  margin: 0.2rem 0 0 1.75rem;
  font-size: 0.75rem;
  color: var(--bi-muted);
  line-height: 1.35;
}
