:root{--bg:#f4f6f8;--card:#fff;--text:#17212b;--muted:#687481;--line:#dde3e8;--primary:#155eef;--success:#087443}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5vw;position:sticky;top:0;z-index:20}.brand{font-weight:800;font-size:20px}.top-actions{display:flex;gap:18px;align-items:center}.top-actions select{padding:9px;border:1px solid var(--line);border-radius:8px}.link,.back{color:var(--primary);text-decoration:none}.container{max-width:1180px;margin:36px auto;padding:0 20px}.auth-card,.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 8px 24px rgba(16,24,40,.05)}.auth-card{max-width:440px;margin:70px auto}.auth-card label{display:block;margin:16px 0 7px;font-weight:700}.auth-card input{display:block;width:100%;padding:13px;border:1px solid var(--line);border-radius:9px;margin-top:7px}.primary,.button,button{border:0;border-radius:9px;padding:11px 16px;font-weight:700;cursor:pointer}.primary,.button{background:var(--primary);color:#fff;text-decoration:none;display:inline-block}.auth-card .primary{width:100%;margin:18px 0}.alert,.notice.error{background:#fff1f0;color:#b42318;padding:12px;border-radius:8px}.notice.success{background:#ecfdf3;color:#087443;padding:12px;border-radius:8px;margin-bottom:18px}.welcome,.form-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:22px}.eyebrow{color:var(--primary);font-weight:800;text-transform:uppercase;font-size:12px}.progress-ring{width:112px;height:112px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto}.status-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.status-strip div{background:#fff;border:1px solid var(--line);padding:17px;border-radius:12px}.status-strip span,.task small{display:block;color:var(--muted);font-size:13px;margin-bottom:6px}.task{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-top:1px solid var(--line)}.task.complete b{color:var(--success)}.task button{background:#eef2f6;color:#344054}.step-badge{background:#eaf1ff;color:var(--primary);padding:10px 14px;border-radius:999px;font-weight:700;white-space:nowrap}.section-nav{display:flex;gap:8px;overflow:auto;padding:4px 0 16px;margin-bottom:8px;position:sticky;top:68px;background:var(--bg);z-index:10}.section-nav a{white-space:nowrap;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 13px;color:#344054;text-decoration:none;font-size:13px;font-weight:700}.form-section{margin-bottom:22px;scroll-margin-top:130px}.section-heading{display:flex;gap:14px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.section-heading>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:var(--primary);font-weight:800}.section-heading h2{margin:2px 0 5px}.section-heading p{margin:0;color:var(--muted);font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-card{border:1px solid var(--line);border-radius:13px;padding:16px;margin:0;min-width:0}.field-card.wide{grid-column:1/-1}.field-card.confirmed{border-color:#6ce9a6;background:#f6fef9}.field-title{display:flex;justify-content:space-between;align-items:flex-start;font-weight:800;gap:8px}.icon{padding:3px 6px;background:transparent}.input-row{display:flex;gap:10px;margin-top:10px}.input-row input,.input-row textarea,.input-row select{flex:1;min-width:0;width:100%;padding:12px;border:1px solid #cfd6dd;border-radius:9px;font-size:15px;background:#fff}.input-row textarea{resize:vertical}.mic{background:#eaf1ff;color:var(--primary);min-width:105px;align-self:flex-start}.field-actions{display:flex;gap:8px;align-items:center;margin-top:11px;flex-wrap:wrap}.confirm{background:#dcfae6;color:#087443}.edit,.clear,.secondary{background:#eef2f6;color:#344054}.confirmed-holder{margin-left:auto;color:var(--muted);font-size:13px;display:flex;align-items:center;gap:5px}.confirmed-holder input{display:none}.totals-card{margin-bottom:85px}.totals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.totals-grid div{padding:18px;border:1px solid var(--line);border-radius:12px}.totals-grid span{display:block;color:var(--muted);font-size:13px;margin-bottom:6px}.totals-grid strong{font-size:23px}.sticky-submit{position:sticky;bottom:0;background:#fff;border:1px solid var(--line);box-shadow:0 -8px 22px rgba(16,24,40,.08);padding:14px 18px;border-radius:14px 14px 0 0;display:flex;align-items:center;justify-content:space-between;gap:14px;z-index:15}.sticky-submit span{color:var(--muted);font-size:14px}.document-page-head{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:0 8px 24px rgba(16,24,40,.05)}.document-page-head h1{margin:8px 0 8px;font-size:32px}.document-page-head p{margin:0;color:var(--muted);font-size:15px}.view-all-documents{display:inline-block;margin-top:14px;color:var(--primary);font-weight:700;text-decoration:none}.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.single-document-grid{grid-template-columns:minmax(0,760px);justify-content:center}.document-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 8px 24px rgba(16,24,40,.04)}.document-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.document-card h3{margin:0 0 5px;font-size:20px}.document-card small{color:var(--muted)}.secure-badge{background:#ecfdf3;color:#087443;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}.uploaded-file{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line);margin-top:13px}.uploaded-file strong,.uploaded-file small{display:block;word-break:break-word}.file-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px;white-space:nowrap}.file-actions a{color:var(--primary);text-decoration:none;font-size:13px;font-weight:700}.status-pill{font-size:12px;font-weight:800;border-radius:999px;padding:5px 9px}.status-uploaded{background:#eef2f6;color:#344054}.status-under_review{background:#fff6e5;color:#934f00}.status-accepted{background:#dcfae6;color:#087443}.status-rejected{background:#fff1f0;color:#b42318}.upload-form{margin-top:18px}.drop-zone{display:block;border:2px dashed #b8c4d2;border-radius:12px;padding:24px;text-align:center;background:#f8fafc;cursor:pointer;margin-bottom:12px}.drop-zone strong,.drop-zone span{display:block}.drop-zone span{margin-top:6px;color:var(--muted);font-size:13px}.drop-zone input{display:block;width:100%;margin-top:16px}.upload-form .primary{width:100%;font-size:15px}.loan-dashboard{max-width:1120px;margin:0 auto}.loan-hero{background:linear-gradient(135deg,#102a56,#174fa8);color:#fff;border-radius:24px;padding:34px;display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:center;box-shadow:0 18px 45px rgba(16,42,86,.2)}.loan-kicker{display:block;font-size:12px;font-weight:800;letter-spacing:.12em;color:#c9dbff;margin-bottom:12px}.loan-hero h1{font-size:38px;line-height:1.1;margin:0 0 12px}.loan-hero p{font-size:17px;line-height:1.6;color:#e5edff;margin:0;max-width:650px}.loan-progress-box{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:22px}.loan-progress-top{display:flex;justify-content:space-between;align-items:end}.loan-progress-top strong{font-size:34px}.loan-progress-top span{font-size:14px;color:#dbe7ff}.loan-progress-track{height:11px;background:rgba(255,255,255,.22);border-radius:99px;overflow:hidden;margin:15px 0 10px}.loan-progress-track span{display:block;height:100%;background:#fff;border-radius:99px}.loan-progress-box small{color:#dbe7ff}.loan-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.loan-summary-grid article{background:#fff;border:1px solid #e1e7ef;border-radius:16px;padding:20px;box-shadow:0 8px 20px rgba(16,24,40,.04)}.loan-summary-grid span{display:block;color:#6b7788;font-size:13px;margin-bottom:8px}.loan-summary-grid strong{font-size:18px}.priority-card{background:#fff;border:1px solid #cfe0ff;border-left:5px solid var(--primary);border-radius:18px;padding:22px 24px;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin-bottom:20px;box-shadow:0 10px 24px rgba(21,94,239,.07)}.priority-label{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--primary);background:#eaf1ff;padding:8px 10px;border-radius:99px}.priority-copy h2{margin:0 0 5px;font-size:21px}.priority-copy p{margin:0;color:var(--muted)}.priority-button{min-width:130px;text-align:center;padding:14px 20px}.loan-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}.dashboard-panel{background:#fff;border:1px solid #e1e7ef;border-radius:20px;padding:24px;margin-bottom:20px;box-shadow:0 10px 28px rgba(16,24,40,.05)}.panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:18px}.panel-heading span{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--primary)}.panel-heading h2{margin:5px 0 6px;font-size:25px}.panel-heading p{margin:0;color:var(--muted)}.panel-heading>b{background:#eef3fb;color:#24456d;border-radius:99px;padding:8px 12px}.dashboard-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:20px 0;border-top:1px solid #e8edf3}.item-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#edf4ff;color:var(--primary);font-size:20px;font-weight:900}.dashboard-item.done .item-icon{background:#e7f8ef;color:var(--success)}.dashboard-item.attention{background:#fffaf2;margin:0 -12px;padding-left:12px;padding-right:12px;border-radius:14px}.item-copy h3{margin:0 0 6px;font-size:18px}.item-copy p{margin:0;color:var(--muted);line-height:1.45}.item-status{font-size:12px;font-weight:800;background:#f0f3f7;color:#536273;padding:7px 10px;border-radius:99px;white-space:nowrap}.status-approved,.status-waived{background:#e7f8ef;color:#087443}.status-needs_new_copy{background:#fff0e8;color:#9a3412}.item-button{min-width:110px;text-align:center;padding:12px 16px}.dashboard-empty{text-align:center;color:var(--muted);padding:32px 12px;border-top:1px solid #e8edf3}.help-panel{background:#fff;border:1px solid #e1e7ef;border-radius:20px;padding:24px;position:sticky;top:90px;box-shadow:0 10px 28px rgba(16,24,40,.05)}.help-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eaf1ff;color:var(--primary);font-size:24px;font-weight:900}.help-panel h3{font-size:22px;margin:18px 0 8px}.help-panel p{color:var(--muted);line-height:1.55}.help-note{margin-top:18px;padding:14px;background:#f7f9fc;border-radius:12px;color:#536273;font-size:14px;line-height:1.5}@media(max-width:900px){.loan-hero{grid-template-columns:1fr}.loan-content-grid{grid-template-columns:1fr}.help-panel{position:static}.dashboard-item{grid-template-columns:48px 1fr auto}.item-button{grid-column:2/-1;width:100%}}@media(max-width:760px){.status-strip,.form-grid,.totals-grid,.document-grid,.single-document-grid{grid-template-columns:1fr}.welcome,.form-head{align-items:flex-start}.input-row{flex-direction:column}.field-actions{align-items:flex-start}.confirmed-holder{width:100%;margin-left:0}.topbar{padding:0 16px}.task{gap:12px}.form-head{flex-direction:column}.field-card.wide{grid-column:auto}.sticky-submit{margin:0 -20px;padding:12px 20px;border-radius:0}.sticky-submit span{font-size:12px}.section-nav{top:68px}.container{margin-top:24px}.uploaded-file{flex-direction:column}.file-actions{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.document-page-head{padding:20px}.document-page-head h1{font-size:26px}.document-card-head{flex-direction:column}.secure-badge{align-self:flex-start}.loan-hero{padding:24px;border-radius:18px}.loan-hero h1{font-size:30px}.loan-summary-grid{grid-template-columns:1fr}.priority-card{grid-template-columns:1fr}.priority-button{width:100%}.dashboard-panel{padding:18px}.dashboard-item{grid-template-columns:46px 1fr}.item-status{grid-column:2}.item-button{grid-column:1/-1;width:100%;min-height:48px;font-size:16px}.panel-heading h2{font-size:22px}.top-actions{gap:9px}.top-actions select{max-width:145px}}

/* ===== BizGN Borrower Checklist Workspace v3 ===== */
body:has(.checklist-shell){background:#eef2f6;color:#172033;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body:has(.checklist-shell) .topbar{height:64px;padding:0 28px;background:#fff;border-bottom:1px solid #dfe5ec;box-shadow:none}
body:has(.checklist-shell) .brand{color:#10233f;display:flex;align-items:center;gap:8px}
body:has(.checklist-shell) .top-actions a{padding:8px 11px;border-radius:6px;font-size:13px;font-weight:700;color:#526174}
body:has(.checklist-shell) .top-actions a:hover{background:#edf3ff;color:#1d4ed8}
.checklist-shell{max-width:1380px!important;margin:0 auto!important;padding:22px 24px 40px!important}
.checklist-shell>.back{display:inline-flex;margin-bottom:14px;font-size:12px;font-weight:700;color:#1d4ed8}
.checklist-summary{border:1px solid #cfd8e4!important;border-radius:10px!important;background:linear-gradient(135deg,#fff 0%,#f7faff 100%)!important;box-shadow:none!important;padding:24px!important;margin-bottom:18px!important}
.checklist-summary-top{align-items:flex-start!important}.checklist-summary .eyebrow{color:#1d4ed8!important;font-weight:800!important;letter-spacing:.08em!important}.checklist-summary h1{font-size:24px!important;color:#10233f!important;margin:4px 0 6px!important}.checklist-summary p{color:#667085!important}.checklist-progress-number{font-size:28px!important;color:#10233f!important;font-weight:800!important}.checklist-progress-track{height:8px!important;background:#e5eaf0!important;border-radius:999px!important;overflow:hidden!important}.checklist-progress-track span{background:#1d4ed8!important}.checklist-metrics{display:grid!important;grid-template-columns:repeat(5,minmax(100px,1fr))!important;gap:0!important;margin-top:18px!important;border-top:1px solid #dfe5ec!important;padding-top:16px!important}.checklist-metrics>div{border-right:1px solid #dfe5ec;padding:0 16px!important}.checklist-metrics>div:first-child{padding-left:0!important}.checklist-metrics>div:last-child{border-right:0}.checklist-metrics strong{font-size:20px!important;color:#10233f!important}.checklist-metrics span{font-size:11px!important;text-transform:uppercase!important;letter-spacing:.04em!important;color:#667085!important}
.client-checklist-layout{display:grid!important;grid-template-columns:minmax(310px,380px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important}.client-checklist-panel{position:sticky!important;top:82px!important;max-height:calc(100vh - 104px)!important;overflow:hidden!important;border:1px solid #dfe5ec!important;border-radius:10px!important;box-shadow:none!important}.client-checklist-heading{padding:16px!important;background:#fff!important;border-bottom:1px solid #dfe5ec!important}.client-checklist-heading h2{font-size:18px!important;margin:0!important;color:#10233f!important}.client-checklist-items{overflow-y:auto!important;max-height:calc(100vh - 155px)!important;background:#fff}.client-section-title{position:sticky;top:0;z-index:2;background:#f2f5f8!important;border-top:1px solid #dfe5ec!important;border-bottom:1px solid #dfe5ec!important;color:#526174!important;font-size:10px!important;letter-spacing:.08em!important;padding:9px 14px!important}.client-checklist-item{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;gap:10px!important;padding:12px 14px!important;border-bottom:1px solid #edf0f4!important;text-decoration:none!important;color:#172033!important;background:#fff!important}.client-checklist-item:hover{background:#f8fbff!important}.client-checklist-item.active{background:#eef4ff!important;border-left:3px solid #1d4ed8!important;padding-left:11px!important}.checklist-index{width:26px!important;height:26px!important;border-radius:50%!important;background:#f1f4f7!important;color:#526174!important;display:grid!important;place-items:center!important;font-size:11px!important;font-weight:800!important}.checklist-index.complete{background:#dcfce7!important;color:#15803d!important}.checklist-item-copy strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important;font-size:12.5px!important}.checklist-item-copy span{font-size:10px!important;color:#667085!important;margin-top:3px!important}.status-pill{border-radius:999px!important;font-size:10px!important;font-weight:800!important;padding:4px 8px!important;align-self:center!important;white-space:nowrap!important}
.client-requirement-detail{display:grid!important;gap:14px!important}.client-requirement-detail>.admin-card{border:1px solid #dfe5ec!important;border-radius:10px!important;box-shadow:none!important;background:#fff!important}.requirement-hero{padding:22px!important;border-top:4px solid #1d4ed8!important}.requirement-hero h1{font-size:23px!important;line-height:1.25!important;color:#10233f!important;margin:4px 0 8px!important;max-width:900px!important}.requirement-hero p{color:#667085!important}.instruction-card,.response-panel,.upload-panel{padding:22px!important}.instruction-card h2,.response-panel h2,.upload-panel h2,.uploaded-files-heading h2{font-size:15px!important;color:#10233f!important;margin-bottom:10px!important}.instruction-card p{font-size:14px!important;line-height:1.7!important;color:#3f4b5f!important}.admin-form label,.upload-form label{font-size:12px!important;font-weight:700!important;color:#46536a!important}.admin-form input,.admin-form select,.admin-form textarea{width:100%!important;border:1px solid #cbd5e1!important;border-radius:7px!important;padding:11px 12px!important;font:inherit!important;background:#fff!important}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{outline:3px solid #dbeafe!important;border-color:#1d4ed8!important}.client-requirement-detail .primary{background:#1d4ed8!important;color:#fff!important;border:0!important;border-radius:7px!important;padding:11px 18px!important;font-weight:800!important}.drop-zone{border:1.5px dashed #94a3b8!important;border-radius:9px!important;background:#f8fafc!important;padding:26px!important;text-align:center!important}.drop-zone:hover{border-color:#1d4ed8!important;background:#f3f7ff!important}.borrower-file-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;padding:14px 18px!important;border-top:1px solid #dfe5ec!important}.borrower-file-row strong{display:block!important;word-break:break-word!important}.borrower-file-row span{font-size:11px!important;color:#667085!important}.danger-link{color:#b42318!important;font-weight:700!important}
@media(max-width:980px){.client-checklist-layout{grid-template-columns:1fr!important}.client-checklist-panel{position:static!important;max-height:none!important}.client-checklist-items{max-height:420px!important}.checklist-metrics{grid-template-columns:repeat(3,1fr)!important;row-gap:14px!important}.checklist-metrics>div{border-right:0!important;padding:0!important}}
@media(max-width:640px){body:has(.checklist-shell) .topbar{height:auto;min-height:58px;align-items:flex-start;padding:10px 12px;gap:10px;flex-wrap:wrap}.checklist-shell{padding:14px 10px 28px!important}.checklist-summary{padding:18px!important}.checklist-summary-top{display:block!important}.checklist-progress-number{margin-top:12px!important}.checklist-metrics{grid-template-columns:repeat(2,1fr)!important}.client-checklist-item{grid-template-columns:26px minmax(0,1fr)!important}.client-checklist-item .status-pill{grid-column:2!important;justify-self:start!important}.requirement-hero{display:block!important}.requirement-hero .status-pill{display:inline-flex!important;margin-top:12px!important}.borrower-file-row{align-items:flex-start!important;flex-direction:column!important}.client-requirement-detail .primary{width:100%!important}}
