4df0360202
The toggleTheme() function targets .cv-container but initPreferences() was adding theme-clean to document.body, causing state mismatch. First click would do nothing because toggle state was inverted. - Change initPreferences() to target .cv-container - Fix HTMX swap handler to check .cv-container instead of body - Now first click works immediately in both directions