Userscript that checks for your system's dark mode preference first on page load, then with an eventlistener to detect changes, and toggles Google Gemini's dark mode accordingly.
Also available at: https://greasyfork.org/en/scripts/495636-gemini-dark-mode-sync