/* Loan & Mortgage — olive green + gold */
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money input { padding-left: 26px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.sum { padding: 14px 16px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--line); }
.sum.big { background: var(--accent); border-color: var(--accent); color: #fff; grid-column: span 2; }
@media (max-width: 520px) { .sum.big { grid-column: auto; } }
.sum b { display: block; font: 750 clamp(22px, 3vw, 28px)/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sum.big b { font-size: clamp(30px, 4.4vw, 40px); }
.sum span { font-size: 13px; font-weight: 600; opacity: .8; }
.sum.save { background: color-mix(in oklab, var(--accent-2) 22%, var(--surface)); border-color: color-mix(in oklab, var(--accent-2) 55%, var(--line)); }
.chart-wrap { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.chart-head .panel-h { margin: 0; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { margin-top: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font: 600 11px var(--body); }
.chart .grid-line { stroke: var(--line); }
.schedule { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; background: var(--raised); }
.schedule summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
.table-scroll { max-height: 420px; overflow: auto; margin-bottom: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.sched { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sched th, .sched td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sched th:first-child, .sched td:first-child { text-align: left; }
.sched thead th { position: sticky; top: 0; background: var(--tint); font-size: 12.5px; }
.disclaimer { font-size: 13px; margin: 14px 0 0; }
