Gravar-mail: Learning to select actions shapes recurrent dynamics in the corticostriatal system