Don't have CSS declaration top-level. Nest them to match the structure of DOM. You do not need to define top-level CSS classes if not needed. Check how it is done elsewhere.