#lease-form, #lease-results {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
#lease-form .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
#lease-form details { margin: .75rem 0; }
#lease-form summary { cursor: pointer; font-weight: 650; }
#lease-error:empty { display: none; }
#lease-error { font-weight: 600; }
#lease-results { margin: 1.5rem 0; }
#lease-results h2 { margin-top: 0; }
.lease-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 40rem; }
.lease-totals dt, .lease-totals dd { margin: 0; padding: .45rem .15rem; border-bottom: 1px solid var(--line); }
.lease-totals dd { text-align: right; font-variant-numeric: tabular-nums; }
#lease-results .table-wrap { max-height: 32rem; overflow: auto; }
#lease-results th { position: static; }
#lease-results thead th { position: sticky; top: 0; background: var(--surface-2); }
#lease-results .num { text-align: right; font-variant-numeric: tabular-nums; }
