Replace inline styles, flatten selectors