.proposal-journey-grid{align-items:stretch}
.loan-origin-stepper.loan-proposal-stepper{grid-template-columns:repeat(3,minmax(150px,1fr))}
.loan-origin-stepper.loan-proposal-stepper button.current{border-color:#1d4ed8;background:#1d4ed8;color:#fff;box-shadow:0 7px 18px rgba(29,78,216,.22)}
.loan-origin-stepper.loan-proposal-stepper button.current span{background:#fff;color:#1d4ed8}
.proposal-command-card{display:grid;gap:18px;background:#fff}
.proposal-command-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.proposal-command-head h3{font-size:19px;margin:0}.proposal-command-head p{color:#667085;line-height:1.5;margin:6px 0 0}
.proposal-model-choice{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(320px,1.25fr);gap:14px 22px;border:1px solid #d8e1ef;border-left:4px solid #5145cd;border-radius:14px;background:#f8f9fc;padding:17px 18px}.proposal-model-choice-head{display:flex;align-items:flex-start;gap:11px}.proposal-model-choice-head>span{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#5145cd;color:#fff;font-size:12px;font-weight:850}.proposal-model-choice-head label{display:block;color:#172033;font-size:13px;font-weight:800}.proposal-model-choice-head p{margin:4px 0 0;color:#667085;font-size:10px;line-height:1.45}.proposal-model-choice-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}.proposal-model-choice-controls select{min-height:42px;background:#fff}.proposal-model-choice-summary{grid-column:1/-1;display:grid;grid-template-columns:1.5fr 1fr 1fr;border-top:1px solid #dfe5ee;padding-top:13px}.proposal-model-choice-summary>div{padding:0 15px;border-left:1px solid #dfe5ee}.proposal-model-choice-summary>div:first-child{padding-left:0;border-left:0}.proposal-model-choice-summary small,.proposal-model-choice-summary strong{display:block}.proposal-model-choice-summary small{color:#667085;font-size:9px;text-transform:uppercase;letter-spacing:.55px;margin-bottom:4px}.proposal-model-choice-summary strong{color:#344054;font-size:11px;line-height:1.35}.proposal-model-choice-summary.selected strong{color:#172033}.proposal-model-choice-hint{grid-column:1/-1;margin:0;color:#667085;font-size:10px;line-height:1.45}
.proposal-command-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px}.proposal-command-meta>div{border:1px solid #e2e8f2;border-radius:12px;background:#fff;padding:13px;min-height:64px;display:flex;flex-direction:column;justify-content:center}.proposal-command-meta small,.proposal-command-meta strong{display:block}.proposal-command-meta small{color:#667085;font-size:10px;margin-bottom:4px}.proposal-command-meta strong{font-size:12px;line-height:1.35}
.proposal-command-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:9px;align-items:stretch}.proposal-command-actions .btn{min-height:42px;justify-content:center;text-align:center;line-height:1.25}
.proposal-brand-preview{display:flex!important;align-items:center;gap:13px;border:1px solid #d8e3f3;border-radius:11px;background:#f7faff;padding:11px}.proposal-brand-preview[hidden]{display:none!important}.proposal-brand-preview img{width:92px;height:46px;object-fit:contain;background:#fff;border:1px solid #e5eaf1;border-radius:8px;padding:5px}.proposal-brand-preview b,.proposal-brand-preview small{display:block}.proposal-brand-preview small{color:#667085;margin-top:4px}
.proposal-journey-card,.proposal-send-card{min-height:238px}
.proposal-eyebrow{color:#2563eb;font-size:10px;font-weight:850;letter-spacing:1.15px;text-transform:uppercase;margin-bottom:7px}
.proposal-journey-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.proposal-journey-head h3,.proposal-send-card h3{margin:0;font-size:18px}
.proposal-journey-head p,.proposal-send-card p{margin:6px 0 0;color:#667085;line-height:1.5;font-size:12px}
.proposal-journey-steps{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;margin:26px 0 22px}
.proposal-journey-steps>i{height:2px;background:#e1e7f0;margin:0 10px}
.proposal-journey-step{display:flex;align-items:center;gap:9px;color:#98a2b3}
.proposal-journey-step>span{width:30px;height:30px;border:2px solid #d0d5dd;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:850;font-size:12px}
.proposal-journey-step b,.proposal-journey-step small{display:block;white-space:nowrap}
.proposal-journey-step small{font-size:10px;margin-top:2px}
.proposal-journey-step.done{color:#0f9f8f}.proposal-journey-step.done>span{border-color:#0f9f8f;background:#eaf9f6}
.proposal-journey-step.current{color:#2563eb}.proposal-journey-step.current>span{border-color:#2563eb;background:#eef4ff}
.proposal-journey-meta{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #edf0f5;padding-top:14px;gap:20px}
.proposal-journey-meta small,.proposal-journey-meta strong{display:block}.proposal-journey-meta small{color:#667085;font-size:10px;margin-bottom:4px}.proposal-journey-meta strong{font-size:12px}
.proposal-send-card{display:grid;grid-template-columns:54px 1fr;gap:15px;align-content:center;background:linear-gradient(145deg,#fff 35%,#f0f6ff);position:relative;overflow:hidden}
.proposal-send-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-82px;top:-86px;background:rgba(37,99,235,.07)}
.proposal-send-icon{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#0f9f8f);color:#fff;display:grid;place-items:center;font-size:23px;box-shadow:0 10px 22px rgba(37,99,235,.22)}
.proposal-send-actions{grid-column:1/-1;display:flex;gap:9px;margin-top:8px}
.proposal-pdf-card .card-body{padding:14px 18px}.proposal-pdf-empty{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px}.proposal-pdf-empty b,.proposal-pdf-empty small{display:block}.proposal-pdf-empty small{color:#667085;margin-top:4px;line-height:1.45}.proposal-pdf-list{display:grid;gap:9px}.proposal-pdf-item{display:grid;grid-template-columns:42px minmax(0,1fr) 112px;gap:12px;align-items:center;min-height:76px;padding:11px;border:1px solid #e5eaf1;border-radius:12px;background:#fbfcff}.proposal-pdf-item>.btn{width:112px;justify-content:center}.proposal-pdf-icon{width:42px;height:42px;border-radius:10px;background:#eaf1ff;color:#2563eb;display:grid;place-items:center;font-size:10px;font-weight:900}.proposal-pdf-item b,.proposal-pdf-item small{display:block}.proposal-pdf-item b{overflow-wrap:anywhere}.proposal-pdf-item small{color:#667085;font-size:10px;line-height:1.45;margin-top:3px}
.proposal-compose-modal{width:min(1180px,97vw);max-height:94vh;display:flex;flex-direction:column}
.proposal-compose-modal>.modal-body{overflow:auto}.proposal-compose-body{background:#f6f8fc}
.proposal-compose-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:18px}
.proposal-compose-form,.proposal-preview-column{min-width:0}
.proposal-compose-form{background:#fff;border:1px solid #e4e9f1;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:14px}
.proposal-summary-strip{display:grid;grid-template-columns:.8fr 1.25fr 1fr;gap:1px;background:#e6ebf2;border:1px solid #e6ebf2;border-radius:11px;overflow:hidden}
.proposal-summary-strip>div{background:#f8faff;padding:11px}.proposal-summary-strip small,.proposal-summary-strip strong{display:block}.proposal-summary-strip small{color:#667085;font-size:10px;margin-bottom:4px}.proposal-summary-strip strong{font-size:12px}
.proposal-template-choice{display:grid;grid-template-columns:1fr auto;gap:8px}.proposal-template-choice select{width:100%}
.proposal-required{color:#c24141}
.proposal-form-note{padding:11px 12px;border-radius:10px;background:#f1f6ff;border:1px solid #d7e4fb;color:#3e5276;font-size:11px;line-height:1.5}
.proposal-preview-column{display:flex;flex-direction:column;gap:12px}
.proposal-preview-head,.proposal-history-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.proposal-preview-head small{display:block;color:#667085;font-size:10px;margin-top:3px}
.proposal-letter-preview{background:#fff;border:1px solid #dfe5ed;border-radius:5px;min-height:410px;padding:32px 34px;box-shadow:0 12px 32px rgba(20,39,70,.08);color:#263248;line-height:1.62;font-size:12px;white-space:normal}
.proposal-letter-brand{display:flex;align-items:center;gap:10px;padding-bottom:18px;border-bottom:2px solid #edf2f8;margin-bottom:24px}.proposal-letter-logo{display:block;width:42px;height:42px;object-fit:contain}.proposal-letter-brand b,.proposal-letter-brand small{display:block}.proposal-letter-brand b{color:#071b3c;letter-spacing:.08em}.proposal-letter-brand small{color:#667085;font-size:9px}
.proposal-letter-preview h2{font-size:18px;line-height:1.3;margin:0 0 20px;color:#16233a}.proposal-letter-preview #proposalPreviewBody{white-space:pre-wrap;overflow-wrap:anywhere}
.proposal-history{background:#fff;border:1px solid #e4e9f1;border-radius:12px;overflow:hidden}.proposal-history-head{padding:12px 14px;border-bottom:1px solid #edf0f5}.proposal-history-list{max-height:160px;overflow:auto}
.proposal-history-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:11px 14px;border-bottom:1px solid #f0f2f6;align-items:start}.proposal-history-item:last-child{border-bottom:0}.proposal-history-version{width:30px;height:30px;border-radius:9px;background:#eef4ff;color:#2563eb;display:grid;place-items:center;font-weight:850;font-size:11px}.proposal-history-item b,.proposal-history-item small{display:block}.proposal-history-item small{color:#667085;font-size:10px;line-height:1.45;margin-top:3px}.proposal-history-state{text-align:right}
.proposal-compose-foot{justify-content:space-between!important;gap:16px}.proposal-provider-warning{display:flex;align-items:center;gap:9px;color:#765b20}.proposal-provider-warning>span{width:25px;height:25px;border-radius:50%;background:#fff1c8;display:grid;place-items:center;font-weight:900}.proposal-provider-warning b,.proposal-provider-warning small{display:block}.proposal-provider-warning small{font-size:10px;margin-top:2px}
.proposal-template-modal{width:min(920px,96vw);max-height:92vh;display:flex;flex-direction:column}.proposal-template-modal>.modal-body{overflow:auto}
.proposal-template-section{display:grid;gap:13px}.proposal-template-section[hidden]{display:none!important}.proposal-template-section>.form-grid{margin:0}.proposal-template-section>.field{margin:0}
.proposal-model-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #d7e4fb;border-radius:12px;background:#f1f6ff}.proposal-model-heading b,.proposal-model-heading small{display:block}.proposal-model-heading b{color:#173f8f;font-size:13px}.proposal-model-heading small{color:#667085;font-size:10px;line-height:1.45;margin-top:3px}.proposal-annex-heading{margin-top:5px;background:#f7f9fc;border-color:#dfe5ed}.proposal-annex-heading b{color:#172033}
.proposal-default-check{display:flex;align-items:center;gap:8px;margin-top:13px;font-size:12px;font-weight:700;color:#344054}
.proposal-variable-list{display:flex;flex-wrap:wrap;gap:7px}.proposal-variable-chip{border:1px solid #cfdcf3;background:#f4f8ff;color:#2b5db8;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:750;cursor:pointer}.proposal-variable-chip:hover{background:#eaf1ff}
.simulation-closing-handoff{margin-top:16px;border-color:#cddcff}.simulation-closing-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.simulation-closing-summary>div{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.simulation-closing-summary small,.simulation-closing-summary strong{display:block}.simulation-closing-summary small{color:var(--muted);font-size:10px;margin-bottom:5px}.simulation-closing-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:14px 0}.simulation-closing-check{display:grid;grid-template-columns:28px 1fr;column-gap:8px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}.simulation-closing-check>span{grid-row:1/3;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:900}.simulation-closing-check b,.simulation-closing-check small{display:block}.simulation-closing-check b{font-size:11px}.simulation-closing-check small{color:var(--muted);font-size:9px}.simulation-closing-check.done>span{background:#dcfce7;color:#15803d}.simulation-closing-check.pending>span{background:#fef3c7;color:#b45309}.simulation-closing-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
@media(max-width:1050px){.proposal-compose-grid{grid-template-columns:1fr}.proposal-letter-preview{min-height:320px}.proposal-compose-modal{max-height:97vh}}
@media(max-width:780px){.loan-origin-stepper.loan-proposal-stepper{grid-template-columns:repeat(2,minmax(150px,1fr))}.proposal-command-head{flex-direction:column}.proposal-model-choice{grid-template-columns:1fr;padding:15px}.proposal-model-choice-controls{grid-template-columns:1fr}.proposal-model-choice-summary{grid-template-columns:1fr}.proposal-model-choice-summary>div{padding:9px 0;border-left:0;border-top:1px solid #dfe5ee}.proposal-model-choice-summary>div:first-child{border-top:0}.proposal-command-meta{grid-template-columns:1fr}.proposal-command-actions .btn{flex:1;justify-content:center}.proposal-journey-grid{grid-template-columns:1fr}.proposal-journey-steps{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}.proposal-journey-steps>i{display:none}.proposal-journey-step{flex-direction:column;text-align:center;gap:5px}.proposal-journey-meta{grid-template-columns:1fr}.proposal-send-card{grid-template-columns:46px 1fr}.proposal-send-icon{width:46px;height:46px}.proposal-pdf-empty{align-items:stretch;flex-direction:column}.proposal-pdf-item{grid-template-columns:42px 1fr}.proposal-pdf-item .btn{grid-column:1/-1;justify-content:center}.proposal-compose-modal{width:100vw;max-height:100vh;border-radius:0}.proposal-compose-body{padding:12px}.proposal-compose-form{padding:14px}.proposal-summary-strip{grid-template-columns:1fr}.proposal-template-choice{grid-template-columns:1fr}.proposal-compose-foot{align-items:flex-start!important;flex-direction:column}.proposal-compose-foot>.actions{width:100%}.proposal-compose-foot>.actions .btn{flex:1;justify-content:center}.proposal-letter-preview{padding:24px 20px}.proposal-template-modal{max-height:100vh;border-radius:0}.simulation-closing-summary,.simulation-closing-checklist{grid-template-columns:1fr 1fr}.simulation-closing-actions{flex-direction:column}.simulation-closing-actions .btn{justify-content:center}}
/* Common report editor: compact groups, native controls and narrow-screen wrapping. */
#proposalReportSettings { border-bottom:1px solid #dce2ec; margin-bottom:20px; padding-bottom:12px; }
#proposalReportSettings fieldset { border:0; border-top:1px solid #dce2ec; padding:14px 0; margin:14px 0 0; min-width:0; }
#proposalReportSettings legend { font-weight:600; padding-right:12px; }
.proposal-report-palette { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.proposal-report-palette label { display:flex; flex-direction:column; gap:8px; }
.proposal-report-palette input[type=color] { width:100%; height:36px; padding:3px; cursor:pointer; }
.proposal-report-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.proposal-report-checks label,.proposal-report-documents { display:flex; align-items:center; gap:8px; }
.proposal-report-checks input,.proposal-report-documents input { width:auto; }
.proposal-report-documents { margin-top:16px; }
@media(max-width:650px) { .proposal-report-palette,.proposal-report-checks { grid-template-columns:repeat(2,minmax(0,1fr)); } }
