Split and reorganise CSS