refactored layout styles