.hero {
  padding-bottom: 12px;
}

.insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight {
  min-width: 0;
  padding: 13px 11px;
}

.insight strong {
  font-size: 22px;
}

.body-distribution {
  grid-column: 1 / -1;
  padding: 16px;
  background: #eef2e9;
}

.body-distribution-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.body-distribution-head span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.body-distribution-head small {
  color: var(--muted);
  font-size: 11px;
}

.body-range-picker {
  position: relative;
}

.body-range-picker summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #d0d9cb;
  border-radius: 7px;
  background: #f9faf6;
  color: var(--muted);
  cursor: pointer;
  font: 700 10px inherit;
  list-style: none;
}

.body-range-picker summary::-webkit-details-marker {
  display: none;
}

.body-range-picker summary i {
  display: block;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid #7d8d80;
  border-bottom: 1.5px solid #7d8d80;
  font-size: 0;
  font-style: normal;
  transition: transform .18s ease;
  transform: rotate(45deg);
}

.body-range-picker[open] summary i {
  margin-top: 3px;
  transform: rotate(225deg);
}

.body-range-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 5px;
  padding: 7px;
  border: 1px solid #d2dbcd;
  border-radius: 10px;
  background: #fbfcf9;
  box-shadow: 0 10px 24px rgba(16, 37, 29, .12);
}

.body-range-menu button {
  padding: 5px 7px;
  border: 1px solid #d0d9cb;
  border-radius: 7px;
  background: #f9faf6;
  color: var(--muted);
  cursor: pointer;
  font: 700 10px inherit;
}

.body-range-menu button.active {
  border-color: #8ca66d;
  background: #dfead5;
  color: #456237;
}

.body-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  height: 118px;
  gap: 9px;
}

.body-bar {
  display: grid;
  grid-template-rows: 14px 78px 18px;
  min-width: 0;
  align-items: end;
  gap: 4px;
}

.body-bar > span,
.body-bar em {
  color: #536258;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.body-bar em {
  width: 100%;
  text-align: center;
  font-family: "DM Mono", monospace;
}

.body-bar > span {
  overflow: hidden;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.body-bar-track {
  display: flex;
  align-items: end;
  width: 100%;
  height: 78px;
  border-bottom: 1px solid #cfd8ca;
}

.body-bar-track svg {
  display: block;
  width: 100%;
  height: 78px;
}

.body-bar-track rect {
  fill: #9ab678;
}

.weight-trend-panel {
  grid-column: 1 / -1;
  padding: 16px;
  background: #f0f3ec;
}

.weight-trend-head,
.weight-trend-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.weight-trend-head span,
.weight-trend-head small,
.bmi-card span,
.weight-reference {
  display: block;
}

.weight-trend-head span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.weight-trend-head small,
.weight-reference {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.weight-trend-head button {
  flex: 0 0 96px;
  width: 96px;
  padding: 7px 9px;
  border: 1px solid #9bac98;
  border-radius: 9px;
  background: #fbfcf9;
  color: #456237;
  cursor: pointer;
  font: 700 11px inherit;
}

.weight-trend-content {
  align-items: stretch;
  margin-top: 12px;
}

.weight-plot {
  flex: 1;
  min-width: 0;
  position: relative;
}

.weight-chart {
  display: block;
  width: 100%;
  height: 92px;
  overflow: visible;
}

.weight-chart-base {
  fill: none;
  stroke: #d0d9cb;
  stroke-width: 1;
}

.weight-chart polyline {
  fill: none;
  stroke: #719453;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.weight-chart circle {
  fill: #f0f3ec;
  stroke: #719453;
  stroke-width: 2.5;
}

.weight-chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}

.weight-chart-empty {
  display: grid;
  min-height: 92px;
  place-items: center;
  border-bottom: 1px solid #d0d9cb;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.weight-tooltip {
  position: absolute;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font: 11px "DM Mono", monospace;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
}

.bmi-card {
  display: grid;
  width: 96px;
  min-width: 96px;
  padding: 10px;
  border: 1px solid #d4dfcc;
  border-radius: 12px;
  background: #fbfcf9;
}

.bmi-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.bmi-card strong {
  margin: 3px 0;
  color: var(--ink);
  font: 22px "DM Mono", monospace;
}

.bmi-card em {
  color: #547047;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.weight-update-form {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #d7dfd2;
}

.weight-update-form label {
  flex: 1;
  color: #425347;
  font-size: 11px;
  font-weight: 700;
}

.weight-update-form input {
  height: 34px;
  margin-top: 5px;
  border-radius: 8px;
}

.weight-update-form button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: 700 11px inherit;
}

.weight-reference {
  margin-bottom: 0;
}
