It was simple once I sat down and thought on it and seeing the setup
@Raptor72 did.
32 mm to 1-inch union
1-inch street elbow
1-inch pipe
1-inch to 1.25-inch reducer (I used 1.25-inch because I thought the tank had 40 mm overflow by mistake)
1.25-inch 90
1.25-inch street elbow
1.25-inch union (non-threaded side) sanded down until it fit the connection on the roller mat
I plumber the main overflow into one side and the secondary into the other side. Emergency still dumps into the back chamber which is also where my UV dumps into.
Used a 1.25 inch 45 degree elbow to help line them up better.
It could probably all be done with 1-inch.