.webmail-shell{grid-template-columns:210px minmax(0,1fr);background:#f5f8fa}
.webmail-shell [hidden]{display:none!important}
.webmail-shell .topbar{gap:18px}.webmail-shell .topbar .search-box{display:none}.webmail-shell .organization{margin-left:auto}
.webmail-shell #portal-gear{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;color:#8de5dd;border:1px solid #47606a;border-radius:12px;background:transparent}
.webmail-shell #portal-gear[aria-pressed=true]{background:#21464a}
.webmail-shell #portal-nav button:not([data-mail-folder]),.webmail-shell #sidebar .help-box,.webmail-shell #portal-logout{display:none}
.webmail-shell:not(.webmail-ready) #sidebar,.webmail-shell:not(.webmail-ready) #menu-toggle,.webmail-shell:not(.webmail-ready) .webmail-back{display:none}
.webmail-shell:not(.webmail-ready){grid-template-columns:minmax(0,1fr)}
.webmail-shell #portal-main{min-width:0;padding:28px;max-width:1500px;width:100%;box-sizing:border-box}
.webmail-shell .page-title{margin-bottom:18px}.webmail-shell .page-title h1{font-size:28px}
.webmail-shell .mail-mode{padding:18px;margin-bottom:16px;border-radius:14px;box-shadow:none}
.webmail-shell .mail-mode h2{font-size:20px}.webmail-shell .mail-mode p{font-size:14px}.webmail-shell .mail-mode-switch button{min-height:46px}
.webmail-shell .mail-list{gap:0;border:1px solid #dce4e8;border-radius:14px;overflow:hidden;background:#fff}
.webmail-shell .mail-item{border:0;border-bottom:1px solid #e4e9ec;border-radius:0;margin:0;box-shadow:none}
.webmail-shell .mail-item:last-child{border-bottom:0}.webmail-shell .mail-item>summary{padding:18px 20px;min-height:76px;box-sizing:border-box}
.webmail-shell .mail-item>summary:hover,.webmail-shell .mail-item[open]>summary{background:#f0f9f8}
.webmail-shell .mail-item .mail-expanded{border-top:1px solid #dce4e8;padding:22px;background:#fff}
.webmail-shell .mail-subject{min-width:0}.webmail-shell .mail-subject strong{font-size:16px}.webmail-shell .mail-subject span{font-size:14px}
.webmail-shell .mail-help{margin-top:20px}.webmail-shell .webmail-back{margin:0 0 20px;min-height:44px}
.mail-draft-preview{margin-top:22px;border:1px solid #c9e4df;background:#f6fcfa;border-radius:12px;padding:18px}.mail-draft-preview textarea[readonly]{background:#fff;border-color:transparent;cursor:default}.mail-reply-buttons,.mail-folder-actions{display:flex;flex-wrap:wrap;gap:12px}.mail-reply-buttons button,.mail-folder-actions button{min-height:44px}.mail-folder-actions{border-top:1px solid #e0e6ec;margin-top:24px;padding-top:16px}.mail-folder-actions small,.mail-folder-actions p{width:100%;color:#697581;margin:0;font-size:12px}.mail-draft-preview textarea:focus{outline:2px solid #08786f}
.webmail-settings-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.webmail-settings-title h1{font-size:28px;margin:0 0 8px}.webmail-settings-title p{color:#64727e;margin:0}
.webmail-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.webmail-tile{display:flex;align-items:center;gap:16px;text-align:left;padding:24px;background:#fff;color:#22313b;border:1px solid #dce4e8;border-radius:16px;min-height:116px;cursor:pointer}
.webmail-tile>span:first-child{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#e3f5f2;color:#117c75;font-size:24px}
.webmail-tile>span:nth-child(2){flex:1;min-width:0}.webmail-tile strong,.webmail-tile small{display:block}.webmail-tile strong{font-size:17px;margin-bottom:6px}.webmail-tile small{font-size:14px;color:#64727e;line-height:1.5}.webmail-tile:hover{border-color:#119e92;background:#f8fdfc}
.webmail-shell button:focus-visible,.webmail-shell summary:focus-visible{outline:3px solid #117c75;outline-offset:3px}
.webmail-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px}.webmail-complete{padding:16px;background:#e3f5f2;border-radius:12px;color:#16675f}
.webmail-shell .pax-language-toolbar{position:static;margin-top:24px;padding:0;border:0;background:transparent;justify-content:flex-start}
.webmail-shell #mail-preferences-content>.mail-policy{display:block;padding:24px;background:#fff;border:1px solid #dce4e8;border-radius:14px}.webmail-shell #mail-preferences-content>.mail-policy>summary{display:none}
@media(max-width:950px){
 .webmail-shell{grid-template-columns:minmax(0,1fr)}.webmail-shell #menu-toggle{display:none}
 .webmail-shell #sidebar{display:block;position:sticky;top:66px;height:auto;width:auto;transform:none;z-index:20;padding:8px 16px;border-right:0;border-bottom:1px solid #dce4e8;background:#fff}
 .webmail-shell #sidebar .workspace{display:none}.webmail-shell #portal-nav{display:flex;gap:6px;overflow-x:auto;margin-top:0;max-width:100%}.webmail-shell #portal-nav button{flex:0 0 auto;width:auto;min-height:46px;margin:0;justify-content:center;border-radius:10px;white-space:nowrap;padding:12px 10px}
 .webmail-shell #portal-main{padding:22px}.webmail-shell .mail-mode-switch{width:100%;max-width:none}
}
@media(max-width:640px){
 .webmail-shell .topbar{padding:10px 16px;gap:10px;height:64px;box-sizing:border-box}.webmail-shell .top-brand{font-size:13px}.webmail-shell #sidebar{top:64px;padding:8px 12px}
 .webmail-shell #portal-main{padding:20px 14px}.webmail-shell .organization{gap:0}.webmail-shell .organization>div{display:none}
 .webmail-settings-title{align-items:flex-start;flex-direction:column}.webmail-settings-title h1{font-size:26px}
 .webmail-tiles{grid-template-columns:minmax(0,1fr);gap:10px}.webmail-tile{padding:18px;min-height:94px}
 .webmail-shell .mail-mode{padding:16px}.webmail-shell .mail-mode-switch button{padding:12px 8px;font-size:13px}.webmail-shell .mail-item>summary{padding:16px 12px;gap:10px}.webmail-shell .mail-item .mail-expanded{padding:16px}
 .webmail-shell #mail-preferences-content>.mail-policy{padding:16px}.webmail-shell .mail-policy input,.webmail-shell .mail-policy textarea{max-width:100%;box-sizing:border-box}
}
