/*
 * overrides.css — Layer 9: SANCTIONED DIVERGENCES.
 *
 * The exception file. Every entry MUST carry a justification comment:
 * what system pattern it diverges from and why that pattern cannot
 * serve. An override without a justification is drift by definition.
 * This file is expected to stay near-empty — its size is a design-
 * system health metric, and its git history is the drift audit trail.
 * Loads last: entries win ties against every other layer.
 */

/* Content-model visualizer density.
   Diverges from: the body type scale (1rem base).
   Why: the visualizer is a dense, data-heavy dev tool; a single scoped
   size on its root rescales the whole page (everything below uses em).
   The alternative — per-component size overrides — would scatter the
   divergence across dozens of rules. */
.cmv-root {
  font-size: 0.875rem;
}

/* Stream row selection checkbox.
   Diverges from: the form checkbox, which forms.css draws as a Yes/No switch.
   Why: a selection mark beside every row of a list has to be a box; a switch
   per row reads as a setting and is wider than the row's icon. The box is the
   minimum target, since a miss opens the row. */
input[type=checkbox].message-row-check {
  appearance: auto;
  width: var(--target-size-min);
  height: var(--target-size-min);
  border-radius: 0;

  &::after,
  &:checked::after {
    content: none;
  }
}
