.retire-shell .retire-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}

.retire-shell .retire-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.retire-group-title {
  margin: 20px 0 10px;
  color: #101828;
  font-size: 18px;
  line-height: 1.25;
}

.retire-field-wide {
  grid-column: 1 / -1;
}

.retire-shell .adcalc-field small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.retire-shell .adcalc-validation:empty {
  margin: 0;
  min-height: 0;
}

.retire-shell .adcalc-validation:not(:empty) {
  margin-top: 12px;
  min-height: 20px;
}

.retire-affix-suffix {
  grid-template-columns: 1fr auto;
}

.retire-shell .retire-suffix {
  min-width: 54px;
  border-right: 0;
  border-left: 1px solid #bcc8df;
}

.retire-results {
  display: grid;
  align-content: start;
}

.retire-shell .retire-kpis {
  grid-template-columns: 1fr;
}

.retire-positive {
  color: #047857 !important;
}

.retire-negative {
  color: #b91c1c !important;
}

.retire-chart-card {
  padding: 22px;
}

.retire-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.retire-chart-head h2,
.retire-schedule h2 {
  margin: 0 0 6px;
}

.retire-chart-head p,
.retire-schedule p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.retire-chart {
  min-height: 360px;
}

.retire-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.retire-chart-axis {
  stroke: #d7e2f4;
  stroke-width: 1;
}

.retire-chart-grid {
  stroke: #e8eef8;
  stroke-width: 1;
}

.retire-chart-balance {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retire-chart-required {
  fill: none;
  stroke: #14b8a6;
  stroke-width: 3;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.retire-chart-retirement-line {
  stroke: #f97316;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}

.retire-chart-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.retire-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.retire-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.retire-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.retire-dot-balance {
  background: #2563eb;
}

.retire-dot-required {
  background: #14b8a6;
}

.retire-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.retire-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.retire-table th,
.retire-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}

.retire-table th:first-child,
.retire-table td:first-child {
  text-align: left;
}

.retire-table th {
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 980px) {
  .retire-shell .retire-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .retire-shell .retire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .retire-chart-head {
    display: grid;
  }

  .retire-chart {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .retire-shell .retire-grid {
    grid-template-columns: 1fr;
  }
}
