/* A standalone checkbox and its label share a row. Help and errors sit below it. */
:where(form) :is(div, p):has(> label[for]):has(> input[type="checkbox"]):not(:has(> input:not([type="checkbox"]):not([type="hidden"]), > select, > textarea, > button)) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: .25rem .55rem;
}
:where(form) :is(div, p):has(> label[for]):has(> input[type="checkbox"]):not(:has(> input:not([type="checkbox"]):not([type="hidden"]), > select, > textarea, > button)) > label[for] {
  grid-area: 1 / 2;
  margin: 0;
}
:where(form) :is(div, p):has(> label[for]):has(> input[type="checkbox"]):not(:has(> input:not([type="checkbox"]):not([type="hidden"]), > select, > textarea, > button)) > input[type="checkbox"] {
  grid-area: 1 / 1;
  justify-self: start;
  margin: .15em 0 0;
}
:where(form) :is(div, p):has(> label[for]):has(> input[type="checkbox"]):not(:has(> input:not([type="checkbox"]):not([type="hidden"]), > select, > textarea, > button)) > :is(.helptext, .errorlist, small, p) {
  grid-column: 2;
  margin-block: 0;
}
