Several lite surfaces kept their light colours or fell below 4.5:1 in dark
mode: secondary text in segmented choices (4.27:1), input borders
(1.93:1), white text on red buttons (3.76:1), added lines in the config
diff (3.78:1), and CodeMirror's black cursor, search panel and match
highlights. The site theme now sets light-dark() values for these in
modeTokens.css; light mode renders pixel-identical in 208 of 209 shots
(one 28-pixel antialiasing difference).
check-ui rejects raw colour literals outside src/themes, and
scripts/dark-mode.cjs checks cursor, search, input contrast, first paint
and route switches in dark and system modes.