Please copy this upstream change, where appropriate, https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-dark-mode.css&type=revision&diff=1119248845&oldid=1101625928
For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ
Thanks,