UPDATE: That's exactly what's happening. When I switch on the original categories sidebox and replace the expanded categories sidebox, then the stylesheet does exactly what it's supposed to.

Is there a way to point the stylesheet at the expanded categories sidebox instead of the original categories sidebox?