Three pre-built grids (15/30/60 min columns) swap visibility via the checkbox-hack: hidden radios + :has() on a wrapping element. No JavaScript recomputes anything. Coarser grains just round sub-slot events to the nearest column.
:has()