Help with placing the icon on state-badge - card-mod not work for my state-badge

How to put mdi:icon to state-badge? I read post on card-mod but this not work for me.

          - type: conditional
            conditions:
              - entity: input_boolean.menu_parter
                state: "off"
                card_mod:
                  style: |
                    :host {
                      --card-mod-icon: mdi:bed;
                    }
            elements:
              - entity: light.sufit_salon
                style:
                  top: 65%
                  left: 52%
                  color: transparent
                  transform: scale(0.7,0.7)
                tap_action: !include FloorPlan3D/popup/swiatlo_salon405.yaml
                type: state-badge

or

          - type: conditional
            conditions:
              - entity: input_boolean.menu_parter
                state: "off"
            elements:
              - entity: light.sufit_salon
                style:
                  top: 65%
                  left: 52%
                  color: transparent
                  transform: scale(0.7,0.7)
                card_mod:
                  style: |
                    :host {
                      --card-mod-icon: mdi:bed;
                    }
                tap_action: !include FloorPlan3D/popup/swiatlo_salon405.yaml
                type: state-badge

where to put:

                card_mod:
                  style: |
                    :host {
                      --card-mod-icon: mdi:bed;
                    }

I read the whole topic from card-mod and nothing works for me. Can you tell me how to change the icon in my snippet of code?