.chart-card {
  margin: 0 0 17px;
  background: linear-gradient(145deg, #fff, #f5fbf0);
}

.chart-pill {
  font-size: 11px;
  font-weight: 800;
  color: #356447;
  background: #e6f4da;
  border-radius: 999px;
  padding: 7px 10px;
}

.calorie-chart {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 230px;
}

.chart-summary {
  background: #173d34;
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-summary strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.06em;
}

.chart-summary span {
  color: #bde583;
  margin-top: 8px;
  font-weight: 800;
}

.weight-gap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.weight-gap b {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff;
}

.weight-gap small {
  display: block;
  margin-top: 8px;
  color: #b9cec4;
  line-height: 1.45;
}

.calorie-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.calorie-chart rect {
  fill: #9dd867;
}

.calorie-chart rect.over {
  fill: #e6a35f;
}

.calorie-chart text {
  font-size: 10px;
  fill: #6d8478;
  text-anchor: middle;
  font-weight: 800;
}

.calorie-chart .value {
  fill: #284a3b;
  font-size: 9px;
}

.calorie-chart .axis {
  stroke: #dbe8d7;
  stroke-width: 2;
}

.calorie-chart .target-line {
  stroke: #20493e;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.calorie-chart .target-label {
  fill: #20493e;
  text-anchor: start;
  font-size: 9px;
}

@media (max-width: 800px) {
  .calorie-chart {
    grid-template-columns: 1fr;
  }

  .chart-summary {
    min-height: 0;
  }

  .chart-summary strong {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .chart-pill {
    display: none;
  }
}
