.mortgage-intake .mg-disclosure{background:#edf3f8;border:1px solid #d6e2ec;border-radius:12px;padding:18px 20px;margin:20px 0;color:#3d5a70}.mg-disclosure strong{font-size:13px}.mg-disclosure p{font-size:12px;line-height:1.8;margin:7px 0 0}.mg-form-section{border:1px solid #dfe6ec;border-radius:14px;padding:22px;margin:18px 0;background:#fff}.mg-form-section h3{font-size:16px;color:#29465c;margin:0 0 20px;display:flex;gap:12px;align-items:center}.mg-form-section h3>span{font-size:11px;border:1px solid #dce5ec;border-radius:7px;padding:5px 7px;color:#6f8596}.mg-form-section .field small{color:#8794a0;font-size:10px;font-weight:400}.mg-form-section textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:80px}.mg-publication{align-items:flex-start!important;line-height:1.8;font-size:12px}.mg-publication input{margin-top:4px;flex-shrink:0}
.mg-detail{margin-top:24px;border:1px solid #cddbe5;border-radius:16px;padding:26px;background:#fff;overflow:hidden}.mg-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.mg-eyebrow{font-size:9px;letter-spacing:.14em;color:#7d91a0}.mg-detail-head h3{font-size:20px;font-weight:650;letter-spacing:-.03em;color:#29475d;margin:6px 0 0}.mg-member-label{border:1px solid #dce6ee;border-radius:20px;padding:6px 10px;color:#557086;font-size:10px;white-space:nowrap}.mg-property{border:1px solid #dce6ed;border-radius:12px;background:#f4f8fa;padding:20px}.mg-property>span{font-size:11px;color:#738694}.mg-property h4{font-size:19px;line-height:1.65;font-weight:650;color:#253e52;letter-spacing:-.02em;overflow-wrap:anywhere;margin:9px 0 18px}.mg-case{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid #dce6ed;padding-top:15px;font-size:12px;color:#425c70}.mg-case strong{font-weight:550;overflow-wrap:anywhere}.mg-case>span{color:#6b8394;font-size:11px}.mg-rights{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.mg-rights>div{border:1px solid #dce6ed;border-radius:12px;padding:20px 16px}.mg-rights span{font-size:12px;color:#61788a}.mg-rights strong{display:block;font-size:21px;color:#304e64;margin:12px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mg-rights small{font-size:10px;color:#83929d;line-height:1.7;display:block}.mg-detail .pd-facts{gap:0 22px}.mg-detail .pd-facts>div{display:block;min-width:0}.mg-detail .pd-facts dd{text-align:left;font-size:13px;line-height:1.8;margin:7px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.mg-reference{margin-top:26px;padding-top:22px;border-top:1px solid #e2e9ef}.mg-reference h4{font-size:15px;color:#34546a;margin:0 0 22px}.mg-reference h4 span{display:block;margin-top:7px;font-size:10px;color:#82919e;font-weight:400}.mg-reference-row{margin:18px 0}.mg-reference-row>div:first-child{display:flex;gap:14px;justify-content:space-between;align-items:baseline;margin-bottom:9px}.mg-reference-row span{font-size:12px;color:#637a8b}.mg-reference-row strong{font-size:16px;color:#3b5d74;font-variant-numeric:tabular-nums}.mg-reference-bar{height:7px;background:#eff3f6;border-radius:5px;overflow:hidden}.mg-reference-bar i{display:block;height:100%;border-radius:5px;background:#81a2b6}.mg-reference-row small{display:block;font-size:10px;color:#8a98a3;margin-top:7px}.mg-reference-bar.is-missing{background:repeating-linear-gradient(120deg,#f5f7f9,#f5f7f9 5px,#e6ecf0 5px,#e6ecf0 6px)}.mg-notes{margin-top:24px;border:1px solid #e0e7ed;border-radius:12px;padding:18px;background:#fafbfd}.mg-notes h4{font-size:13px;margin:0 0 9px;color:#4c6577}.mg-notes p{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#657988;margin:0}
@media(max-width:600px){.mg-form-section{padding:18px 14px}.mortgage-intake .mg-disclosure{padding:16px}.mg-detail{padding:19px 15px;border-radius:13px}.mg-detail-head h3{font-size:18px}.mg-property{padding:17px 14px}.mg-property h4{font-size:17px}.mg-rights{grid-template-columns:1fr}.mg-rights>div{padding:17px}.mg-reference-row>div:first-child{flex-wrap:wrap;gap:6px}.mg-reference-row strong{font-size:15px}.mg-member-label{font-size:9px;padding:5px 8px}}

.mg-photo-upload{background:#f4f8fa;border:1px dashed #b9cbd8;border-radius:12px;padding:18px;margin:15px 0}.mg-photo-upload label{display:block;font-size:13px;font-weight:600;margin-bottom:10px;color:#37576d}.mg-photo-upload input{max-width:100%;font-size:12px}.mg-photo-upload p{font-size:11px;line-height:1.8;color:#718696;margin:13px 0 0}.mg-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.mg-photo-grid figure{margin:0;min-width:0;border:1px solid #d8e3eb;border-radius:10px;overflow:hidden;background:#fff}.mg-photo-open{display:block;border:0;padding:0;width:100%;background:#edf2f6;cursor:zoom-in;aspect-ratio:4/3}.mg-photo-open img{display:block;width:100%;height:100%;object-fit:contain}.mg-photo-grid figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;font-size:10px;color:#7b8d9b}.mg-photo-grid figcaption button{border:0;background:transparent;padding:4px;color:#8b5448;font:inherit;cursor:pointer}.mg-photo-full{display:block;width:100%;max-height:72vh;object-fit:contain;background:#f3f6f8;border-radius:10px}.modal:has(.mg-photo-full){max-width:1000px}#mortgage-photo-status{font-size:12px;color:#4b6980;line-height:1.8}@media(max-width:600px){.mg-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}

.pd-sample-notice{display:flex;flex-wrap:wrap;gap:8px 16px;padding:16px 20px;border:1px solid #ecd6bb;border-radius:12px;background:#fff9f0;color:#885e32;font-size:12px;line-height:1.8;margin:0 0 16px}.pd-sample-notice strong{font-weight:650;white-space:nowrap}.mg-sample-document{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:24px;align-items:center;padding:20px;border:1px solid #dce5ec;border-radius:14px;background:#f8fafc}.mg-sample-document>.mg-photo-open{aspect-ratio:210/298;border:1px solid #e0e5e9;border-radius:8px;overflow:hidden;box-shadow:0 4px 14px #29465c0b}.mg-sample-document-info>span{font-size:10px;color:#9a754b;letter-spacing:.03em}.mg-sample-document-info h5{font-size:19px;font-weight:650;margin:10px 0 12px;color:#29465c}.mg-sample-document-info p{font-size:12px;line-height:1.9;color:#6c8192;margin:0 0 12px}.mg-sample-document-info .mg-sample-warning{color:#94683c;font-size:11px}.mg-sample-document-info .btn{font-size:12px;margin-top:6px}#pd-photos{scroll-margin-top:150px}@media(max-width:600px){.mg-sample-document{grid-template-columns:1fr;padding:16px;gap:18px}.mg-sample-document>.mg-photo-open{max-width:220px;margin:auto}.pd-sample-notice{padding:14px 16px;font-size:11px}}
.mg-photo-upload{position:relative;text-align:center;padding:24px 18px;border:2px dashed #b8cbd9;transition:background .15s,border-color .15s}.mg-photo-upload.is-dragover{background:#eaf4ed;border-color:#388463}.mg-photo-upload[aria-busy="true"]{opacity:.65}.mg-photo-upload>strong{display:block;color:#29485d;font-size:15px}.mg-upload-symbol{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:#e8eff4;color:#4b6a81;margin:0 auto 10px}.mg-upload-symbol svg{width:21px;height:21px}.mg-photo-upload>p{margin:7px 0 12px}.mg-photo-upload .mg-file-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:9px;background:#294d65;color:#fff;font-size:13px;font-weight:700;cursor:pointer;margin:2px auto 6px}.mg-file-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.mg-file-button:focus-within{outline:3px solid #d88749;outline-offset:3px}.mg-document-list{display:grid;gap:12px;margin:16px 0}.mg-document-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:20px;align-items:center;padding:18px;border:1px solid #d5e1e9;border-radius:13px;background:#f8fafc}.mg-document-card h4{margin:0 0 7px;color:#29485d;font-size:16px}.mg-document-card p{font-size:11px;color:#6d8292;margin:0 0 12px}.mg-document-cover{position:relative;padding:0;border:1px solid #dce5ec;border-radius:7px;overflow:hidden;aspect-ratio:210/297;background:white;cursor:pointer}.mg-document-cover img{display:block;width:100%;height:100%;object-fit:contain}.mg-document-cover>span{position:absolute;bottom:0;left:0;right:0;padding:5px;background:#294d65;color:#fff;font-size:10px}.mg-document-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.mg-document-actions .btn{min-height:38px;font-size:12px;padding:8px 12px}.mg-document-actions>button[data-remove-mortgage-document]{padding:9px 12px;border:1px solid #e3d6d1;border-radius:8px;background:white;color:#8a5b4c;font-size:12px;cursor:pointer}.mg-page-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#29485d}.mg-page-nav button{min-height:40px;padding:8px 15px;border:1px solid #d5e1e9;border-radius:8px;background:white;color:#29485d;cursor:pointer}.mg-page-nav button:disabled{opacity:.35;cursor:default}.mg-document-viewer .mg-photo-full{max-height:64vh}@media(max-width:600px){.mg-document-card{grid-template-columns:78px minmax(0,1fr);gap:13px;padding:14px}.mg-document-actions{gap:7px}.mg-document-card h4{font-size:15px}.mg-photo-upload{padding:22px 12px}}

.modal:has(.mg-document-viewer){display:flex;flex-direction:column;overflow:hidden;max-height:92vh}.modal:has(.mg-document-viewer) .modal-head{flex:none;margin-bottom:14px}.modal:has(.mg-document-viewer) .modal-body{min-height:0;overflow:auto}.mg-document-viewer .mg-photo-full{max-height:52vh}.mg-page-nav{position:sticky;top:0;background:#fff;padding:5px 0;z-index:1}
