Css refactor

Performs variety of CSS refactoring and cleanup. See individual commits for details.