Fixes #12822: Scope panel collapse styles to immediate panel bodies only