Card Configuration shows the preview correctly but changes don't show up on the dashboard. Could this be a bug or could this be my YAML?

I’m just wondering if I should submit a bug report or if this is something I should fix on my end.
So changes made to my card’s YAML with card-mod show up in the Card Configuration preview immediately but the actual dashboard does not include these changes. If I re-open the Card Configuration again the preview no-longer shows correctly unless I make any additional changes to to the YAML, even just adding a space will update the preview correctly but it still doesn’t show properly on the dashboard after saving.
I’m not sure if my YAML is to blame or if this is a bug with card-mod or HA. Here is my card’s YAML:

type: custom:horizon-card
fields:
  dawn: false
  dusk: false
  noon: false
  sunrise: true
  sunset: true
card_mod:
  style: |
    div.horizon-card-header {
    margin-top: 0px !important; 
    margin-bottom: -1rem !important;
    }
    div.horizon-card-graph {
    margin: 0px !important;
    }
    div.horizon-card-footer {
        margin: 0px !important;
    }

Versions:
Home Assistant 2023.4.2
Supervisor 2023.04.0
Operating System 9.5
Frontend 20230406.1 - latest
HACS: (Integration: 1.30.1), ( Frontend: 20220906112053)
card-mod: 3.2.2

I did have a similar issue with card-mod changes no-longer showing up on the dashboard after the page gets reloaded or refreshed but adding:

extra_module_url:
     - /hacsfiles/lovelace-card-mod/card-mod.js

to the configuration.yaml made the changes stick after each time the page loaded. That fixed that issue but not this one.

Does my YAML look correct, in other words should I submit a bug report? Anyone else have this issue or find a fix?

might be too simple but is your indentation correct? The first two divs’s dont seem to be indented correctly, but the last one does