:root{--s20mail-navy:#122f48;--s20mail-navy2:#1f4967;--s20mail-gold:#d9b65e;--s20mail-cream:#fbf8ef;--s20mail-paper:#fff;--s20mail-line:#e3e8ee;--s20mail-muted:#738190;--s20mail-ink:#263746;--s20mail-bg:#f2f5f8;--s20mail-shadow:0 8px 28px rgba(18,47,72,.07)}
html.s20mail-app-page,body.s20mail-app-page{margin:0!important;padding:0!important;width:100%;min-height:100%;background:var(--s20mail-bg)!important}body.s20mail-app-page{overflow:hidden}body.s20mail-app-page #wpadminbar,body.s20mail-app-page header.site-header,body.s20mail-app-page footer.site-footer,body.s20mail-app-page .site-header,body.s20mail-app-page .site-footer{display:none!important}body.s20mail-app-page #page,body.s20mail-app-page #content,body.s20mail-app-page .site,body.s20mail-app-page .site-content,body.s20mail-app-page main,body.s20mail-app-page article,body.s20mail-app-page .entry-content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;border:0!important;box-shadow:none!important}body.s20mail-app-page #s20mail-page-content{width:100%;height:100vh;min-height:100vh;height:100dvh;min-height:100dvh}
.s20mail-app{height:100vh;min-height:100vh;height:100dvh;min-height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--s20mail-bg);color:var(--s20mail-ink);font:14px/1.5 var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif);direction:rtl;isolation:isolate}.s20mail-app *{box-sizing:border-box}.s20mail-app button,.s20mail-app input,.s20mail-app textarea{font:inherit}.s20mail-app button{cursor:pointer}.s20mail-app button:disabled{opacity:.55;cursor:not-allowed}.s20mail-topbar{z-index:3;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:76px;padding:calc(12px + env(safe-area-inset-top)) clamp(14px,2.5vw,32px) 12px;background:linear-gradient(110deg,#102a40,#1c4662);color:#fff;box-shadow:0 4px 18px rgba(13,35,54,.17)}.s20mail-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;min-width:0}.s20mail-brand-mark{width:43px;height:43px;flex:none;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#f3d98f,#c59b3f);color:#162f46;font-size:25px;font-weight:900;box-shadow:inset 0 1px 0 #fff8d4,0 5px 13px #081c2c45}.s20mail-brand strong,.s20mail-brand small{display:block}.s20mail-brand strong{font-size:17px;letter-spacing:-.2px}.s20mail-brand small{margin-top:2px;color:#d9e4ec;font-size:11px}.s20mail-top-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.s20mail-account{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dfe9ef;font-size:12px;margin-inline-end:8px}.s20mail-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:8px 14px;border:1px solid transparent;border-radius:10px;font-weight:750;text-decoration:none;white-space:nowrap;transition:background .15s ease,transform .15s ease}.s20mail-button:active{transform:scale(.985)}.s20mail-button-primary{background:#d8b45d;color:#152f47;border-color:#c8a44e;box-shadow:0 3px 9px #071d2d26}.s20mail-button-primary:hover{background:#e9c977}.s20mail-button-light{background:#fff;color:#29465a;border-color:#dce5ec}.s20mail-button-light:hover{background:#f3f7fa}.s20mail-notice{margin:12px clamp(12px,2vw,26px) 0;padding:12px 15px;border-radius:11px;font-size:13px;line-height:1.8}.s20mail-notice-warning{background:#fff5dc;border:1px solid #e9d18b;color:#654b19}.s20mail-notice a{font-weight:800;color:#173f5d;text-decoration:underline;text-underline-offset:3px}.s20mail-layout{direction:rtl;display:grid;grid-template-columns:220px minmax(300px,355px) minmax(0,1fr);gap:12px;flex:1;min-height:0;padding:14px clamp(10px,1.8vw,24px) calc(14px + env(safe-area-inset-bottom));overflow:hidden}.s20mail-sidebar,.s20mail-list-panel,.s20mail-reader{min-width:0;min-height:0;overflow:hidden;border:1px solid var(--s20mail-line);border-radius:16px;background:var(--s20mail-paper);box-shadow:var(--s20mail-shadow)}.s20mail-sidebar{display:flex;flex-direction:column}.s20mail-sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:15px 15px 12px;border-bottom:1px solid var(--s20mail-line);font-size:13px}.s20mail-icon-button{display:inline-grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #e1e7ec;border-radius:10px;background:#fff;color:#476174;font-size:22px;line-height:1}.s20mail-icon-button:hover{background:#f2f6f9}.s20mail-folders{overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:4px;padding:9px}.s20mail-folder{width:100%;display:flex;align-items:center;gap:10px;padding:11px 10px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:right;color:#526474;font-weight:650;min-height:43px}.s20mail-folder-icon{width:26px;height:26px;flex:none;display:grid;place-items:center;border-radius:8px;background:#eef3f6;color:#456275;font-size:16px}.s20mail-folder-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.s20mail-folder:hover{background:#f7f9fb}.s20mail-folder.is-active{background:#f7edcf;border-color:#ecd89b;color:#4e3d18}.s20mail-folder.is-active .s20mail-folder-icon{background:#ead28c;color:#5c4312}.s20mail-sidebar-foot{margin-top:auto;padding:12px 13px;border-top:1px solid var(--s20mail-line);color:#7b8995;font-size:10px}.s20mail-list-panel{display:flex;flex-direction:column}.s20mail-list-toolbar{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid var(--s20mail-line)}.s20mail-search-wrap{display:flex;align-items:center;gap:7px;min-width:0;flex:1;padding:0 10px;border:1px solid #dfe6ec;border-radius:10px;background:#f8fafb;color:#6c7c88}.s20mail-search-wrap>span{font-size:22px;line-height:1}.s20mail-search-wrap input{min-width:0;width:100%;height:39px;border:0;outline:none;background:transparent;color:var(--s20mail-ink);font-size:12px}.s20mail-search-wrap input:focus{outline:none}.s20mail-count{flex:none;color:#7d8994;font-size:10px;white-space:nowrap}.s20mail-list{overflow:auto;flex:1;overscroll-behavior:contain}.s20mail-message-row{width:100%;display:flex;align-items:flex-start;gap:10px;padding:14px 12px;border:0;border-bottom:1px solid #edf0f3;background:#fff;color:var(--s20mail-ink);text-align:right;min-height:88px}.s20mail-message-row:hover{background:#f7fafc}.s20mail-message-row.is-active{background:#edf4f8;box-shadow:inset -3px 0 var(--s20mail-gold)}.s20mail-message-row.is-unread .s20mail-message-from,.s20mail-message-row.is-unread .s20mail-message-subject{font-weight:850;color:#162f45}.s20mail-message-dot{width:7px;height:7px;flex:none;margin-top:7px;border-radius:50%;background:#d5dce2}.s20mail-message-row.is-unread .s20mail-message-dot{background:#d6af4e;box-shadow:0 0 0 3px #f8efcf}.s20mail-message-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.s20mail-message-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.s20mail-message-from{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}.s20mail-message-date{flex:none;color:#8995a0;font-size:10px;direction:rtl;white-space:nowrap}.s20mail-message-subject{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}.s20mail-message-icons{display:flex;gap:4px;color:#83919b;font-size:12px}.s20mail-message-preview{font-size:10px;color:#88949e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.s20mail-list-foot{padding:8px;text-align:center;border-top:1px solid #eef1f4}.s20mail-list-foot .s20mail-button{min-height:33px;font-size:11px}.s20mail-reader{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}.s20mail-reader-empty{height:100%;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#7d8a96}.s20mail-reader-empty h2{margin:15px 0 5px;color:#314b5e;font-size:19px}.s20mail-reader-empty p{max-width:380px;margin:0;font-size:12px;line-height:1.9}.s20mail-empty-icon{width:72px;height:72px;display:grid;place-items:center;border:1px solid #e8d9a9;border-radius:23px;background:#fbf4df;color:#b38b2e;font-size:36px;box-shadow:0 8px 20px #203c4d0c}.s20mail-reader-head{padding:20px 22px 15px;border-bottom:1px solid var(--s20mail-line)}.s20mail-reader-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.s20mail-reader-title{margin:0;color:#203a4e;font-size:20px;line-height:1.55;overflow-wrap:anywhere}.s20mail-reader-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap}.s20mail-reader-actions button{min-height:32px;padding:5px 9px;border-radius:8px;border:1px solid #dfe7ed;background:#f7f9fa;color:#405b6d;font-size:11px;font-weight:750}.s20mail-reader-actions button:hover{background:#edf3f7}.s20mail-reader-meta{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px 14px;margin-top:12px;color:#74828e;font-size:11px;line-height:1.8}.s20mail-reader-meta span{overflow-wrap:anywhere}.s20mail-reader-meta b{color:#394f5f}.s20mail-reader-body{padding:20px 24px;flex:1;min-height:160px;color:#2b3c49;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.s20mail-body-plain{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.s20mail-body-html{max-width:100%;overflow-wrap:anywhere;word-break:normal}.s20mail-body-html img,.s20mail-body-html video,.s20mail-body-html iframe,.s20mail-body-html object,.s20mail-body-html embed{display:none!important}.s20mail-body-html a{color:#155d8b;text-decoration:underline;text-underline-offset:3px}.s20mail-body-html table{max-width:100%;border-collapse:collapse}.s20mail-body-html td,.s20mail-body-html th{border:1px solid #dbe3e9;padding:4px 7px}.s20mail-attachments{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 18px}.s20mail-attachment{display:flex;align-items:center;gap:8px;max-width:100%;padding:9px 11px;border:1px solid #dbe4ea;border-radius:11px;background:#f7fafc;color:#31556d;text-decoration:none;font-size:12px}.s20mail-attachment:hover{background:#edf4f8}.s20mail-attachment-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.s20mail-reader-back{display:none}.s20mail-loading,.s20mail-empty-mini{padding:24px 15px;text-align:center;color:#8995a0;font-size:12px;line-height:1.9}.s20mail-toast{position:fixed;z-index:1000100;right:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(50%);max-width:min(540px,calc(100vw - 26px));padding:12px 17px;border:1px solid #cbd8df;border-radius:12px;background:#122f48;color:#fff;box-shadow:0 12px 35px #102a4038;font-size:12px;line-height:1.7}.s20mail-toast.is-error{background:#7a2e28;border-color:#a75a51}.s20mail-modal-wrap{position:fixed;z-index:1000200;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(20px + env(safe-area-inset-bottom));background:rgba(7,22,33,.55);backdrop-filter:blur(4px)}.s20mail-modal-wrap[hidden]{display:none!important}.s20mail-compose-modal{display:flex;flex-direction:column;width:min(720px,100%);max-height:100%;overflow:auto;border:1px solid #e1d2a9;border-radius:18px;background:#fffdf8;box-shadow:0 22px 70px #081e2d47}.s20mail-compose-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e9dfc8;background:#fffdf8}.s20mail-compose-head h2{margin:0;font-size:17px;color:#203c52}.s20mail-compose-head .s20mail-icon-button{font-size:25px}.s20mail-compose-modal form{display:flex;flex-direction:column;gap:13px;padding:18px}.s20mail-compose-modal label{display:flex;flex-direction:column;gap:6px;color:#405568;font-size:12px;font-weight:800}.s20mail-compose-modal input[type=text],.s20mail-compose-modal textarea{width:100%;min-height:41px;padding:9px 11px;border:1px solid #d9e1e6;border-radius:9px;background:white;color:#243949;outline:none;font-size:13px;font-weight:500}.s20mail-compose-modal input:focus,.s20mail-compose-modal textarea:focus{border-color:#a8c5d7;box-shadow:0 0 0 3px #dae9f1}.s20mail-compose-modal textarea{min-height:160px;resize:vertical;line-height:1.8}.s20mail-cc-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.s20mail-attach-label input{padding:7px;border:1px dashed #cdd9e0;border-radius:9px;background:#f7fafb}.s20mail-attach-label small{font-size:10px;color:#83909b;font-weight:500}.s20mail-attachment-list{display:flex;flex-wrap:wrap;gap:6px;color:#71808c;font-size:11px}.s20mail-compose-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #eee6d5;padding-top:13px}.s20mail-compose-status{margin:0;color:#687b89;font-size:11px;line-height:1.7}.s20mail-access{max-width:600px;margin:32px auto;padding:28px;border:1px solid #e1d5b7;border-radius:16px;background:#fffdf6;color:#243c4f;line-height:1.9}.s20mail-access h2{margin-top:0}.s20mail-access a{color:#174c6d;font-weight:800}
@media(max-width:1250px){.s20mail-layout{grid-template-columns:185px minmax(265px,320px) minmax(0,1fr);gap:9px;padding-inline:10px}.s20mail-reader-head{padding:16px}.s20mail-reader-title{font-size:18px}.s20mail-reader-body{padding:16px}.s20mail-attachments{padding-inline:16px}}
@media(max-width:900px){.s20mail-topbar{min-height:67px;gap:10px;padding-inline:13px}.s20mail-brand-mark{width:38px;height:38px}.s20mail-brand strong{font-size:15px}.s20mail-account{display:none}.s20mail-layout{grid-template-columns:150px minmax(250px,42%) minmax(0,1fr);gap:7px;padding:8px 7px calc(8px + env(safe-area-inset-bottom))}.s20mail-button{min-height:36px;padding:7px 10px;font-size:12px}.s20mail-list-toolbar{padding:8px}.s20mail-reader-head{padding:13px}.s20mail-reader-body{padding:13px;font-size:13px}.s20mail-reader-title{font-size:16px}}
@media(max-width:640px){body.s20mail-app-page{overflow:hidden}.s20mail-app{height:100dvh;min-height:100dvh}.s20mail-topbar{min-height:62px;padding:calc(7px + env(safe-area-inset-top)) 10px 7px;gap:7px}.s20mail-brand{gap:8px}.s20mail-brand-mark{width:34px;height:34px;border-radius:11px;font-size:20px}.s20mail-brand strong{font-size:13px}.s20mail-brand small{font-size:10px}.s20mail-top-actions{gap:5px}.s20mail-top-actions .s20mail-button{min-height:34px;padding:6px 8px;font-size:10px}.s20mail-notice{margin:7px 7px 0;padding:8px 10px;font-size:11px;line-height:1.6}.s20mail-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:6px;padding:6px 6px calc(6px + env(safe-area-inset-bottom));overflow:hidden}.s20mail-sidebar{grid-row:1;border-radius:12px;min-height:0;max-height:90px}.s20mail-sidebar-title{display:none}.s20mail-folders{flex-direction:row;align-items:center;gap:5px;padding:6px;overflow-x:auto;overflow-y:hidden}.s20mail-folder{width:auto;flex:none;min-height:38px;padding:6px 9px;gap:6px;border-radius:9px;font-size:11px}.s20mail-folder-icon{width:22px;height:22px;font-size:13px}.s20mail-folder-label{max-width:120px}.s20mail-sidebar-foot{display:none}.s20mail-list-panel{grid-row:2;border-radius:12px}.s20mail-list-toolbar{padding:8px;gap:7px}.s20mail-search-wrap input{height:35px;font-size:11px}.s20mail-count{font-size:9px}.s20mail-message-row{min-height:77px;padding:11px 9px;gap:7px}.s20mail-message-from,.s20mail-message-subject{font-size:11px}.s20mail-message-date,.s20mail-message-preview{font-size:9px}.s20mail-reader{display:none;position:absolute;z-index:8;inset:0;border-radius:12px}.s20mail-app.s20mail-show-reader .s20mail-sidebar,.s20mail-app.s20mail-show-reader .s20mail-list-panel{display:none}.s20mail-app.s20mail-show-reader .s20mail-reader{display:flex}.s20mail-reader-head{padding:10px 12px}.s20mail-reader-title-row{align-items:flex-start;gap:7px}.s20mail-reader-title{font-size:16px;line-height:1.45}.s20mail-reader-actions{gap:4px}.s20mail-reader-actions button{font-size:10px;padding:5px 6px;min-height:30px}.s20mail-reader-back{display:inline-grid;place-items:center;width:32px;height:32px;flex:none;border:1px solid #dce5eb;border-radius:9px;background:#f7fafb;color:#34566d;font-size:19px}.s20mail-reader-meta{margin-top:8px;gap:3px 9px;font-size:10px}.s20mail-reader-body{padding:12px;font-size:13px;line-height:1.8;overflow:auto}.s20mail-attachments{padding:0 12px 14px;gap:5px}.s20mail-attachment{font-size:10px;padding:7px 8px}.s20mail-attachment-name{max-width:200px}.s20mail-reader-empty{min-height:240px;padding:16px}.s20mail-reader-empty h2{font-size:17px}.s20mail-empty-icon{width:58px;height:58px;border-radius:18px;font-size:29px}.s20mail-toast{bottom:calc(14px + env(safe-area-inset-bottom));font-size:11px}.s20mail-modal-wrap{align-items:flex-end;padding:0;border-radius:0}.s20mail-compose-modal{width:100%;height:min(94dvh,900px);max-height:calc(100dvh - env(safe-area-inset-top));border-radius:18px 18px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.s20mail-compose-head{padding:12px 14px}.s20mail-compose-modal form{gap:10px;padding:12px}.s20mail-compose-modal label{font-size:11px}.s20mail-compose-modal input[type=text]{min-height:38px;font-size:12px}.s20mail-compose-modal textarea{min-height:120px;font-size:12px}.s20mail-cc-row{grid-template-columns:1fr;gap:9px}.s20mail-compose-actions .s20mail-button{flex:1}.s20mail-notice a{display:inline-block}}
@media(prefers-reduced-motion:reduce){.s20mail-app *{transition:none!important;scroll-behavior:auto!important}}

/* Beta29: WorkChat-matched visual language and dedicated login. */
body.s20mail-app-page :is(.mobile-bottom-nav,.mobile-sticky-bar,.sim2080-mobile-nav,.bottom-navigation,.mobile-bottom-bar,.sticky-mobile-toolbar,.support-widget,.support-floating-button,.sim2080-support-widget,.sim2080-theme-toggle,.theme-toggle,.dark-mode-toggle){display:none!important;visibility:hidden!important;pointer-events:none!important}
.s20mail-app{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;--s20mail-navy:#243f51;--s20mail-navy2:#315466;--s20mail-gold:#d9b85e;--s20mail-cream:#fffdf6;--s20mail-bg:#f5f1e7;--s20mail-line:#e5d9bb;--s20mail-shadow:0 10px 30px rgba(39,49,54,.09)}
.s20mail-topbar{background:linear-gradient(110deg,#203b4d,#2d5061);box-shadow:0 4px 18px rgba(31,52,64,.14)}
.s20mail-brand-mark{border-radius:14px;background:linear-gradient(145deg,#f4dc94,#c8a44e);color:#203b4d;box-shadow:0 4px 0 #142d3d,0 8px 18px rgba(31,52,64,.16)}
.s20mail-button-primary{background:#243f51;color:#fffdf6;border-color:#172f3e;box-shadow:0 3px 0 #142d3d,0 7px 15px rgba(31,52,64,.1)}
.s20mail-button-primary:hover{background:#315466;color:#fff}
.s20mail-folder.is-active{background:#f2e5bd;border-color:#e1c978;color:#5d461b}.s20mail-folder.is-active .s20mail-folder-icon{background:#e6ce86;color:#5d461b}
.s20mail-login-screen{box-sizing:border-box;min-height:100dvh;width:100%;padding:calc(22px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;background:#f5f1e7;color:#233848;font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important}
.s20mail-login-card{box-sizing:border-box;width:min(100%,460px);padding:clamp(24px,5vw,40px);border-radius:24px;border:1px solid #e5d6ad;background:#fffdf8;box-shadow:0 18px 55px rgba(39,49,54,.12);text-align:center;animation:s20mail-login-in .24s ease both}
.s20mail-login-mark{width:66px;height:66px;margin:0 auto 12px;display:grid;place-items:center;border:1px solid #f2d98a;border-radius:20px;background:#253f51;color:#f4d782;box-shadow:0 4px 0 #132c3b,0 10px 20px rgba(31,52,64,.17);font-size:36px}
.s20mail-login-eyebrow{font-size:10px;letter-spacing:.12em;color:#90702b;font-weight:850;margin-bottom:6px}.s20mail-login-card h1{margin:4px 0 10px;font-size:clamp(21px,5vw,27px);font-weight:850;color:#233d4e}.s20mail-login-intro{margin:0 auto 22px;max-width:350px;color:#667681;font-size:12px;line-height:2}
.s20mail-login-label{display:block;text-align:right;font-weight:800;font-size:12px;color:#344b58;margin:12px 0 6px}.s20mail-login-input{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #d9dfe0!important;border-radius:13px!important;background:#fff!important;color:#233848!important;padding:10px 13px!important;font:inherit!important;outline:none!important;box-shadow:none!important}.s20mail-login-input:focus{border-color:#bca15b!important;box-shadow:0 0 0 3px #f4e9c9!important}.s20mail-login-remember{display:flex;align-items:center;gap:8px;margin:14px 0;text-align:right;color:#667681;font-size:12px}.s20mail-login-submit{width:100%;min-height:49px;border:1px solid #182f3f;border-radius:13px;background:#243f51;color:#fff;font:inherit;font-weight:850;box-shadow:0 3px 0 #142d3d,0 8px 16px rgba(31,52,64,.12);cursor:pointer}.s20mail-login-error{margin:12px 0;padding:10px;border:1px solid #e8c5c1;border-radius:10px;background:#fff0ed;color:#9a3028;font-size:12px;line-height:1.8}.s20mail-login-foot{margin-top:22px;padding-top:15px;border-top:1px solid #eee5cf;display:flex;align-items:center;justify-content:center;gap:7px;color:#89723d;font-size:10px;line-height:1.8}
.s20mail-bottom-nav{display:none}
@keyframes s20mail-login-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.s20mail-app{padding-bottom:calc(62px + env(safe-area-inset-bottom))}.s20mail-bottom-nav{position:fixed;z-index:1000003;left:0;right:0;bottom:0;box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;height:calc(62px + env(safe-area-inset-bottom));padding:4px max(7px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));background:rgba(255,252,244,.98);border-top:1px solid #dfcc92;box-shadow:0 -7px 24px rgba(46,35,12,.12)}.s20mail-bottom-nav button{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid transparent;border-radius:10px;background:transparent;color:#334957;font:inherit;font-weight:750;padding:3px 1px}.s20mail-bottom-nav button span{font-size:21px;line-height:1.2}.s20mail-bottom-nav button small{font-size:10px;line-height:1.25;font-weight:800}.s20mail-bottom-nav button.is-active{background:#f2e5bd;border-color:#e1c978;color:#5d461b}.s20mail-list-panel{min-height:0}.s20mail-app.s20mail-show-drafts .s20mail-sidebar,.s20mail-app.s20mail-show-drafts .s20mail-reader{display:none}.s20mail-app.s20mail-show-drafts .s20mail-list-panel{display:flex;grid-row:1 / span 2}.s20mail-app.s20mail-show-reader{padding-bottom:calc(62px + env(safe-area-inset-bottom))}}
@media(min-width:641px){.s20mail-bottom-nav{display:none!important}}

/* Beta31: match the WorkChat shell, and reserve the only mobile sticky area for the four mail actions. */
.s20mail-app{--s20mail-navy:#102b46;--s20mail-navy2:#1b456a;--s20mail-gold:#d3ae59;--s20mail-cream:#fffdf8;--s20mail-paper:#fff;--s20mail-line:#e4ebf2;--s20mail-muted:#718096;--s20mail-ink:#152b40;--s20mail-bg:#f3f6fa;--s20mail-shadow:0 12px 36px rgba(14,38,62,.10);font-family:inherit!important;color:var(--s20mail-ink)!important;background:var(--s20mail-bg)!important}
.s20mail-topbar{background:var(--s20mail-navy)!important;box-shadow:0 4px 18px rgba(11,36,59,.18)!important;padding-left:clamp(12px,3vw,34px)!important;padding-right:clamp(12px,3vw,34px)!important}
.s20mail-brand-mark{width:42px!important;height:42px!important;border:1px solid rgba(211,174,89,.55)!important;border-radius:14px!important;background:rgba(211,174,89,.16)!important;color:var(--s20mail-gold)!important;box-shadow:none!important}
.s20mail-button-primary{background:var(--s20mail-navy)!important;border-color:var(--s20mail-navy)!important;color:#fff!important;box-shadow:none!important}
.s20mail-button-primary:hover{background:#1b456a!important;color:#fff!important}
.s20mail-button-light{background:#f7f9fc!important;border-color:#dce5ee!important;color:var(--s20mail-navy)!important}
.s20mail-folder.is-active{background:#edf4fb!important;border-color:#d8e4ef!important;color:var(--s20mail-navy)!important;box-shadow:inset -3px 0 var(--s20mail-gold)}
.s20mail-folder.is-active .s20mail-folder-icon{background:#e5edf6!important;color:#264e72!important}
.s20mail-account-picker{display:flex;align-items:center;gap:8px;min-width:150px;max-width:min(32vw,390px);color:#c4d0dc;font-size:11px;font-weight:750}
.s20mail-account-picker span{white-space:nowrap}
.s20mail-account-picker select{width:100%;min-width:0;min-height:36px;padding:6px 9px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:#173b5a;color:#fff;font:inherit;font-size:11px;outline:none}
.s20mail-account-picker select option{background:#fff;color:#152b40}
.s20mail-auto-refresh-label{color:#d7e2ea;font-size:10px;white-space:nowrap}
.s20mail-login-screen{background:var(--s20wc-bg,#f3f6fa)!important;color:var(--s20wc-ink,#152b40)!important;font-family:inherit!important}
.s20mail-login-card{border-color:#e4ebf2!important;background:#fff!important;border-radius:18px!important;box-shadow:0 12px 36px rgba(14,38,62,.10)!important}
.s20mail-login-mark{border-color:rgba(211,174,89,.55)!important;border-radius:14px!important;background:rgba(16,43,70,.96)!important;color:var(--s20mail-gold)!important;box-shadow:none!important}
.s20mail-login-card h1{color:var(--s20mail-navy)!important}
.s20mail-login-submit{background:var(--s20mail-navy)!important;border-color:var(--s20mail-navy)!important;box-shadow:none!important}
.s20mail-bottom-nav{background:rgba(255,255,255,.98)!important;border-top:1px solid var(--s20mail-line)!important;box-shadow:0 -7px 24px rgba(14,38,62,.10)!important}
.s20mail-bottom-nav button{color:var(--s20mail-muted)!important}
.s20mail-bottom-nav button.is-active{background:#edf4fb!important;border-color:#dce7f1!important;color:var(--s20mail-navy)!important}
body.s20mail-app-page :is(.s20-mobile-bar,.s20-theme-toggle,.s20-theme-toggle-floating,.s20ch-support-shortcut,.sim2080-sticky-bar,.sim2080-sticky-mobile-bar,.sim2080-mobile-nav,.sim2080-support-widget,.sim2080-theme-toggle,.sim2080-theme-toggle-button,.sim2080-theme-toggle-floating,.mobile-bottom-nav,.mobile-bottom-bar,.mobile-sticky-bar,.mobile-sticky-toolbar,.bottom-navigation,.fixed-mobile-bar,.support-widget,.support-floating-button,.theme-toggle,.dark-mode-toggle,.wd-bottom-actions,.s20-footer-bottom,#s20-mobile-menu,#s20wc-support-widget,#s20wc-support-toggle,#s20wc-theme-toggle,#s20wc-mobile-nav,#s20wc-bottom-nav,#s20wc-mobile-bottom){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:900px){.s20mail-auto-refresh-label{display:none}.s20mail-account-picker{max-width:32vw;min-width:116px}.s20mail-account-picker span{display:none}}
@media(max-width:640px){.s20mail-app{padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}.s20mail-topbar{min-height:calc(60px + env(safe-area-inset-top))!important;padding-top:env(safe-area-inset-top)!important;padding-left:max(8px,env(safe-area-inset-left))!important;padding-right:max(8px,env(safe-area-inset-right))!important;gap:6px!important}.s20mail-brand{gap:7px!important}.s20mail-brand-mark{width:34px!important;height:34px!important;border-radius:12px!important;font-size:19px!important}.s20mail-brand strong{font-size:12px!important}.s20mail-brand small{font-size:9px!important}.s20mail-account-picker{min-width:92px;max-width:34vw;flex:0 1 34vw}.s20mail-account-picker select{font-size:10px;min-height:33px;padding:5px 6px}.s20mail-top-actions{gap:4px!important}.s20mail-top-actions .s20mail-button{font-size:10px!important;min-height:33px!important;padding:5px 7px!important}.s20mail-top-actions .s20mail-account{display:none!important}.s20mail-layout{padding-bottom:calc(6px + env(safe-area-inset-bottom))!important}.s20mail-bottom-nav{height:calc(62px + env(safe-area-inset-bottom))!important;padding-bottom:calc(4px + env(safe-area-inset-bottom))!important}.s20mail-app.s20mail-show-reader{padding-bottom:calc(62px + env(safe-area-inset-bottom))!important}}
@media(max-width:390px){.s20mail-brand small{display:none}.s20mail-account-picker{min-width:82px}.s20mail-top-actions .s20mail-button{font-size:9px!important;padding-inline:5px!important}}

/* Beta31 final parity pass: the email client uses WorkChat's shared visual tokens and fullscreen shell. */
:root{--s20mail-navy:var(--s20wc-navy,#102b46);--s20mail-navy2:var(--s20wc-navy,#1b456a);--s20mail-gold:var(--s20wc-gold,#d3ae59);--s20mail-paper:var(--s20wc-card,#fff);--s20mail-line:var(--s20wc-line,#e4ebf2);--s20mail-muted:var(--s20wc-muted,#718096);--s20mail-ink:var(--s20wc-ink,#152b40);--s20mail-bg:var(--s20wc-bg,#f3f6fa);--s20mail-shadow:var(--s20wc-shadow,0 12px 36px rgba(14,38,62,.10))}
html.s20mail-app-page,body.s20mail-app-page{width:100%!important;height:100%!important;min-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;background:var(--s20mail-bg)!important;overscroll-behavior:none!important}
body.s20mail-app-page #wpadminbar,body.s20mail-app-page #masthead,body.s20mail-app-page header.site-header,body.s20mail-app-page .site-header,body.s20mail-app-page .elementor-location-header,body.s20mail-app-page #colophon,body.s20mail-app-page footer.site-footer,body.s20mail-app-page .site-footer,body.s20mail-app-page .elementor-location-footer,body.s20mail-app-page .breadcrumb,body.s20mail-app-page .breadcrumbs,body.s20mail-app-page #secondary,body.s20mail-app-page .sidebar{display:none!important}
body.s20mail-app-page #page,body.s20mail-app-page #content,body.s20mail-app-page .site,body.s20mail-app-page .site-content,body.s20mail-app-page .content-area,body.s20mail-app-page main,body.s20mail-app-page article,body.s20mail-app-page .entry-content,body.s20mail-app-page .container,body.s20mail-app-page .content-container{width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;float:none!important}
body.s20mail-app-page #s20mail-page-content{display:block!important;width:100%!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-app{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;color:var(--s20mail-ink)!important;background:var(--s20mail-bg)!important}
body.s20mail-app-page :is(.s20-mobile-bar,.s20-theme-toggle,.s20-theme-toggle-floating,.s20ch-support-shortcut,.sim2080-sticky-bar,.sim2080-sticky-mobile-bar,.sim2080-mobile-sticky-bar,.rb-sticky-mobile-bar,.site-sticky-bar,.sticky-mobile-bar,.sim2080-mobile-nav,.sim2080-support-widget,.sim2080-theme-toggle,.sim2080-theme-toggle-button,.sim2080-theme-toggle-floating,.sim2080-public-site-theme-toggle,.mobile-bottom-nav,.mobile-bottom-bar,.mobile-sticky-bar,.mobile-sticky-toolbar,.bottom-navigation,.fixed-mobile-bar,.support-widget,.support-floating-button,.theme-toggle,.dark-mode-toggle,.wd-bottom-actions,.s20-footer-bottom,#s20-mobile-menu,#s20wc-support-widget,#s20wc-support-toggle,#s20wc-theme-toggle,#s20wc-mobile-nav,#s20wc-bottom-nav,#s20wc-mobile-bottom,#sim2080-admin-theme-toggle,#sim2080-public-site-theme-toggle,.sim2080-bottom-bar,.sim2080-fixed-bottom-nav,.site-mobile-menu-toggle,.elementor-menu-toggle,[class*="theme-toggle"],[id*="theme-toggle"],[class*="dark-mode-toggle"],[id*="dark-mode-toggle"],[class*="mobile-bottom"],[id*="mobile-bottom"],[class*="sticky-bar"],[id*="sticky-bar"],#s20ch-auto-widget,#s20ch-live-widget,#sim2080-support-widget){display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.s20mail-app{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;color:var(--s20mail-ink)!important;background:var(--s20mail-bg)!important}
.s20mail-topbar{background:var(--s20mail-navy)!important;color:#fff!important}
.s20mail-brand strong,.s20mail-reader-title,.s20mail-reader-empty h2{color:var(--s20mail-navy)!important}
.s20mail-button-primary{background:var(--s20mail-navy)!important;border-color:var(--s20mail-navy)!important;color:#fff!important}
.s20mail-message-row,.s20mail-sidebar,.s20mail-list-panel,.s20mail-reader,.s20mail-compose-modal{background:var(--s20mail-paper)!important;color:var(--s20mail-ink)!important;border-color:var(--s20mail-line)!important}
.s20mail-folder.is-active,.s20mail-bottom-nav button.is-active{background:#edf4fb!important;border-color:#d8e4ef!important;color:var(--s20mail-navy)!important}
.s20mail-bottom-nav{z-index:1000003!important}
@media(max-width:640px){body.s20mail-app-page #s20mail-page-content{height:100vh!important;height:100dvh!important}.s20mail-bottom-nav{display:grid!important}.s20mail-bottom-nav button{min-height:0!important}}

/* In-app settings screen: retains the WorkChat palette rather than sending the mobile tab to wp-admin. */
.s20mail-settings-screen{display:none;flex-direction:column;gap:16px;grid-column:1/-1;grid-row:1;min-width:0;min-height:0;overflow:auto;padding:clamp(14px,2.4vw,28px);border:1px solid var(--s20mail-line);border-radius:16px;background:var(--s20mail-paper);box-shadow:var(--s20mail-shadow);color:var(--s20mail-ink)}
.s20mail-app.s20mail-show-settings .s20mail-settings-screen{display:flex!important}
.s20mail-app.s20mail-show-settings .s20mail-sidebar,.s20mail-app.s20mail-show-settings .s20mail-list-panel,.s20mail-app.s20mail-show-settings .s20mail-reader{display:none!important}
.s20mail-settings-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:1px solid var(--s20mail-line)}
.s20mail-settings-kicker{color:var(--s20mail-gold);font-size:10px;font-weight:900;letter-spacing:.1em}.s20mail-settings-header h2{margin:5px 0;color:var(--s20mail-navy);font-size:clamp(18px,2vw,24px);font-weight:850}.s20mail-settings-header p,.s20mail-settings-card p{margin:4px 0 0;color:var(--s20mail-muted);font-size:12px;line-height:1.9}
.s20mail-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.s20mail-settings-card{min-width:0;padding:16px;border:1px solid var(--s20mail-line);border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(14,38,62,.04)}.s20mail-settings-card h3{margin:0 0 11px;color:var(--s20mail-navy);font-size:14px;font-weight:850}.s20mail-settings-card>label{display:block;margin-bottom:7px;color:var(--s20mail-ink);font-size:12px;font-weight:800}.s20mail-settings-card select{width:100%;min-height:42px;border:1px solid var(--s20mail-line);border-radius:10px;padding:8px 11px;background:#f7f9fc;color:var(--s20mail-ink);font:inherit}.s20mail-settings-account-list{display:flex;flex-direction:column;gap:8px}.s20mail-settings-account{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid var(--s20mail-line);border-radius:11px;background:#fbfcfe}.s20mail-settings-account>div{display:flex;flex:1;flex-direction:column;min-width:120px;gap:3px}.s20mail-settings-account strong{font-size:12px;color:var(--s20mail-ink);overflow-wrap:anywhere}.s20mail-settings-account small{font-size:10px;color:var(--s20mail-muted);overflow-wrap:anywhere}.s20mail-settings-status{font-size:10px;font-weight:800}.s20mail-settings-status.is-ready{color:#19734f}.s20mail-settings-status.is-incomplete{color:#9a7022}.s20mail-settings-card .s20mail-button,.s20mail-settings-header .s20mail-button{min-height:35px;font-size:11px}
body.s20mail-app-page .s20ch-widget,body.s20mail-app-page [data-s20ch-widget],body.s20mail-app-page .s20ch-launcher,body.s20mail-app-page .s20ch-panel{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(max-width:760px){.s20mail-settings-grid{grid-template-columns:minmax(0,1fr)}.s20mail-settings-screen{gap:11px;padding:11px;border-radius:12px}.s20mail-settings-header{align-items:flex-start}.s20mail-settings-header p{font-size:11px}.s20mail-settings-card{padding:12px}.s20mail-settings-account{align-items:flex-start}.s20mail-settings-account .s20mail-button{margin-inline-start:auto}}
@media(max-width:640px){.s20mail-app.s20mail-show-settings .s20mail-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.s20mail-app.s20mail-show-settings .s20mail-settings-screen{grid-column:1;grid-row:1;min-height:0}.s20mail-settings-header{flex-direction:column}.s20mail-settings-header .s20mail-button{align-self:flex-start}.s20mail-top-actions #s20mail-settings-open-top{display:none!important}}

/* Explicit fallback selectors also hide theme controls when :is() is unsupported. */
body.s20mail-app-page .s20ch-widget,body.s20mail-app-page .s20-theme-toggle,body.s20mail-app-page .sim2080-theme-toggle-floating,body.s20mail-app-page .sim2080-sticky-mobile-bar,body.s20mail-app-page .sim2080-mobile-sticky-bar,body.s20mail-app-page .s20-mobile-bar,body.s20mail-app-page .sim2080-mobile-nav,body.s20mail-app-page .sim2080-bottom-bar,body.s20mail-app-page .sim2080-sticky-bar,body.s20mail-app-page [class*="theme-toggle"],body.s20mail-app-page [id*="theme-toggle"],body.s20mail-app-page [class*="dark-mode-toggle"],body.s20mail-app-page [id*="dark-mode-toggle"],body.s20mail-app-page [class*="sticky"],body.s20mail-app-page [id*="sticky"],body.s20mail-app-page [class*="mobile-bottom"],body.s20mail-app-page [id*="mobile-bottom"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}

/* Beta 34: responsive full-screen mail layout and shared messenger palette */
.s20mail-app-page #s20mail-page-content{height:100dvh!important;min-height:0!important;overflow:hidden!important}
.s20mail-app{height:100dvh!important;min-height:0!important}
.s20mail-topbar{flex-wrap:wrap;gap:10px;padding-block:10px;min-height:0}
.s20mail-top-actions{gap:7px}
.s20mail-messenger-link{background:transparent!important;color:inherit!important;border-color:rgba(255,255,255,.42)!important}
.s20mail-account-picker{border:1px solid #294d68;border-radius:10px;padding:6px 9px;color:inherit}
.s20mail-account-picker select{max-width:min(42vw,260px)}
.s20mail-notice{flex:none;max-height:18vh;overflow:auto}
.s20mail-layout{min-height:0;min-width:0;grid-template-columns:190px minmax(220px,310px) minmax(0,1fr);padding:8px;gap:8px}
.s20mail-reader-head{padding:14px 16px 10px}.s20mail-reader-body{padding:14px 16px}
.s20mail-settings-screen{min-width:0;min-height:0;overflow:auto}
@media(max-width:900px){.s20mail-layout{grid-template-columns:170px minmax(200px, .85fr) minmax(0,1.15fr)}.s20mail-topbar{gap:8px}.s20mail-brand small{font-size:10px}.s20mail-account{max-width:180px}}
@media(max-width:700px){.s20mail-topbar{padding:calc(8px + env(safe-area-inset-top)) 10px 8px;gap:8px}.s20mail-brand{flex:1}.s20mail-brand-mark{width:35px;height:35px;border-radius:11px;font-size:20px}.s20mail-brand strong{font-size:14px}.s20mail-account-picker{order:3;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}.s20mail-account-picker select{max-width:70%;flex:1;min-width:0}.s20mail-top-actions{order:4;width:100%;display:flex;gap:6px}.s20mail-top-actions .s20mail-button{flex:1;min-width:0;padding:7px 8px;font-size:11px}.s20mail-account,.s20mail-auto-refresh-label{display:none!important}.s20mail-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);padding:6px;gap:6px}.s20mail-sidebar{display:none}.s20mail-list-panel,.s20mail-reader{grid-column:1;grid-row:1;min-height:0}.s20mail-reader{display:none}.s20mail-app.s20mail-message-open .s20mail-list-panel{display:none}.s20mail-app.s20mail-message-open .s20mail-reader{display:flex}.s20mail-settings-grid{grid-template-columns:minmax(0,1fr)}.s20mail-reader-title{font-size:17px}.s20mail-reader-head{padding:12px}.s20mail-reader-body{padding:12px;font-size:13px}.s20mail-reader-empty{min-height:0;padding:20px}}
@media(min-width:701px) and (max-height:650px){.s20mail-topbar{padding-block:6px}.s20mail-layout{padding:6px}.s20mail-brand-mark{width:34px;height:34px}.s20mail-reader-head{padding:10px 14px}.s20mail-reader-body{padding:10px 14px}}


/* Beta35: compact responsive email shell, cross-page menu, and shared day/night theme. */
body.s20mail-app-page,body.s20mail-app-page #s20mail-page-content{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-page-content{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.s20mail-app{position:relative!important;isolation:isolate!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;background:var(--s20mail-bg)!important;color:var(--s20mail-ink)!important}
.s20mail-topbar{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:64px!important;padding:8px clamp(10px,2vw,24px)!important;background:var(--s20mail-navy)!important;color:#fff!important;box-shadow:0 3px 14px rgba(0,0,0,.14)!important}
.s20mail-brand{min-width:0!important;flex:1 1 auto!important;gap:9px!important}.s20mail-brand-mark{width:38px!important;height:38px!important;border-radius:12px!important;font-size:21px!important}.s20mail-brand strong{font-size:15px!important;line-height:1.35!important}.s20mail-brand small{font-size:10px!important;line-height:1.45!important}
.s20mail-top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex:0 0 auto!important;flex-wrap:nowrap!important;min-width:0!important}.s20mail-top-actions .s20mail-button{min-height:36px!important;padding:7px 10px!important;font-size:11px!important}.s20mail-account{max-width:220px!important;font-size:10px!important;margin:0!important}.s20mail-menu-toggle{width:37px!important;height:37px!important;border:1px solid rgba(255,255,255,.35)!important;background:rgba(255,255,255,.11)!important;color:#fff!important;border-radius:10px!important;font-size:21px!important}
.s20mail-notice{flex:0 0 auto!important;margin:5px 10px 0!important;padding:7px 10px!important;max-height:clamp(34px,7.5vh,66px)!important;overflow:auto!important;font-size:11px!important;line-height:1.65!important;border-radius:9px!important}
.s20mail-layout{flex:1 1 auto!important;min-width:0!important;min-height:0!important;overflow:hidden!important;grid-template-columns:minmax(150px,190px) minmax(210px,300px) minmax(0,1fr)!important;gap:8px!important;padding:8px!important}
.s20mail-sidebar,.s20mail-list-panel,.s20mail-reader,.s20mail-settings-screen{min-width:0!important;min-height:0!important;border-radius:12px!important}
.s20mail-reader{overflow:auto!important}.s20mail-reader-empty{min-height:0!important}.s20mail-settings-screen{padding:clamp(10px,1.7vw,20px)!important}
.s20mail-bottom-nav{flex:0 0 auto!important;position:relative!important;inset:auto!important;min-height:52px!important;padding-bottom:env(safe-area-inset-bottom)!important}
.s20mail-menu-backdrop[hidden],.s20mail-action-menu[hidden]{display:none!important}
.s20mail-menu-backdrop{position:fixed!important;z-index:1000400!important;inset:0!important;width:100vw!important;height:100dvh!important;border:0!important;padding:0!important;background:rgba(8,15,20,.48)!important;backdrop-filter:blur(2px)!important}
.s20mail-action-menu{position:fixed!important;z-index:1000401!important;top:calc(8px + env(safe-area-inset-top))!important;right:10px!important;display:flex!important;flex-direction:column!important;gap:8px!important;width:min(360px,calc(100vw - 20px))!important;max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;overflow:auto!important;padding:14px!important;border:1px solid #d8c99f!important;border-radius:18px!important;background:#fffdf7!important;color:#263746!important;box-shadow:0 20px 64px rgba(0,0,0,.25)!important;direction:rtl!important;box-sizing:border-box!important}
.s20mail-action-menu-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:0 0 10px!important;border-bottom:1px solid #e6dcc2!important;color:#243f51!important}.s20mail-action-menu-head strong{font-size:13px!important;font-weight:850!important}.s20mail-action-menu-head button{width:34px!important;height:34px!important;flex:0 0 auto!important;border:1px solid #d3c6a3!important;border-radius:10px!important;background:#fbf5e5!important;color:#4d4635!important;font-size:22px!important}
.s20mail-account-picker{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;padding:10px!important;border:1px solid #b6b8b3!important;border-radius:12px!important;background:#f7f4e9!important;color:#314352!important;font-size:11px!important;font-weight:800!important;box-sizing:border-box!important}.s20mail-account-picker select{flex:1 1 auto!important;min-width:0!important;max-width:75%!important;min-height:38px!important;border:1px solid #d2c7a5!important;border-radius:9px!important;padding:6px 8px!important;background:#fffdf8!important;color:#263746!important;font:inherit!important}
.s20mail-menu-link{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:42px!important;padding:9px 12px!important;border:1px solid #b8c1c6!important;border-radius:11px!important;background:#fffdf8!important;color:#263746!important;text-align:right!important;text-decoration:none!important;font:inherit!important;font-size:12px!important;font-weight:800!important;box-sizing:border-box!important;cursor:pointer!important}.s20mail-menu-link:hover{background:#f1ead6!important;border-color:#8d9ba4!important;color:#1e3546!important}.s20mail-menu-link:focus-visible{outline:2px solid #c5a24d!important;outline-offset:2px!important}.s20mail-menu-link span{flex:1 1 auto!important}.s20mail-menu-account-hint{display:block!important;max-width:100%!important;color:#76818a!important;font-size:10px!important;overflow-wrap:anywhere!important;text-align:left!important}
/* Light palette explicitly matches the workchat's warm gold and neutral surfaces. */
.s20mail-app.s20mail-theme-light{--s20mail-navy:#292722;--s20mail-navy2:#3a362d;--s20mail-gold:#d8b646;--s20mail-cream:#fffdf4;--s20mail-paper:#fffdf7;--s20mail-line:#e2d8bd;--s20mail-muted:#766e5c;--s20mail-ink:#2c2a25;--s20mail-bg:#f2f0ea;--s20mail-shadow:0 8px 26px rgba(37,32,21,.08);color-scheme:light}
.s20mail-app.s20mail-theme-dark{--s20mail-navy:#201f1c;--s20mail-navy2:#302d25;--s20mail-gold:#dfbf5c;--s20mail-cream:#25231e;--s20mail-paper:#242320;--s20mail-line:#514833;--s20mail-muted:#c3b895;--s20mail-ink:#f5ebce;--s20mail-bg:#171715;--s20mail-shadow:0 10px 32px rgba(0,0,0,.32);color-scheme:dark}
.s20mail-app.s20mail-theme-light .s20mail-topbar,.s20mail-app.s20mail-theme-dark .s20mail-topbar{background:linear-gradient(110deg,var(--s20mail-navy),var(--s20mail-navy2))!important;color:#fbf6e7!important}
.s20mail-app.s20mail-theme-dark .s20mail-brand small{color:#d9cda7!important}.s20mail-app.s20mail-theme-light .s20mail-button-primary,.s20mail-app.s20mail-theme-dark .s20mail-button-primary{background:var(--s20mail-gold)!important;border-color:var(--s20mail-gold)!important;color:#272319!important}
.s20mail-app.s20mail-theme-dark .s20mail-button-light,.s20mail-app.s20mail-theme-dark .s20mail-icon-button{background:#302e27!important;border-color:#65583a!important;color:#f5ebce!important}
.s20mail-app.s20mail-theme-dark .s20mail-sidebar,.s20mail-app.s20mail-theme-dark .s20mail-list-panel,.s20mail-app.s20mail-theme-dark .s20mail-reader,.s20mail-app.s20mail-theme-dark .s20mail-settings-screen,.s20mail-app.s20mail-theme-dark .s20mail-compose-modal{background:var(--s20mail-paper)!important;color:var(--s20mail-ink)!important;border-color:var(--s20mail-line)!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-row,.s20mail-app.s20mail-theme-dark .s20mail-settings-card,.s20mail-app.s20mail-theme-dark .s20mail-settings-account{background:#292824!important;color:var(--s20mail-ink)!important;border-color:var(--s20mail-line)!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-row:hover,.s20mail-app.s20mail-theme-dark .s20mail-folder:hover{background:#333027!important}.s20mail-app.s20mail-theme-dark .s20mail-message-row.is-active,.s20mail-app.s20mail-theme-dark .s20mail-folder.is-active,.s20mail-app.s20mail-theme-dark .s20mail-bottom-nav button.is-active{background:#383322!important;border-color:#756337!important;color:#f5ebce!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-from,.s20mail-app.s20mail-theme-dark .s20mail-message-subject,.s20mail-app.s20mail-theme-dark .s20mail-reader-title,.s20mail-app.s20mail-theme-dark .s20mail-reader-empty h2,.s20mail-app.s20mail-theme-dark .s20mail-settings-header h2,.s20mail-app.s20mail-theme-dark .s20mail-settings-card h3{color:#f5ebce!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-preview,.s20mail-app.s20mail-theme-dark .s20mail-message-date,.s20mail-app.s20mail-theme-dark .s20mail-reader-meta,.s20mail-app.s20mail-theme-dark .s20mail-reader-empty,.s20mail-app.s20mail-theme-dark .s20mail-settings-header p,.s20mail-app.s20mail-theme-dark .s20mail-settings-card p,.s20mail-app.s20mail-theme-dark .s20mail-settings-account small{color:#c4b995!important}
.s20mail-app.s20mail-theme-dark .s20mail-search-wrap,.s20mail-app.s20mail-theme-dark .s20mail-settings-card select,.s20mail-app.s20mail-theme-dark .s20mail-compose-modal input,.s20mail-app.s20mail-theme-dark .s20mail-compose-modal textarea{background:#302e27!important;color:#f5ebce!important;border-color:#62573b!important}
.s20mail-app.s20mail-theme-dark .s20mail-reader-body{color:#f0e6ca!important}.s20mail-app.s20mail-theme-dark .s20mail-body-html a{color:#e6c96f!important}.s20mail-app.s20mail-theme-dark .s20mail-body-html td,.s20mail-app.s20mail-theme-dark .s20mail-body-html th{border-color:#65583a!important}
.s20mail-app.s20mail-theme-dark .s20mail-attachment{background:#302e27!important;color:#f3df9d!important;border-color:#64583b!important}.s20mail-app.s20mail-theme-dark .s20mail-settings-status.is-ready{color:#86d6aa!important}.s20mail-app.s20mail-theme-dark .s20mail-settings-status.is-incomplete{color:#edc979!important}
.s20mail-app.s20mail-theme-dark .s20mail-bottom-nav{background:#21201c!important;border-color:#514833!important}.s20mail-app.s20mail-theme-dark .s20mail-menu-backdrop{background:rgba(0,0,0,.66)!important}.s20mail-app.s20mail-theme-dark .s20mail-action-menu{background:#242320!important;color:#f5ebce!important;border-color:#645739!important}.s20mail-app.s20mail-theme-dark .s20mail-action-menu-head{color:#f5ebce!important;border-color:#514833!important}.s20mail-app.s20mail-theme-dark .s20mail-action-menu-head button,.s20mail-app.s20mail-theme-dark .s20mail-account-picker{background:#302e27!important;color:#f5ebce!important;border-color:#665a3b!important}.s20mail-app.s20mail-theme-dark .s20mail-account-picker select{background:#21201d!important;color:#f5ebce!important;border-color:#665a3b!important}.s20mail-app.s20mail-theme-dark .s20mail-menu-link{background:#302e27!important;color:#f5ebce!important;border-color:#6c624b!important}.s20mail-app.s20mail-theme-dark .s20mail-menu-link:hover{background:#3a362a!important;border-color:#b39a50!important}
.s20mail-app.s20mail-theme-dark .s20mail-notice-warning{background:#3b3020!important;border-color:#836b38!important;color:#f0dda2!important}.s20mail-app.s20mail-theme-dark .s20mail-notice a{color:#f5d76a!important}.s20mail-app.s20mail-theme-dark .s20mail-toast{background:#302e27!important;border-color:#6d5f3f!important;color:#f8efdc!important}
@media(max-width:900px){.s20mail-layout{grid-template-columns:minmax(145px,170px) minmax(190px,.9fr) minmax(0,1.1fr)!important}.s20mail-account{max-width:140px!important}}
@media(max-width:700px){body.s20mail-app-page #s20mail-page-content{height:100dvh!important;min-height:0!important}#s20mail-app .s20mail-topbar{min-height:56px!important;padding:calc(6px + env(safe-area-inset-top)) 8px 6px!important;gap:6px!important}.s20mail-brand-mark{width:33px!important;height:33px!important;font-size:18px!important;border-radius:10px!important}.s20mail-brand strong{font-size:13px!important}.s20mail-brand small{font-size:9px!important}.s20mail-top-actions{gap:5px!important}.s20mail-top-actions .s20mail-button{min-height:35px!important;padding:6px 8px!important;font-size:10px!important}.s20mail-action-label{display:none!important}.s20mail-menu-toggle{width:35px!important;height:35px!important;font-size:19px!important}#s20mail-app .s20mail-account{display:none!important}#s20mail-app .s20mail-notice{margin:4px 7px 0!important;padding:6px 8px!important;max-height:8vh!important;font-size:10px!important}#s20mail-app .s20mail-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;padding:6px 6px calc(5px + env(safe-area-inset-bottom))!important;gap:6px!important}.s20mail-sidebar{display:none!important}.s20mail-list-panel,.s20mail-reader,.s20mail-settings-screen{grid-column:1!important;grid-row:1!important;min-height:0!important}.s20mail-reader{display:none!important}.s20mail-app.s20mail-show-reader .s20mail-list-panel,.s20mail-app.s20mail-message-open .s20mail-list-panel{display:none!important}.s20mail-app.s20mail-show-reader .s20mail-reader,.s20mail-app.s20mail-message-open .s20mail-reader{display:flex!important}.s20mail-app.s20mail-show-settings .s20mail-settings-screen{display:flex!important}.s20mail-settings-header{flex-direction:row!important;align-items:flex-start!important}.s20mail-settings-header p{font-size:10px!important}.s20mail-reader-title{font-size:16px!important}.s20mail-reader-body{font-size:12px!important;padding:10px!important}.s20mail-bottom-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;min-height:49px!important}.s20mail-bottom-nav button{min-height:43px!important;padding:4px!important}.s20mail-action-menu{top:calc(5px + env(safe-area-inset-top))!important;right:5px!important;width:min(340px,calc(100vw - 10px))!important;max-height:calc(100dvh - 10px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;padding:12px!important}}
@media(max-height:560px) and (min-width:701px){.s20mail-topbar{min-height:52px!important;padding-block:4px!important}.s20mail-brand-mark{width:31px!important;height:31px!important}.s20mail-notice{max-height:44px!important}.s20mail-layout{padding:5px!important}.s20mail-reader-head{padding:8px 12px!important}.s20mail-reader-body{padding:8px 12px!important}}

/* Beta35 follow-up: keep the in-app theme control visible despite theme/plugin cleanup selectors. */
#s20mail-app #s20mail-theme-toggle{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;align-items:center!important;justify-content:center!important}


/* Beta35 follow-up: remove theme content wrappers and reserve the viewport for the mail app. */
html.s20mail-app-page,body.s20mail-app-page{width:100%!important;height:100vh!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-page-content{display:flex!important;flex-direction:column!important;width:100%!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-page-content>p{display:flex!important;flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-page-content>.s20mail-app,body.s20mail-app-page #s20mail-page-content>p>.s20mail-app{display:flex!important;flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
#s20mail-app .s20mail-topbar{flex:0 0 auto!important;min-height:60px!important;padding:8px clamp(10px,2vw,24px)!important}
#s20mail-app .s20mail-notice{flex:0 0 auto!important;margin:6px 12px 0!important;padding:7px 11px!important;line-height:1.55!important}
#s20mail-app .s20mail-layout{flex:1 1 auto!important;min-height:0!important;padding:8px clamp(8px,1.4vw,18px) calc(8px + env(safe-area-inset-bottom))!important;overflow:hidden!important}
@media(max-width:700px){body.s20mail-app-page #s20mail-page-content>p{display:flex!important;flex:1 1 auto!important;height:100%!important;min-height:0!important}#s20mail-app .s20mail-topbar{min-height:54px!important;padding:calc(5px + env(safe-area-inset-top)) 7px 5px!important}#s20mail-app .s20mail-notice{margin:4px 7px 0!important;padding:5px 7px!important;font-size:10px!important;line-height:1.4!important}#s20mail-app .s20mail-layout{padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;gap:5px!important}}


/* Beta48: email client now shares the exact Messenger bottom navigation on every viewport. */
#s20mail-app{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;padding-bottom:calc(68px + env(safe-area-inset-bottom))!important}
#s20mail-app .s20mail-layout{padding-bottom:10px!important}
#s20mail-app .s20wc-shared-navigation{display:block!important;position:static!important;z-index:1000003!important}
#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav,
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav{position:fixed!important;z-index:1000003!important;left:0!important;right:0!important;bottom:0!important;direction:rtl!important;box-sizing:border-box!important;margin:0!important;padding:5px max(12px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;background:rgba(255,252,243,.98)!important;border-top:1px solid #d7dfe4!important;box-shadow:0 -5px 22px rgba(32,48,60,.12)!important;backdrop-filter:blur(14px)!important}
#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav{display:none!important}
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;min-height:68px!important;height:68px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav::-webkit-scrollbar{display:none!important}
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav button,#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav a{display:flex!important;flex:0 0 auto!important;min-width:82px!important;min-height:54px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:4px!important;padding:5px 10px!important;border:1px solid #d7e0e7!important;border-radius:12px!important;background:#fff!important;color:#314a5c!important;text-decoration:none!important;font:inherit!important;font-size:11px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:0 1px 2px #102a400b!important;cursor:pointer!important}
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav svg{width:21px!important;height:21px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav .is-active{background:#f1e7cb!important;border-color:#d8bd75!important;color:#604b20!important}
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-desktop-nav{background:#202a30!important;border-top-color:#43515a!important}
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-desktop-nav button,#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-desktop-nav a{background:#273239!important;border-color:#465760!important;color:#e6edf0!important}
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-desktop-nav .is-active{background:#3a403c!important;border-color:#8e815c!important;color:#fff0c7!important}
#s20mail-app .s20mail-button,#s20mail-app .s20mail-icon-button,#s20mail-app .s20mail-reader-actions button{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;border-width:1px!important;border-style:solid!important}
#s20mail-app .s20mail-button-primary{border-color:#c8a34d!important}
#s20mail-app .s20mail-button-light,#s20mail-app .s20mail-icon-button{border-color:#cbd6de!important}
#s20mail-app.s20mail-theme-dark .s20mail-button-light,#s20mail-app.s20mail-theme-dark .s20mail-icon-button{border-color:#566873!important}
#s20mail-app .s20mail-reader-body,#s20mail-app .s20mail-body-plain{color:#263b4c!important}
#s20mail-app .s20mail-body-html{color:#263b4c!important;font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important}
#s20mail-app .s20mail-body-html p,#s20mail-app .s20mail-body-html li,#s20mail-app .s20mail-body-html div,#s20mail-app .s20mail-body-html span,#s20mail-app .s20mail-body-html td,#s20mail-app .s20mail-body-html th{max-width:100%;overflow-wrap:anywhere}
#s20mail-app .s20mail-body-html a{color:#17658f!important}
#s20mail-app.s20mail-theme-dark .s20mail-reader-body,#s20mail-app.s20mail-theme-dark .s20mail-body-plain,#s20mail-app.s20mail-theme-dark .s20mail-body-html{color:#e8eef2!important}
#s20mail-app.s20mail-theme-dark .s20mail-body-html p,#s20mail-app.s20mail-theme-dark .s20mail-body-html li,#s20mail-app.s20mail-theme-dark .s20mail-body-html div,#s20mail-app.s20mail-theme-dark .s20mail-body-html span,#s20mail-app.s20mail-theme-dark .s20mail-body-html td,#s20mail-app.s20mail-theme-dark .s20mail-body-html th{color:#e8eef2!important}
#s20mail-app.s20mail-theme-dark .s20mail-body-html a{color:#85cae7!important}
#s20mail-app.s20mail-theme-dark .s20mail-body-html td,#s20mail-app.s20mail-theme-dark .s20mail-body-html th{border-color:#556771!important}
@media(max-width:700px){
 #s20mail-app{padding-bottom:calc(58px + env(safe-area-inset-bottom))!important}
 #s20mail-app .s20wc-shared-navigation .s20wc-desktop-nav{display:none!important}
 #s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:2px!important;height:58px!important;min-height:58px!important;padding:4px max(5px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important}
 #s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav button,#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav a{position:relative!important;display:flex!important;min-width:0!important;min-height:47px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:2px!important;padding:3px 1px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#40576a!important;text-decoration:none!important;font:inherit!important;font-size:9px!important;font-weight:800!important;white-space:nowrap!important}
 #s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important}
 #s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav .is-active{background:#f2e8ce!important;border-color:#d9c17e!important;color:#60491d!important}
 #s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav{background:#202a30!important;border-top-color:#43515a!important}
 #s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav button,#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav a{color:#dbe5e9!important}
 #s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav .is-active{background:#3a403c!important;border-color:#8e815c!important;color:#fff0c7!important}
 #s20mail-app .s20wc-nav-badge{top:0!important;right:calc(50% - 22px)!important}
 #s20mail-app .s20mail-layout{padding-bottom:4px!important}
}


/* Beta49: unified Email / Messenger header identity, navigation borders and readable message text. */
#s20mail-app .s20mail-brand-mark{overflow:hidden!important;}
#s20mail-app .s20mail-brand-mark img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;}
#s20mail-app .s20mail-brand-mark svg{display:block!important;width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
#s20mail-app .s20mail-brand strong{font-family:var(--s20-font-family,"IRANYekanX",Tahoma,Arial,sans-serif)!important;font-weight:900!important;}
#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav button,
#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav a{border:1px solid #d7e0e7!important;background:#fff!important;color:#314a5c!important;box-shadow:0 1px 2px #102a400b!important;}
#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav .is-active{background:#f1e7cb!important;border-color:#d8bd75!important;color:#604b20!important;}
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav button,
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav a{background:#273239!important;border-color:#465760!important;color:#e6edf0!important;}
#s20mail-app.s20mail-theme-dark .s20wc-shared-navigation .s20wc-mobile-nav .is-active{background:#3a403c!important;border-color:#8e815c!important;color:#fff0c7!important;}
#s20mail-app .s20mail-reader-body,#s20mail-app .s20mail-body-html{color:#263b4c!important;}
#s20mail-app .s20mail-body-html :is(p,span,div,td,th,li,blockquote,h1,h2,h3,h4){color:#263b4c!important;}
#s20mail-app .s20mail-body-html a{color:#1c5e8a!important;text-decoration:underline!important;text-underline-offset:2px;}
#s20mail-app.s20mail-theme-dark .s20mail-reader-body,#s20mail-app.s20mail-theme-dark .s20mail-body-html{color:#edf3f6!important;}
#s20mail-app.s20mail-theme-dark .s20mail-body-html :is(p,span,div,td,th,li,blockquote,h1,h2,h3,h4){color:#edf3f6!important;}
#s20mail-app.s20mail-theme-dark .s20mail-body-html a{color:#f0cf79!important;}
#s20mail-app.s20mail-theme-dark .s20mail-body-html td,#s20mail-app.s20mail-theme-dark .s20mail-body-html th{border-color:#53636d!important;}
@media(max-width:700px){#s20mail-app .s20mail-brand-mark{width:34px!important;height:34px!important;}#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav button,#s20mail-app .s20wc-shared-navigation .s20wc-mobile-nav a{border-radius:10px!important;}}


/* Beta50: standalone email viewport reset, readable white message canvas and sharper Messenger-grade controls. */
html.s20mail-app-page,body.s20mail-app-page{margin:0!important;padding:0!important;inset:0!important;top:0!important;transform:none!important;overflow:hidden!important}
body.s20mail-app-page #s20mail-page-content{position:relative!important;top:0!important;margin:0!important;padding:0!important;inset:0!important;gap:0!important}
body.s20mail-app-page #s20mail-page-content>p{margin:0!important;padding:0!important;border:0!important;line-height:0!important}
body.s20mail-app-page #s20mail-page-content>p>.s20mail-app,body.s20mail-app-page #s20mail-page-content>.s20mail-app{margin:0!important;top:0!important;transform:none!important}
#s20mail-app .s20mail-reader{background:linear-gradient(145deg,#edf2f6,#f7f9fb)!important;border-color:#dce5ec!important}
#s20mail-app .s20mail-reader-head{background:#f8fafc!important;border-bottom-color:#dfe7ed!important}
#s20mail-app .s20mail-reader-body{background:#fff!important;color:#24394b!important;margin:12px!important;padding:22px clamp(16px,2vw,28px)!important;border:1px solid #e1e8ee!important;border-radius:14px!important;box-shadow:0 5px 18px rgba(22,48,68,.07)!important;line-height:2!important}
#s20mail-app .s20mail-body-plain,#s20mail-app .s20mail-body-html{background:#fff!important;color:#24394b!important}
#s20mail-app .s20mail-body-html a{color:#126b9c!important;text-decoration-thickness:1.5px!important}
#s20mail-app .s20mail-button svg,#s20mail-app .s20mail-icon-button svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.35!important;stroke-linecap:round!important;stroke-linejoin:round!important;flex:none!important}
#s20mail-app .s20mail-button{gap:8px!important;box-shadow:0 2px 0 rgba(16,43,70,.08),0 5px 12px rgba(16,43,70,.07)!important}
#s20mail-app .s20mail-button-primary{background:linear-gradient(135deg,#183d5b,#2c6485)!important;color:#fff!important;border-color:#14354e!important}
#s20mail-app .s20mail-button-light,#s20mail-app .s20mail-icon-button{background:linear-gradient(145deg,#fff,#f0f5f8)!important;color:#244b66!important;border-color:#cbd9e2!important}
#s20mail-app .s20mail-icon-button{width:38px!important;height:38px!important;border-radius:11px!important;font-size:22px!important;font-weight:900!important}
#s20mail-app .s20mail-sidebar,#s20mail-app .s20mail-list-panel{background:linear-gradient(160deg,#fff,#f7fafc)!important;border-color:#dce5ec!important}
#s20mail-app .s20mail-sidebar-title{background:linear-gradient(90deg,#f4f8fb,#fff)!important;color:#25465d!important}
#s20mail-app .s20mail-folder-icon{width:30px!important;height:30px!important;border:1px solid #d9e5ec!important;background:linear-gradient(145deg,#edf5fa,#dfeaf1)!important;color:#245c7d!important;font-weight:900!important}
#s20mail-app .s20mail-folder:nth-child(3n+1) .s20mail-folder-icon{background:linear-gradient(145deg,#e8f5ef,#d5eee2)!important;color:#247451!important;border-color:#c6e4d4!important}
#s20mail-app .s20mail-folder:nth-child(3n+2) .s20mail-folder-icon{background:linear-gradient(145deg,#fff4dc,#f8e7bc)!important;color:#8a641c!important;border-color:#eddbac!important}
#s20mail-app .s20mail-folder:nth-child(3n) .s20mail-folder-icon{background:linear-gradient(145deg,#f2edff,#e5ddfb)!important;color:#654aa3!important;border-color:#d9cef4!important}
#s20mail-app .s20mail-message-row{background:#fff!important;border-bottom-color:#e8eef2!important;transition:background .15s ease,box-shadow .15s ease!important}
#s20mail-app .s20mail-message-row:nth-child(4n+1) .s20mail-message-dot{background:#4b9a78!important;box-shadow:0 0 0 3px #e7f5ed!important}
#s20mail-app .s20mail-message-row:nth-child(4n+2) .s20mail-message-dot{background:#4b86b4!important;box-shadow:0 0 0 3px #eaf2f9!important}
#s20mail-app .s20mail-message-row:nth-child(4n+3) .s20mail-message-dot{background:#b58a37!important;box-shadow:0 0 0 3px #fbf3df!important}
#s20mail-app .s20mail-message-row:nth-child(4n) .s20mail-message-dot{background:#8a70bd!important;box-shadow:0 0 0 3px #f1edfa!important}
#s20mail-app .s20mail-message-row:hover{background:#f2f7fa!important;box-shadow:inset -3px 0 #7da8c0!important}
#s20mail-app .s20mail-message-row.is-active{background:#eaf3f8!important;box-shadow:inset -3px 0 #34789d!important}
#s20mail-app .s20mail-message-from{color:#24445a!important;font-weight:800!important}
#s20mail-app .s20mail-message-subject{color:#253b4b!important}
#s20mail-app .s20mail-message-preview{color:#718493!important}
#s20mail-app .s20mail-search-wrap{background:linear-gradient(145deg,#fff,#f1f6f9)!important;border-color:#d5e1e8!important}
#s20mail-app .s20mail-toast{box-shadow:0 12px 32px rgba(18,48,70,.2)!important}
@media(max-width:700px){#s20mail-app .s20mail-reader-body{margin:7px!important;padding:14px!important;border-radius:11px!important;font-size:13px!important}#s20mail-app .s20mail-button svg{width:18px!important;height:18px!important}#s20mail-app .s20mail-icon-button{width:36px!important;height:36px!important}}
@media(prefers-reduced-motion:reduce){#s20mail-app .s20mail-message-row,#s20mail-app .s20mail-button{transition:none!important}}


/* Beta51 integrated fix: remove logged-in admin-bar offset and stabilize the full-screen email shell. */
html { margin-top:0!important; }
html.s20mail-app-page, body.s20mail-app-page, body.s20mail-app-page.admin-bar {
  margin:0!important; padding:0!important; top:0!important; transform:none!important; overflow:hidden!important;
}
body.s20mail-app-page { position:fixed!important; inset:0!important; width:100vw!important; height:100dvh!important; min-height:0!important; max-height:100dvh!important; }
body.s20mail-app-page #s20mail-page-content {
  position:absolute!important; inset:0!important; display:flex!important; flex-direction:column!important;
  width:100vw!important; height:100dvh!important; min-height:0!important; max-height:100dvh!important;
  margin:0!important; padding:0!important; overflow:hidden!important; box-sizing:border-box!important;
}
#s20mail-app.s20mail-app { position:relative!important; inset:auto!important; flex:1 1 auto!important; width:100%!important; height:100%!important; min-height:0!important; max-height:100%!important; margin:0!important; transform:none!important; overflow:hidden!important; }
#s20mail-app .s20mail-reader { background:linear-gradient(145deg,#edf2f6,#f7f9fb)!important; }
#s20mail-app .s20mail-reader-body { background:#fff!important; color:#24394b!important; border:1px solid #d9e4ec!important; box-shadow:0 6px 22px rgba(22,48,68,.09)!important; }
#s20mail-app .s20mail-body-plain, #s20mail-app .s20mail-body-html { background:#fff!important; color:#263b4c!important; }
#s20mail-app .s20mail-body-html :is(p,span,div,td,th,li,blockquote,h1,h2,h3,h4) { color:#263b4c!important; }
#s20mail-app.s20mail-theme-dark .s20mail-reader-body,
#s20mail-app.s20mail-theme-dark .s20mail-body-plain,
#s20mail-app.s20mail-theme-dark .s20mail-body-html { background:#fff!important; color:#263b4c!important; }
#s20mail-app.s20mail-theme-dark .s20mail-body-html :is(p,span,div,td,th,li,blockquote,h1,h2,h3,h4) { color:#263b4c!important; }
#s20mail-app .s20mail-button svg, #s20mail-app .s20mail-icon-button svg,
#s20mail-app .s20mail-reader-actions svg { width:22px!important; height:22px!important; stroke-width:2.65!important; stroke-linecap:round!important; stroke-linejoin:round!important; }
#s20mail-app .s20mail-icon-button { width:40px!important; height:40px!important; border-radius:12px!important; font-size:23px!important; font-weight:900!important; box-shadow:0 3px 10px rgba(16,43,70,.10)!important; }
#s20mail-app .s20mail-button { min-height:39px!important; font-weight:800!important; }
@media(max-width:700px) {
  #s20mail-app .s20mail-reader-body { margin:7px!important; padding:13px!important; }
  #s20mail-app .s20mail-button svg, #s20mail-app .s20mail-icon-button svg { width:20px!important; height:20px!important; }
  #s20mail-app .s20mail-icon-button { width:38px!important; height:38px!important; }
}

/* Beta131: explicit high-contrast mail reader and shared theme synchronization. */
.s20mail-app.s20mail-theme-light{color-scheme:light;--s20mail-paper:#fff;--s20mail-ink:#243746;--s20mail-bg:#f2f5f8}
.s20mail-app.s20mail-theme-light .s20mail-reader-body{background:#fff!important;color:#243746!important}
.s20mail-app.s20mail-theme-light .s20mail-reader-body :is(p,div,span,li,td,th){color:inherit}
.s20mail-app.s20mail-theme-dark{color-scheme:dark;--s20mail-paper:#202a32;--s20mail-ink:#edf3f7;--s20mail-bg:#141a1f;--s20mail-line:#3a4650;--s20mail-muted:#b0bec8;--s20mail-shadow:0 8px 28px rgba(0,0,0,.22);background:var(--s20mail-bg)!important;color:var(--s20mail-ink)!important}
.s20mail-app.s20mail-theme-dark .s20mail-layout,.s20mail-app.s20mail-theme-dark .s20mail-sidebar,.s20mail-app.s20mail-theme-dark .s20mail-list-panel,.s20mail-app.s20mail-theme-dark .s20mail-reader{background:#1a232a!important;color:var(--s20mail-ink)!important;border-color:var(--s20mail-line)!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-row,.s20mail-app.s20mail-theme-dark .s20mail-reader-body,.s20mail-app.s20mail-theme-dark .s20mail-reader-empty{background:#fff!important;color:#243746!important}
.s20mail-app.s20mail-theme-dark .s20mail-message-row :is(.s20mail-message-from,.s20mail-message-subject,.s20mail-message-preview,.s20mail-message-date),.s20mail-app.s20mail-theme-dark .s20mail-reader-body :is(p,div,span,li,td,th){color:#243746!important}
.s20mail-app.s20mail-theme-dark .s20mail-folder{color:#d8e1e7!important}.s20mail-app.s20mail-theme-dark .s20mail-folder.is-active{background:#3b3526!important;color:#f4dfa1!important;border-color:#6c5a31!important}
.s20mail-app.s20mail-theme-dark .s20mail-icon-button{background:#2a3740!important;color:#f2d98f!important;border-color:#53616a!important;font-weight:800;font-size:24px}
.s20mail-app.s20mail-theme-dark .s20mail-compose-modal,.s20mail-app.s20mail-theme-dark .s20mail-compose-head{background:#202a32!important;color:#edf3f7!important;border-color:#46535d!important}
.s20mail-app.s20mail-theme-dark .s20mail-compose-modal :is(input,textarea){background:#151c21!important;color:#edf3f7!important;border-color:#4b5962!important}
.s20mail-icon-button{width:38px!important;height:38px!important;font-size:25px!important;font-weight:900!important;line-height:1!important;filter:contrast(1.12)}
.s20mail-top-actions .s20mail-button{font-weight:800}

/* Beta57: coherent dark email workspace; message canvas follows the shared night theme. */
.s20mail-app.s20mail-theme-dark .s20mail-sidebar,
.s20mail-app.s20mail-theme-dark .s20mail-list-panel,
.s20mail-app.s20mail-theme-dark .s20mail-reader,
.s20mail-app.s20mail-theme-dark .s20mail-reader-body,
.s20mail-app.s20mail-theme-dark .s20mail-message-row,
.s20mail-app.s20mail-theme-dark .s20mail-reader-empty { background:#202a32!important;color:#edf3f7!important;border-color:#3d4b55!important; }
.s20mail-app.s20mail-theme-dark .s20mail-reader-title,
.s20mail-app.s20mail-theme-dark .s20mail-reader-empty h2,
.s20mail-app.s20mail-theme-dark .s20mail-message-from,
.s20mail-app.s20mail-theme-dark .s20mail-message-subject { color:#f2d991!important; }
.s20mail-app.s20mail-theme-dark .s20mail-message-preview,
.s20mail-app.s20mail-theme-dark .s20mail-message-date,
.s20mail-app.s20mail-theme-dark .s20mail-reader-meta { color:#c1ccd2!important; }
.s20mail-app.s20mail-theme-dark .s20mail-body-plain,
.s20mail-app.s20mail-theme-dark .s20mail-body-html,
.s20mail-app.s20mail-theme-dark .s20mail-body-html :is(p,span,div,td,th,li,blockquote,h1,h2,h3,h4) { background:transparent!important;color:#edf3f7!important; }
.s20mail-app.s20mail-theme-dark .s20mail-body-html a { color:#8fd4f2!important; }
.s20mail-app.s20mail-theme-dark .s20mail-body-html td,.s20mail-app.s20mail-theme-dark .s20mail-body-html th { border-color:#4b5b65!important; }
html.s20mail-embedded-in-hub body.s20mail-app-page .s20wc-shared-navigation { display:none!important; }
