:root{color-scheme:light;--bg:#f6f8f6;--surface:#fff;--fg:#16221c;--muted:#76847b;--line:#e6ece8;--brand:#018440;--brand-bright:#16c64f;--brand-tint:#e9f9ed;--hover:#f4f8f5;--danger:#c43a44;--shadow:0 16px 50px rgba(22,34,28,.07);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-synthesis:none}
:root[data-theme="dark"]{color-scheme:dark;--bg:#101713;--surface:#19241e;--fg:#edf5ef;--muted:#96a79b;--line:#2b3c30;--brand:#4ce37b;--brand-bright:#36e269;--brand-tint:#183f29;--hover:#203329;--danger:#fa6e75;--shadow:0 18px 60px rgba(0,0,0,.2)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--fg);min-width:300px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:wait}a{color:var(--brand)}svg{display:block}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(22,198,79,.35);outline-offset:2px}.hidden{display:none!important}.truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.subtle{color:var(--muted)}.t-xs{font-size:12px}.t-sm{font-size:13px}.t-md{font-size:15px}.bold{font-weight:700}.loading-screen{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);gap:8px}.loading-screen img{border-radius:24px}
.icon{width:20px;height:20px;flex-shrink:0}.icon.small{width:17px;height:17px}.icon.large{width:24px;height:24px}.icon-button{height:40px;width:40px;display:grid;place-items:center;background:none;color:var(--fg);border:0;border-radius:12px;flex:none}.icon-button:hover,.icon-button.active{background:var(--hover)}.icon-button.sm{width:34px;height:34px}.icon-button.danger{color:var(--danger)}.chip{border:1px solid var(--line);background:var(--surface);border-radius:100px;padding:7px 13px;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap}.chip.active{border-color:var(--brand-tint);color:var(--brand);background:var(--brand-tint)}.primary-btn,.secondary-btn,.subtle-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border-radius:14px;font-size:14px;font-weight:720;transition:transform .15s ease,background .15s ease}.primary-btn{background:var(--brand);color:white;border:1px solid var(--brand)}.primary-btn:hover{background:#006a35}.secondary-btn{background:var(--surface);border:1px solid var(--line);color:var(--fg)}.subtle-btn{background:transparent;border:0;color:var(--brand)}.full-width{width:100%}
.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand img{height:44px;width:44px;flex-shrink:0;border-radius:12px}.brand-copy strong{display:block;font-size:15px;font-weight:850;letter-spacing:.5px}.brand-copy span{display:block;color:var(--muted);font-size:11px;letter-spacing:.1px;margin-top:2px}
/* Login */
.auth-page{min-height:100dvh;display:grid;grid-template-columns:1fr minmax(370px,500px);background:var(--surface)}.auth-feature{background:#eefaef;padding:clamp(28px,6vw,90px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-feature .brand{position:relative;z-index:1}.auth-feature-text{position:relative;z-index:1;max-width:620px}.auth-feature h1{font-size:clamp(42px,5vw,76px);line-height:1.06;letter-spacing:-.07em;margin:0 0 24px;font-weight:800;color:#183b27}.auth-feature h1 em{font-style:normal;color:#018440}.auth-feature p{font-size:17px;line-height:1.65;color:#526a59;max-width:480px}.auth-feature .cover-mark{position:absolute;right:-90px;bottom:17%;width:450px;height:450px;opacity:.06}.auth-feature .foot{color:#648272;font-size:13px;position:relative;z-index:1}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:32px}.auth-form{width:100%;max-width:360px}.auth-form .login-icon{height:63px;width:63px;padding:11px;background:var(--brand-tint);border-radius:21px;margin-bottom:25px}.auth-form h2{font-size:30px;letter-spacing:-.05em;margin:0 0 7px}.auth-form .intro{color:var(--muted);margin:0 0 29px;font-size:14px;line-height:1.5}.form-field{display:block;margin-bottom:18px}.form-field>span{display:block;font-size:13px;font-weight:700;margin-bottom:9px}.text-input{width:100%;background:var(--surface);color:var(--fg);border:1px solid var(--line);border-radius:13px;outline:none;padding:14px 15px;font-size:14px;min-height:49px;transition:border-color .15s}.text-input:focus{border-color:var(--brand)}.input-password{position:relative}.input-password input{padding-right:50px}.input-password button{position:absolute;right:5px;top:5px;height:39px;width:39px}.auth-form .auth-error{background:#fff4f3;color:#a62f35;font-size:13px;padding:11px 12px;border-radius:10px;margin-bottom:14px}.auth-form .privacy-hint{font-size:11px;color:var(--muted);line-height:1.55;text-align:center;margin-top:20px}.auth-form .privacy-hint .icon{display:inline-block;vertical-align:-4px;margin-right:3px}.auth-form .switch-hint{font-size:12px;color:var(--muted);margin-top:16px;text-align:center}
/* Main shell */
.app-shell{height:100dvh;display:grid;grid-template-columns:253px minmax(360px,430px) minmax(0,1fr);max-width:1980px;margin:auto;background:var(--surface);overflow:hidden}.sidebar{padding:24px 16px 20px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.sidebar .brand{margin:4px 13px 30px}.compose-btn{width:100%;border-radius:15px;border:0;background:var(--brand);color:white;padding:14px;display:flex;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:750;box-shadow:0 9px 19px rgba(1,132,64,.17);margin-bottom:26px}.nav-label{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted);font-weight:800;margin:16px 12px 11px}.nav-links{display:flex;flex-direction:column;gap:3px}.nav-link{border:0;background:transparent;color:var(--muted);width:100%;padding:12px 12px;display:flex;align-items:center;gap:13px;text-align:left;font-size:13px;font-weight:590;border-radius:12px}.nav-link:hover{background:var(--hover);color:var(--fg)}.nav-link.active{background:var(--brand-tint);color:var(--brand);font-weight:750}.nav-link .nav-count{margin-left:auto;border-radius:9px;padding:2px 7px;background:#e2f7e7;color:#018440;font-size:11px;font-weight:800}.sidebar-footer{margin-top:auto;padding:10px 4px 0;border-top:1px solid var(--line)}.account-pill{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;min-width:0}.account-pill:hover{background:var(--hover)}.avatar{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:var(--brand-tint);color:var(--brand);font-weight:850;font-size:13px}.account-name{font-size:13px;font-weight:720}.account-email{font-size:11px;color:var(--muted);max-width:146px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.account-switch{margin-left:auto}.sidebar-footer .switcher{padding:6px 4px}.switch-account{background:none;border:0;display:flex;align-items:center;gap:8px;text-align:left;width:100%;padding:8px 10px;border-radius:10px;font-size:12px;color:var(--fg)}.switch-account:hover{background:var(--hover)}
.mail-column{border-right:1px solid var(--line);min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--surface)}.mail-top{padding:29px 26px 15px}.mail-top .eyebrow{color:var(--brand);font-weight:800;letter-spacing:1.7px;font-size:10px;text-transform:uppercase;margin-bottom:5px}.mail-top .heading-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.mail-top h1{font-size:26px;letter-spacing:-.065em;margin:0;font-weight:820}.mail-top .toolbar{display:flex;align-items:center;gap:1px}.search-wrap{position:relative;margin-top:21px}.search-wrap .icon{position:absolute;top:12px;left:13px;color:var(--muted)}.search-wrap input{width:100%;padding:12px 38px 12px 42px;border:1px solid var(--line);border-radius:13px;background:var(--hover);color:var(--fg);outline:0;font-size:13px}.search-wrap input:focus{border-color:#9edbab;background:var(--surface)}.search-wrap button{position:absolute;right:4px;top:3px}.filters{display:flex;gap:7px;overflow:auto;padding:15px 26px 17px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.list-meta{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);align-items:center;padding:0 26px 13px;font-size:11px;color:var(--muted)}.mail-items{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}.mail-item{position:relative;border:0;border-bottom:1px solid var(--line);padding:19px 23px;width:100%;background:var(--surface);display:flex;gap:12px;text-align:left;color:var(--fg);transition:background .14s}.mail-item:hover{background:var(--hover)}.mail-item.selected{background:var(--brand-tint)}.mail-item.unread{background:color-mix(in srgb,var(--brand-tint) 22%,var(--surface))}.mail-item.unread:before{content:'';position:absolute;left:0;top:24px;height:8px;width:4px;background:var(--brand);border-radius:0 7px 7px 0}.mail-avatar{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:13px;font-size:14px;font-weight:750;color:#426a53;background:#ebf3ec}.mail-item:nth-child(5n + 2) .mail-avatar{color:#656395;background:#eeeeff}.mail-item:nth-child(5n + 3) .mail-avatar{color:#9a6e39;background:#faf0e3}.mail-item:nth-child(5n + 4) .mail-avatar{color:#9d6173;background:#ffecf1}.mail-item-body{min-width:0;flex:1}.mail-item .line1,.mail-item .line2{display:flex;align-items:center;gap:5px;justify-content:space-between}.mail-sender{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-item.unread .mail-sender,.mail-item.unread .mail-subject{font-weight:830}.mail-date{white-space:nowrap;font-size:10px;color:var(--muted);margin-left:8px}.mail-subject{font-size:12px;font-weight:640;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px}.mail-preview{color:var(--muted);font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}.mail-item .extra{display:flex;align-items:center;gap:7px;margin-top:10px;color:var(--muted)}.mail-item .star{margin-left:auto;color:#d79e35;background:none;border:none;padding:2px}.mail-item .star:not(.starred){color:#adbbb0}.mail-item .star .icon{width:17px;height:17px}.badge-attachment{font-size:10px;display:flex;align-items:center;gap:4px}.list-empty{min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted);padding:30px}.list-empty .icon{width:38px;height:38px;color:var(--brand);margin-bottom:15px}.list-empty strong{color:var(--fg);font-size:16px}.list-empty p{font-size:12px;line-height:1.6;max-width:240px}.load-more{width:calc(100% - 48px);margin:12px 24px}
/* Reading panel */
.read-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface)}.read-empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px;text-align:center}.read-empty .illustration{height:114px;width:114px;border-radius:32px;background:var(--brand-tint);display:grid;place-items:center;margin-bottom:26px}.read-empty .illustration .icon{height:50px;width:50px;color:var(--brand)}.read-empty h2{font-size:23px;letter-spacing:-.04em;margin:0 0 8px}.read-empty p{line-height:1.6;max-width:310px;color:var(--muted);font-size:13px;margin:0}.read-header{padding:28px 32px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:9px}.read-header .actions{display:flex;align-items:center;gap:3px}.read-body{min-height:0;overflow-y:auto;padding:28px clamp(20px,3vw,49px) 40px}.read-body h2{font-size:clamp(24px,2.6vw,34px);line-height:1.3;margin:0 0 27px;letter-spacing:-.055em}.read-sender-row{display:flex;align-items:center;gap:12px;margin-bottom:26px}.read-sender-row .avatar{width:45px;height:45px;font-size:16px;border-radius:14px}.read-sender-info{min-width:0;flex:1}.read-sender-info strong{display:block;font-size:14px}.read-sender-info p{color:var(--muted);font-size:12px;margin:3px 0;overflow-wrap:anywhere}.read-sender-date{font-size:11px;color:var(--muted);white-space:nowrap}.read-message{font-size:14px;line-height:1.75;overflow-wrap:anywhere;min-height:80px;color:var(--fg)}.read-message a{color:var(--brand);text-decoration:underline}.read-message table{border-collapse:collapse;max-width:100%}.read-message td,.read-message th{border:1px solid var(--line);padding:6px}.read-message blockquote{padding-left:15px;border-left:3px solid var(--line);margin:15px 0;color:var(--muted)}.read-message img{max-width:100%}.attachment-section{border-top:1px solid var(--line);padding:22px 0;margin-top:30px}.attachment-section h3{font-size:14px;margin:0 0 14px}.attachment-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:9px;text-decoration:none;color:var(--fg);font-size:13px}.attachment-row .icon{color:var(--brand)}.attachment-row span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-actions{display:flex;gap:10px;margin-top:32px}.back-mobile{display:none}
/* Composer */
.composer-overlay{position:fixed;inset:0;background:rgba(9,22,14,.22);z-index:45;display:flex;justify-content:flex-end;align-items:flex-end;padding:30px}.composer{width:min(620px,100%);height:min(750px,calc(100dvh - 50px));background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}.composer-header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line)}.composer-header strong{font-size:15px}.composer-header .actions{display:flex;align-items:center;gap:7px}.composer-fields{padding:0 22px}.composer-row{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:9px}.composer-row label{font-size:12px;color:var(--muted);width:48px;flex:none}.composer-row input{padding:16px 0;outline:0;min-width:0;width:100%;border:0;background:transparent;color:var(--fg);font-size:14px}.composer-row .cc-toggle{font-size:12px;background:none;color:var(--brand);border:0}.composer-editor{flex:1;min-height:0;overflow:auto;display:flex}.composer-editor textarea{width:100%;min-height:100%;border:0;outline:0;resize:none;font-size:14px;line-height:1.75;padding:18px 22px;color:var(--fg);background:var(--surface)}.composer-attachments{display:flex;gap:7px;flex-wrap:wrap;padding:0 20px}.attachment-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:7px 9px;font-size:11px;max-width:100%}.attachment-chip .name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:190px}.attachment-chip button{border:0;background:transparent;color:var(--muted)}.composer-footer{border-top:1px solid var(--line);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.composer-footer .actions{display:flex;align-items:center;gap:8px}.composer-footer .tip{font-size:11px;color:var(--muted)}
/* Settings */
.settings-pane{padding:40px clamp(22px,6vw,75px);height:100%;overflow:auto}.settings-pane h2{font-size:28px;letter-spacing:-.045em;margin:0 0 8px}.settings-pane .desc{font-size:13px;color:var(--muted);margin:0 0 35px}.settings-section{border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:22px;margin:0 0 18px;max-width:640px}.settings-section h3{font-size:14px;margin:0 0 18px}.settings-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.settings-row:last-child{border-bottom:0;padding-bottom:0}.settings-row .content{flex:1;min-width:0}.settings-row .muted{font-size:11px;color:var(--muted);margin-top:4px}.segmented{display:flex;border:1px solid var(--line);border-radius:11px;padding:3px;gap:4px}.segmented button{padding:8px 12px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:12px}.segmented button.active{background:var(--brand-tint);color:var(--brand);font-weight:800}.settings-pane .danger-outline{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--line))}
/* Mobile navigation */
.mobile-bar,.mobile-header,.sidebar-scrim{display:none}.toast-container{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#1b3124;color:#fff;padding:13px 18px;border-radius:13px;font-size:13px;box-shadow:var(--shadow);max-width:min(90vw,420px);text-align:center}.toast.error{background:#8e2d37}
@media(max-width:1150px){.app-shell{grid-template-columns:220px minmax(320px,400px) minmax(0,1fr)}.sidebar{padding:21px 12px}.mail-top{padding:25px 19px 14px}.filters{padding-left:19px;padding-right:19px}.mail-item{padding:17px}.read-body{padding:24px}.read-header{padding:20px}}
@media(max-width:800px){.app-shell{grid-template-columns:1fr;height:100dvh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(310px,84vw);z-index:31;transform:translateX(-102%);transition:transform .2s ease;padding-top:calc(20px + env(safe-area-inset-top));box-shadow:var(--shadow)}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.sidebar-scrim{display:block;position:fixed;inset:0;background:rgba(5,22,9,.38);z-index:30;border:0}.mail-column{border:0;min-width:0;padding-top:env(safe-area-inset-top);padding-bottom:calc(67px + env(safe-area-inset-bottom))}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px 2px;gap:10px}.mobile-header .brand img{height:38px;width:38px}.mobile-header .brand-copy strong{font-size:13px}.mobile-header .brand-copy span{font-size:10px}.mail-top{padding:16px 20px 8px}.mail-top h1{font-size:31px}.mail-top .eyebrow{margin-top:3px}.search-wrap{margin-top:17px}.filters{padding:13px 20px 15px}.list-meta{padding:0 20px 13px}.mail-item{padding:17px 20px}.mail-item .mail-avatar{width:40px;height:40px}.read-pane{position:fixed;inset:0;z-index:22;background:var(--surface);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.read-pane.inactive{display:none}.read-empty{display:none}.read-header{padding:12px 14px}.read-header .back-mobile{display:grid}.read-body{padding:24px 21px}.read-body h2{font-size:25px}.read-sender-row{align-items:flex-start}.read-sender-date{font-size:10px}.mobile-bar{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:stretch;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom);height:calc(69px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.mobile-tab{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:57px;font-size:10px;font-weight:680}.mobile-tab.active{color:var(--brand)}.mobile-tab .icon{height:22px;width:22px}.mobile-tab.compose-tab{position:relative;color:white}.mobile-tab.compose-tab .tab-fab{width:47px;height:47px;background:var(--brand);border-radius:17px;display:grid;place-items:center;margin-top:-21px;box-shadow:0 6px 14px rgba(1,132,64,.24)}.mobile-tab.compose-tab span.label{color:var(--muted)}.settings-pane{position:fixed;inset:0;z-index:21;background:var(--bg);padding:calc(22px + env(safe-area-inset-top)) 19px calc(82px + env(safe-area-inset-bottom))}.settings-pane h2{font-size:26px}.auth-page{display:block;min-height:100dvh}.auth-feature{display:none}.auth-form-wrap{min-height:100dvh;padding:28px}.auth-form{max-width:390px}.auth-form .login-icon{width:65px;height:65px}.auth-form h2{font-size:32px}.composer-overlay{padding:0;z-index:60}.composer{width:100%;height:100dvh;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.composer-header{padding:12px 14px}.composer-footer .tip{display:none}}
@media(max-width:380px){.mail-top h1{font-size:27px}.mail-item{padding:14px 15px}.mail-date{font-size:9px}.read-body{padding:18px 15px}.composer-fields{padding:0 14px}.composer-editor textarea{padding:16px 14px}}

@media(max-width:800px){.read-sender-row{display:grid;grid-template-columns:45px minmax(0,1fr);column-gap:12px;row-gap:2px}.read-sender-row .avatar{grid-row:1 / span 2}.read-sender-info{grid-column:2}.read-sender-date{grid-column:2;white-space:normal;margin-top:2px}.read-sender-info p{overflow-wrap:break-word}}
