/* xag-checks.css  ONE shared checkbox and radio look for every dialog and form (sign-in, newsletter, consent, filters, admin).
   A 24px box (the touch target), a 2px outline in the strong line colour, and when checked a FILLED accent box with a clearly drawn check mark (checkbox) or dot (radio)
   in the colour that sits on the accent, so the tick is visible in Dark, Glassy, Light and Brite. Keyboard focus shows a 3px ring. Shared colour roles only (typo-fit.css). */
html[data-theme] body :is(input[type="checkbox"], input[type="radio"]):not(#xag):not([data-xag-native]):not(.xag-sr) {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; flex: none; display: inline-grid; place-content: center; vertical-align: middle;
  width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 0 8px 0 0; padding: 0; cursor: pointer;
  background: var(--xag-c-surface); border: 2px solid var(--xag-c-line-strong); border-radius: 6px; box-shadow: none;
}
html[data-theme] body input[type="radio"]:not(#xag):not([data-xag-native]):not(.xag-sr) { border-radius: 999px; }
html[data-theme] body :is(input[type="checkbox"], input[type="radio"]):not(#xag):not([data-xag-native]):not(.xag-sr):checked { background: var(--xag-c-accent); border-color: var(--xag-c-accent); }
html[data-theme] body input[type="checkbox"]:not(#xag):not([data-xag-native]):not(.xag-sr):checked::before {
  content: ""; width: 12px; height: 6px; margin-top: -2px; border-left: 3px solid var(--xag-c-on-accent); border-bottom: 3px solid var(--xag-c-on-accent); transform: rotate(-45deg); box-sizing: content-box;
}
html[data-theme] body input[type="radio"]:not(#xag):not([data-xag-native]):not(.xag-sr):checked::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--xag-c-on-accent); }
html[data-theme] body :is(input[type="checkbox"], input[type="radio"]):not(#xag):not([data-xag-native]):not(.xag-sr):focus-visible { outline: 3px solid var(--xag-c-accent); outline-offset: 2px; }
html[data-theme] body :is(input[type="checkbox"], input[type="radio"]):not(#xag):not([data-xag-native]):not(.xag-sr):disabled { opacity: .55; cursor: not-allowed; }
