Phase-dependent heat and charge transport through superconductor–quantum dot hybrids