The dark side of galaxy stellar populations II: The dependence of star formation histories on halo mass and on the scatter of the main sequence | Publicación