.usn-mode-field{margin:0;border:0;padding:0}.usn-mode-field>legend{margin-bottom:.45rem;padding:0;color:#334155;font-size:.92rem;font-weight:600}.usn-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.usn-mode-option{position:relative;cursor:pointer}.usn-mode-option input{position:absolute;opacity:0;pointer-events:none}.usn-mode-option span{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:2.85rem;padding:.45rem .65rem;border:1px solid #c8d8e8;border-radius:11px;background:#f5f9fd;color:#334155;font-size:.95rem;font-weight:600;text-align:center;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease}.usn-mode-option input:focus-visible+span{border-color:#7ab2cf;box-shadow:0 0 0 3px #0f6a8f24;outline:0}.usn-mode-option input:checked+span{border-color:#7ab2cf;box-shadow:0 0 0 3px #0f6a8f1c;background:#eaf4fb;color:#0a4f6b}.usn-field-note{margin:.38rem 0 0;color:#4a6179;font-size:.84rem;line-height:1.4}.usn-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.95rem;align-items:start}.usn-rate-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:center}.usn-rate-input-wrap input{padding-right:2.7rem}.usn-rate-presets{display:flex;gap:.4rem}.usn-rate-preset{min-width:3.1rem;height:2.65rem;padding:.2rem .7rem;border:1px solid #c8d8e8;border-radius:10px;background:#f4f9ff;color:#1e293b;font-size:.9rem;font-weight:700;cursor:pointer;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}.usn-rate-preset:hover,.usn-rate-preset.is-active{border-color:#7ab2cf;background:#eaf4fb;color:#0a4f6b}.usn-rate-preset:focus-visible{border-color:#7ab2cf;box-shadow:0 0 0 3px #0f6a8f24;outline:0}.usn-conditional-field[hidden],.usn-profit-only[hidden],.usn-income-only[hidden],.usn-trade-only[hidden],.usn-trade-control[hidden]{display:none}.usn-trade-control{padding:.8rem .85rem;border:1px dashed #c7d9e8;border-radius:12px;background:#fbfdff}.usn-checkbox-row{display:inline-flex;align-items:center;gap:.55rem;color:#1e293b;font-size:.95rem;font-weight:700;cursor:pointer;user-select:none}.usn-checkbox-row input{width:1.08rem;height:1.08rem;margin:0;padding:0;accent-color:var(--loan-primary);cursor:pointer}.usn-quarter-section{display:grid;gap:.75rem}.usn-quarter-heading h3,.usn-quarter-heading p{margin:0}.usn-quarter-heading h3{color:#1e293b;font-size:1.08rem}.usn-quarter-heading p{margin-top:.25rem;color:#4a6179;font-size:.88rem}.usn-input-table-wrap{margin-top:0;border:1px solid #d7e3f0;border-radius:13px}.usn-input-table{width:100%;min-width:850px;border-collapse:collapse;background:#fff}.usn-input-table th,.usn-input-table td{border-bottom:1px solid #e3edf6}.usn-input-table thead th{padding:.72rem .65rem;background:#eef5fc;color:#1e293b;font-size:.88rem;font-weight:700;text-align:center;white-space:nowrap}.usn-input-table thead th:first-child,.usn-input-table tbody th{position:sticky;left:0;width:250px;text-align:left}.usn-input-table thead th:first-child{z-index:3}.usn-input-table tbody th{z-index:2;padding:.7rem .72rem;background:#fbfdff;box-shadow:1px 0 #e3edf6;color:#334155;font-size:.88rem;font-weight:700;line-height:1.35}.usn-input-table tbody td{width:calc((100% - 250px)/4);padding:.52rem}.usn-input-table tbody tr:last-child th,.usn-input-table tbody tr:last-child td{border-bottom:0}.usn-quarter-input input{width:100%;min-width:0;padding:.68rem 2.1rem .68rem .62rem;border:1px solid #c8d8e8;border-radius:10px;background:var(--loan-surface-soft);color:#0f172a;font-size:.92rem;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.usn-quarter-input input:focus{border-color:#7ab2cf;box-shadow:0 0 0 3px #0f6a8f24;background:#fff;outline:0}.usn-results-summary{margin:.45rem 0 0;color:#4a6179;line-height:1.5}.usn-results{grid-template-columns:repeat(4,minmax(0,1fr))}.usn-result-primary{border-color:#9cd6be;background:linear-gradient(180deg,#f4fff9,#ecfbf3)}.usn-result-primary .result-label{color:#0f5132}.usn-warning-list{display:grid;gap:.55rem;margin-top:.8rem}.usn-warning-list:empty{display:none}.usn-warning{margin:0;padding:.68rem .75rem;border:1px solid #f1d39b;border-radius:10px;background:#fff9e8;color:#755315;font-size:.9rem;line-height:1.45}.usn-warning.is-danger{border-color:#fecaca;background:#fff1f2;color:#9f1239}.usn-table-wrap{margin-top:.9rem}.usn-table{min-width:1020px}.usn-table td:nth-child(n+2),.usn-table th:nth-child(n+2){text-align:right}.usn-payment-reduction{color:#0f6a8f;font-weight:700}.usn-payment-due{color:#0f5132;font-weight:700}.usn-table-note{display:block;margin-top:.12rem;color:#64748b;font-size:.76rem}.usn-breakdown-card{margin-top:.85rem;padding:.85rem;border:1px solid #d7e3f0;border-radius:12px;background:#f9fcff}.usn-breakdown-card h3{margin:0;color:#1e293b;font-size:1rem}.usn-breakdown-card ul{display:grid;gap:.42rem;margin:.6rem 0 0;padding-left:1.2rem;color:#334155;line-height:1.45}.usn-rules-table-wrap{margin:.4rem 0 .7rem}.usn-rules-table{min-width:720px}.usn-rules-table td:nth-child(2),.usn-rules-table th:nth-child(2){white-space:nowrap}@media (min-width: 1024px){.usn-mode-field>legend,.usn-mode-option span{font-size:1.02rem}.usn-mode-option span{min-height:3.2rem}.usn-field-note{font-size:.91rem}.usn-input-table thead th,.usn-input-table tbody th{font-size:.96rem}}@media (max-width: 1020px){.usn-settings-grid,.usn-results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.usn-settings-grid,.usn-results{grid-template-columns:1fr}.usn-mode-switch{grid-template-columns:repeat(2,minmax(0,1fr))}.usn-mode-option span{height:100%;padding-inline:.45rem;font-size:.84rem}.usn-input-table-wrap{overflow:visible;border:0;border-radius:0}.usn-input-table{display:block;min-width:0;background:transparent}.usn-input-table thead{display:none}.usn-input-table tbody{display:grid;gap:.65rem}.usn-input-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;padding:.68rem;border:1px solid #d7e3f0;border-radius:12px;background:#fbfdff}.usn-input-table tbody tr[hidden]{display:none}.usn-input-table tbody th{position:static;grid-column:1 / -1;width:auto;padding:0 0 .48rem;border-bottom:1px solid #e3edf6;background:transparent;box-shadow:none;font-size:.92rem}.usn-input-table tbody td{display:block;width:auto;padding:0;border:0}.usn-input-table tbody td:before{content:attr(data-quarter-label);display:block;margin:0 0 .25rem .15rem;color:#64748b;font-size:.75rem;font-weight:600;line-height:1.2}.usn-quarter-input input{padding-top:.62rem;padding-bottom:.62rem;font-size:.86rem}.usn-rules-table{min-width:0;table-layout:fixed}.usn-rules-table thead th,.usn-rules-table tbody td{white-space:normal;word-break:normal;overflow-wrap:anywhere}.usn-rules-table th:nth-child(1),.usn-rules-table td:nth-child(1){width:16%}.usn-rules-table th:nth-child(2),.usn-rules-table td:nth-child(2){width:32%;white-space:normal}.usn-rules-table th:nth-child(3),.usn-rules-table td:nth-child(3){width:52%}.usn-table-wrap{overflow:visible;border:0;border-radius:0}.usn-table{display:block;min-width:0;background:transparent}.usn-table thead{display:none}.usn-table tbody{display:grid;gap:.7rem}.usn-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #d7e3f0;border-radius:12px;background:#fff;overflow:hidden}.usn-table tbody td{display:block;min-width:0;padding:.58rem .65rem;border-bottom:1px solid #edf2f7;white-space:normal;overflow-wrap:anywhere}.usn-table tbody tr:last-child td{border-bottom:1px solid #edf2f7}.usn-table tbody td:before{content:attr(data-label);display:block;margin-bottom:.18rem;color:#64748b;font-size:.7rem;font-weight:600}.usn-table tbody td:first-child{grid-column:1 / -1;background:#eef5fc;font-weight:700}.usn-table tbody tr td:last-child,.usn-table tbody tr:last-child td:last-child{grid-column:1 / -1;border-bottom:0}}
