/* Mail mockup rendered at native 75% density; do not apply the CRM's 85% build twice. */
main:has(.mail-client){background:#fcfdff;padding-top:0;padding-bottom:0}
main:has(.mail-client)>.page-content{scrollbar-gutter:auto;overflow:auto}
.mail-client{position:relative;min-height:100%;padding:30px 14px 22px 76px;background:#fcfdff;color:#26364d;font-size:12px}
.mail-client *, .mc-compose-dialog *{box-sizing:border-box}
.mail-client svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mail-client button,.mail-client input,.mail-client select{font:inherit}
.mail-client button{cursor:pointer;color:#315989}
.mail-client button:disabled{opacity:.35;cursor:default}
.mail-client [hidden]{display:none!important}
.mail-client button:focus-visible,.mail-client a:focus-visible,.mail-client input:focus-visible{outline:2px solid #648bbc;outline-offset:3px}
.mc-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,420px) minmax(0,1fr);gap:18px;align-items:center;margin:0 0 18px;min-height:39px}
.mc-compose-slot{min-width:0}
.mc-write{height:39px;width:123px;border:1px solid #b9c9de;border-radius:9px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:500!important}
.mc-write svg{width:16px;height:16px}
.mc-search{display:flex;align-items:center;height:39px;gap:10px;padding:0 7px 0 14px;border:1px solid #c9d4e3;border-radius:22px;background:white;min-width:0;margin:0}
.mc-search:focus-within{border-color:#829fc5;box-shadow:0 0 0 3px #eaf0f8}
.mc-search input{min-width:0;width:100%;height:34px;border:0;background:transparent;padding:0;outline:0!important;color:#26364d;box-shadow:none}
.mc-search input::placeholder{color:#8390a3}
.mc-search .mc-icon{width:28px;height:28px;flex-shrink:0}
.mc-account{display:flex;align-items:center;justify-content:flex-end;justify-self:end;min-width:0;gap:10px;color:#233958;text-decoration:none;font-size:13px;max-width:100%}
.mc-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-account svg{width:23px;height:23px}
.mc-nav{position:absolute;z-index:5;left:0;top:30px;width:54px;padding:0 5px 14px;border:1px solid transparent;border-radius:15px;background:#fcfdff}
.mc-nav.expanded{width:204px;background:#fff;border-color:#e0e6ef;box-shadow:0 10px 33px #243e6521}
.mc-icon{width:32px;height:32px;display:inline-flex;justify-content:center;align-items:center;padding:0;border:0;background:transparent;border-radius:8px}
.mc-icon:hover,.mc-write:hover{background:#eaf0f8}
.mc-nav>.mc-icon{width:42px;height:36px}
.mc-folders{display:grid;gap:12px;margin-top:22px}
.mc-folder{display:flex;align-items:center;position:relative;gap:13px;padding:0 10px;height:38px;width:42px;white-space:nowrap;border:0;border-radius:10px;background:transparent;text-align:left}
.mc-folder svg{width:21px;height:21px}
.mc-folder.active,.mc-folder:hover{background:#eaf0f8}
.mc-folder>span{display:none}
.mc-folder>small{position:absolute;right:0;top:-3px;font-size:9px;border-radius:8px;background:#eaf0f8;color:#315989;min-width:0}
.mc-folder>small:not(:empty){padding:1px 3px}
.mc-nav.expanded .mc-folder{width:100%}
.mc-nav.expanded .mc-folder>span{display:block}
.mc-nav.expanded .mc-folder>small{position:static;margin-left:auto}
.mc-nav-extra{margin-top:26px;padding-left:5px}
.mc-content{min-width:0}
.mc-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:10px;min-height:30px}
.mc-selection{display:flex;align-items:center;gap:13px;padding-left:14px}
.mc-selection>input,.mc-row>input{appearance:auto;width:14px;height:14px;margin:0;accent-color:#315989;cursor:pointer}
.mc-list-heading{display:flex;gap:6px;color:#718096;font-size:11px;flex:1;justify-content:center}
.mc-list-tools{display:flex;gap:6px;margin-left:auto}
.mc-muted{color:#8190a7}
.mc-results{display:grid;gap:7px}
.mc-row{min-height:46px;border:1px solid #e0e6ef;border-radius:9px;background:white;display:flex;align-items:center;padding:0 14px;gap:16px}
.mc-row:hover{background:#f6f9fd;border-color:#c9d9ed}
.mc-row.selected{background:#eff5fd;border-color:#adc5e2}
.mc-mail-open{display:grid;grid-template-columns:minmax(135px,23%) minmax(0,1fr) 20px 110px;gap:18px;align-items:center;min-width:0;width:100%;min-height:44px;padding:0;text-align:left;border:0;background:transparent;color:#718096!important;font-weight:400}
.mc-row.unread .mc-mail-open{color:#233958!important;font-weight:600}
.mc-sender,.mc-subject>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mc-subject{display:flex;gap:7px;align-items:center;min-width:0}
.mc-thread-count{font-size:9px;min-width:17px;line-height:17px;text-align:center;background:#edf1f7;border-radius:8px;color:#607189;font-weight:400;flex-shrink:0}
.mc-role{font-size:9px;border:1px solid #dce5ef;border-radius:5px;padding:2px 4px;color:#6881a0;font-weight:400}
.mc-review{color:#a4762f}
.mc-clip{display:flex;color:#7f96b2}
.mc-date{display:flex;justify-content:flex-end;gap:20px;white-space:nowrap;font-size:10.5px}
.mc-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:14px;color:#8390a3;font-size:10px}
.mc-footer [data-mc-pages]{display:flex;align-items:center;gap:7px;white-space:nowrap}
.mc-footer [data-mc=previous] svg{transform:rotate(180deg)}
.mc-empty{padding:55px 15px;text-align:center;color:#8390a3;font-size:13px;line-height:1.8}
.mc-filters{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;padding:14px;margin-bottom:12px;background:#f1f5fb;border-radius:9px}
.mc-filters label{display:flex;align-items:center;gap:6px}
.mc-filters input[type=checkbox]{width:14px;height:14px}
.mc-filters input[type=date],.mc-filters select{height:30px;padding:4px 6px;max-width:135px;border:1px solid #d7e0ee;border-radius:6px;background:white}
.mc-job-row,.mc-template-row{display:flex;align-items:center;gap:12px;border:1px solid #e0e6ef;border-radius:9px;background:white;padding:10px 14px;min-height:50px}
.mc-job-main{display:grid;grid-template-columns:115px minmax(120px,1fr) minmax(180px,2fr) 100px;gap:15px;align-items:center;width:100%;min-width:0;border:0;background:transparent;text-align:left}
.mc-job-main span,.mc-job-main strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400}
.mc-job-label{color:#8190a7}
.mc-template-main{border:0;background:transparent;display:flex;flex:1;gap:25px;text-align:left;min-width:0}
.mc-template-main span{color:#8390a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-reader-dialog{width:min(1020px,94vw)}
.mc-reader{max-height:75vh;overflow:auto;padding:12px 20px}
.mc-reader-tools{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:6px 0 18px}
.mc-reader .mail-message{border:1px solid #e0e6ef;border-radius:9px;margin-bottom:9px;overflow:hidden}
.mc-reader .mail-message[open]>summary{background:#f3f6fb}
.mc-compose-dialog{width:min(800px,94vw)}
.mc-compose{display:grid;gap:12px;max-height:75vh;overflow:auto;padding:18px 22px}
.mc-compose-sender{color:#718096;font-size:12px}
.mc-compose-options{display:grid;grid-template-columns:2fr 1fr;gap:14px}
.mc-compose .field{margin:0;min-width:0}
.mc-compose input,.mc-compose textarea,.mc-compose select{max-width:100%}
.mc-compose .field input,.mc-compose .field textarea,.mc-compose .field select{width:100%}
.mc-compose textarea{resize:vertical;min-height:130px}
.mc-template-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mc-template-picker select{padding:6px;border:1px solid #dce3ee;border-radius:6px}
.mc-file-input{position:relative;display:flex;gap:8px;align-items:center;color:#315989;cursor:pointer;width:fit-content;overflow:hidden}
.mc-file-input svg{width:16px;height:16px}
.mc-file-input input{position:absolute;inset:0;opacity:0;cursor:pointer}
.mc-document-picker{padding:10px;border:1px solid #e0e6ef;border-radius:8px}
.mc-document-picker>div{max-height:160px;overflow:auto;padding-top:10px}
.mc-attached{display:flex;gap:8px;flex-wrap:wrap}
.mc-attached>span{display:flex;gap:10px;align-items:center;padding:5px 10px;background:#f1f5fb;border-radius:6px;font-size:12px;overflow-wrap:anywhere}
.mc-attached button{border:0;background:transparent;color:#718096;cursor:pointer}
.mc-compose-footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mc-template-editor{padding:20px;display:grid;gap:12px;max-height:70vh;overflow:auto}
@media(max-width:1000px){.mc-header{grid-template-columns:minmax(0,1fr) minmax(160px,36%) minmax(0,1fr);gap:10px}.mc-account{font-size:11px;gap:5px}.mc-mail-open{grid-template-columns:24% minmax(0,1fr) 16px 85px;gap:10px}.mc-date{gap:9px}.mc-job-main{grid-template-columns:90px minmax(100px,1fr) minmax(120px,2fr)}.mc-job-main small{grid-column:3}}
@media(max-width:720px){.mail-client{padding:20px 0 18px 52px}.mc-nav{top:20px;left:-4px}.mc-header{grid-template-columns:1fr 1fr;gap:14px}.mc-compose-slot{grid-column:1;grid-row:1}.mc-account{grid-column:2;grid-row:1}.mc-search{grid-column:1/-1;grid-row:2;width:min(420px,100%);justify-self:center}.mc-list-heading{display:none}.mc-toolbar{gap:8px}.mc-selection{padding-left:8px;gap:6px}.mc-row{padding:7px 8px;gap:10px}.mc-mail-open{grid-template-columns:minmax(0,1fr) 16px 78px;row-gap:5px}.mc-sender{grid-column:1;grid-row:1}.mc-subject{grid-column:1/-1;grid-row:2}.mc-clip{grid-column:2;grid-row:1}.mc-date{grid-column:3;grid-row:1;font-size:9px}.mc-footer{flex-wrap:wrap}.mc-compose-options{grid-template-columns:1fr}.mc-job-main{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.mc-template-main{display:grid;gap:5px}.mc-template-row{flex-wrap:wrap}}
/* Keep folders, search and paging in place while the message list scrolls. */
main:has(.mail-client)>.page-content{overflow:hidden}
.mail-client{height:100%;min-height:0;display:flex;flex-direction:column}
.mc-header{flex-shrink:0;margin-left:-62px}
.mc-compose-slot{padding-left:62px}
.mc-content{display:flex;flex-direction:column;flex:1;min-height:0}
.mc-results{overflow:auto;flex:1;min-height:0;align-content:start;padding-right:2px}
.mc-toolbar,.mc-footer,.mc-filters{flex-shrink:0}
@media(max-width:720px){.mc-header{margin-left:0}.mc-compose-slot{padding-left:0}}
@media(max-width:720px){.mc-search{width:calc(100% - 52px);transform:translateX(-26px)}}
/* Mail refinement: shared visual axis and predictable popovers. */
.mc-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);margin-left:-62px;gap:8px}
.mc-selection{padding-left:76px;gap:9px}
.mc-list-heading{grid-column:2;white-space:nowrap;pointer-events:none}
.mc-list-tools{grid-column:3;justify-self:end}
.mc-nav{padding:8px 7px 10px;top:22px;width:58px;max-height:calc(100% - 28px);overflow-y:auto;scrollbar-width:thin}
.mc-nav.expanded{width:215px;box-shadow:0 4px 18px rgba(36,62,101,.12);border-color:#dce4ef}
.mc-folders{gap:10px;margin-top:18px}
.mc-nav-extra{display:grid;gap:10px;margin-top:20px;padding:0}
.mc-nav-extra .mc-trash-folder{margin-top:5px}
.mc-nav.expanded .mc-folder{padding-left:11px;padding-right:11px}
.mc-account{position:relative;gap:12px;overflow:visible}
.mc-account-text{min-width:0;display:grid;gap:3px;text-align:right}
.mc-account button{background:transparent;border:0;text-align:inherit;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-account-text>[data-account-menu]{font-weight:500;color:#26364d}
.mc-account-email{font-size:11px!important;color:#7e8da2!important}
.mc-account-email:hover{text-decoration:underline}
.mc-photo{width:36px;height:36px;min-width:36px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#edf2f8!important;padding:0;border:0;color:#315989}
.mc-photo img{width:100%;height:100%;object-fit:cover}
.mc-initials{font-size:13px;font-weight:500}
.mc-account-menu{position:absolute;right:0;top:calc(100% + 12px);width:280px;padding:12px;border:1px solid #dce4ef;border-radius:14px;background:white;box-shadow:0 4px 18px #243e651f;z-index:20;text-align:left}
.mc-account-menu>button,.mc-account-menu>a{display:block;width:100%;padding:10px 12px;border-radius:7px;text-decoration:none;color:#315989;white-space:normal;text-align:left;font:inherit}
.mc-account-menu>button:hover,.mc-account-menu>a:hover{background:#edf2f8}
.mc-menu-profile{display:grid;gap:5px;padding:8px 12px 14px;border-bottom:1px solid #e7ecf3;margin-bottom:5px}
.mc-menu-profile span,.mc-account-menu small{display:block;color:#8190a3;font-size:11px}
.mc-settings-dialog{width:min(650px,94vw)}
.mc-settings{display:grid;gap:15px;padding:18px 24px;max-height:75vh;overflow:auto}
.mc-settings .field{margin:0}.mc-settings-account{color:#7e8da2}
.mc-profile-edit,.mc-format-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mc-signature-field{display:grid;gap:7px}
.mc-format-bar{padding:6px 9px;background:#f1f5fb;border-radius:7px;gap:10px}
.mc-format-bar button{border:0;background:transparent;color:#315989;cursor:pointer}
.mc-signature-editor{min-height:95px;border:1px solid #dce4ef;border-radius:8px;padding:10px;outline-color:#829fc5;background:white;overflow-wrap:anywhere}
.mc-signature-editor img,.mc-composer-signature img{max-width:100%;height:auto}
.mc-connection-controls{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #e7ecf3;padding-top:14px;font-size:12px}.mc-connection-controls>span{width:100%;color:#8190a3}
.mc-reader .mail-message>summary{display:flex;gap:12px;align-items:center;padding:13px 16px;cursor:pointer;list-style:none}
.mc-reader .mail-message>summary>span:first-of-type{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.mc-reader .mail-message>summary small{margin-left:auto;white-space:nowrap;color:#8190a3}
.mc-message-snippet{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8190a3;font-size:12px}
.mail-message[open] .mc-message-snippet{visibility:hidden}
.mc-quoted{margin:12px 0}
.mc-quoted>summary{display:inline-flex;align-items:center;justify-content:center;width:34px;height:22px;border-radius:12px;background:#edf1f6;color:#6f8099;cursor:pointer;list-style:none;font-weight:600;font-size:17px;line-height:1}
.mc-quoted>summary::-webkit-details-marker{display:none}
.mc-quoted[open]>summary{background:#dae5f6}
.mc-quoted>.mail-text{border-left:2px solid #dce4ef;padding:12px 16px;margin-top:10px;color:#708096}
.mc-reader .mail-message-body{padding:14px 18px}
.mc-reader .mail-text{white-space:pre-wrap;overflow-wrap:anywhere}
.mc-reader .mail-toolbar{border-top:1px solid #e7ecf3;padding:12px 0 0;gap:14px;flex-wrap:wrap}
@media(max-width:1100px){.mc-toolbar{grid-template-columns:1fr 1fr}.mc-list-heading{grid-row:2;grid-column:1/-1;justify-self:center;padding:3px 0}.mc-list-tools{grid-row:1;grid-column:2}.mc-selection{grid-row:1;grid-column:1}.mc-account-text>[data-account-menu]{font-size:11px}.mc-account-email{font-size:10px!important}}
@media(max-width:720px){.mc-toolbar{margin-left:0}.mc-selection{padding-left:8px;gap:3px}.mc-list-heading{display:flex;transform:translateX(-26px)}.mc-nav{top:12px}.mc-account{gap:6px}.mc-photo{width:30px;height:30px;min-width:30px}.mc-account-menu{width:min(280px,85vw)}.mc-reader .mail-message>summary{flex-wrap:wrap;gap:6px}.mc-reader .mail-message>summary>span:first-of-type{max-width:80%}.mc-message-snippet{flex-basis:100%;order:3}.mc-reader .mail-message[open] .mc-message-snippet{display:none}.mc-settings{padding:15px}.mc-account-text{max-width:160px}.mc-settings-dialog .form-buttons{flex-wrap:wrap}}
/* Compact mail composer: header and send actions stay visible while the letter scrolls. */
.mc-compose-compact{width:min(940px,calc(100vw - 36px));height:min(760px,calc(100dvh - 40px));max-height:none;padding:0;overflow:hidden;border-radius:16px;background:#fff}
.mc-compose-compact.mc-maximized{width:calc(100vw - 28px);height:calc(100dvh - 28px);max-width:none}
.mc-compose-compact .mc-compose{display:flex;flex-direction:column;gap:0;height:100%;max-height:none;padding:0;overflow:hidden;font-size:14px;line-height:1.45}
.mc-compose-compact [hidden]{display:none!important}
.mc-c-head{display:flex;align-items:flex-start;padding:15px 18px 0;gap:14px;position:relative;flex:none;border-bottom:1px solid #e7ebf1}
.mc-c-avatar{width:44px;height:44px;border:1px solid #e0e6ef;border-radius:50%;display:grid;place-items:center;flex:none;overflow:hidden;background:#f3f6fb;color:#416285;font-size:16px;font-weight:600;margin-top:3px}
.mc-c-avatar img{width:100%;height:100%;object-fit:cover}
.mc-c-addresses{flex:1;min-width:0}
.mc-c-row{display:flex;align-items:center;gap:12px;min-height:42px;border-bottom:1px solid #e8ecf2}
.mc-c-row:first-child{padding-right:112px;min-height:44px}
.mc-c-row>label{color:#8a929e;font-size:13px;flex:0 0 42px}
.mc-compose-compact .mc-c-row input{border:0;background:transparent;box-shadow:none;outline:0;min-width:0;padding:7px 0;border-radius:0;font-size:14px;min-height:30px;color:#263750}
.mc-c-row:focus-within{border-bottom-color:#92b1e5}
.mc-c-subject{border-bottom:0}
.mc-c-subject input{flex:1;width:0}
.mc-c-subject>.text-button{font-size:12px;color:#7e8da3;white-space:nowrap}
.mc-c-window-tools{position:absolute;right:14px;top:18px;display:flex;gap:4px}
.mc-c-icon{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#8292a7;width:30px;height:30px;padding:5px;border-radius:6px;cursor:pointer;font-size:23px;flex:none;border:0}
.mc-c-icon svg{width:21px;height:21px}
.mc-c-icon:hover,.mc-c-icon.active,.mc-c-icon[aria-pressed=true],.mc-c-icon[aria-expanded=true]{color:#3466aa;background:#eaf1fc}
.mc-recipient-box{display:flex;flex:1;align-items:center;flex-wrap:wrap;min-width:0;gap:4px;padding:4px 0}
.mc-recipient-box [data-chips]{display:contents}
.mc-recipient-box>input{flex:1 1 120px;width:120px;max-width:100%}
.mc-recipient-chip{display:inline-flex;align-items:center;gap:7px;border-radius:16px;background:#f0f2f5;padding:3px 8px 3px 12px;max-width:240px;color:#354963;font-size:13px;line-height:23px}
.mc-recipient-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-recipient-chip button{background:transparent;color:#8996a9;font-size:18px;padding:0 2px;flex:none;line-height:20px}
.mc-c-scroll{flex:1;min-height:0;overflow:auto;padding:0 18px 20px;overscroll-behavior:contain}
.mc-c-context{font-size:12px;color:#8090a6;margin:8px 0}
.mc-c-context summary{cursor:pointer;display:list-item;padding:3px 0}
.mc-c-context summary span{margin-left:12px;color:#597596}
.mc-compose-compact .mc-compose-options{padding:8px 0;gap:8px 14px}
.mc-compose-compact .mc-compose-options label{display:grid;gap:3px;min-width:0;font-size:12px}
.mc-compose-compact .mc-compose-options select{padding:6px 8px;min-height:32px;width:100%;font-size:13px}
.mc-c-thread{grid-column:1/-1}
.mc-c-attachments-bar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:8px 0 12px;border-bottom:1px solid #edf0f5;font-size:13px}
.mc-c-file{display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:#405876}
.mc-c-file svg{width:19px;height:19px}
.mc-c-from{margin-left:auto;color:#97a1b0;font-size:11px}
.mc-compose-compact .mc-document-picker,.mc-compose-compact .mc-template-picker{padding:10px;background:#f7f9fc;margin-top:8px;border-radius:8px;max-height:170px;overflow:auto}
.mc-compose-compact .mc-template-picker{display:flex;gap:12px}
.mc-compose-compact .mc-template-picker select{font-size:13px;padding:6px;flex:1;min-width:0}
.mc-c-docs-attached,.mc-compose-compact .mc-attached{display:flex;gap:6px;flex-wrap:wrap}
.mc-c-docs-attached>span,.mc-compose-compact .mc-attached>span{display:inline-flex;gap:10px;align-items:center;background:#eff5fc;border:1px solid #dce7f5;border-radius:7px;padding:5px 8px;margin-top:8px;max-width:100%;overflow-wrap:anywhere;font-size:12px}
.mc-c-docs-attached button{color:#6b86aa;background:transparent;font-size:17px}
.mc-c-format{display:flex;gap:8px;align-items:center;padding:9px 0;color:#8b95a4}
.mc-c-format button{height:28px;min-width:28px;padding:4px;background:transparent;color:inherit;border-radius:5px;font-size:14px}
.mc-c-format button:hover{background:#edf3fb;color:#3c65a1}
.mc-c-format svg{width:18px;height:18px}
.mc-c-editor{min-height:155px;padding:7px 0 20px;outline:0;overflow-wrap:anywhere;font-size:14px;color:#283c58;line-height:1.6}
.mc-c-editor p{margin:0 0 10px}.mc-c-editor ul,.mc-c-editor ol{padding-left:25px}
.mc-compose-compact .mc-composer-signature{padding-top:10px;margin:0 0 14px;border-top:1px solid #eef1f5;font-size:13px;line-height:1.5}
.mc-c-bottom{position:relative;flex:none;border-top:1px solid #e7ebf2;padding:11px 18px;background:white}
.mc-c-bottom .form-error{margin:0;font-size:12px}.mc-c-bottom .form-error:not(:empty){padding-bottom:8px}
.mc-compose-compact .mc-compose-footer{display:flex;gap:8px;flex-wrap:nowrap;min-height:36px}
.mc-compose-compact .mc-compose-footer>.button{padding:8px 13px;font-size:13px;min-height:36px;white-space:nowrap}
.mc-c-send-options{margin-left:auto;display:flex;gap:8px;align-items:center}
.mc-compose-compact [data-draft-status]{font-size:10px;color:#9ba5b3}
.mc-c-send-options [data-schedule-label]{font-size:11px;color:#5276a3}
.mc-c-schedule{position:absolute;right:16px;bottom:calc(100% + 8px);background:#fff;border:1px solid #d9e4f2;box-shadow:0 8px 28px #253f601c;border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:350px;max-width:calc(100vw - 55px);font-size:12px}
.mc-c-schedule label{display:grid;gap:7px;width:100%;color:#6c7f99}
.mc-c-schedule input{width:100%;font-size:14px;min-height:36px}
.mc-compose-dock{position:fixed;right:26px;bottom:18px;z-index:1000;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:13px 20px;border:1px solid #c4d5ed;border-radius:12px;box-shadow:0 6px 25px #24466a26;background:#fff;color:#335988;font-size:14px}
@media(max-width:600px){.mc-compose-compact{width:calc(100vw - 14px);max-width:none;height:calc(100dvh - 20px)}.mc-c-head{padding:12px 12px 0;gap:6px}.mc-c-avatar{display:none}.mc-c-row:first-child{padding-right:97px}.mc-c-window-tools{top:15px;right:8px;gap:0}.mc-c-icon{width:29px}.mc-c-row{gap:6px}.mc-c-row>label{flex-basis:36px}.mc-c-scroll{padding-inline:12px}.mc-recipient-chip{max-width:150px}.mc-c-attachments-bar{gap:12px}.mc-c-from{display:none}.mc-c-bottom{padding:9px 10px}.mc-compose-compact .mc-compose-footer{gap:5px;flex-wrap:wrap}.mc-compose-compact .mc-compose-footer>.button{font-size:12px;padding:7px 10px}.mc-compose-compact [data-draft-status]{display:none}.mc-c-send-options{gap:3px}.mc-c-send-options [data-schedule-label]:not(:empty){flex-basis:100%;text-align:right}.mc-c-send-options:has([data-schedule-label]:not(:empty)){flex-wrap:wrap}.mc-compose-compact .mc-compose-options{grid-template-columns:1fr}.mc-c-editor{min-height:170px}}
/* Message actions stay with their own expanded message, never overlap its neighbours. */
.mail-message-body{overflow:visible}
.mail-message-body>.mail-message-actions{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin-top:22px;border:1px solid #e8ebf0;border-radius:12px;background:#f0f1f4;box-shadow:none}
.mail-reply-actions,.mail-other-actions{display:flex;align-items:center;gap:6px}
.mail-message-actions button{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#606a79;font-size:13px;white-space:nowrap;cursor:pointer}
.mail-message-actions button:hover,.mail-message-actions button:focus-visible{background:#e2e8f1;color:#305e97}
.mail-message-actions button span{font-size:22px;line-height:18px}
.mail-message-actions button svg{width:19px;height:19px}
.mc-reader .mail-text,[data-mail-panel] .mail-text{max-height:none;overflow:visible}
.mc-reader .mail-message{overflow:visible}
.mc-rich-tools .mc-c-format{gap:4px;flex-wrap:wrap;min-height:44px;padding:8px 0;color:#969ba3}
.mc-rich-tools .mc-c-format button{display:inline-flex;justify-content:center;align-items:center;gap:4px;min-width:29px;height:30px;font-size:14px;border:0;cursor:pointer}
.mc-rich-tools .mc-c-format button small{font-size:11px}
.mc-rich-tools .mc-c-format button[aria-pressed=true],.mc-rich-tools .mc-c-format button[aria-expanded=true]{color:#344c68;background:#edf1f6}
.mc-rich-tools .mc-c-format .mc-rich-template{margin-left:auto;font-size:12px;text-decoration:underline;padding-inline:7px}
.mc-color-letter{border-bottom:2px solid #e28080;line-height:19px}
.mc-compose-compact .mc-rich-popover{position:absolute;z-index:20;box-sizing:border-box;width:280px;max-width:calc(100% - 24px);max-height:min(420px,70%);overflow:auto;padding:16px;border:1px solid #edf0f4;border-radius:16px;box-shadow:0 4px 18px #23395424;background:#fff;color:#4c535d;font-size:14px;line-height:1.4;text-align:left}
.mc-rich-popover label{display:grid;gap:6px;margin-bottom:10px;font-size:13px}
.mc-rich-popover input,.mc-rich-popover select,.mc-rich-popover textarea{width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid #dce3ed;border-radius:8px;background:white;color:#3e4e66;font:inherit}
.mc-rich-popover textarea{resize:vertical;margin:10px 0}
.mc-rich-popover .button{width:100%;min-height:36px;font-size:13px;margin-top:6px}
.mc-rich-popover>small{display:block;color:#8b929d;font-size:12px}
.mc-rich-popover .text-button{font-size:13px;margin-top:9px}
.mc-rich-tabs{display:flex;gap:14px;margin-bottom:14px}
.mc-rich-tabs button{padding:3px 0;color:#999ea6;background:transparent;font-size:12px;font-weight:600;text-transform:uppercase;cursor:pointer}
.mc-rich-tabs button[aria-pressed=true]{color:#3e4650}
.mc-color-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.mc-color-grid button{aspect-ratio:1;min-width:0;border:1px solid #00000010;border-radius:8px;cursor:pointer}
.mc-color-grid button:hover{outline:2px solid #6384b5;outline-offset:2px}
.mc-color-preview{margin:14px -16px -16px;padding:12px 16px;background:#f8f9fb;font-size:14px}
.mc-rich-choices{display:grid;gap:2px}
.mc-rich-choices button{background:transparent;text-align:left;border-radius:7px;padding:10px;color:inherit;font-size:15px;cursor:pointer}
.mc-rich-choices button:hover,.mc-rich-choices button:focus-visible{background:#f0f4fa}
.mc-rich-choices small{display:block;color:#929aa8;font-size:12px;margin-top:3px}
.mc-compose-compact .mc-rich-size{width:100px}
.mc-compose-compact .mc-rich-emoji{width:350px}
.mc-emoji-tabs{display:flex;gap:4px;border-bottom:1px solid #e3e7ed;padding-bottom:9px}
.mc-emoji-tabs button{flex:1;background:transparent;border-radius:8px;padding:4px;color:#9097a1;font-size:19px;cursor:pointer}
.mc-emoji-tabs button[aria-pressed=true]{background:#eaeef4}
.mc-rich-emoji>p{font-size:13px;color:#9197a1}
.mc-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px}
.mc-emoji-grid button{padding:7px 0;background:transparent;font-size:24px;border-radius:8px;cursor:pointer}
.mc-emoji-grid button:hover{background:#f0f3f8}
.mc-emoji-grid small{grid-column:1/-1}
.mc-table-size{display:flex;gap:9px}
.mc-editor-error{font-size:12px;color:#b14747;margin:8px 0 0}.mc-editor-error:empty{display:none}
.mc-c-editor table{border-collapse:collapse;max-width:100%}.mc-c-editor td,.mc-c-editor th{min-width:35px;padding:6px;border:1px solid #ccd3dd}
.mc-c-editor img{max-width:100%;height:auto}.mc-c-editor blockquote{margin:10px 0 10px 24px;border-left:2px solid #ccd9ea;padding-left:12px}
@media(max-width:760px){.mail-message-body>.mail-message-actions{flex-wrap:wrap;gap:4px;padding:7px}.mail-message-actions button{font-size:12px;padding:5px 7px}.mail-reply-actions{flex-wrap:wrap}.mail-other-actions{margin-left:auto}.mc-rich-tools .mc-c-format{gap:2px}.mc-rich-tools .mc-c-format button{min-width:28px}}
[data-mail-panel] .mail-thread{overflow:visible}

.mail-message-actions button svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.mc-reader .mail-message[open]>summary{border-radius:8px 8px 0 0}
