/* =============================================================================
 * TWE UI -- accent.css   (GENERATED -- do not edit by hand)
 *
 *   tool        : veisla
 *   accent      : 38,95%,55%
 *   resolved by : --accent
 *   kit version : 2.1.0
 *
 * Regenerate with:
 *     python scripts/twe_ui_sync.py install <this repo> --tool veisla
 *
 * This is the ONLY file that carries a per-tool value, and tokens.css is never
 * edited in a tool repo. That split is the whole anti-drift design: an upstream
 * token change is a clean overwrite, and a tool's identity survives it.
 * ========================================================================== */

/* Hue and saturation are theme-independent -- no theme block in tokens.css
 * overrides them, so one declaration covers dark, light and field. */
:root {
  --twe-accent-h: 38;
  --twe-accent-s: 95%;
}

/* Dark is the default theme; this matches tokens.css's own dark scope. */
:root,
[data-twe-theme='dark'] {
  --twe-accent-l: 55%;
}

/* Re-assert the kit's light/field lightness AFTER the :root rule above, or the
 * dark lightness leaks onto white grounds and drops below 4.5:1. These values
 * are read out of tokens.css by the sync script, not chosen here. */
@media (prefers-color-scheme: light) {
  :root:not([data-twe-theme]) {
    --twe-accent-l: 44%;
  }
}
[data-twe-theme='light'] {
  --twe-accent-l: 44%;
}
/* Field theme: a tablet in direct sun at a boring site. Highest contrast. */
[data-twe-theme='field'] {
  --twe-accent-l: 38%;
}
