Implementing dark mode that respects system preferences but allows manual override. Flash prevention, persistence, and Tailwind setup.