In VSD Kleopatra sometimes uses the color configured for "VS-NfD Compliant" and some other times it uses the color configured for "Trusted Root Certificates" for trusted root certificates. I haven't tried to find a way to reproduce this problem reliably because it feels random. I noticed this first after testing T8258: Kleopatra: Not possible to overwrite bold font configured for certificate category so it might depend on the certificate categories for which one changes the styling. The aforementioned certificate categories both have three conditions which means they have the same precedence so that the current issue isn't T8079: Kleopatra: Order of filters with custom id in settings dialog is wrong.
Comparing the order of the certificate categories in the Appearance config with the order of the corresponding key filters in the shipped/installed libkleopatrarc shows that certificate categories with the same precedence are not sorted by the number of their "Key Filter #NNN" group in the libkleopatrarc.