/* ===== cp_tiles_html (HTML form, scoped :where(.cp-tiles)) =====
   The two .px-kpi-grid overrides name both classes on the root: a head-linked
   sheet loads before theme.css, so a (0,1,0) tie with .px-kpi-grid would lose. */

.cp-tiles.px-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.1rem;
}
:where(.cp-tiles) .cp-tile-label { display: flex; align-items: center; justify-content: space-between; }
:where(.cp-tiles) .cp-tile-value {
  display: block;
  padding: 0;
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:where(.cp-tiles) .cp-tile-value:hover .px-kpi-value { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 650px) {
  .cp-tiles.px-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}
