.compound-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 42px;
  margin-bottom: 34px;
}

.calc-field {
  margin-bottom: 0;
}

.field-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
  margin-bottom: 12px;
}

.field-head label {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.field-head strong {
  font-size: 20px;
  color: #111827;
  white-space: nowrap;
}

.hint {
  margin: 9px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #624cff var(--progress, 50%), #e5e7eb var(--progress, 50%));
  outline: none;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #624cff;
  border: 5px solid #fff;
  box-shadow: 0 4px 18px rgba(98, 76, 255, .35);
  cursor: pointer;
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #624cff;
  border: 5px solid #fff;
  box-shadow: 0 4px 18px rgba(98, 76, 255, .35);
  cursor: pointer;
}

.total-card {
  text-align: center;
  padding: 0 20px 18px;
}

.total-card span {
  display: block;
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 8px;
}

.total-card .h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #121a33;
}

.total-card p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 16px;
}

.total-card p strong {
  color: #16803c;
}

.bar-chart {
  height: 360px;
  margin-top: 4px;
}

.legend-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.legend-start { background: #121a33; }
.legend-monthly { background: #624cff; }
.legend-return { background: #16803c; }

.calc-note {
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

@media (max-width: 700px) {
  .compound-controls {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bar-chart {
    height: 280px;
  }

  .field-head strong {
    font-size: 17px;
  }
}