/* Debt-to-income calculator (/tools/debt-to-income-calculator). Extends costcalc.css. */
.dti-shell .cc-panel + .cc-panel { margin-top: 16px; }
.dti-status { font-size: 13px; color: var(--up, #087a55); min-height: 18px; margin: 4px 0 0; }

.dti-gauge { margin: 10px 0 4px; }
.dti-gauge-svg { display: block; width: 100%; height: auto; }
.dti-band-note { font-size: 13px; line-height: 1.6; color: var(--muted, #586777); margin: 6px 0 14px; }

.dti-split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 8px; }
@media (max-width: 560px) { .dti-split { grid-template-columns: minmax(0, 1fr); } .dti-donut-wrap { max-width: 220px; margin: 0 auto; } }
.dti-donut-wrap { margin: 0; }
.dti-donut-wrap svg { display: block; width: 100%; height: auto; }
.dti-legend { list-style: none; margin: 0; padding: 0; }
.dti-legend li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--paper-deep, #e7edf2); font-size: 13.5px; }
.dti-legend li:last-child { border-bottom: 0; }
.dti-legend i { flex: 0 0 auto; width: 14px; height: 10px; border-radius: 2px; align-self: center; }
.dti-legend .dti-lg-name { flex: 1 1 auto; min-width: 0; }
.dti-legend b { font-variant-numeric: tabular-nums; }
.dti-legend em { font-style: normal; color: var(--muted, #586777); font-size: 12px; font-variant-numeric: tabular-nums; }

.dti-headroom { font-size: 13.5px; font-weight: 600; color: var(--ink, #17212b); margin: 14px 0 0; }

.dti-actions { flex-wrap: wrap; }
.dti-card-h { font-size: 14px; margin: 0 0 6px; }
.dti-shell .cc-card + .cc-card { margin-top: 16px; }

.dti-sim-out { margin-top: 6px; }
.dti-sim-line { font-size: 14px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.dti-sim-line em { font-style: normal; color: var(--muted, #586777); font-size: 12.5px; }

.dti-shell [data-sim-branch][hidden] { display: none; }
