Borders when using card-in-card

If the above doesn’t work, you could probably use Card Mod, possibly like this:

..
- type: custom:config-template-card
  style: |
    ha-card {
    border-width: 0px !important;
  }
..