How can I fix and customize my css snippet that changes the color of folders?

Sadly no solution here, came to post pretty much the exact issue where the root folders aren’t working, then found yours. If you find a solution elsewhere, please share it here