 <script>
        // Immediately set theme before DOM renders
        const savedTheme = localStorage.getItem('theme');
        const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;

        // Apply in this order: saved > system > light
        document.documentElement.setAttribute('data-theme',
            savedTheme || (systemPrefersDark ? 'dark' : 'light')
        );
    </script>

    <link rel="stylesheet" href="../omni.min.css">
    <link rel="stylesheet" href="https://