Writer UI suddenly turned to light mode after opening Impress; cannot revert

I was working on a document in LibreOffice Writer with dark mode enabled, such that the entire UI was dark, the page was black, and the text was white. I opened an unrelated presentation in Impress from my file system, and all of a sudden, all the UX elements of Writer went completely white. According to the “Appearance” tab in Options, I’m still in dark mode, but I cannot change these elements to be dark again. This has the added side effect of making my text black, creating black-on-black, which is incredibly difficult to read. How do I enable the total dark mode again? And how come opening Impress might have triggered this?

Currently on the Flatpak version on Kubuntu 22.04.5

Here’s a screenshot of what Writer looks like right now:

Edit: Unfortunately, closing and reopening only helped so much: