.muted { color: var(--muted); }
.login .auth-link { display: block; width: 100%; margin-top: 12px; padding: 8px; border: 0; background: transparent; color: #245eac; text-align: center; font-weight: 650; cursor: pointer; }
.login .auth-link:hover { text-decoration: underline; }
.login .auth-link:focus-visible { outline: 2px solid #245eac; outline-offset: 2px; }
.auth-message { color: var(--green); line-height: 1.5; margin-top: 9px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; margin-top: 12px; }
.check input { width: 17px; min-height: 17px; margin: 0; }
.analysis-card { padding: 0; overflow: hidden; }
.recommendation-card { margin-bottom: 14px; display: grid; gap: 7px; background: #f2f7ff; }
.recommendation-card h2 { font-size: 17px; }
.recommendation-card p { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recommendation-card label { max-width: 500px; }
.analysis-card .cardhead { padding: 21px 21px 0; }
.analysis-table-wrap { overflow-x: auto; }
.analysis-table { table-layout: fixed; min-width: 820px; }
.analysis-table th:nth-child(1) { width: 23%; }
.analysis-table th:nth-child(2) { width: 20%; }
.analysis-table th:nth-child(3) { width: 57%; }
.analysis-table td { padding: 18px 16px; vertical-align: top; cursor: default; }
.analysis-table .solution-title { font-size: 14px; line-height: 1.4; color: var(--ink); }
.analysis-table select { margin: 0; font-weight: 750; }
.analysis-table select.status-suitable { color: var(--green); border-color: #b8dfcf; background: #f2fbf7; }
.analysis-table select.status-not-suitable { color: var(--red); border-color: #efc2c7; background: #fff6f7; }
.analysis-table select.status-consider { color: #8b5c08; border-color: #e9d39f; background: #fff9eb; }
.analysis-table textarea { min-height: 280px; margin: 0; line-height: 1.6; background: #fbfdff; }
.option-pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; padding: 14px; border: 1px solid #dce8fb; border-radius: 12px; background: #f7faff; }
.option-pricing input { min-height: 39px; }
.option-monthly { grid-column: 1 / -1; color: #43536d; font-size: 12px; }
.option-monthly b { color: var(--ink); font-size: 16px; margin-left: 4px; }
.option-pricing small { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; }
.confirm-message { margin-top: 14px; padding: 13px 15px; border-radius: 11px; line-height: 1.5; }
.confirm-message.error { background: #fff6f7; border: 1px solid #efc2c7; color: var(--red); }
.confirm-message.success { background: #f2fbf7; border: 1px solid #b8dfcf; color: var(--green); }
.confirm-message button { margin-left: 10px; min-height: 30px; padding: 0 10px; background: transparent; color: inherit; border: 1px solid currentColor; }
.ocr-card { margin-top: 8px; padding: 12px; border: 1px solid #bcd0f5; border-radius: 12px; background: #f7faff; }
.ocr-actions { display: flex; gap: 8px; margin-top: 10px; }
.ocr-retry { margin: 8px 0 12px; padding: 12px; border: 1px solid #edc9cd; border-radius: 12px; background: #fff8f8; }
.ocr-retry p { margin: 0 0 10px; color: #973442; font-size: 12px; line-height: 1.5; }
.ocr-preview { overflow-x: auto; margin-top: 10px; }
.ocr-preview table { min-width: 510px; }
.ocr-preview th, .ocr-preview td { padding: 8px 6px; }
.ocr-payment { margin: 9px 0 0; color: #43536d; font-size: 12px; }
.ocr-warnings { color: #973442; font-size: 12px; line-height: 1.5; }
.inline-upload .doc a { margin-left: 6px; color: #174cae; white-space: nowrap; }
.ocr-list { display: grid; gap: 6px; margin-top: 8px; }
.ocr-list label { display: flex; align-items: center; gap: 8px; }
.ocr-list input { width: 16px; min-height: 16px; margin: 0; }
textarea { width: 100%; margin-top: 7px; padding: 9px 11px; border: 1px solid #d4deec; border-radius: 10px; resize: vertical; color: var(--ink); font: inherit; }
.conditional { margin-top: 12px; padding: 14px; border-radius: 13px; background: #f7faff; border: 1px solid #dce8fb; }
.family-question { margin-top: 16px; }
#familyFields { margin-top: 12px; }
.family-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.inline-upload { padding: 13px; border: 1px dashed #b9c9e4; border-radius: 12px; background: #fbfdff; }
.inline-upload > b { display: block; margin-bottom: 5px; }
.inline-upload > p { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.inline-upload .doc { display: grid; gap: 3px; }
.income-upload { grid-column: 1 / -1; min-width: 0; }
.income-upload .income-documents { min-width: 0; overflow-wrap: anywhere; }
.income-upload .ocr-actions { flex-wrap: wrap; }
.ocr-income { margin-top: 9px; color: #43536d; font-size: 12px; line-height: 1.5; }
.ocr-income p { margin: 0; }
.income-evidence { margin-top: 7px; }
.income-evidence summary { color: #174cae; cursor: pointer; }
.income-evidence-list { display: grid; gap: 6px; margin-top: 8px; }
.income-evidence-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px; border: 1px solid #dce8fb; border-radius: 8px; background: #fff; }
.income-evidence-list span { min-width: 0; overflow-wrap: anywhere; }
.income-evidence-list b { white-space: nowrap; }
.income-evidence-list small { grid-column: 1 / -1; color: var(--muted); }
.bki-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.comparison { margin: 12px 0 20px; padding: 14px; border-radius: 12px; background: var(--soft); color: #334d75; }
.comparison > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 6px 0; }
.comparison > div + div { border-top: 1px solid #d8e5fb; }
.comparison span { min-width: 0; line-height: 1.35; }
.comparison b { color: var(--ink); text-align: right; white-space: nowrap; }
.comparison strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 10px 0 18px; }
.table-wrap table { min-width: 640px; }
.final-debt { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .checks { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .bki-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .option-pricing { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .stack, .editor .card, .cardhead > div { min-width: 0; }
  .cardhead { flex-wrap: wrap; }
  .pm-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Explicit inline controls avoid inheriting full-width text-input styling. */
.creditor-actions { display: flex; gap: 6px; align-items: center; }
.creditor-actions .creditor-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 8px; }
.creditor-actions .creditor-icon-delete { color: #b42332; }
.creditor-actions .creditor-icon:focus-visible { outline: 2px solid #1f63e9; outline-offset: 2px; }
@media (pointer: coarse) { .creditor-actions .creditor-icon { width: 44px; height: 44px; min-width: 44px; } }
#recoveryCard > label, #expensesReviewed + span { line-height: 1.5; }
#recoveryCard > label { display: flex; align-items: flex-start; gap: 10px; }
#recoveryEnabled, #expensesReviewed { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #1f63e9; }
#recoveryDescription p, #procedureDetails p, #procedureDetails li { line-height: 1.6; }
#procedureDetails li { margin-bottom: 8px; }
.row.asset { grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) minmax(130px, 2fr) minmax(150px, 2fr) 32px; }
@media (max-width: 800px) { .row.asset { grid-template-columns: minmax(0, 1fr); } }
