Adjusts header and quotes card styles, extracts common rules