.calculator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-48);
  padding: var(--sp-96) 13.125rem; /* 210px */
  background: var(--surface-light-blue-01);
  border-radius: 0 0 var(--radius-40) var(--radius-40);
}

.calc {
  display: flex;
  gap: var(--sp-8);
  width: 100%;
  max-width: 63.75rem; /* 1020px = 1440px design width − 2×210px padding */
  align-items: stretch;
}

.calc__left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  width: 42.3rem; /* 677px */
}

.calc__cell {
  background: var(--surface-white);
  border-radius: var(--radius-12);
  padding: var(--sp-12) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.calc__cell-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-body-14);
  font-weight: 500;
  color: var(--text-secondary);
}

.calc__cell-value {
  font-size: var(--fs-body-24);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: left;
}

/* ---- Range control ---- */
.calc__range {
  position: relative;
  padding-top: 0.5rem;
}

.calc__range input[type="range"] {
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  --fill: 0%;
  background: linear-gradient(
    to right,
    var(--surface-dark-blue) var(--fill),
    var(--ui-disable) var(--fill)
  );
  margin: 0;
  position: relative;
  z-index: 1;
}

.calc__range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--surface-dark-blue);
  border: 2px solid var(--surface-white);
  box-shadow: 0 1px 4px rgba(0, 19, 49, 0.25);
  cursor: pointer;
}

.calc__range input[type="range"]::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--surface-dark-blue);
  border: 2px solid var(--surface-white);
  box-shadow: 0 1px 4px rgba(0, 19, 49, 0.25);
  cursor: pointer;
}

.calc__range-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.calc__range-ticks span {
  width: 1px;
  height: 4px;
  background: var(--ui-disable);
}

.calc__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.125rem;
  font-size: var(--fs-body-14);
  color: var(--text-secondary);
}

.calc__range-labels span:last-child {
  text-align: right;
}

/* ---- Tooltip icon (Figma 210:679) ---- */
.calc__tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--ui-tertiary);
}

.calc__tip svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Factors card ---- */
.calc__factors-title {
  font-size: var(--fs-body-14);
  font-weight: 500;
  color: var(--text-secondary);
}

.calc__factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ---- Right column ---- */
.calc__right {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  background: var(--surface-white);
  border-radius: 0.625rem;
  padding: var(--sp-8);
}

.calc__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  padding: var(--sp-20) var(--sp-16);
  border-radius: var(--radius-12);
}

.calc__panel--blue {
  background: var(--surface-light-blue-02);
}

.calc__panel--purple {
  background: var(--surface-purple-01);
  flex: 1 0 0;
}

.calc__panel-item p:first-child {
  font-size: var(--fs-body-14);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.calc__panel-item p:last-child {
  font-size: var(--fs-body-24);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.calc__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
