Here's a picture of it:
The box says it's an RCCB.
The (working) upstairs flat is wired like this:
From CU:
Blue to third connection, top.
Brown to second connection, top.
From shower:
Blue to third connection, bottom
Brown to first connection, top.
The non-functioning flat is...