Phase equilibria of bulk and confined colloid–polymer systems