Canonical structure of dynamical fluctuations in mesoscopic nonequilibrium steady states