From 6c87c745b335e9f54cb00b7c8c4f18670809711b Mon Sep 17 00:00:00 2001 From: hshum Date: Sat, 18 Jul 2026 15:16:38 -0700 Subject: [PATCH] fix(redesign): guard OS-light WCAG inks against explicit app-dark theme Three root-caused polish fixes found by examining the canonical answer harness before presentation: 1. All eight @media (prefers-color-scheme: light) hardening blocks keyed off the OS scheme while the app themes via data-redesign-theme. An OS-light user with the app toggled dark received near-black !important inks on dark surfaces: invisible table headers ([class*="muted"] even matched Tailwind's bg-muted), unreadable code lines, vanished run-summary meta, darkened accent. Every selector in those blocks now carries :where(:not([data-redesign-theme="dark"])) - zero added specificity, so the light-mode cascade is byte-identical. 2. The light block's [class*="primary"] substring shotgun force-filled streamdown markdown links (