Nonequilibrium dynamics of piecewise-smooth stochastic systems