You might like to look at Degristling the sausage
that has some discussions on locating unused CSS classes.
Unfortunately, it uses a Mac editor BBEDIT
However in one of the comments the responder points to a python3 script that will list all used CSS styles.
Usage: from the CLI, type ./cssstylelist.py > dump.txt