Card_mod settings stopped working on Thermostat card after 2024.8 update

Maybe someone could explain why the below stopped suddenly working after the latest 2024.8 update. Nothing has changed in the code regarding the card itself, as far as I can tell.

              hui-card-features $ hui-climate-hvac-modes-card-feature $ ha-control-select $: |
                div#option-auto.option.selected::before {
                  background: rgba(76, 175, 80, 0.3);
                }
                div#option-cool.option.selected::before {
                  background: rgba(33, 150, 243, 0.3);                
                }
                div#option-dry.option.selected::before {
                  background: rgba(255, 152, 0, 0.3);
                }
                div#option-fan_only.option.selected::before {
                  background: rgba(0, 188, 212, 0.3);
                }
                div#option-heat.option.selected::before {
                  background: rgba(255, 111, 34, 0.3);
                }
                div#option-off.option.selected::before {
                  background: rgba(158, 158, 158, 0.3);
                }

having the same issue with mine as well

even the example code does not work

- entity: sensor.chest_freezer_temperature
    name: Freezer Govee
    secondary_info: last-updated
    card_mod: null
    style: |
      :host {
        color:
          {% if states(config.entity)| int > 5 %} 
            red
          {% elif states(config.entity)| int > 0 %}
            yellow
          {% endif %}
          ;
      }
  - entity: sensor.storage_ac_plus1pm_temperature
    name: Freezer Shelly
    secondary_info: last-updated
    card_mod:
      style: |
        ha-card {
          color: red;
        }

Because this is wrong.
Check for a proper syntax in Docs.

the example from docs does not work either

card_mod:
      style: |
        ha-card {
          color: red;
        }

Because the example was provided for a CARD (particularly - Entities card) and you are trying to apply it to something else unspecified. I may only guess that this is Entities card as well and you are trying to apply the example to a ROW.
There is a dedicated card-mod thread here where you can ask card-mod related questions.