From what I noticed, there’s a hierarchy governing color groups: the color groups that are higher take precedence. If two identical rules are associated with different colors, the nodes have the color of the top rule.
There could be an option to rearrange the color rules by dragging them. All of them could have dragging handles on their left side.