/* Mortgage, car loan, and credit card payoff tools. Mobile first. */
.tl-app.tl-loan{max-width:920px;padding:14px 12px 16px}
.tl-subh{margin:16px 0 8px;font-size:17px;color:#142E84}
.tl-fieldset{border:1px solid #dbe3ea;border-radius:10px;padding:12px 12px 4px;margin:0 0 14px;background:#f9fbfc}
.tl-fieldset legend{font-weight:800;color:#142E84;padding:0 6px}
.tl-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.tl-privacy{margin:8px 0 12px;font-size:14px;color:#4a5866;max-width:70ch}
.tl-breakdown{margin:0 0 8px;font-size:14px;color:#4a5866}
.tl-chart-block{margin:16px 0 0}
.tl-chart-block h3{margin:0 0 8px;font-size:18px;color:#142E84}
.tl-chart-wrap{position:relative;background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:8px 6px 4px;overflow:hidden}
.tl-line-svg{display:block;width:100%;height:auto;max-height:280px;touch-action:pan-y}
.tl-chart-tip{position:absolute;z-index:3;min-width:148px;max-width:220px;padding:8px 10px;border-radius:8px;background:#142E84;color:#fff;font-size:12px;line-height:1.4;box-shadow:0 4px 14px rgba(20,46,132,.28);pointer-events:none;transform:translate(-50%,-120%)}
.tl-chart-tip[hidden]{display:none}
.tl-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin:8px 0 0;padding:0;list-style:none;font-size:13px;font-weight:700;color:#1d2733}
.tl-legend li{display:flex;align-items:center;gap:8px}
.tl-swatch{display:inline-block;width:18px;height:4px;border-radius:2px;background:#142E84}
.tl-swatch.red{background:#F81617}
.tl-swatch.green{background:#2E8B57;height:10px;width:10px;border-radius:50%}
.tl-swatch.navy-dot{height:10px;width:10px;border-radius:50%}
.tl-swatch.red-dot{background:#F81617;height:10px;width:10px;border-radius:50%}
.tl-chart-row{display:grid;grid-template-columns:1fr;gap:12px;margin:12px 0 0}
.tl-donut-card{background:#fff;border:1px solid #dbe3ea;border-radius:12px;padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.tl-donut-svg{width:140px;height:140px;flex:none}
.tl-donut-legend{flex:1;min-width:160px;margin:0;padding:0;list-style:none;font-size:14px}
.tl-donut-legend li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid #e7edf3}
.tl-donut-legend li:first-child{border-top:0}
.tl-donut-legend b{color:#142E84}
.tl-chart-summary{margin:10px 0 0;font-size:14px;line-height:1.5;color:#1d2733;max-width:75ch}
.tl-table-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:18px 0 8px}
.tl-table-head h3{margin:0;font-size:18px;color:#142E84}
.tl-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #dbe3ea;border-radius:10px;background:#fff;margin:0 0 4px}
.tl-schedule{width:100%;border-collapse:collapse;font-size:13px;min-width:620px}
.tl-schedule th,.tl-schedule td{padding:6px 8px;text-align:right;white-space:nowrap;border-bottom:1px solid #e7edf3}
.tl-schedule th{background:#142E84;color:#fff;font-weight:700;position:sticky;top:0}
.tl-schedule th:first-child,.tl-schedule td:first-child{text-align:left}
.tl-schedule td:nth-child(2){text-align:left}
.tl-schedule tbody tr:nth-child(even){background:#f6f8fb}
.tl-schedule tbody tr:last-child{font-weight:700}
.tl-hint{margin:6px 0 0;font-size:13px;color:#4a5866}
@media(min-width:760px){
  .tl-app.tl-loan{padding:16px 16px 18px}
  .tl-chart-row{grid-template-columns:1fr}
  .tl-line-svg{max-height:300px}
  .tl-schedule{font-size:14px}
  .tl-schedule th,.tl-schedule td{padding:7px 10px}
}
@media(max-width:759px){
  .tl-hero h1{font-size:24px}
  .tl-subh{font-size:16px;margin:14px 0 6px}
  .tl-field{margin:0 0 10px}
  .tl-field input,.tl-field select{min-height:44px;padding:10px}
  .tl-results{padding:12px;margin:12px 0 0}
  .tl-result-list li{padding:6px 0;font-size:15px}
  .tl-big{font-size:24px}
  .tl-donut-svg{width:120px;height:120px}
  .tl-chart-wrap{padding:4px 2px 0}
}
@media print{
  .tl-chart-tip,.tl-presets{display:none!important}
  .tl-table-wrap{overflow:visible}
  .tl-schedule{min-width:0}
}
