/* Body-composition card: latest-value tiles, metric chips for the chart, the entry form grid. */
.body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.body-tile { background: var(--bg); border-radius: var(--radius-control); padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.body-tile__label { font-size: .76rem; color: var(--muted); }
.body-tile b { font-size: 1.1rem; font-weight: 600; }
.body-tile__change { font-size: .74rem; color: var(--muted); }
.body-tile__change--better { color: var(--accent); }
.body-tile__change--worse { color: var(--warm); }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .8rem;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.body-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.body-history summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--accent); }
.body-history[open] summary { margin-bottom: 6px; }
