A single flat metalens now handles both excitation and fluorescence collection for diamond quantum sensors, enabling nanoscale sensing in spaces too tight for conventional optics.