WARNING: This page is about a different car, the 2016 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Align the marks made before removal and install the brake pipe to the DSC HU/CM and brake pipe joint referring to the figure.
Fig 1: Identifying DSC HU/CM And Brake Pipe Joints