We can create another issue to load building-blocks CSS before other CSS styling, but I think consider styling loading sequence isn't very safe because it could be affected by other css very easily.  Why not add a auto-height class for header while appending a fragment? We can increase the CSS specificity value by adding a specific class to header in this situation.  Therefore you don't need !important any more and more flexible for have other style of header.