:root{font-family:Arial,sans-serif;color:#0a3457;background:#f8fafc}body{margin:0}header{background:white;border-bottom:2px solid #d7a431;padding:18px max(20px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;gap:20px;align-items:center}a{color:#064a80}.brand{font:bold 23px Georgia;text-decoration:none;color:#073e68}.brand span{color:#c52b3d}main{max-width:1100px;margin:auto;padding:24px}section{background:white;border:1px solid #cdd8e2;border-radius:8px;margin:20px 0;padding:22px}label{display:block;margin:14px 0;font-weight:600}input:not([type=checkbox]),select,textarea{box-sizing:border-box;width:100%;max-width:600px;display:block;margin-top:6px;padding:11px;border:1px solid #9eafbd;border-radius:4px;font:inherit}textarea{min-height:100px}button,.button{display:inline-block;background:#073e68;color:white;border:2px solid #042e50;border-radius:5px;padding:11px 20px;font-weight:bold;text-decoration:none;cursor:pointer}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tile{border:2px solid #aab7c6;border-radius:9px;padding:10px;text-align:center;min-height:70px}.tile strong{display:block;font-size:1.2rem}.tile small{display:block;margin:6px}.tile.complete{background:#e3f4e9;border-color:#368653}.tile.current{background:#fff4d6;border-color:#bf8500}.tile.future{background:#f0f2f5}footer{font-size:12px;margin:45px 0;color:#536779}summary{font-weight:bold;cursor:pointer}@media(max-width:680px){.tiles{grid-template-columns:1fr}header{flex-wrap:wrap}}
/* Phase 2: approved compact, uniform progress tiles */
.tiles{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.tile{min-height:86px;padding:12px 10px;border-width:2px;display:flex;flex-direction:column;justify-content:center;gap:3px}.tile-heading{display:flex;align-items:center;justify-content:center;gap:9px}.tile strong{font-size:1.44rem;line-height:1.15}.tile small{margin:3px 0}.tile-status{font-weight:700;letter-spacing:.025em}.check{font-size:1.5rem;color:#218247;font-weight:bold}.tile.future{background:#f0f2f5;color:#586777}.locked{color:#64748b}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{border-bottom:1px solid #d9e1ea;padding:10px;text-align:left}.request-row{padding:12px 0;border-top:1px solid #d9e1ea}.request-row select{max-width:250px}@media(max-width:680px){.tiles{grid-template-columns:1fr}.admin-table{display:block;overflow-x:auto}}

/* Application Stage 1 / Stage 2 additions: scoped to application only */
#mortgage-application .required-star{color:#bd162b;font-weight:800;font-size:1.1em}
#mortgage-application .submission-controls{margin:18px 0 14px}
#mortgage-application .required-counter{font-weight:600;color:#073e68;margin:0 0 12px}
#mortgage-application .submission-explainer{color:#103f6b;font-size:.94rem;line-height:1.5;max-width:760px;margin:12px 0}
#mortgage-application button.is-pending{background:#a5aab2;border-color:#9298a2;color:#fff;cursor:pointer}
#mortgage-application .missing-required{outline:2px solid #bd162b;outline-offset:2px}
#mortgage-application .field-required-error{display:block;color:#bd162b;font-weight:700;font-size:.88rem;margin:5px 0}
#mortgage-application .field-hint{font-size:.88rem;color:#103f6b;margin:0 0 10px}
.dashboard-return{margin:5px 0 20px}

/* Required indicators and fresh authorization acknowledgment */
#mortgage-application .required-star{color:#d00000;font-weight:900;font-size:1.45rem;line-height:1;vertical-align:baseline}
#mortgage-application .authorization-ack-label{color:#c40000;font-weight:700}
#mortgage-application .authorization-ack-label.is-acknowledged{color:#073e68}
#mortgage-application .authorization-ack-label .required-star{color:#d00000}

/* Nov 11 review styling adapted to existing semantic <details> controls. */
#mortgage-application details{border:1px solid #d8e2eb;border-radius:8px;overflow:hidden;margin:13px 0 13px 24px;background:#fff}
#mortgage-application details>summary{display:flex;align-items:center;list-style:none;position:relative;cursor:pointer;padding:16px 18px 16px 68px;background:#edf3f8;color:#12365a;font-size:16px;font-weight:700;min-height:54px}
#mortgage-application details>summary::-webkit-details-marker{display:none}
#mortgage-application details>summary::after{content:'+';position:absolute;left:13px;top:50%;transform:translateY(-50%);width:35px;height:35px;border:2px solid #12365a;border-radius:6px;background:#fff;color:#12365a;display:grid;place-items:center;font-size:29px;line-height:1;font-weight:800}
#mortgage-application details[open]>summary::after{content:'−'}
#mortgage-application details>summary:focus-visible{outline:3px solid #b88735;outline-offset:-3px}
#mortgage-application details>summary:hover{background:#e5eef6}
#mortgage-application details>div{padding:15px}
#mortgage-application .entry-card{padding:14px;border:1px solid #dce5ee;border-radius:7px;background:#f7f9fb;margin:12px 0}
@media(max-width:680px){#mortgage-application details>summary{font-size:15px;padding-left:12px}}

/* Phase 3: section navigation, scoped to the borrower application. */
#mortgage-application .cc-section-toggle{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:#edf3f8;color:#12365a;border:1px solid #d8e2eb;border-radius:7px;padding:13px 14px;min-height:58px}
#mortgage-application .cc-section-title{flex:1;font-size:17px;font-weight:700}
#mortgage-application .cc-section-state{font-size:12px;font-weight:700;background:#e8edf2;color:#4d6071;border-radius:5px;padding:5px 8px}
#mortgage-application .cc-section-state.cc-complete{background:#e5f3e9;color:#176638}
#mortgage-application .cc-section-sign{display:grid;place-items:center;flex:none;width:36px;height:36px;border:2px solid #12365a;border-radius:6px;background:white;font-size:27px;line-height:1}
#mortgage-application .cc-section-sign::before{content:'+'}
#mortgage-application .cc-section-toggle[aria-expanded=true] .cc-section-sign::before{content:'−'}
#mortgage-application .cc-section-content{padding:12px 2px}
#mortgage-application .cc-section-content[hidden]{display:none}
#mortgage-application .cc-section-toggle:focus-visible{outline:3px solid #b88735;outline-offset:2px}
@media(max-width:680px){#mortgage-application .cc-section-toggle{gap:7px;padding:10px 8px}#mortgage-application .cc-section-title{font-size:15px}#mortgage-application .cc-section-state{font-size:10px}#mortgage-application .cc-section-sign{width:33px;height:33px}}

#mortgage-application .cc-ssn-deferred{background:#edf3f8;border-left:4px solid #12365a;padding:12px 15px;line-height:1.5}
#mortgage-application .entry-card{border:1px solid #dce5ee;border-radius:8px;padding:14px;margin:12px 0;background:#f7f9fb}
#mortgage-application .entry-card h3{margin-top:0}



