I have some complicated and messy CSS, is there some tool which could take this very messy CSS and simplify it?
I know that people often go the other way, they make CSS using a more concise stylesheet language such as http://lesscss.org/ and produce the CSS from this. However my situation is that I have a lot of ugly messy CSS and I want to go the other way.
CSS Tidy is a good open source optimizer.
Check this online tool too. Its pretty cool for quick optimizations.
If you want the entire package, Google provides closure tools which would optimize, and even minify static files for you – from inline styles, javascript, etc