/* Credit accounts and connected repayment UI. */
.tool-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.tool-secondary-action{border:1px solid #78afe7;border-radius:13px;background:rgba(255,255,255,.88);color:#174b89;padding:12px 16px;font-weight:800;box-shadow:0 8px 20px rgba(31,82,142,.08)}.credit-card-section{margin-top:24px}.credit-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.credit-card-account{position:relative;overflow:hidden;padding:22px;border:1px solid rgba(88,148,216,.28);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(236,248,255,.82),rgba(245,239,255,.84));box-shadow:0 18px 45px rgba(31,59,107,.1);color:#173661}.credit-card-account:before{content:"";position:absolute;width:180px;height:180px;right:-75px;top:-90px;border-radius:50%;background:radial-gradient(circle,rgba(102,93,219,.2),transparent 68%)}.credit-card-top,.credit-card-meta,.credit-card-balance{position:relative;display:flex;align-items:center}.credit-card-top{gap:12px}.credit-card-top>div{flex:1}.credit-card-top h3{margin:2px 0 0;font-size:20px}.credit-card-top small{font-size:10px;letter-spacing:.14em;color:#6780a4;font-weight:900}.credit-card-top em{font-style:normal;font-size:11px;font-weight:900;color:#1f6ebc}.credit-card-chip{display:grid;place-items:center;width:42px;height:34px;border-radius:10px;background:linear-gradient(135deg,#f1d88a,#bea044);color:#604d12}.credit-card-balance{align-items:flex-start;flex-direction:column;margin:24px 0 13px}.credit-card-balance b{font-size:26px}.credit-card-balance span,.credit-card-balance small{color:#6d7f99}.credit-utilization{height:10px;border-radius:99px;background:#e5edf6;overflow:hidden}.credit-utilization i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#27b79c,#6f5ed4);transition:width .45s ease}.credit-card-account.watch .credit-utilization i{background:#429ad3}.credit-card-account.medium .credit-utilization i{background:#e0aa3b}.credit-card-account.high .credit-utilization i{background:#ee7e42}.credit-card-account.limit .credit-utilization i{background:#d64255}.credit-card-account>p{min-height:34px;color:#62748e;font-size:12px}.credit-card-meta{justify-content:space-between;margin:14px 0;color:#526b8b;font-size:11px;font-weight:800}.credit-payment-summary{display:grid;gap:5px;margin:12px 0 18px;padding:16px;border:1px solid #cfe1f4;border-radius:16px;background:linear-gradient(120deg,#eefbfa,#f2efff)}.credit-payment-summary b{font-size:24px;color:#173661}.credit-payment-summary span,.credit-payment-summary small{color:#6b7d95}.credit-payment-amount{display:grid;grid-template-columns:1fr auto;gap:9px}.credit-payment-amount button{border:0;border-radius:12px;background:#193f78;color:white;padding:0 15px;font-weight:800}.credit-payment-split{padding:14px;border:1px solid #d5e3f2;border-radius:15px;background:rgba(242,248,255,.72)}.credit-payment-split[hidden],.credit-payment-single[hidden]{display:none!important}

/* Individual instalment matching feedback. */
.debt-installment-editor-row{transition:border-color .24s ease,box-shadow .24s ease,background .24s ease}.debt-installment-editor-row.has-linked-expense{border-color:#43b990!important;background:linear-gradient(125deg,#f4fffb,#f5f8ff)!important;box-shadow:0 0 0 3px rgba(67,185,144,.13),0 12px 28px rgba(36,134,102,.1)}.tool-custom-select.has-linked-selection .tool-select-trigger{border-color:#37aa80!important;background:#f3fff9!important;color:#167458!important;box-shadow:0 0 0 3px rgba(55,170,128,.12)}.tool-custom-select .custom-select-option.already-matched{border-left:4px solid #35ae80;background:rgba(219,249,238,.78);color:#166b54}.tool-custom-select .custom-select-option.already-matched:after{content:"Already matched";margin-left:auto;font-size:9px;color:#278568}.delete-repayment{border:1px solid #f1bdc4!important;background:#fff5f6!important;color:#b53749!important}.replenishment-row>.delete-repayment{margin-left:7px}

@media(max-width:700px){.tool-header-actions{justify-content:flex-start;width:100%}.tool-header-actions>*{flex:1}.credit-card-grid{grid-template-columns:1fr}.credit-payment-amount{grid-template-columns:1fr}.credit-payment-amount button{min-height:42px}}

/* Detailed, read-only Debt Quick Check. */
.debt-check-result:empty{display:none}.debt-check-card{margin-top:18px;padding:18px;border:1px solid #b8ddcf;border-radius:18px;background:linear-gradient(130deg,#f0fff9,#f6f4ff);box-shadow:0 14px 35px rgba(29,77,117,.1)}.debt-check-card.warn{border-color:#ebce82;background:linear-gradient(130deg,#fffaf0,#f7f3ff)}.debt-check-card.bad{border-color:#efb3bb;background:linear-gradient(130deg,#fff3f4,#f6f3ff)}.debt-check-card>span{color:#557090;font-size:9px;font-weight:900;letter-spacing:1px}.debt-check-card h3{margin:7px 0 14px;color:#183c6a;font-size:18px}.debt-check-card p{margin:9px 0;color:#5b6f8b;font-size:11px;line-height:1.6}.debt-check-card>strong{display:block;margin-top:14px;padding:12px;border-radius:11px;background:rgba(255,255,255,.78);color:#264d7a;font-size:11px;line-height:1.55}.debt-check-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:15px}.debt-check-metrics>div{display:grid;gap:4px;padding:11px;border-radius:12px;background:rgba(255,255,255,.78)}.debt-check-metrics small{color:#73849b;font-size:9px}.debt-check-metrics b{color:#173d6f;font-size:13px}@media(max-width:600px){.debt-check-metrics{grid-template-columns:1fr}}

/* Stable card planning and long repayment forms. */
.credit-card-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.credit-card-dates span,.credit-funding-plan{padding:9px 10px;border:1px solid rgba(99,158,216,.2);border-radius:10px;background:rgba(255,255,255,.65);color:#6b7d95;font-size:9px}.credit-card-dates b,.credit-funding-plan b{display:block;margin-top:3px;color:#244b7d}.credit-funding-plan{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(110deg,#eefaf7,#f1efff)}.credit-payment-plan{margin-top:15px;padding:14px;border:1px solid #c9dff4;border-radius:14px;background:linear-gradient(125deg,#f3fbff,#f7f3ff)}.credit-payment-plan legend{padding:0 7px;color:#224f86;font-size:11px;font-weight:850}.credit-plan-split[hidden]{display:none!important}.credit-plan-split{margin-top:10px}.credit-payment-tracker-row{border-left:3px solid #34aa83}.credit-payment-reference{color:#278366;font-size:9px;font-weight:800}.tool-dialog{max-height:92vh;overflow:hidden}.tool-dialog>form{max-height:92vh;overflow-y:auto;overscroll-behavior:contain}.tool-dialog:has(.debt-structure-card) .debt-installment-editor{max-height:none;overflow:visible;padding-right:0}@media(max-width:600px){.credit-card-dates{grid-template-columns:1fr}.credit-funding-plan{align-items:flex-start;flex-direction:column}}

/* Original card-funded expenses stay editable from their Credit Card account. */
.credit-linked-charges{position:relative;margin:14px 0;padding:12px;border:1px solid rgba(84,145,207,.22);border-radius:14px;background:rgba(255,255,255,.68);max-height:235px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5e9cdb transparent}.credit-linked-heading,.credit-linked-charge{display:flex;align-items:center;gap:9px}.credit-linked-heading{justify-content:space-between;padding-bottom:8px;color:#1e4e83;font-size:10px}.credit-linked-heading span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#e6f2ff;color:#2469ad;font-weight:900}.credit-linked-charge{padding:9px 0;border-top:1px solid rgba(91,139,190,.14)}.credit-linked-charge>div:first-child{min-width:0;flex:1}.credit-linked-charge b,.credit-linked-charge small{display:block}.credit-linked-charge b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#23476f;font-size:10px}.credit-linked-charge small{margin-top:3px;color:#798aa0;font-size:8px}.credit-linked-charge strong{color:#173d6e;font-size:10px;white-space:nowrap}.credit-linked-charge>div:last-child{display:flex;gap:4px}.credit-linked-charge button{border:1px solid #acd0ef;border-radius:7px;background:#fff;color:#2468a7;padding:5px 7px;font:800 8px 'DM Sans';cursor:pointer}.credit-linked-charge button.danger{border-color:#f0bdc3;color:#bd4653}.credit-linked-charges>p{margin:3px 0!important;color:#7a899d!important;font-size:9px!important}@media(max-width:520px){.credit-linked-charge{align-items:flex-start;flex-wrap:wrap}.credit-linked-charge>div:last-child{width:100%}}
