Import the layout into a new page (not the library) with the Divi Builder. The import/export option can be accessed by clicking on the two arrows at the top of the builder.

You can add the CSS to the custom CSS box in Divi > Theme Options, or add to your child theme. Once you do this, you can remove the CSS code section from the page.