.body-composition-form {
  grid-column: 1 / -1;
  margin: 8px 0;
  padding: 20px;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 20px;
  background: #fcfbfa;
}

.body-form-title,
.body-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.body-form-title > div > span,
.body-dashboard-head > div > span,
.body-folds > div:first-child > span,
.body-results > span {
  color: var(--red, #cf202d);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.body-form-title h3,
.body-dashboard-head h3 {
  margin: 4px 0 0;
  color: var(--ink, #131315);
  font-size: 1.28rem;
}

.body-form-title p,
.body-dashboard-head p,
.body-folds > div:first-child p {
  margin: 4px 0 0;
  color: var(--muted, #71717a);
  font-size: .78rem;
}

.body-form-title svg {
  width: 95px;
  height: 180px;
  flex: 0 0 auto;
  margin-top: -8px;
}

.body-input-grid,
.body-fold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.body-input-grid label,
.body-fold-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #66656b;
  font-size: .75rem;
  font-weight: 750;
}

.body-input-grid label small,
.body-fold-grid label small { color: #9a999e; font-size: .65rem; font-weight: 600; }
.body-input-grid input,
.body-input-grid select,
.body-fold-grid input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dfdcda;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink, #131315);
  font: inherit;
}
.body-input-grid input:focus,
.body-input-grid select:focus,
.body-fold-grid input:focus { border-color: var(--red, #cf202d); box-shadow: 0 0 0 3px #cf202d14; }

.body-folds,
.body-results {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e7e5e4);
}

.body-results > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 11px;
}

.body-results article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  padding: 11px;
  border-radius: 12px;
  background: #f2f0ef;
}
.body-results article small { grid-column: 1 / -1; color: #77767c; font-size: .64rem; font-weight: 800; }
.body-results article b { color: var(--red, #cf202d); font-size: 1.04rem; }
.body-results article em { align-self: end; color: #929197; font-size: .62rem; font-style: normal; }
.body-form-note { margin: 15px 0 0; color: #8f8e94; font-size: .68rem; line-height: 1.5; }

.body-dashboard {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 20, 25, .06);
}
.body-student-select {
  min-width: 220px;
  padding: 10px 13px;
  border: 1px solid #dfdcda;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #131315);
  font: inherit;
  font-size: .78rem;
}
.body-metric-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.body-metric-tabs button {
  padding: 8px 11px;
  border: 1px solid #dfdcda;
  border-radius: 999px;
  background: #fff;
  color: #77767c;
  font: inherit;
  font-size: .68rem;
  font-weight: 750;
  cursor: pointer;
}
.body-metric-tabs button.active { border-color: var(--red, #cf202d); background: var(--red, #cf202d); color: #fff; }
.body-chart-wrap { margin-top: 14px; padding: 12px; border-radius: 16px; background: #fcfbfa; overflow-x: auto; }
.body-evolution-chart { display: block; width: 100%; min-width: 520px; height: auto; }
.body-evolution-chart text { fill: var(--ink, #131315); font-size: 11px; font-weight: 750; }
.body-evolution-chart text.month { fill: #929197; font-size: 9px; font-weight: 600; }
.body-chart-empty { display: grid; min-height: 155px; place-items: center; color: #929197; font-size: .8rem; text-align: center; }

@media (max-width: 760px) {
  .body-composition-form,
  .body-dashboard { padding: 16px; border-radius: 18px; }
  .body-form-title svg { width: 72px; height: 138px; }
  .body-input-grid,
  .body-fold-grid,
  .body-results > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body-dashboard-head { flex-direction: column; }
  .body-student-select { width: 100%; min-width: 0; }
}

@media (max-width: 440px) {
  .body-input-grid,
  .body-fold-grid,
  .body-results > div { grid-template-columns: 1fr; }
  .body-form-title svg { width: 60px; height: 115px; }
}
