I'n no 240V expert but usually you put high voltages in a corner with large gaps to everything and isolation slots. And then use opto isolaters between the low and high voltages so that they are never in direct contact.
Width is in inspector.
Gnd Fill is in Routing.
EEVblog talks a lot about 240V isolation in products. Too many vids to find something at the moment.