Coupled and Hidden Degrees of Freedom in Stochastic Thermodynamics