/* RECATOOLS — Mortgage Stress Test */
.mst-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .mst-inputs { grid-template-columns: 1fr; }
}
.input-row { margin-bottom: .75rem; }
.input-row label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #6b6760;
    margin-bottom: .25rem;
}
.input-row .input-prefix-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.input-row .ipx-label {
    padding: .5rem .65rem;
    background: #f0ede9;
    font-size: .8rem;
    font-weight: 600;
    color: #6b6760;
    border-right: 1px solid #ebebeb;
}
.input-row .ipx-label.ipx-suffix { border-left: 1px solid #ebebeb; border-right: none; }
.input-row input[type="number"] {
    flex: 1;
    border: none;
    padding: .5rem .65rem;
    font-size: .9rem;
    font-family: inherit;
    background: transparent;
    color: #1a1814;
    width: 100%;
    box-sizing: border-box;
}
.input-row input[type="number"]:focus { outline: none; box-shadow: inset 0 0 0 2px #E8472F; }

.calc-btn {
    width: 100%;
    margin: 1rem 0;
    padding: .75rem 1.25rem;
    background: #E8472F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.calc-btn:hover { background: #c8391f; }

.scen-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}
.scen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.scen-table thead tr { background: #fafaf9; border-bottom: 1px solid #ebebeb; }
.scen-table th {
    text-align: left;
    padding: .55rem .75rem;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b6760;
    font-weight: 700;
}
.scen-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid #f3f1ec;
}
.scen-row.scen-safe        { background: #f0fdf4; }
.scen-row.scen-stretched   { background: #fef2f2; }
.scen-row.scen-current     { font-weight: 600; box-shadow: inset 3px 0 0 #0d1b2a; }
.scen-table td.td-monthly { font-family: 'IBM Plex Serif', serif; }
.scen-table td.td-safety .safety-label { font-size: .75rem; color: #475569; }

.break-point-card {
    margin-top: 1rem;
    padding: .875rem 1rem;
    background: #fef9c3;
    border-left: 3px solid #d97706;
    border-radius: 0 8px 8px 0;
    font-size: .9rem;
    line-height: 1.5;
    color: #1a1814;
}
.break-point-card:empty { display: none; }

/* Currency selector row */
.mst-currency-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: .65rem .75rem;
    background: #fafaf9;
    border: 1px solid #ebebeb;
    border-radius: 8px;
}
.mst-currency-label {
    font-size: .75rem;
    font-weight: 700;
    color: #6b6760;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mst-currency-select {
    padding: .35rem .55rem;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: .85rem;
    color: #1a1814;
    cursor: pointer;
}
.mst-currency-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(232,71,47,.18); border-color: #E8472F; }
.mst-currency-help { font-size: .72rem; color: #6b6760; }

/* DTI preset pills */
.mst-dti-presets {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .4rem;
}
.mst-dti-preset {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 999px;
    color: #475569;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    padding: .3rem .75rem;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
}
.mst-dti-preset strong { font-weight: 700; }
.mst-dti-preset:hover { border-color: #E8472F; color: #E8472F; }
.mst-dti-preset.active {
    background: #E8472F;
    border-color: #E8472F;
    color: #fff;
}
.mst-dti-preset.active:hover { color: #fff; }

/* cache-buster: 2026-05-28T00:00:00Z */
