.subtitle {
  color: var(--muted);
  margin-top: -0.5rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.radio-label input {
  width: auto;
}

.row {
  display: flex;
  gap: 0.75rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

legend {
  font-weight: 600;
  padding: 0 0.4rem;
}

.lump-sum-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.lump-sum-row .field {
  margin-bottom: 0;
  flex: 1;
}

.lump-sum-row button {
  flex: none;
}

#results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  margin: 0;
}

.results-grid dt {
  color: var(--muted);
}

.results-grid dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .row {
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .results-grid dd {
    text-align: left;
    margin-bottom: 0.5rem;
  }
}
