Abstract: High-resolution observations and 3D simulations suggest that a local dynamo operates near the surface and produces ubiquitous small-scale magnetic elements, thus contributing to the magnetic carpet in the photosphere and to the magnetic structure and dynamics of the solar atmosphere. It appears that the traditional mechanisms of chromospheric energy and mass transport by acoustic waves and shocks are likely to play a secondary role; instead, the primary drivers in the energetics and dynamics …