/* Evergreen Workspace · role tokens adapted from test_patched/evergreen_pos.
 * Roundcube Elastic owns commands, data, responsive panel transitions and a11y.
 * This layer owns the workspace composition, not message HTML authored by senders. */
:root{color-scheme:light;--ev-canvas:#f5f6f8;--ev-surface:#fff;--ev-raised:#f0f2f4;--ev-border:#e3e5e8;--ev-control:#858b91;--ev-text:#1b1c1e;--ev-muted:#5f6368;--ev-faint:#696d73;--ev-brand:#0e7a4a;--ev-brand-strong:#0a5c38;--ev-onbrand:#fff;--ev-soft:#e3f2ea;--ev-danger:#b42318;--ev-shadow:0 8px 32px #19251d0a;--ev-radius:16px}
html.dark-mode{color-scheme:dark;--ev-canvas:#101214;--ev-surface:#171a1d;--ev-raised:#1f2327;--ev-border:#33383e;--ev-control:#6a7278;--ev-text:#f1f3f5;--ev-muted:#bcc2c9;--ev-faint:#939aa2;--ev-brand:#3ecf8e;--ev-brand-strong:#2fae77;--ev-onbrand:#08120d;--ev-soft:#14301f;--ev-danger:#ff9b94;--ev-shadow:0 8px 32px #0002}
html body.ev-workspace{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ev-text);background:var(--ev-canvas);font-size:14px;letter-spacing:0;}
html body.ev-workspace #layout{background:var(--ev-canvas);gap:0}
html body.ev-workspace #layout>div{border-color:var(--ev-border)}
html body.ev-workspace .header,html body.ev-workspace .footer,html body.ev-workspace .searchbar,html body.ev-workspace .listbox,html body.ev-workspace #layout-content,html body.ev-workspace #layout-list{background:var(--ev-surface);color:var(--ev-text);border-color:var(--ev-border)}
html body.ev-workspace .header{box-shadow:none;backdrop-filter:none}
html body.ev-workspace a{color:var(--ev-brand)}
html body.ev-workspace .menu a,html body.ev-workspace .listing li>a,html body.ev-workspace .toolbar a{color:var(--ev-muted)}
html body.ev-workspace a:focus-visible,html body.ev-workspace button:focus-visible,html body.ev-workspace input:focus-visible,html body.ev-workspace select:focus-visible,html body.ev-workspace textarea:focus-visible{outline:3px solid var(--ev-brand)!important;outline-offset:2px;box-shadow:none}
html body.ev-workspace .form-control,html body.ev-workspace .custom-select,html body.ev-workspace input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),html body.ev-workspace textarea,html body.ev-workspace select{background:var(--ev-surface)!important;color:var(--ev-text)!important;border-color:var(--ev-control);border-radius:10px;caret-color:var(--ev-brand)}
html body.ev-workspace input::placeholder,html body.ev-workspace textarea::placeholder{color:var(--ev-faint)!important;opacity:1}
html body.ev-workspace input:-webkit-autofill{-webkit-text-fill-color:var(--ev-text)!important;-webkit-box-shadow:0 0 0 1000px var(--ev-surface) inset!important;caret-color:var(--ev-text)}
html body.ev-workspace .input-group-text{color:var(--ev-muted);background:var(--ev-raised);border-color:var(--ev-control)}
html body.ev-workspace .btn-primary,html body.ev-workspace .mainaction,html body.ev-workspace .ev-action-primary{background:var(--ev-brand)!important;border-color:var(--ev-brand)!important;color:var(--ev-onbrand)!important;border-radius:10px;box-shadow:none;font-weight:650}
html body.ev-workspace .btn-secondary{background:var(--ev-raised);color:var(--ev-text);border-color:var(--ev-control);border-radius:10px}
html body.ev-workspace .btn,.ev-reader-actions a{min-height:44px}
html body.ev-workspace .listing li.selected>a,html body.ev-workspace .listing tr.selected td,html body.ev-workspace .listing tr.selected.focused td{background:var(--ev-soft);color:var(--ev-text)}
html body.ev-workspace .listing li>a:hover,html body.ev-workspace .menu a:hover{background:var(--ev-raised);color:var(--ev-text)}
.ev-eyebrow{display:block;color:var(--ev-faint);font-size:10px;letter-spacing:.15em;font-weight:700;line-height:1.5}
.ev-section-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 14px;flex-shrink:0;gap:16px;background:var(--ev-surface)}
.ev-section-heading h2{font-size:27px;line-height:1.2;font-weight:700;letter-spacing:-.035em;margin:7px 0 0;color:var(--ev-text);overflow-wrap:anywhere}
.ev-live-dot{width:9px;height:9px;border-radius:50%;background:var(--ev-brand);box-shadow:0 0 0 5px var(--ev-soft)}
.ev-filter-tabs{display:flex;gap:4px;padding:6px 20px 12px;border-bottom:1px solid var(--ev-border);flex-shrink:0}
body.ev-workspace .ev-filter-tabs button{border:0;background:transparent;color:var(--ev-muted);padding:9px 14px;font-size:13px;font-weight:600;border-radius:8px;min-height:44px;cursor:pointer}
body.ev-workspace .ev-filter-tabs button[aria-pressed=true]{background:var(--ev-soft);color:var(--ev-brand-strong)}
html.dark-mode body.ev-workspace .ev-filter-tabs button[aria-pressed=true]{color:var(--ev-brand)}
/* One workspace navigation, rather than an icon strip beside another full-height rail. */
html body.ev-workspace #layout-menu{background:var(--ev-canvas);color:var(--ev-text);border:0;box-shadow:none}
html body.ev-workspace #layout-menu .ev-brand{display:flex;align-items:center;gap:10px;padding:24px 20px;height:82px!important;min-height:82px;background:transparent!important;border:0;justify-content:flex-start;padding:24px 20px!important;flex-direction:row!important;text-align:left!important}
html body.ev-workspace #layout-menu #logo{width:36px;height:36px;object-fit:contain;margin:0;max-height:none}
.ev-brand-copy{line-height:1.3!important;text-align:left;align-self:center}
.ev-brand-copy strong{line-height:1.3!important;display:block;font-size:18px;letter-spacing:-.04em;color:var(--ev-text)}
.ev-brand-copy span{display:block;line-height:1.5!important;margin-top:3px;font-size:9px;letter-spacing:.13em;font-weight:700;color:var(--ev-faint)}
html body.ev-workspace #taskmenu{padding:0 12px;width:100%;flex:1}
html body.ev-workspace #taskmenu a{border:0;border-radius:10px;box-shadow:none;color:var(--ev-muted);min-height:44px;padding:12px;margin:3px 0;width:auto;font-size:13px;line-height:20px;text-align:left;overflow:visible}
html body.ev-workspace #taskmenu a::before{float:left;display:inline-block;font-size:17px;margin:0 10px 0 0;width:20px;height:20px;line-height:20px}
html body.ev-workspace #taskmenu a .inner{display:inline;font-weight:550;line-height:20px}
html body.ev-workspace #taskmenu a.selected{background:var(--ev-soft);color:var(--ev-brand);font-weight:700}
html body.ev-workspace #taskmenu .action-buttons{display:block;width:100%}
html body.ev-workspace #taskmenu a.compose{display:block;width:100%!important;max-width:none!important;background:var(--ev-brand);color:var(--ev-onbrand);margin:0 0 14px;padding:14px 18px;min-height:48px;box-shadow:0 4px 12px #0e7a4a15}
html body.ev-workspace #taskmenu a.logout{color:var(--ev-danger)}
html body.ev-workspace #taskmenu .special-buttons{padding:12px;border-top:1px solid var(--ev-border);background:var(--ev-canvas)}
.ev-account{display:flex;align-items:center;gap:9px;padding:4px 0 9px;min-width:0}
.ev-account-avatar,.ev-sender-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:12px;background:var(--ev-soft);color:var(--ev-brand);font-weight:700}
.ev-account-avatar{width:32px;height:32px;font-size:12px}
.ev-account-name{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ev-muted)}
html body.ev-workspace #layout-sidebar{background:var(--ev-canvas)}
html body.ev-workspace #layout-sidebar>.header{background:transparent;border:0;height:48px;min-height:48px;padding:0 16px}
html body.ev-workspace #layout-sidebar>.header .header-title{display:block!important;font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--ev-faint);font-weight:650}
html body.ev-workspace #folderlist-content{padding:4px 12px}
html body.ev-workspace #mailboxlist li{border:0}
html body.ev-workspace #mailboxlist li a{min-height:46px;line-height:24px;padding:11px 12px;border-radius:10px;margin:3px 0;background:transparent;color:var(--ev-muted);font-size:13px;border:0}
html body.ev-workspace #mailboxlist li.selected>a{background:var(--ev-soft);color:var(--ev-brand);font-weight:700}
html body.ev-workspace #mailboxlist li a::before{font-size:17px;margin-right:10px;opacity:.85}
html body.ev-workspace #mailboxlist .unreadcount{background:var(--ev-soft);color:var(--ev-brand);border-radius:6px;padding:1px 6px;min-width:22px;text-align:center;font-size:11px;font-weight:700}
html body.ev-workspace #layout-sidebar>.footer{background:transparent;padding:10px 20px;border:0;color:var(--ev-faint)}
/* List toolbar, genuine quick filters and recipient cards. */
html body.ev-workspace #messagelist-header{height:46px;min-height:46px;padding:0 14px;border:0}
html body.ev-workspace #messagelist-header .toolbar{justify-content:flex-start;width:auto}
html body.ev-workspace #messagelist-header .toolbar a,html body.ev-workspace #messagelist-header>a.refresh{min-width:38px;min-height:38px;padding:9px;border-radius:8px;line-height:20px}
html body.ev-workspace #messagelist-header .toolbar a::before{font-size:16px;line-height:20px;height:20px;margin:0}
html body.ev-workspace #messagelist-header .toolbar a .inner,html body.ev-workspace #messagelist-header>a.refresh .inner{display:none!important}
html body.ev-workspace #messagelist-header>a.refresh:before{margin:0;line-height:20px;font-size:17px}
html body.ev-workspace #messagelist-header .toolbar{margin-right:auto}
html body.ev-workspace #layout-menu #logo{position:static;flex-shrink:0;max-width:36px!important}
html body.ev-workspace #taskmenu a{max-width:none!important}
html body.ev-workspace #mailboxlist li a{border-radius:10px!important}
html body.ev-workspace #layout-list>.searchbar{margin:0 20px 10px;border:1px solid var(--ev-control);border-radius:10px;min-height:46px;height:46px;background:var(--ev-surface)}
html body.ev-workspace #layout-list>.searchbar input{border:0;background:transparent!important;border-radius:10px;color:var(--ev-text);font-size:14px}
html body.ev-workspace #messagelist-content{padding:6px 10px;background:var(--ev-surface)}
html body.ev-workspace #messagelist{border-collapse:separate;border-spacing:0 5px;background:transparent}
html body.ev-workspace #messagelist tbody tr{background:transparent;position:relative;box-shadow:none}
html body.ev-workspace #messagelist td{background:transparent;color:var(--ev-muted);border:0;padding-top:16px;padding-bottom:16px;font-size:13px;box-shadow:none}
html body.ev-workspace #messagelist tr td:first-child{border-radius:12px 0 0 12px}
html body.ev-workspace #messagelist tr td:last-child{border-radius:0 12px 12px 0}
html body.ev-workspace #messagelist tr:hover td{background:var(--ev-raised)}
html body.ev-workspace #messagelist tr.selected td,html body.ev-workspace #messagelist tr.selected.focused td{background:var(--ev-soft);color:var(--ev-text);border:0}
/* Read state is driven by Roundcube's live .unread class, including mark/unmark. */
:root{--ev-mail-unread:#eaf6ef;--ev-mail-unread-hover:#dcefe4;--ev-mail-selected:#cce8da}
html.dark-mode{--ev-mail-unread:#193329;--ev-mail-unread-hover:#214336;--ev-mail-selected:#295440}
html body.ev-workspace #messagelist tr.unread td{background:var(--ev-mail-unread);color:var(--ev-text)}
html body.ev-workspace #messagelist tr.unread:hover td{background:var(--ev-mail-unread-hover)}
html body.ev-workspace #messagelist tr.unread td.subject{box-shadow:inset 4px 0 0 var(--ev-brand)}
html body.ev-workspace #messagelist tr.selected td,html body.ev-workspace #messagelist tr.selected.focused td{background:var(--ev-mail-selected);border-top:1px solid var(--ev-brand);border-bottom:1px solid var(--ev-brand)}
html body.ev-workspace #messagelist tr.selected td:first-child{border-left:1px solid var(--ev-brand)}
html body.ev-workspace #messagelist tr.selected td:last-child{border-right:1px solid var(--ev-brand)}
html body.ev-workspace #messagelist tr:not(.unread) td.subject .fromto{font-weight:400;color:var(--ev-muted)}
html body.ev-workspace #messagelist tr.unread td.subject .fromto{font-weight:750;color:var(--ev-text)}
html body.ev-workspace #messagelist tr:not(.unread) td.subject .ev-sender-avatar{background:var(--ev-raised);color:var(--ev-muted)}
html body.ev-workspace #messagelist tr.unread td.subject .ev-sender-avatar{background:var(--ev-brand);color:var(--ev-onbrand)}
html body.ev-workspace #messagelist tr:focus-visible td{outline:2px solid var(--ev-brand);outline-offset:-2px}
html body.ev-workspace #messagelist td.subject{padding-left:14px;padding-right:14px;position:relative}
html body.ev-workspace #messagelist td.subject .fromto{color:var(--ev-text);font-weight:650;font-size:13px;line-height:22px}
html body.ev-workspace #messagelist td.subject .date,html body.ev-workspace #messagelist .size{color:var(--ev-faint);font-size:11px;font-weight:400}
html body.ev-workspace #messagelist td.subject .subject{color:var(--ev-muted);font-size:13px;line-height:22px;font-weight:400}
html body.ev-workspace #messagelist td.subject .subject a{color:inherit!important}
html body.ev-workspace #messagelist tr.unread td.subject .subject{color:var(--ev-text);font-weight:650}
html body.ev-workspace #messagelist td.subject .ev-sender-avatar{position:absolute;left:14px;top:18px;width:34px;height:34px;font-size:11px;pointer-events:none}
html body.ev-workspace #messagelist td.subject.ev-has-avatar{padding-left:60px}
html body.ev-workspace #messagelist .flagged,html body.ev-workspace #messagelist .unread .msgicon{color:var(--ev-brand)}
html body.ev-workspace #layout-list>.footer{font-size:11px;min-height:48px;background:var(--ev-surface);color:var(--ev-faint);border-top:1px solid var(--ev-border)}
html body.ev-workspace .pagenav a{min-width:36px;min-height:36px}
/* Reader is a document surface with hierarchy, never the oversized Roundcube watermark. */
html body.ev-workspace #layout-content>.header{height:66px;min-height:66px;padding:0 18px;border-bottom:1px solid var(--ev-border)}
html body.ev-workspace #layout-content>.header .toolbar a{min-height:42px;padding:10px 8px;border-radius:8px;line-height:20px}
html body.ev-workspace #layout-content>.header .toolbar a:before{font-size:17px;height:20px;line-height:20px;margin:0 auto 4px}
html body.ev-workspace .toolbar a.disabled{opacity:.45}
html body.ev-workspace #layout-content>.iframe-wrapper{background:var(--ev-surface)}
html.iframe body{background:var(--ev-surface)}
html body.ev-workspace .frame-content{padding:32px 36px}
html body.ev-workspace #message-header{padding:0 0 24px;border-bottom:1px solid var(--ev-border);margin:0 0 28px}
html body.ev-workspace #message-header>.subject{font-size:26px;font-weight:700;line-height:1.35;letter-spacing:-.035em;margin:10px 0 24px;color:var(--ev-text)}
html body.ev-workspace #message-header>.header{background:transparent;border:0;height:auto;min-height:52px;align-items:flex-start}
html body.ev-workspace #message-header .contactphoto{border-radius:14px;width:44px;height:44px;background:var(--ev-soft)}
html body.ev-workspace .header-summary,html body.ev-workspace .headers-table{color:var(--ev-text);font-size:13px}
html body.ev-workspace #message-header .header-links a{color:var(--ev-brand);font-size:12px}
html body.ev-workspace #message-content{display:flex;flex-direction:column;gap:16px;padding:0}
html body.ev-workspace #message-content>.leftcol,html body.ev-workspace #message-content>.rightcol{width:100%;float:none;margin:0;padding:0}
html body.ev-workspace #message-content>.leftcol:has(.attachmentslist:empty){display:none}
html body.ev-workspace #messagebody{font-size:15px;line-height:1.75;color:var(--ev-text)}
/* Sender-authored HTML retains its own colors on a neutral paper surface. */
html body.ev-workspace .message-htmlpart{background:#fff;color:#1b1c1e;border-radius:12px;padding:16px;overflow:auto;color-scheme:light}
html body.ev-workspace .message-part{color:var(--ev-text)}
html body.ev-workspace .attachmentslist{display:flex;flex-wrap:wrap;gap:8px}
html body.ev-workspace .attachmentslist li{border:1px solid var(--ev-border);background:var(--ev-raised);border-radius:10px;padding:10px 12px;max-width:100%;color:var(--ev-text)}
html body.ev-workspace .attachmentslist li a{color:var(--ev-text)}
.ev-reader-actions{display:flex;flex-wrap:wrap;gap:10px;padding:28px 0 8px;border-top:1px solid var(--ev-border);margin-top:32px}
.ev-reader-actions a{display:inline-flex;align-items:center;padding:10px 20px;border:1px solid var(--ev-control);border-radius:10px;color:var(--ev-text);font-size:13px;font-weight:600}
/* Compose: writing surface plus a separate attachment inspector. */
html body.ev-workspace .ev-composer .ev-section-heading{padding-bottom:20px;border-bottom:1px solid var(--ev-border)}
html body.ev-workspace #compose-content{background:var(--ev-surface);padding:20px 28px;max-width:none;margin:0}
html body.ev-workspace #compose-headers{border:1px solid var(--ev-border);border-radius:12px;padding:14px 18px;margin-bottom:16px;background:var(--ev-surface)}
html body.ev-workspace #compose-headers .form-group{margin-bottom:10px}
html body.ev-workspace #compose-headers label{color:var(--ev-muted);font-size:12px;font-weight:600}
html body.ev-workspace #composebodycontainer{border:1px solid var(--ev-border);border-radius:12px;overflow:hidden;background:var(--ev-surface)}
html body.ev-workspace #composebody{padding:20px;font-size:16px;line-height:1.6;border:0;border-radius:0}
html body.ev-workspace #compose-content .formbuttons{background:var(--ev-surface);padding:14px 0;gap:10px;border-top:1px solid var(--ev-border)}
html body.ev-workspace #compose-content .send{min-width:130px;min-height:48px}
html body.ev-workspace #compose-attachments{margin:16px;padding:20px 14px;border:1px dashed var(--ev-control);border-radius:14px;background:var(--ev-surface)}
.ev-section-label{font-size:13px;font-weight:650;color:var(--ev-text);margin-bottom:18px}
html body.ev-workspace #compose-options{padding:20px;color:var(--ev-muted)}
html body.ev-workspace div.tox .tox-toolbar,html body.ev-workspace div.tox .tox-toolbar__primary,html body.ev-workspace div.tox .tox-toolbar__overflow,html body.ev-workspace div.tox .tox-editor-header,html body.ev-workspace div.tox .tox-statusbar,html body.ev-workspace div.tox .tox-tbtn{background:var(--ev-raised);color:var(--ev-text)}
html body.ev-workspace div.tox .tox-tbtn svg{fill:var(--ev-text)}
/* Login: visible labels and paired field colors, including autofill. */
html body.ev-workspace.task-login #layout{display:block;overflow:auto;padding:0}
html body.ev-workspace.task-login #layout-content.ev-login{display:grid!important;grid-template-columns:1fr 1fr;min-height:100vh;min-height:100dvh;height:auto;background:var(--ev-surface);text-align:left;width:100%;border:0;border-radius:0}
.ev-login-story{background:#10241b;color:white;padding:48px 10%;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}
.ev-login-story:after{content:"";position:absolute;width:440px;height:440px;border:1px solid #ffffff10;border-radius:50%;right:-220px;bottom:-140px;box-shadow:0 0 0 70px #ffffff03,0 0 0 140px #ffffff03;pointer-events:none}
.ev-login-brand{display:flex;gap:12px;align-items:center}
.ev-login-brand img{width:40px;height:40px}
.ev-login-brand strong{font-size:20px;letter-spacing:-.03em}
.ev-login-brand strong span{display:block;font-size:9px;letter-spacing:.16em;color:#b9cfc3;margin-top:3px}
.ev-login-message{position:relative;z-index:1;padding:60px 0}
.ev-login-message .ev-eyebrow{color:#9ed5c5}
.ev-login-message h1{font-size:clamp(34px,3.4vw,58px);letter-spacing:-.055em;font-weight:650;line-height:1.14;margin:20px 0 24px}
.ev-login-message p{color:#b9cfc3;font-size:15px;line-height:1.85}
.ev-login-note{font-size:12px;color:#b9cfc3}
.ev-login-note span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3ecf8e;margin-right:8px}
.ev-login-panel{display:flex;align-items:center;justify-content:center;padding:48px}
.ev-login-card{width:100%;max-width:360px}
.ev-login-card h2{font-size:34px;letter-spacing:-.045em;font-weight:700;margin:12px 0;color:var(--ev-text)}
.ev-login-card>p{font-size:14px;color:var(--ev-muted);margin-bottom:32px}
html body.ev-workspace.task-login #login-form{top:auto;position:static;width:100%;max-width:none;margin:0}
html body.ev-workspace.task-login #login-form table,html body.ev-workspace.task-login #login-form tbody,html body.ev-workspace.task-login #login-form tr,html body.ev-workspace.task-login #login-form td{display:block;width:100%;margin:0;padding:0}
html body.ev-workspace.task-login #login-form td.title{display:block!important;margin:0 0 8px;font-size:13px;color:var(--ev-text)}
html body.ev-workspace.task-login #login-form td.title label{margin:0;font-weight:600}
html body.ev-workspace.task-login #login-form td.input{margin-bottom:22px;display:block}
html body.ev-workspace.task-login #login-form .input-group-prepend{display:none}
html body.ev-workspace.task-login #login-form input{height:52px;width:100%;border-radius:10px!important;font-size:16px;background:var(--ev-surface)!important;color:var(--ev-text)!important;padding:12px 14px}
html body.ev-workspace.task-login #rcmloginsubmit{min-height:52px;width:100%;text-transform:none!important;font-size:15px}
html body.ev-workspace.task-login #login-footer{text-align:center;color:var(--ev-muted);font-size:12px;margin-top:24px}
.ev-login-card>.ev-login-help{text-align:center;font-size:12px;margin:18px 0;color:var(--ev-faint)}
@media(max-width:767px){html body.ev-workspace.task-login #layout-content.ev-login{display:flex!important;flex-direction:column}.ev-login-story{padding:24px;min-height:0;background:var(--ev-canvas);color:var(--ev-text)}.ev-login-brand strong span{color:var(--ev-muted)}.ev-login-message,.ev-login-note,.ev-login-story:after{display:none}.ev-login-panel{padding:40px 24px max(32px,env(safe-area-inset-bottom));flex:1;align-items:flex-start}.ev-login-card h2{font-size:30px}.ev-login-card{max-width:420px}html body.ev-workspace.task-login #login-form input,html body.ev-workspace.task-login #rcmloginsubmit{height:56px}}
/* Contacts, preferences and plugin dialogs share the same surfaces. */
html body.ev-workspace .ui-dialog,html body.ev-workspace .popover,html body.ev-workspace .popupmenu,html body.ev-workspace .ui-dialog .ui-dialog-content,html body.ev-workspace .ui-dialog .ui-dialog-titlebar,html body.ev-workspace .ui-dialog .ui-dialog-buttonpane{background:var(--ev-surface);color:var(--ev-text);border-color:var(--ev-border);border-radius:14px;box-shadow:var(--ev-shadow)}
html body.ev-workspace .popover-header,html body.ev-workspace .popover-body,html body.ev-workspace .formcontent,html body.ev-workspace .formcontainer,html body.ev-workspace fieldset,html body.ev-workspace legend{background:var(--ev-surface);color:var(--ev-text);border-color:var(--ev-border)}
html body.ev-workspace .listing td,html body.ev-workspace .listing th,html body.ev-workspace .propform label,html body.ev-workspace .formcontent .hint{color:var(--ev-muted);border-color:var(--ev-border)}
html body.ev-workspace .listing tr.unread td{color:var(--ev-text)}
html body.ev-workspace .listing li.selected,html body.ev-workspace .listing tr.selected{background:var(--ev-soft)}
html body.ev-workspace .scroller,html body.ev-workspace .frame-content{scrollbar-width:thin;scrollbar-color:var(--ev-control) transparent}
html body.ev-workspace #settings-menu,html body.ev-workspace #directorylist{padding:8px 12px}
html body.ev-workspace #settings-menu li,html body.ev-workspace #directorylist li{border:0}
html body.ev-workspace #settings-menu li a,html body.ev-workspace #directorylist li a{border:0;border-radius:10px!important;padding:12px;margin:4px 0;min-height:46px}
html body.ev-workspace #sections-table td{padding:16px;font-size:14px}
html body.ev-workspace #messagestack{bottom:calc(82px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);right:16px}
html body.ev-workspace #messagestack .confirmation{background:var(--ev-soft);color:var(--ev-text);border:1px solid var(--ev-brand);border-radius:12px;box-shadow:var(--ev-shadow)}
@media(min-width:768px){html body.ev-workspace #messagestack{bottom:24px;max-width:420px}}
/* Wide desktop: integrated navigation + mail cards + reader, with real gutters. */
@media(min-width:1201px){
 html:not(.iframe) body.ev-workspace:not(.task-login) #layout{display:grid;grid-template-columns:232px minmax(340px,390px) minmax(0,1fr);grid-template-rows:226px minmax(0,1fr) 114px;padding:16px 16px 16px 0;gap:0 16px;height:100vh;height:100dvh}
 html:not(.iframe) body.ev-workspace #layout-menu{grid-column:1;grid-row:1/4;min-width:0;max-width:none!important;width:100%!important;position:relative;display:flex!important;flex-direction:column}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons{position:absolute;bottom:0;left:12px;right:0;width:auto;display:flex;flex-wrap:wrap;gap:4px}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons>a{flex:1;text-align:center;padding:8px 4px;min-height:40px;font-size:11px}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons>a:before{display:none}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons .ev-account{width:100%}
 html:not(.iframe) body.ev-workspace #taskmenu>.mail,html:not(.iframe) body.ev-workspace #taskmenu>.contacts,html:not(.iframe) body.ev-workspace #taskmenu>.settings{display:inline-flex;flex-direction:column;align-items:center;padding:9px 6px;width:32%;min-height:57px;gap:4px;font-size:11px;text-align:center}
 html:not(.iframe) body.ev-workspace #taskmenu>.mail:before,html:not(.iframe) body.ev-workspace #taskmenu>.contacts:before,html:not(.iframe) body.ev-workspace #taskmenu>.settings:before{margin:0}
 html:not(.iframe) body.ev-workspace #layout-sidebar{grid-column:1;grid-row:2;position:relative;min-width:0;max-width:none!important;width:100%!important;display:flex!important;border:0;min-height:0;z-index:1}
 html:not(.iframe) body.ev-workspace #layout-list{grid-column:2;grid-row:1/4;min-width:0;max-width:none!important;width:100%!important;display:flex!important;border:1px solid var(--ev-border);border-radius:var(--ev-radius);overflow:hidden;box-shadow:var(--ev-shadow)}
 html:not(.iframe) body.ev-workspace #layout-content{grid-column:3;grid-row:1/4;min-width:0;max-width:none!important;width:100%!important;border:1px solid var(--ev-border);border-radius:var(--ev-radius);overflow:hidden;box-shadow:var(--ev-shadow)}
 html:not(.iframe) body.ev-workspace.action-compose #layout{grid-template-columns:232px minmax(0,1fr) 286px}
 html:not(.iframe) body.ev-workspace.action-compose #layout-content{grid-column:2}
 html:not(.iframe) body.ev-workspace.action-compose #layout-sidebar{grid-column:3;grid-row:1/4;border:1px solid var(--ev-border);border-radius:16px;background:var(--ev-surface)}
 html:not(.iframe) body.ev-workspace.task-settings #layout,html:not(.iframe) body.ev-workspace.task-addressbook #layout{grid-template-columns:232px 300px minmax(0,1fr)}
 html:not(.iframe) body.ev-workspace #layout-menu .popover-header .cancel{display:none}
 html:not(.iframe) body.ev-workspace #messagelist-header .header-title{display:none!important}
}
@media(min-width:768px) and (max-width:1200px){
 html body.ev-workspace #layout-menu{width:72px;min-width:72px}
 html body.ev-workspace #layout-menu .ev-brand{padding:18px;min-height:72px}
 .ev-brand-copy,.ev-account{display:none}
 html body.ev-workspace #taskmenu{padding:0 6px}
 html body.ev-workspace #taskmenu a{padding:10px 4px;text-align:center;font-size:10px;margin:5px 0}
 html body.ev-workspace #taskmenu a:before{float:none;display:block;margin:0 auto 6px}
 html body.ev-workspace #taskmenu a .inner{font-size:10px}
 html body.ev-workspace #taskmenu a.compose .inner{display:none!important}
 html body.ev-workspace #taskmenu .special-buttons{padding:6px}
 html body.ev-workspace #layout-sidebar{width:200px;min-width:180px}
 html body.ev-workspace #layout-list{min-width:300px}
 .ev-section-heading{padding:18px 20px 10px}
}
@media(max-width:767px){
 html body.ev-workspace{font-size:15px}
 html body.ev-workspace #layout{height:100vh;height:100dvh}
 html body.ev-workspace #layout-menu{min-width:260px;max-width:90vw}
 html body.ev-workspace #layout-menu .ev-brand{padding:20px}
 html body.ev-workspace #layout-menu .ev-brand .cancel{margin-left:auto}
 html body.ev-workspace #taskmenu .special-buttons{padding:12px}
 .ev-account{display:flex}
 .ev-section-heading{padding:18px 20px 8px}
 .ev-section-heading h2{font-size:26px}
 html body.ev-workspace #messagelist-header{order:-1;min-height:54px;height:54px;padding-top:env(safe-area-inset-top)}
 html body.ev-workspace #layout-list>.searchbar{margin:8px 16px;min-height:48px;height:48px}
 html body.ev-workspace input,html body.ev-workspace select,html body.ev-workspace textarea,html body.ev-workspace #layout-list>.searchbar input{font-size:16px!important}
 .ev-filter-tabs{padding:0 16px 10px}
 body.ev-workspace .ev-filter-tabs button{flex:1;min-height:44px}
 html body.ev-workspace #messagelist-content{padding:2px 8px 8px}
 html body.ev-workspace #messagelist td{padding-top:15px;padding-bottom:15px}
 html body.ev-workspace #messagelist td.subject .fromto{font-size:14px}
 html body.ev-workspace #messagelist td.subject .subject{font-size:14px}
 html body.ev-workspace #layout-content>.header{min-height:56px;height:56px;padding:0 8px;padding-top:env(safe-area-inset-top)}
 html body.ev-workspace .frame-content{padding:24px 18px}
 html body.ev-workspace #message-header>.subject{font-size:23px}
 html body.ev-workspace #compose-content{padding:12px}
 html body.ev-workspace #compose-headers{padding:12px}
 html body.ev-workspace .ev-composer .ev-section-heading{padding:14px 18px}
 html body.ev-workspace .ev-composer .ev-section-heading h2{font-size:23px}
 html body.ev-workspace #compose-content .formbuttons{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 html body.ev-workspace .floating-action-buttons a.button{background:var(--ev-brand);color:var(--ev-onbrand);border-radius:18px;min-width:56px;min-height:56px;box-shadow:0 8px 24px #0003}
 html body.ev-workspace #layout-list>.footer{padding-bottom:env(safe-area-inset-bottom)}
 html body.ev-workspace .ui-dialog{max-width:calc(100vw - 20px)!important}
}
#ev-mobile-nav{display:none}
@media(max-width:767px){
 html:not(.iframe) body.ev-workspace:not(.task-login):not(.action-compose) #layout{height:calc(100vh - 68px - env(safe-area-inset-bottom));height:calc(100dvh - 68px - env(safe-area-inset-bottom))}
 body.ev-workspace #ev-mobile-nav{display:flex;align-items:center;position:fixed;bottom:0;left:0;right:0;height:calc(68px + env(safe-area-inset-bottom));padding:4px 12px max(4px,env(safe-area-inset-bottom));background:var(--ev-surface);border-top:1px solid var(--ev-border);z-index:90;gap:8px}
 body.ev-workspace #ev-mobile-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border-radius:12px;text-decoration:none;color:var(--ev-muted);font-size:11px;font-weight:600}
 body.ev-workspace #ev-mobile-nav a.selected{background:var(--ev-soft);color:var(--ev-brand)}
 #ev-mobile-nav a:before{content:"";width:21px;height:21px;background:currentColor;mask-size:contain;mask-position:center;mask-repeat:no-repeat}
 #ev-mobile-nav .ev-nav-mail:before{mask-image:url('../images/nav-mail.svg')}
 #ev-mobile-nav .ev-nav-contacts:before{mask-image:url('../images/nav-contacts.svg')}
 #ev-mobile-nav .ev-nav-settings:before{mask-image:url('../images/nav-settings.svg')}
 html body.ev-workspace .floating-action-buttons{bottom:calc(124px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Compact composer: native commands and editor content are unchanged. */
html body.ev-workspace #layout-content.ev-composer>.header{height:auto;min-height:56px;padding:8px 16px;display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap}
html body.ev-workspace .ev-composer>.header .header-title{display:block!important;position:static;flex:0 0 auto;font-size:16px;font-weight:650;line-height:36px;padding:0}
html body.ev-workspace .ev-composer #messagetoolbar{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:2px;margin:0;border:0;min-width:0}
html body.ev-workspace .ev-composer #messagetoolbar a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;line-height:20px;border:0;font-size:12px}
html body.ev-workspace .ev-composer #messagetoolbar a:before{margin:0;width:18px;height:20px;font-size:16px;line-height:20px}
html body.ev-workspace .ev-composer #messagetoolbar .spacer{display:none}
html body.ev-workspace .ev-composer #composestatusbar{position:static!important;order:3;margin-left:auto;font-size:12px;max-width:100%;color:var(--ev-muted)}
html body.ev-workspace #compose-content{padding:12px 18px 0;min-height:0}
html body.ev-workspace #compose-headers{border:0;border-bottom:1px solid var(--ev-border);border-radius:0;padding:0 0 12px;margin-bottom:12px}
html body.ev-workspace #compose-headers .form-group{margin:0 0 7px}
html body.ev-workspace #compose-headers .col-form-label{flex:0 0 76px;max-width:76px;padding:10px 8px 8px 0}
html body.ev-workspace #compose-headers .col-10{flex:1 1 0;max-width:calc(100% - 76px);min-width:0;padding:0}
html body.ev-workspace #compose-headers .form-control{min-height:38px;font-size:14px}
html body.ev-workspace #compose_from .form-control{color:var(--ev-muted)!important;font-size:13px}
html body.ev-workspace #compose_subject .form-control{font-weight:600}
html body.ev-workspace #composebodycontainer{border-radius:8px;background:#fff;color-scheme:light}
html body.ev-workspace #composebody{min-height:260px}
html body.ev-workspace #compose-content .formbuttons{display:flex;align-items:center;flex-wrap:wrap;position:relative;flex-shrink:0;gap:10px;padding:10px 0 max(10px,env(safe-area-inset-bottom));margin:0;background:var(--ev-surface);z-index:2}
html body.ev-workspace #compose-content .formbuttons .float-right{margin-left:auto;float:none!important}
html body.ev-workspace #compose-content .send{min-height:42px;min-width:110px}
html body.ev-workspace .ev-composer div.tox .tox-toolbar__group{padding:0 3px}
html body.ev-workspace .ev-composer div.tox .tox-tbtn{border-radius:5px}
html body.ev-workspace .ev-composer div.tox .tox-tbtn:hover{background:var(--ev-soft)}
@media(max-width:767px){
 html body.ev-workspace #layout-content.ev-composer>.header{padding:6px 8px;gap:6px;min-height:50px}
 html body.ev-workspace .ev-composer>.header .header-title{font-size:14px}
 html body.ev-workspace .ev-composer #messagetoolbar{flex:1}
 html body.ev-workspace .ev-composer #messagetoolbar a{padding:10px;min-height:44px}
 html body.ev-workspace #compose-content{padding:10px 10px 0}
 html body.ev-workspace #compose-headers .col-form-label{flex-basis:56px;max-width:56px;font-size:11px}
 html body.ev-workspace #compose-headers .col-10{max-width:calc(100% - 56px)}
 html body.ev-workspace #compose-headers .form-control{font-size:16px}
 html body.ev-workspace #compose-content .send{min-height:44px}
}
/* Unified top action bar. Override Elastic's positioned desktop toolbar. */
html body.ev-workspace #layout-content.ev-composer>.header{display:flex!important;flex-wrap:wrap;flex-shrink:0;height:auto!important;min-height:64px;gap:8px;padding:10px 16px;position:relative;align-items:center}
html body.ev-workspace .ev-composer #messagetoolbar{position:static!important;inset:auto!important;transform:none!important;float:none!important;flex:1 1 0;width:auto;min-width:0;text-align:left;justify-content:flex-start}
html body.ev-workspace .ev-composer #messagetoolbar a{float:none!important;flex-direction:row;text-align:left;height:auto;min-height:44px}
html body.ev-workspace .ev-composer #messagetoolbar a .inner{display:inline!important;line-height:20px}
html body.ev-workspace .ev-composer #messagetoolbar a:before{float:none;display:inline-block;margin:0!important}
html body.ev-workspace .ev-composer .ev-compose-send{flex:0 0 auto;margin-left:auto;align-self:center}
html body.ev-workspace .ev-composer .ev-compose-send .send{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:106px;padding:10px 18px;font-weight:700}
html body.ev-workspace .ev-composer #composestatusbar{order:4;flex:0 0 100%;margin:0;text-align:left}
html body.ev-workspace .ev-composer #composestatusbar:empty{display:none}
html body.ev-workspace.action-compose #compose-content{padding-bottom:12px}
html body.ev-workspace.action-compose #compose-attachments{padding:14px;margin:12px;min-height:0}
html body.ev-workspace.action-compose #compose-attachments .upload-form{min-height:0}
html body.ev-workspace.action-compose #compose-attachments .upload-form:after{display:none}
html body.ev-workspace .ev-compose-options{margin:12px;border-top:1px solid var(--ev-border)}
html body.ev-workspace .ev-compose-options>summary{padding:16px 8px;cursor:pointer;color:var(--ev-muted);font-size:13px;font-weight:600;min-height:44px}
html body.ev-workspace .ev-compose-options>summary:focus-visible{outline:2px solid var(--ev-brand);outline-offset:-2px}
html body.ev-workspace .ev-compose-options #compose-options{padding:8px}
@media(max-width:767px){
 html body.ev-workspace #layout-content.ev-composer>.header{padding:6px 8px;gap:4px;min-height:56px}
 html body.ev-workspace .ev-composer #messagetoolbar a .inner{display:none!important}
 html body.ev-workspace .ev-composer #messagetoolbar a{padding:10px;min-width:40px}
 html body.ev-workspace .ev-composer .ev-compose-send .send{min-width:82px;padding:10px 12px}
}
/* Elastic replaces #messagetoolbar with #toolbar-menu at runtime. */
html body.ev-workspace .ev-composer .ev-compose-send{order:2}
html body.ev-workspace .ev-composer>.header>.toolbar-menu-button{order:1;margin-right:auto}
@media(min-width:768px){
 html body.ev-workspace .ev-composer>.header>#toolbar-menu{position:static!important;inset:auto!important;transform:none!important;float:none!important;display:flex!important;flex:1 1 0;order:0;align-items:center;justify-content:flex-start;flex-wrap:wrap;min-width:0;width:auto!important;max-width:none;margin:0!important;padding:0!important;border:0;box-shadow:none;background:transparent}
 html body.ev-workspace .ev-composer>.header>#toolbar-menu>li{float:none;display:flex;align-items:center;border:0;margin:0;padding:0}
 html body.ev-workspace .ev-composer>.header>#toolbar-menu>li>a{display:inline-flex;align-items:center;gap:7px;float:none;flex-direction:row;text-align:left;padding:10px;min-height:44px;height:auto;width:auto;max-width:none;border:0;font-size:12px;line-height:20px}
 html body.ev-workspace .ev-composer>.header>#toolbar-menu>li>a:before{display:inline-block;float:none;margin:0!important;width:18px;height:20px;font-size:16px;line-height:20px}
 html body.ev-workspace .ev-composer>.header>#toolbar-menu>li>a .inner{display:inline!important;max-width:none;line-height:20px}
 html body.ev-workspace .ev-composer>.header>#toolbar-menu>li.spacer{display:none}
}
/* Account footer: reserve real space above the folder scroller. */
@media(min-width:1201px){
 html:not(.iframe) body.ev-workspace:not(.task-login) #layout{grid-template-rows:226px minmax(0,1fr) 148px}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons{left:12px;right:0;bottom:0;height:140px;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:48px 60px;gap:8px 5px;padding:12px 8px;align-content:start;overflow:visible;z-index:2}
 html:not(.iframe) body.ev-workspace #taskmenu .special-buttons .ev-account{grid-column:1/-1;display:flex!important;align-items:center;height:48px;min-height:48px;padding:4px 2px;margin:0;overflow:visible}
}
html body.ev-workspace #taskmenu .ev-account-avatar{display:inline-flex!important;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;line-height:1!important;padding:0!important;margin:0;border-radius:12px;overflow:visible;vertical-align:middle}
html body.ev-workspace #taskmenu .ev-account-name{min-width:0;line-height:1.5;padding:0;height:auto}
html body.ev-workspace #taskmenu .special-buttons>a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 4px;margin:0;min-height:56px;height:auto;border:1px solid var(--ev-border);border-radius:10px;background:transparent;color:var(--ev-muted);text-decoration:none}
html body.ev-workspace #taskmenu .special-buttons>a:hover{background:var(--ev-raised);border-color:var(--ev-control);color:var(--ev-text)}
html body.ev-workspace #taskmenu .special-buttons>a .inner{display:block!important;line-height:1.25!important;font-size:10px;font-weight:550;white-space:normal;text-align:center}
html body.ev-workspace #taskmenu .special-buttons>a:before{content:"";display:block!important;float:none;width:18px;height:18px;min-height:18px;margin:0!important;background:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain}
html body.ev-workspace #taskmenu .special-buttons>a.theme:before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2015A9%209%200%200%201%209%204a9%209%200%201%200%2011%2011Z%22%2F%3E%3C%2Fsvg%3E")}
html.dark-mode body.ev-workspace #taskmenu .special-buttons>a.theme:before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M2%2012h2m16%200h2M5%205l1.5%201.5m11%2011L19%2019M5%2019l1.5-1.5m11-11L19%205%22%2F%3E%3C%2Fsvg%3E")}
html body.ev-workspace #taskmenu .special-buttons>a.about:before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%2011v6m0-10v.1%22%2F%3E%3C%2Fsvg%3E")}
html body.ev-workspace #taskmenu .special-buttons>a.logout:before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%204H4v16h5m5-12%204%204-4%204m-6-4h13%22%2F%3E%3C%2Fsvg%3E")}
html body.ev-workspace #taskmenu .special-buttons>a.logout{color:var(--ev-danger)}
/* Send icon uses a fixed optical box, not the inherited icon-font baseline. */
html body.ev-workspace .ev-composer .ev-compose-send .send{font-size:14px;line-height:20px;gap:8px;vertical-align:middle}
html body.ev-workspace .ev-composer .ev-compose-send .send:before{content:""!important;display:block!important;position:static!important;float:none!important;flex:0 0 18px;width:18px;height:18px;min-width:18px;margin:0!important;padding:0!important;line-height:1;transform:none!important;align-self:center;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21%203-7%2018-4-7-7-4%2018-7Z%22%2F%3E%3Cpath%20d%3D%22m10%2014%2011-11%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
/* Elastic applies zero-width icon rules to special-buttons; lock the paint box. */
html body.ev-workspace #taskmenu .special-buttons>a:before{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px!important;position:static!important;content:""!important;line-height:18px!important;opacity:1;visibility:visible}
html body.ev-workspace #taskmenu .ev-compose-context{display:block;box-sizing:border-box;width:100%;min-width:0;margin:18px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--ev-border);border-radius:0;background:transparent;white-space:normal}
html body.ev-workspace #taskmenu .ev-compose-context a.ev-compose-back{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;box-sizing:border-box;width:100%;max-width:100%;height:44px;min-height:44px;padding:10px 12px!important;margin:0!important;border:0;border-radius:9px;background:transparent!important;box-shadow:none;color:var(--ev-muted);font-size:13px;font-weight:500;line-height:20px;text-align:left;white-space:normal;text-decoration:none}
html body.ev-workspace #taskmenu .ev-compose-context a.ev-compose-back:hover{background:var(--ev-soft)!important;color:var(--ev-brand)}
html body.ev-workspace #taskmenu .ev-compose-context a.ev-compose-back .inner{display:block!important;min-width:0;font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
html body.ev-workspace #taskmenu .ev-compose-context a.ev-compose-back:before{content:"←"!important;font-family:inherit;display:block!important;float:none!important;flex:0 0 18px;margin:0!important;width:18px!important;height:20px!important;line-height:20px!important;font-size:18px}
@media(min-width:768px) and (max-width:1200px){html body.ev-workspace #taskmenu .ev-compose-context{display:none}}
/* Transparent original wordmark; dark variant preserves the seal and alpha. */
html body.ev-workspace #layout-menu .ev-brand{padding:12px!important;gap:8px;height:82px!important;min-height:82px}
html body.ev-workspace #layout-menu .ev-brand img.ev-official-logo{display:block!important;width:100%!important;max-width:208px!important;min-width:0;height:auto!important;max-height:64px!important;object-fit:contain;flex:1 1 auto;background:transparent;border-radius:0;padding:0;box-sizing:border-box;filter:none!important}
html body.ev-workspace .ev-login-brand img.ev-official-logo{display:block!important;width:320px!important;max-width:100%!important;height:auto!important;object-fit:contain;background:transparent;border-radius:0;padding:0;box-sizing:border-box;filter:none!important}
@media(min-width:768px) and (max-width:1200px){html body.ev-workspace #layout-menu .ev-brand{padding:4px!important}}
html:not(.dark-mode) body.ev-workspace #layout-menu .ev-brand img.ev-logo-dark,
html:not(.dark-mode) body.ev-workspace .ev-login-brand img.ev-logo-dark,
html.dark-mode body.ev-workspace #layout-menu .ev-brand img.ev-logo-light,
html.dark-mode body.ev-workspace .ev-login-brand img.ev-logo-light{display:none!important}
/* Folder counts share one trailing column in every selection state. */
html body.ev-workspace #mailboxlist li>a{position:relative;padding-right:64px}
html body.ev-workspace #mailboxlist li>a .unreadcount{position:absolute!important;top:50%!important;right:10px!important;bottom:auto!important;left:auto!important;transform:translateY(-50%);float:none!important;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:26px;height:24px;line-height:24px!important;margin:0!important;padding:0 6px!important;border-radius:6px;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;background:var(--ev-soft)!important;color:var(--ev-brand)!important}
html body.ev-workspace #mailboxlist li.selected>a .unreadcount{background:var(--ev-brand)!important;color:var(--ev-onbrand)!important}
/* Account Settings follows the same three-pane and flat-form language as Preferences. */
html:not(.iframe) body.ev-workspace.action-plugin-password #layout-list.ev-account-settings-pane .scroller{padding:0}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px 18px;border-left:3px solid var(--ev-brand);background:var(--ev-soft);color:var(--ev-text)}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section-icon{position:relative;flex:0 0 24px;width:24px;height:24px;border:2px solid var(--ev-brand);border-radius:5px}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section-icon:before{content:"";position:absolute;left:5px;top:-9px;width:10px;height:10px;border:2px solid var(--ev-brand);border-bottom:0;border-radius:7px 7px 0 0}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section strong,html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section small{display:block}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section strong{font-size:13px;line-height:1.4}
html:not(.iframe) body.ev-workspace.action-plugin-password .ev-account-section small{margin-top:3px;color:var(--ev-muted);font-size:10px;line-height:1.4}
html body.ev-workspace.action-plugin-password #prefs-title{display:block!important;position:static!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:24px 28px 5px;font-size:22px;line-height:1.3;font-weight:700;color:var(--ev-text);background:transparent;border:0}
html body.ev-workspace.action-plugin-password #prefs-title:after{content:"Manage the password used by Webmail and connected mail apps.";display:block;margin-top:5px;font-size:12px;line-height:1.5;font-weight:400;color:var(--ev-muted)}
html body.ev-workspace.action-plugin-password .formcontainer{padding:16px 28px 28px;background:transparent}
html body.ev-workspace.action-plugin-password .boxcontent.formcontent{box-sizing:border-box;max-width:920px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body.ev-workspace.action-plugin-password #password-form{max-width:none;padding:0;border:0;background:transparent;box-shadow:none}
html body.ev-workspace.action-plugin-password .ev-password-intro{display:flex;gap:14px;align-items:flex-start;margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid var(--ev-border)}
html body.ev-workspace.action-plugin-password .ev-password-icon{flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:var(--ev-soft);position:relative}
html body.ev-workspace.action-plugin-password .ev-password-icon:before{content:"";position:absolute;inset:10px 11px 8px;border:2px solid var(--ev-brand);border-radius:4px}
html body.ev-workspace.action-plugin-password .ev-password-icon:after{content:"";position:absolute;left:14px;top:6px;width:10px;height:10px;border:2px solid var(--ev-brand);border-bottom:0;border-radius:7px 7px 0 0}
html body.ev-workspace.action-plugin-password .ev-password-eyebrow{display:block;margin:0 0 2px;color:var(--ev-brand);font-size:9px;line-height:1.4;font-weight:750;letter-spacing:.12em}
html body.ev-workspace.action-plugin-password .ev-password-intro h2{margin:0 0 4px;color:var(--ev-text);font-size:17px;line-height:1.35;font-weight:700}
html body.ev-workspace.action-plugin-password .ev-password-intro p{max-width:650px;margin:0;color:var(--ev-muted);font-size:11px;line-height:1.55}
html body.ev-workspace.action-plugin-password #password-form .propform{width:100%;max-width:820px}
html body.ev-workspace.action-plugin-password #password-form .propform td{padding:8px 0;border:0}
html body.ev-workspace.action-plugin-password #password-form .propform td.title{width:190px;padding-right:22px;color:var(--ev-muted);font-weight:500;vertical-align:middle}
html body.ev-workspace.action-plugin-password .ev-password-control{display:grid;grid-template-columns:minmax(220px,1fr) 58px;gap:8px;align-items:center;width:100%;max-width:500px}
html body.ev-workspace.action-plugin-password #password-form input{box-sizing:border-box;min-height:44px;width:100%;max-width:none}
html body.ev-workspace.action-plugin-password .ev-password-toggle{min-height:40px;padding:8px;border:1px solid var(--ev-border);border-radius:9px;background:var(--ev-raised);color:var(--ev-muted);font-size:10px;font-weight:650;cursor:pointer}
html body.ev-workspace.action-plugin-password .ev-password-toggle:hover{border-color:var(--ev-brand);color:var(--ev-brand)}
html body.ev-workspace.action-plugin-password #ruleslist{max-width:760px;margin:18px 0 0;padding:13px 18px 13px 36px;border:0;border-radius:10px;background:var(--ev-soft);color:var(--ev-muted);font-size:11px;line-height:1.7}
html body.ev-workspace.action-plugin-password .formbuttons{box-sizing:border-box;max-width:920px;margin:0!important;padding:18px 0 0!important;border:0;background:transparent;box-shadow:none}
html body.ev-workspace.action-plugin-password .formbuttons:after{content:"You may need to sign in again on other devices after changing your password.";display:inline-block;max-width:440px;margin-left:14px;color:var(--ev-muted);font-size:10px;line-height:1.45;vertical-align:middle}
html body.ev-workspace.action-plugin-password .formbuttons .submit{min-height:44px;padding:10px 20px}
@media(max-width:767px){html body.ev-workspace.action-plugin-password #prefs-title{padding:18px 16px 4px;font-size:21px}html body.ev-workspace.action-plugin-password .formcontainer{padding:12px 16px 22px}html body.ev-workspace.action-plugin-password .ev-password-intro{gap:11px}html body.ev-workspace.action-plugin-password #password-form .propform td{display:block;width:100%!important;padding:4px 0}html body.ev-workspace.action-plugin-password #password-form .propform tr{display:block;margin-bottom:13px}html body.ev-workspace.action-plugin-password .ev-password-control{grid-template-columns:minmax(0,1fr) 56px;max-width:none}html body.ev-workspace.action-plugin-password .formbuttons:after{display:block;margin:10px 0 0}}
@media print{.ev-reader-actions,.ev-eyebrow{display:none!important}}
