I’m willing to help, I’m using an input_text helper to simulate your config
type: glance
entities:
- entity: input_text.a_qui_le_tour
icon: phu:duco-logo
name: Mode
card_mod:
style: |
:host {
{% if states(config.entity) == 'Perm.High' %}
--paper-item-icon-color: red;
{% endif %}
}
As a result,when it is “Perm.High”:
And when it is not
But next time, try to format your code.