/* Veyra Mail — one workspace, using Elastic's native responsive pane states. */
:root{--veyra-bg:#eef0f4;--veyra-surface:#fff;--veyra-raised:#f3f5f8;--veyra-line:#dfe4eb;--veyra-text:#222936;--veyra-muted:#657085;--veyra-red:#c52d36;--veyra-selected:#fbecef;--veyra-topbar:72px}
html.dark-mode{--veyra-bg:#101217;--veyra-surface:#171b22;--veyra-raised:#202630;--veyra-line:#2b3340;--veyra-text:#f0f2f6;--veyra-muted:#a1abba;--veyra-red:#d83b43;--veyra-selected:#2d2028;color-scheme:dark}
html:root body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--veyra-bg);color:var(--veyra-text);-webkit-font-smoothing:antialiased}
html:root body :is(#layout-menu,#layout-sidebar,#layout-list,#layout-content,.header,.footer,.popover-header){background-color:var(--veyra-surface);color:var(--veyra-text);border-color:var(--veyra-line)}
html:root body :is(.btn-primary,.custom-control-input:checked~.custom-control-label:before){background-color:var(--veyra-red);border-color:var(--veyra-red);color:#fff}
html:root body .btn-primary:hover{filter:brightness(1.1)}
html:root body :is(.form-control,.custom-select,.input-group-text){background-color:var(--veyra-raised);border-color:var(--veyra-line);color:var(--veyra-text)}
html:root body :is(.form-control,.custom-select):focus{border-color:var(--veyra-red);box-shadow:0 0 0 3px color-mix(in srgb,var(--veyra-red) 15%,transparent)}
html:root body :is(.header a.button,.toolbar a){color:var(--veyra-muted)}
html:root body :is(.header a.button,.toolbar a):hover{color:var(--veyra-text)}
html:root body :is(.header a.disabled,.toolbar a.disabled){color:var(--veyra-muted);opacity:.38}
html:root body .listing :is(li a,td){color:var(--veyra-text);border-color:var(--veyra-line)}
html:root body .listing tr:hover>td{background:var(--veyra-raised)}
html:root body .listing :is(li.selected,li.selected>a,tr.selected>td){background:var(--veyra-selected);color:var(--veyra-text)}
html:root body .listing tr.selected:hover>td{background:var(--veyra-selected)}
html:root body :is(.popupmenu,.popover,.ui-dialog,.ui-dialog-content,.menu.listing){background:var(--veyra-surface);color:var(--veyra-text);border-color:var(--veyra-line)}
html:root body :is(.popupmenu,.popover,.ui-dialog){border-radius:10px;box-shadow:0 16px 48px #0003}
html:root body .menu.listing li>a{color:var(--veyra-text)}
html:root body .menu.listing li>a:hover{background:var(--veyra-raised)}
html:root body .menu.listing li>a.disabled{color:var(--veyra-muted);opacity:.5}
html:root body .menu.listing li>a.selected{background:var(--veyra-selected)}
html:root body :is(a,button):focus-visible{outline:2px solid var(--veyra-red);outline-offset:3px}
html:root body.veyra-shell{display:flex;flex-direction:column;height:100dvh;padding:0 18px 18px;gap:0;overflow:hidden}
html:root body.veyra-shell #layout{position:relative;flex:1 1 0;min-height:0;height:auto!important;width:100%;margin:0!important;padding:0;gap:0;border:1px solid var(--veyra-line);border-radius:16px;background:var(--veyra-surface);isolation:isolate}
html:root body.veyra-shell #layout>div{min-height:0;box-sizing:border-box}
html:root body.veyra-shell :is(#layout-sidebar,#layout-list){flex:0 0 auto!important;width:216px!important;min-width:216px;max-width:216px;border-right:1px solid var(--veyra-line)}
html:root body.veyra-shell #layout-list{width:350px!important;min-width:350px;max-width:350px}
html:root body.veyra-shell #layout-sidebar.sidebar-right{width:256px!important;min-width:256px;max-width:256px;border-right:0;border-left:1px solid var(--veyra-line)}
html:root body.veyra-shell #layout-content{flex:1 1 0;min-width:0;width:0}
html:root body.veyra-shell .column-resizer{display:none}
html:root body.veyra-shell #layout>div>.header{flex:0 0 64px;height:64px;min-height:64px;line-height:normal;align-items:center;justify-content:flex-start;gap:4px;padding:0 16px;border-bottom:1px solid var(--veyra-line)}
html:root body.veyra-shell #layout>div>.header>.header-title{display:block;position:static;flex:1 1 auto;min-width:0;margin:0!important;padding:0!important;font-size:15px;font-weight:650;line-height:1.4;text-align:left;letter-spacing:-.25px}
html:root body.veyra-shell #layout>div>.header>a.button{flex-shrink:0;margin:0;padding:0;width:32px;height:40px;line-height:40px}
html:root body.veyra-shell #layout>div>.header>a.button:before{margin:0;width:32px;font-size:17px;line-height:40px;height:40px}
html:root body.veyra-shell #layout>div>.header .toolbar{width:auto;margin:0;flex-shrink:0;border:0;line-height:normal;white-space:nowrap}
html:root body.veyra-shell #layout>div>.header .toolbar a{min-width:30px;height:38px;line-height:38px;padding:0 4px}
html:root body.veyra-shell #layout>div>.header .toolbar a:before{font-size:17px;line-height:38px;height:38px;margin:0}
html:root body.veyra-shell #layout>div>.header .toolbar a>.inner,html:root body.veyra-shell #layout>div>.header>a.toolbar-button>.inner{display:none!important}
html:root body.veyra-shell #layout>div>.footer{flex-shrink:0;height:40px;min-height:40px;line-height:40px;padding:0 10px;color:var(--veyra-muted);font-size:10px;font-weight:400;border-color:var(--veyra-line)}
html:root body.veyra-shell #layout-content>.iframe-wrapper{flex:1 1 0;min-height:0;overflow:hidden}
html:root body.veyra-shell #layout-content>.iframe-wrapper iframe{display:block;width:100%;height:100%;border:0}
html:root body.veyra-shell .floating-action-buttons{display:none!important}
/* App bar: brand, current workspace, and one clear primary action. */
.veyra-appbar{display:flex;align-items:center;gap:26px;flex:0 0 var(--veyra-topbar);min-height:var(--veyra-topbar);width:100%;padding:0 6px;position:relative;z-index:1200}
.veyra-app-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none!important;color:var(--veyra-text)!important;flex:0 0 270px}
.veyra-app-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--veyra-line);border-radius:11px;background:var(--veyra-surface);color:var(--veyra-red)}
.veyra-app-mark svg{width:28px;height:28px}
.veyra-app-words{display:flex;flex-direction:column;gap:2px}
.veyra-app-words strong{font-size:19px;font-weight:650;letter-spacing:-.6px;line-height:1.25}
.veyra-app-words small{font-size:9px;color:var(--veyra-muted);letter-spacing:.1px}
.veyra-app-context{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:12px;color:var(--veyra-muted)}
.veyra-app-context:before{content:"";height:20px;width:1px;background:var(--veyra-line);margin-right:4px}
.veyra-app-context strong{font-weight:500;color:var(--veyra-text)}
.veyra-app-tools{display:flex;align-items:center;gap:18px;margin-left:auto;flex-shrink:0}
.veyra-compose-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 15px;background:var(--veyra-red);color:#fff!important;border-radius:8px;font-size:12px;font-weight:600;text-decoration:none!important;box-shadow:0 2px 4px #0001;transition:background .15s,transform .15s}
.veyra-compose-button:hover{filter:brightness(1.1);transform:translateY(-1px)}
.veyra-compose-button svg{width:17px;height:17px}
.veyra-account-wrap{position:relative;display:flex}
.veyra-profile{display:grid;place-items:center;height:35px;width:35px;border:1px solid var(--veyra-line);border-radius:50%;background:var(--veyra-raised);color:var(--veyra-text);font-size:12px;font-weight:600;cursor:pointer}
.veyra-account-menu{position:absolute;right:0;top:calc(100% + 12px);width:285px;padding:8px;border:1px solid var(--veyra-line);border-radius:12px;background:var(--veyra-surface);box-shadow:0 16px 50px #0005;z-index:1400}
.veyra-account-menu[hidden]{display:none}
.veyra-account-label{padding:12px 11px 15px;margin-bottom:5px;border-bottom:1px solid var(--veyra-line);display:flex;flex-direction:column;gap:6px}
.veyra-account-label strong{font-size:12px;font-weight:600}
.veyra-account-label span{font-size:12px;color:var(--veyra-muted);overflow-wrap:anywhere}
.veyra-account-menu a{display:block;color:var(--veyra-text);font-size:13px;text-decoration:none;padding:11px;border-radius:6px}
.veyra-account-menu a:hover{background:var(--veyra-raised)}
.veyra-account-menu a.veyra-signout{color:var(--veyra-red);border-top:1px solid var(--veyra-line);margin-top:5px;border-radius:0 0 6px 6px}
/* Native navigation rail. */
html:root body.veyra-shell #layout-menu{flex:0 0 68px;width:68px;min-width:68px;background:var(--veyra-bg);border-right:1px solid var(--veyra-line);padding:9px 0;box-shadow:none;border-radius:0}
html:root body.veyra-shell #layout-menu>.popover-header{display:none!important}
html:root body.veyra-shell #taskmenu{height:100%;display:flex;flex-direction:column}
html:root body.veyra-shell #taskmenu>a,html:root body.veyra-shell #taskmenu .special-buttons>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:58px;min-height:58px;margin:3px 7px;padding:8px 1px;border:0;border-radius:9px;background:transparent;color:var(--veyra-muted);font-size:9px;line-height:1.2;text-decoration:none;box-shadow:none}
html:root body.veyra-shell #taskmenu a:before{margin:0;font-size:18px;line-height:21px;height:21px;width:auto}
html:root body.veyra-shell #taskmenu a.selected{color:var(--veyra-text);background:var(--veyra-selected)}
html:root body.veyra-shell #taskmenu a.selected:before{color:var(--veyra-red)}
html:root body.veyra-shell #taskmenu a:hover{color:var(--veyra-text);background:var(--veyra-raised)}
html:root body.veyra-shell #taskmenu .action-buttons{display:none}
html:root body.veyra-shell #taskmenu .special-buttons{position:static;margin-top:auto;background:transparent}
html:root body.veyra-shell #taskmenu .special-buttons>a{height:46px;min-height:46px;font-size:8px}
html:root body.veyra-shell #taskmenu a.logout{color:var(--veyra-red)}
/* Folders and message list. */
html:root body.veyra-shell #layout-sidebar>.header{padding-inline:18px}
html:root body.veyra-shell #layout-sidebar .username{display:flex!important;flex-direction:column;justify-content:center;gap:5px;white-space:normal}
.veyra-sidebar-title{font-size:13px;font-weight:600;letter-spacing:-.1px}
.veyra-account{display:block;font-size:10px;font-weight:400;color:var(--veyra-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:162px;letter-spacing:0}
html:root body.veyra-shell #folderlist-content{padding:12px 0}
html:root body.veyra-shell #mailboxlist li>a{margin:2px 10px;padding:10px 12px;border:0;border-radius:7px;min-height:42px;line-height:22px;font-size:13px;font-weight:400}
html:root body.veyra-shell #mailboxlist li>a:before{font-size:16px;width:24px;margin:0 10px 0 0;line-height:22px;color:var(--veyra-muted)}
html:root body.veyra-shell #mailboxlist li.selected>a{font-weight:600}
html:root body.veyra-shell #mailboxlist li.selected>a:before{color:var(--veyra-red)}
html:root body.veyra-shell #mailboxlist .unreadcount{border-radius:5px;background:var(--veyra-raised);color:var(--veyra-muted);font-size:10px;min-width:20px;padding:1px 5px;line-height:18px}
html:root body.veyra-shell #mailboxlist li.selected>a .unreadcount{background:var(--veyra-red);color:white}
.veyra-sidebar-credit{font-size:9px;color:var(--veyra-muted);margin:0;padding:14px 18px 18px;line-height:1.7}
html:root body.veyra-shell #layout-list>.searchbar{flex:0 0 38px;height:38px;min-height:38px;margin:14px 14px 10px;border:1px solid var(--veyra-line);border-radius:8px;background:var(--veyra-bg);padding:0;line-height:36px}
html:root body.veyra-shell .searchbar input{color:var(--veyra-text);background:transparent;height:36px;font-size:12px}
html:root body.veyra-shell .searchbar input::placeholder{color:var(--veyra-muted);opacity:1}
html:root body.veyra-shell .searchbar a{color:var(--veyra-muted);line-height:36px;height:36px}
.veyra-mail-filters{display:flex;gap:4px;padding:0 14px 12px;flex-shrink:0}
.veyra-mail-filters button{border:0;background:transparent;color:var(--veyra-muted);padding:5px 11px;font-size:11px;font-weight:500;line-height:1.5;border-radius:6px;cursor:pointer}
.veyra-mail-filters button.active{background:var(--veyra-raised);color:var(--veyra-text)}
html:root body.veyra-shell #messagelist{table-layout:fixed;width:100%;border-top:1px solid var(--veyra-line)}
html:root body.veyra-shell #messagelist td{height:72px;padding-top:11px;padding-bottom:11px;border-bottom:1px solid color-mix(in srgb,var(--veyra-line) 70%,transparent);font-size:13px}
html:root body.veyra-shell #messagelist td.subject{position:relative}
html:root body.veyra-shell #messagelist td.subject.veyra-with-avatar{padding-left:61px;padding-right:16px}
.veyra-sender-avatar{position:absolute;left:16px;top:18px;width:32px;height:32px;border:1px solid var(--veyra-line);border-radius:10px;background:var(--veyra-raised);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;color:var(--veyra-muted);pointer-events:none}
html:root body.veyra-shell #messagelist .fromto{font-size:13px;line-height:20px;color:var(--veyra-text)}
html:root body.veyra-shell #messagelist .subject a{font-size:13px;line-height:20px;color:var(--veyra-muted)}
html:root body.veyra-shell #messagelist .date{font-size:10px;line-height:20px;color:var(--veyra-muted)}
html:root body.veyra-shell #messagelist tr.unread .subject a{color:var(--veyra-text);font-weight:600}
html:root body.veyra-shell #messagelist tr.unread .veyra-sender-avatar{color:var(--veyra-text);border-color:color-mix(in srgb,var(--veyra-red) 35%,var(--veyra-line))}
html:root body.veyra-shell #messagelist tr.selected>td:first-child{box-shadow:inset 3px 0 var(--veyra-red)}
html:root body.veyra-shell #rcmcountdisplay{color:var(--veyra-muted)}
.veyra-delivery-note{padding:12px 16px;background:var(--veyra-selected);font-size:12px;white-space:normal;border-bottom:1px solid var(--veyra-line)}
.veyra-delivery-note strong{display:block;font-size:12px}.veyra-delivery-note p{margin:4px 0 0;color:var(--veyra-muted);font-size:11px}
/* Login and framed editors have their own layout; never receive app-bar offsets. */
html:root body.task-login #layout{display:block;overflow:auto}
html:root body.task-login #layout-content{display:grid;place-items:center;width:100%;min-height:100dvh;height:auto;padding:clamp(20px,4vw,64px);background:var(--veyra-bg)}
html.iframe:root body{background:var(--veyra-surface)}
html.iframe:root body #layout{min-height:0;height:100%}
html.iframe:root body #layout-content{min-height:0;min-width:0}
html.iframe:root body .frame-content{min-height:0}
html:root body.veyra-shell.task-settings #layout-list{width:280px!important;min-width:280px;max-width:280px}
html:root body.veyra-shell.task-addressbook #layout-list{width:300px!important;min-width:300px;max-width:300px}
.veyra-contact-create{display:none}
@media(max-width:768px){html:root body.veyra-shell:is(.task-settings,.task-addressbook) #layout-list{width:auto!important;min-width:0;max-width:none}.veyra-contact-create{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--veyra-selected);border:1px solid color-mix(in srgb,var(--veyra-red) 35%,var(--veyra-line));color:var(--veyra-text);border-radius:7px;min-height:34px;padding:7px 10px;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer}.veyra-contact-create svg{width:15px;height:15px;color:var(--veyra-red)}}
/* Match the native 1200/768/480 pane transitions. */
@media(max-width:1200px) and (min-width:769px){html:root body.veyra-shell #layout-list{width:320px!important;min-width:320px;max-width:320px}html:root body.veyra-shell #layout-sidebar.sidebar-right{width:236px!important;min-width:236px;max-width:236px}.veyra-app-brand{flex-basis:220px}.veyra-app-context{gap:8px}}
@media(max-width:768px){:root{--veyra-topbar:62px}html:root body.veyra-shell{padding:0 10px 10px}html:root body.veyra-shell #layout{border-radius:12px}html:root body.veyra-shell :is(#layout-sidebar,#layout-list,#layout-sidebar.sidebar-right){flex:1 1 0!important;width:auto!important;max-width:none;min-width:0}html:root body.veyra-shell #layout-content{width:0}html:root body.veyra-shell #layout>div>.header{flex-basis:52px;min-height:52px;height:52px;padding:0 12px}html:root body.veyra-shell #layout-list>.searchbar{margin-top:10px;margin-bottom:8px}.veyra-mail-filters{padding-bottom:10px}.veyra-appbar{padding:0 4px;gap:12px}.veyra-app-brand{flex:0 0 auto;gap:9px}.veyra-app-mark{width:32px;height:32px;border-radius:9px}.veyra-app-words strong{font-size:17px}.veyra-app-words small{font-size:8px}.veyra-app-context{display:none}.veyra-app-tools{gap:12px}.veyra-compose-button{min-height:34px;padding:8px 11px;font-size:11px}.veyra-profile{width:32px;height:32px}.veyra-account-menu{width:265px}html:root body.veyra-shell #layout>div>.header>.toolbar{display:none}html:root body.veyra-shell #layout>div>.footer{height:44px;min-height:44px;line-height:44px}html:root body.veyra-shell #layout-menu{flex-basis:60px;width:60px;min-width:60px}}
@media(max-width:480px){html:root body.veyra-shell{padding:0 0 0}html:root body.veyra-shell #layout{border-width:1px 0 0;border-radius:0}.veyra-appbar{padding:0 14px}.veyra-compose-button{width:34px;padding:8px}.veyra-compose-button span{display:none}.veyra-app-tools{gap:12px}html:root body.veyra-shell #layout-menu.popover{position:fixed;top:62px!important;left:0!important;bottom:0;width:272px;min-width:272px;height:calc(100dvh - 62px);padding:10px 0;border:0;border-right:1px solid var(--veyra-line);border-radius:0;z-index:1300}html:root body.veyra-shell #layout-menu.popover>.popover-header{display:flex!important;height:48px;min-height:48px;flex-shrink:0}html:root body.veyra-shell #layout-menu.popover>.popover-header img{width:32px;height:32px}html:root body.veyra-shell #layout-menu #taskmenu{height:calc(100% - 48px)}html:root body.veyra-shell #layout-menu #taskmenu a{flex-direction:row;justify-content:flex-start;gap:16px;margin:3px 12px;padding:12px 18px;min-height:46px;height:46px;font-size:13px}html:root body.veyra-shell #layout-menu #taskmenu a:before{width:22px}html:root body.veyra-shell #layout-menu #taskmenu>a.compose{display:none}html:root body.veyra-shell #layout>div>.header>.header-title{font-size:16px}html:root body.veyra-shell #layout-list>.searchbar{margin-inline:16px}.veyra-mail-filters{padding-left:16px}html:root body.veyra-shell #messagelist td{height:76px}html:root body.veyra-shell #messagelist .fromto{font-size:13px}html:root body.veyra-shell #messagelist .subject a{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
