Sometimes there might be multiple potential parents for a rule. Currently the code uses a "first-found" logic in renestCSS match your preference. It might be worth using a more complex heuristic for choosing the "best" parent (like, the one that shares the longest prefix or the one with a comment above it)?