Those pieces were written at different times, both looks at your settings, one of them understand what the “system” option means and the other doesn’t and falls back to the default and they never corrected that behavior. And the default is light so they switch to dark after Javascript have had some time to load the UI code.
Other websites are smart enough to change how the page is loaded when you have picked a different option so it’s remembered
Classical code cruft.
Those pieces were written at different times, both looks at your settings, one of them understand what the “system” option means and the other doesn’t and falls back to the default and they never corrected that behavior. And the default is light so they switch to dark after Javascript have had some time to load the UI code.
Other websites are smart enough to change how the page is loaded when you have picked a different option so it’s remembered