.roth-compare .calc-inputs, .roth-compare .calc-results { min-width: 0; }
.roth-compare .roth-compare-modes { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.roth-compare .roth-compare-modes legend { margin-bottom: .35rem; padding: 0; font-weight: 700; }
.roth-compare .roth-compare-modes label { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; margin: 0 .8rem 0 0; cursor: pointer; }
.roth-compare .roth-compare-modes input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--primary); flex: none; }
.roth-compare .fields { align-items: start; }
.roth-compare .fields input, .roth-compare .fields select, .roth-compare .calc-inputs button { min-height: 44px; }
.roth-compare .roth-compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: .85rem 0; font-size: .94rem; }
.roth-compare .roth-compare-table th, .roth-compare .roth-compare-table td { padding: .65rem .5rem; border-bottom: 1px solid var(--border); text-align: right; overflow-wrap: anywhere; }
.roth-compare .roth-compare-table th[scope="row"] { width: 39%; text-align: left; line-height: 1.4; }
.roth-compare .roth-compare-table td { font-variant-numeric: tabular-nums; }
.roth-compare .roth-compare-table thead td { width: 39%; }
.roth-compare .roth-compare-balance { background: var(--muted); font-weight: 700; }
.roth-compare .roth-compare-note { margin: .65rem 0; }
@media (max-width: 500px) {
  .roth-compare .calc-inputs button[type] { width: 100%; }
  .roth-compare .roth-compare-table { font-size: .82rem; }
  .roth-compare .roth-compare-table th, .roth-compare .roth-compare-table td { padding: .55rem .3rem; }
}
@media (max-width: 355px) {
  .roth-compare .fields { grid-template-columns: minmax(0, 1fr); }
}