Sidebar CSS not working correctly on all layouts
Compare the local (first) and published (second) screenshots:
The difference is here: Appearance > Customize > Global > Container
. This configuration produces the first image:
The default configuration is: