/* All mail styles are scoped: no changes to news, markets or insights. */
.mr-workspace{max-width:1320px;margin:0 auto;color:var(--ap-text, #171d1c);padding:10px 0 50px;--mr-line:var(--ap-line, #dde2e0);--mr-accent:var(--ap-accent, #235f56)}
.mr-workspace *,.mr-dialog *{box-sizing:border-box}
.mr-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0 24px;border-bottom:2px solid var(--ap-rule, #181e1c)}
.mr-header h1{font-size:32px;margin:6px 0 8px;letter-spacing:-1px}.mr-header p{color:var(--ap-muted, #68706d);margin:0;font-size:14px}.mr-eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--ap-muted, #58726a)}
.mr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.mr-workspace .btn,.mr-dialog .btn{border-radius:7px;min-height:40px;font-size:13px}.mr-workspace .primary,.mr-dialog .primary{background:var(--ap-solid, #192622);color:var(--ap-on-solid, #fff);border-color:var(--ap-rule, #192622)}
.mr-workspace .mr-text{border-color:transparent;background:transparent;color:var(--ap-muted, #53665d)}.mr-status{display:flex;gap:14px;align-items:center;flex-wrap:wrap;min-height:58px;color:var(--ap-muted, #64716b);font-size:12px}.mr-status>span{color:var(--ap-accent, #345e53)}.mr-status .btn{margin-left:auto}
.mr-tabs{display:flex;gap:20px;margin:2px 0 16px;border-bottom:1px solid var(--mr-line)}.mr-tabs .btn{border:0;border-radius:0;background:transparent;box-shadow:none;padding:8px 0;color:var(--ap-muted, #7b817e)}.mr-tabs .is-active{color:var(--ap-text, #192622);border-bottom:2px solid var(--ap-rule, #192622)}
.mr-layout{display:grid;grid-template-columns:330px minmax(0,1fr);border:1px solid var(--mr-line);border-radius:10px;overflow:hidden;min-height:560px;background:var(--ap-surface, #fff)}
.mr-list{background:var(--ap-surface, #f7f8f7);border-right:1px solid var(--mr-line);max-height:1050px;overflow:auto}.mr-item{display:block;width:100%;background:transparent;color:inherit;text-align:left;border:0;border-bottom:1px solid var(--mr-line);padding:20px;cursor:pointer;border-left:3px solid transparent}.mr-item:hover{background:var(--ap-tint, #eef2ef)}.mr-item.is-selected{border-left-color:var(--mr-accent);background:var(--ap-surface, #fff)}.mr-item h3{font-size:15px;line-height:1.65;margin:10px 0 8px}.mr-item p{font-size:12px;color:var(--ap-muted, #6b726e);line-height:1.7;margin:0 0 10px}.mr-item small{font-size:11px;color:var(--ap-muted, #6b726e)}.mr-item-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.mr-priority{font-size:11px;color:var(--ap-accent, #8b5131)}
.mr-tag{display:inline-flex;align-items:center;gap:5px;border-radius:4px;padding:3px 6px;font-size:10px;white-space:nowrap;line-height:1.5;background:var(--ap-subtle, #ecefeb);color:var(--ap-muted, #555f58)}.mr-tag:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.mr-draft_ready,.mr-sent{background:var(--ap-tint, #edf4f0);color:var(--ap-accent, #2d6650)}.mr-needs_info,.mr-unknown,.mr-failed{background:var(--ap-tint, #fbf0df);color:var(--ap-danger, #8b5b22)}
.mr-detail{padding:26px 32px;min-width:0;scroll-margin-top:66px}.mr-detail-head h2{font-size:22px;line-height:1.5;margin:14px 0 10px}.mr-detail-head p{margin:6px 0}.mr-muted{font-size:12px;color:var(--ap-muted, #6a7470);line-height:1.8}.mr-due{font-size:12px;color:var(--ap-muted, #597366);display:flex;gap:7px;align-items:center}.mr-empty{padding:60px 30px;text-align:center;color:var(--ap-muted, #7a817d)}.mr-empty>.icon{width:30px;height:30px;color:var(--ap-muted, #536f60);margin-bottom:12px}.mr-empty h2,.mr-empty h3{font-size:16px;color:var(--ap-text, #3f4943)}.mr-empty p{font-size:13px;line-height:1.8;max-width:340px;margin:12px auto}
.mr-thread,.mr-basis{border-bottom:1px solid var(--mr-line);margin:20px 0;padding-bottom:14px}.mr-workspace summary{font-size:12px;color:var(--ap-muted, #53695e);cursor:pointer;min-height:36px;padding:9px 0}.mr-thread article{padding:16px;background:var(--ap-surface, #f6f7f6);margin:12px 0;border-radius:6px}.mr-thread-meta{display:flex;gap:12px;justify-content:space-between;font-size:11px;color:var(--ap-muted, #64766b)}.mr-thread h4{font-size:13px;line-height:1.6}.mr-thread .mr-body{font-size:12px;max-height:340px;overflow:auto}.mr-address{font-size:12px;line-height:1.6;color:var(--ap-muted, #6a7470);overflow-wrap:anywhere}.mr-editor{margin:18px 0 24px}.mr-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.mr-editor-head h3{margin:0;font-size:16px}.mr-editor-head small{font-size:11px;color:var(--ap-muted, #78837b)}.mr-field{display:block;margin:14px 0}.mr-field>span{display:block;font-size:11px;color:var(--ap-muted, #68736d);margin-bottom:7px}.mr-field input,.mr-field textarea{width:100%;padding:11px 12px;border:1px solid var(--ap-line, #d9dedb);border-radius:6px;background:var(--ap-surface, #fff);font:inherit;font-size:13px;color:var(--ap-text, #26332c);line-height:1.9}.mr-field textarea{min-height:280px;resize:vertical}.mr-field textarea:focus,.mr-field input:focus{outline:2px solid var(--ap-focus, #91b4a7);outline-offset:1px}.mr-field input:disabled,.mr-field textarea:disabled{color:var(--ap-text, #425049);background:var(--ap-surface, #f8f9f8);opacity:1}.mr-recipients{margin:-5px 0 8px}.mr-recipients[open]{padding:0 12px 5px;background:var(--ap-surface, #f8f9f8)}.mr-editor-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.mr-body{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:inherit;font-size:14px;line-height:1.9;color:var(--ap-text, #28352e);margin:14px 0}.mr-missing,.mr-warning{background:var(--ap-surface, #fff9ee);border-left:2px solid var(--ap-warning, #c49658);padding:12px 14px;font-size:12px;line-height:1.8;color:var(--ap-warning, #76582e);border-radius:0 4px 4px 0}.mr-missing ul{padding-left:18px}.mr-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;cursor:pointer}.mr-check input{width:17px;height:17px;flex:none;margin-top:3px;accent-color:var(--ap-accent, #285e50)}.mr-files{display:flex;flex-direction:column;gap:6px;margin:14px 0}.mr-files>div{display:flex;align-items:center;gap:8px}.mr-file{max-width:100%;overflow-wrap:anywhere}.mr-upload input{max-width:100%;font-size:12px}.mr-basis blockquote{margin:8px 0;padding-left:12px;border-left:2px solid var(--ap-line, #dce5df);color:var(--ap-muted, #68776c);font-size:12px;line-height:1.8}.mr-basis strong{font-size:12px}.mr-link{display:inline-flex;align-items:center;gap:5px;color:var(--ap-accent, #385e4e);font-size:12px;text-decoration:none;min-height:40px;overflow-wrap:anywhere}.mr-link .icon{width:13px;height:13px}.mr-back{display:none!important}.mr-result{border:1px solid var(--mr-line);border-radius:7px;padding:12px;margin:15px 0;font-size:12px;line-height:1.7}.mr-result small{color:var(--ap-muted, #6a7470)}
.mr-dialog{width:min(760px,94vw);max-height:92dvh;border-radius:12px}.mr-dialog .dialog-body{padding:22px;overflow:auto}.mr-dialog h3{font-size:14px;margin:20px 0 10px}.mr-dialog .mr-body{padding:18px;background:var(--ap-surface, #f7f8f7);border-radius:7px;max-width:100%}.mr-envelope{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;font-size:13px;line-height:1.6}.mr-envelope dt{color:var(--ap-muted, #748075)}.mr-envelope dd{margin:0;overflow-wrap:anywhere}.mr-review-end{padding-top:18px;border-top:1px solid var(--ap-line, #dce2de);margin-top:22px}.mr-review-end .mr-actions{justify-content:flex-end;margin-top:20px}.mr-account{padding:10px 0 18px;border-bottom:1px solid var(--ap-line, #dce2de)}.mr-account small{display:block;margin-top:8px;color:var(--ap-muted, #66766b);font-size:12px}.mr-file-preview{width:100%;height:auto;max-height:60dvh;object-fit:contain}.mr-workspace button:focus-visible,.mr-workspace summary:focus-visible,.mr-dialog button:focus-visible{outline:2px solid var(--ap-focus, #518e78);outline-offset:3px}
@media(max-width:760px){.mr-workspace{padding:0 0 60px}.mr-header{padding:12px 0 16px;align-items:flex-start;gap:10px}.mr-header h1{font-size:26px}.mr-header .mr-actions{justify-content:flex-end;max-width:130px;gap:0}.mr-eyebrow{font-size:9px;letter-spacing:1px}.mr-header p{font-size:12px}.mr-status{gap:6px 12px;padding:12px 0}.mr-status>span{width:100%}.mr-status .btn{margin-left:0;font-size:11px}.mr-layout{display:block;border-radius:7px;min-height:400px}.mr-list{border:0;max-height:none}.mr-detail{display:none;padding:20px 16px}.mr-detail-open .mr-list{display:none}.mr-detail-open .mr-detail{display:block}.mr-back{display:inline-flex!important;margin-left:-8px!important}.mr-back .icon{transform:rotate(180deg)}.mr-detail-head h2{font-size:20px}.mr-field input,.mr-field textarea{font-size:16px}.mr-editor-actions{position:sticky;bottom:60px;padding:12px 0;background:var(--ap-surface, rgba(255,255,255,.97));z-index:2}.mr-thread .mr-body{font-size:13px}.mr-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);margin:0}.mr-dialog .dialog-body{padding:16px 16px calc(16px + env(safe-area-inset-bottom))}.mr-envelope{grid-template-columns:70px minmax(0,1fr);font-size:12px;gap:10px}.mr-review-end .btn{min-height:44px}.mr-workspace .btn{min-height:42px}}
@media(prefers-reduced-motion:reduce){.mr-workspace *,.mr-dialog,.mr-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body:has(.mr-dialog){overflow:hidden}

.mr-workspace .mr-rewrite{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;align-items:end;padding:16px 0;border-top:1px solid var(--mr-line)}
.mr-rewrite .mr-field{margin:0}.mr-workspace .mr-rewrite textarea{min-height:75px;resize:vertical}.mr-rewrite-button{color:var(--ap-accent, #175a48)}.mr-rewrite-status{grid-column:1/-1;color:var(--ap-muted, #495953);font-size:13px;margin:0}.mr-rewrite-status:empty{display:none}.mr-workspace .mr-tabs button[hidden]{display:none}.mr-workspace .mr-unverified{background:var(--ap-tint, #faf1db);color:var(--ap-accent, #694c18)}
@media(max-width:600px){.mr-workspace .mr-rewrite{grid-template-columns:1fr}.mr-rewrite-button{justify-self:start}.mr-workspace .mr-tabs{gap:12px;flex-wrap:wrap}}
