Should work. I think the forum has made my -- into a long dash or something, or because my response was on iPad before. My yaml below works fine.
type: custom:entity-progress-card
entity: light.bed_light
attribute: brightness
card_mod:
style: |
ha-card {
--epb-progress-bar-background-color: red;
}
Check the inspector or review the code.
