@AMS I do actually have a mostly-completed design but it's from way back, when I wasn't as clued up.
the general topology is one mainboard that's fully low voltage, then pluggable fontend modules for doing the mains measurement.
the modules have a pair of ADuM3473s or similar providing two isolated inputs and six isolated outputs in total, plus isolated bipolar power (with LDOs afterward) referenced to mains neutral. then I use direct resistive division and shunt current measurement.