.el-switch {
  display: inline-flex; gap: 3px; margin: 0 0 18px; padding: 3px;
  background: #e8ede5; border: 1px solid var(--line); border-radius: 9px;
}
.el-switch button {
  padding: 8px 18px; border-radius: 6px; color: var(--muted);
  font-size: .94rem; font-weight: 550; line-height: 1.3;
}
.el-switch button[aria-pressed="true"] { background: white; color: var(--forest); box-shadow: 0 1px 3px #223a2419 }
.el-switch button:hover { color: var(--green) }
#existing-panel { min-width: 0; scroll-margin-top: 12px }
.el-head { margin-bottom: 20px }
.el-head p, .el-compare p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5 }
.el-fields { display: grid; gap: 15px }
.el-field { min-width: 0 }
.el-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 540; line-height: 1.4 }
.el-field p { margin: 6px 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted) }
.el-field input::placeholder { color: #78857a; font-weight: 400; font-size: .94rem }
.el-field .number-box { background: #fff }
.el-date {
  display: block; width: 100%; min-width: 0; height: 43px; padding: 0 12px;
  border: 1px solid #d8ded5; border-radius: 8px; background: #fff; font: inherit; font-weight: 540;
}
.el-field .number-box:has([aria-invalid="true"]), .el-date[aria-invalid="true"] { border-color: #9c4c33 }
.el-subhead { margin: 19px 0 13px; padding-top: 14px; border-top: 1px solid var(--line) }
.el-subhead h3 { margin: 0; font-weight: 600; font-size: 1rem; letter-spacing: -.025em }
.el-compare {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 14px 22px; padding: 22px 24px; background: #ebf2e9; border-color: #d3e2d2;
}
.el-compare > div:first-child { flex: 1 1 180px }
.el-action { display: flex; flex: 1 1 295px; align-items: end; gap: 10px }
.el-action .el-field { flex: 1; min-width: 105px }
.el-action button {
  min-height: 43px; padding: 9px 16px; border-radius: 8px; background: var(--green);
  color: #fff; font-size: .94rem; font-weight: 580;
}
.el-action button:hover { background: var(--forest) }
.el-error, .el-compare .el-error { flex-basis: 100%; margin: 12px 0 0; color: #943d27; line-height: 1.45; font-size: .89rem }
.el-schedule-note { margin: 0 27px 19px; font-size: .89rem; line-height: 1.45; color: #e2eee4 }
#overview-view[data-invalid="true"] :is(.summary, .chart-panel, .daily-peek) { display: none }
@media (max-width: 650px) {
  .el-switch { margin-bottom: 15px }
  #overview-view[data-entry="existing"] #existing-panel { order: 0 }
  #overview-view[data-entry="existing"] .el-compare { order: 1 }
  #overview-view[data-entry="existing"] .summary { order: 2 }
  #overview-view[data-entry="existing"] .chart-panel { order: 3 }
  #overview-view[data-entry="existing"] .daily-peek { order: 4 }
  .el-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
  .el-field:has(#el-accruedInterest), .el-field:has(#el-monthlyPayment), .el-field:has(#el-nextPaymentDate) { grid-column: 1 / -1 }
  .el-field .number-box, .el-date { height: 43px }
  .el-compare { padding: 18px }
  .el-schedule-note { margin-inline: 17px }
}
@media (max-width: 420px) {
  .el-fields:first-of-type, .el-action { display: grid; grid-template-columns: 1fr }
}
