Refactored styles/templates.