Under what circumstances is this profile block loaded outside of a .crm-container? Can we just give that outer element the class .crm-container? Then most of your css changes would not be necessary.