/* EVbro — Home tab tiles.
   Standalone sheet: the load ORDER (templates/index.html) follows the original cascade; do not change it. */

/* ==========================================================================
   Home tab tiles: the ICON changes shape and colour with the state; the button does not
   ========================================================================== */
.native-card-btn[data-state] .card-icon-wrap svg { display: block; width: 22px; height: 22px; }
.native-card-btn[data-state="closed"] .card-icon-wrap { color: var(--accent-green); }
.native-card-btn[data-state="open"] .card-icon-wrap { color: var(--accent-amber, #ff9f0a); }
.native-card-btn[data-state="unknown"] .card-icon-wrap { color: var(--text-muted); }

/* Confort buttons: what lights up is the icon (and the ON/OFF indicator), not the whole button */
.comfort-tile.is-on { background: var(--surface-secondary); border-color: var(--border-color); }
.comfort-tile .comfort-icon { color: var(--text-muted); transition: color 0.2s ease; }
.comfort-tile.is-on .comfort-icon { color: var(--accent-green); }
.native-card-btn[data-state="on"], .native-card-btn[data-state="on-waiting"] { border-color: var(--border-color); }

/* Alarma: its state pill in the top right corner, beside the icon, so the card is as tall as the others (it made its row 26 px
   taller, and «Localizar GPS» with it, 25-11-2026) */
#btnAlarmCard { position: relative; }
.native-action-grid .action-row-pair { grid-template-columns: 1fr 1fr; }     /* GPS and alarm: same spacing as the rows above */
#btnAlarmCard .comfort-state { position: absolute; top: 14px; right: 13px; margin: 0; }
