A general theory of regression adjustment for covariate-adaptive randomization: OLS, Lasso, and beyond