Not sure that you need to set a padding for ha-card. May be you need to style an inner element instead. Use Code inspector to find out it for sure (consider using Code Inspector as a mandatory step for styling).
Also, you forcibly set a card’s height / but the card is inside a section. Perhaps you will need to style another card in the horizontal stack as well.
Hello, the color came from the iOS theme, I switched it off, morde code I do not have, as this is just a small part of my dashboard, to make it more easy
This is all I have of code , and without iOS
I can not find something like a code inspector, do you have a link, or ?
Suggest you to test in default theme and on PC.
Code inspector is a tool available in Chrome (press F12). Other browsers (FF, Safari) have similar tools.
Also, there are no changes in card mod in 2025.5, but there are changes in HA - check release notes , there must be a chapter about changes in variables.