It seems like the symbol + in the custom css is automatically replaced by a space. For example, if I add the custom css
h1 + h2 { margin-top: -5mm }
(so that extra space is removed from any h2 that immediately follows an h1), it is changed into
h1 h2 { margin-top: -5mm }
so it doesn't work.