Cascade order

Two .target rules disagree. Same weight, so source order decides: this text is sky blue.

This heading matches .target AND #flag. The ID wins regardless of order.

Verify in dev tools: the !important green declaration beats the more specific red one, because importance outranks specificity in the cascade.