I'm also unable getting this CSS to work. I've added the stylesheets to the file userstyle.css and it seems not working even after restarting Joplin.
userstyle.css
I wasn't aware that you need to write down [toc] inside the document to get this to work.