Galaxy gas flows inferred from a detailed, spatially resolved metal budget | Synapse