/* Last-loaded paint guard: quiet chrome across the app and operator controls.
   Preserve functional accent fills and semantic status colors; remove only decorative rings and glows. */
@media (forced-colors: none) {
  html body :focus-visible:not([aria-invalid="true"]) {
    outline-color: var(--ds-ink) !important;
    box-shadow: none !important;
  }

  html body :is(
    [aria-pressed="true"], [aria-checked="true"], [aria-selected="true"],
    [aria-current="page"], [aria-expanded="true"]
  ):not([aria-invalid="true"]) {
    border-color: var(--ds-edge) !important;
    outline-color: var(--ds-ink) !important;
    box-shadow: none !important;
  }

  /* Preset chrome may add colored frames, stripes, and inset glows to settings plates. */
  html body :is(.set-group, .lc-rules, .lc-hud, .lc-preview-card) {
    --lc-ring: transparent !important;
    --lc-stripe: none !important;
    --lc-block-shadow: var(--ds-shadow-card) !important;
  }
  html body .lc-preview-card::before {
    background: none !important;
  }
}

@media (forced-colors: active) {
  html body :focus-visible {
    outline-color: Highlight !important;
  }
}
