Safety in a capsense lamp
The key concept is that you need to be able to draw a line across your board, with all of the mains-connected traces on one side of it, and all of the isolated traces on the other:



The copper-free gap through which this line runs needs to be at least 6mm wide, in order to provide adequate arc-over and creepage clearance between the two sets of traces.