:root{font-family:"DM Sans","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17212b;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#17212b;--muted:#83909b;--line:#e8edf1;--soft:#f4f7f8;--teal:#178779;--teal-dark:#126e65;--teal-pale:#e6f5f1;--accent:#fed98a;--shadow:0 22px 80px rgba(30,52,61,.17)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f5f7fb}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(23,135,121,.25);outline-offset:2px}.hidden{display:none!important}.muted{color:var(--muted)}
/* Auth */.auth-view{min-height:100vh;display:grid;place-items:center;padding:30px 18px;background:radial-gradient(ellipse at 50% 35%,#ecf8f5 0,#f6f8fb 55%,#f4f6fa 100%)}.auth-card{width:min(100%,450px);padding:34px 44px 28px;border:1px solid #e9eff0;border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 20px 70px rgba(38,68,73,.08)}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;letter-spacing:-.04em;color:#183d3b}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#157f74;color:white;font-size:17px;box-shadow:0 5px 12px #147f742e}.brand-center{justify-content:center}.auth-art{height:150px;position:relative;display:grid;place-items:center;margin:4px 0 10px;overflow:hidden}.art-orbit{position:absolute;border:1px solid #d6eeea;border-radius:50%;transform:rotate(-21deg)}.orbit-one{width:235px;height:83px}.orbit-two{width:182px;height:136px;transform:rotate(33deg);border-color:#e3f1ee}.art-envelope{position:relative;width:114px;height:79px;border-radius:14px;background:linear-gradient(145deg,#1c9b8c,#116f68);box-shadow:0 15px 28px #167c7040;transform:rotate(-5deg)}.art-envelope:before,.art-envelope:after{content:"";position:absolute;top:0;width:0;height:0;border-style:solid}.art-envelope:before{left:0;border-width:42px 57px 0;border-color:#34b4a3 transparent transparent}.art-envelope:after{right:0;border-width:42px 0 0 57px;border-color:#159486 transparent transparent}.art-envelope span{position:absolute;z-index:2;left:0;right:0;bottom:0;height:54px;background:#0f776d;clip-path:polygon(0 100%,50% 15%,100% 100%);border-radius:0 0 14px 14px}.art-dot{position:absolute;width:9px;height:9px;background:#f5c771;border-radius:50%}.dot-one{left:80px;top:32px}.dot-two{right:76px;bottom:30px;width:6px;height:6px;background:#55bdae}.eyebrow{margin:0 0 7px;font-size:10px;font-weight:700;letter-spacing:.15em;color:#1c8e80}.auth-card h1{margin:0 0 7px;text-align:center;font-size:25px;letter-spacing:-.05em}.auth-card>.muted{text-align:center;font-size:13px;margin:0 0 26px}.stack-form{display:flex;flex-direction:column;gap:10px}.stack-form label{font-size:12px;font-weight:700}.stack-form input{width:100%;height:46px;padding:0 13px;border:1px solid #dfe7e8;border-radius:11px;background:#fbfcfc}.field-hint{margin:-3px 0 5px;font-size:11px;color:#87959e}.auth-foot{text-align:center;font-size:10px;color:#9aa5ad;margin:22px 0 0}.button{border:0;border-radius:10px;min-height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:700;transition:transform .15s,background .15s,box-shadow .15s}.button:active{transform:translateY(1px)}.button-primary{color:#fff;background:var(--teal);box-shadow:0 5px 11px rgba(23,135,121,.15)}.button-primary:hover{background:var(--teal-dark);box-shadow:0 7px 16px rgba(23,135,121,.23)}.full-width{width:100%;height:46px}.button-quiet{background:#f2f5f6;color:#54616b}.button-quiet:hover{background:#e8eeee}.button-danger{color:#fff;background:#c74747}.button-danger:hover{background:#aa3030}
/* Shell */.app-shell{height:100vh;height:100dvh;min-height:0;display:flex;overflow:hidden;background:#fff}.sidebar{position:relative;z-index:5;display:flex;flex-direction:column;width:248px;min-width:248px;height:100vh;padding:24px 15px 14px;background:#f8fafb;border-right:1px solid #e9eef0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 9px 25px}.brand-tag{font-size:8px;letter-spacing:.14em;color:#99a8ac;border-left:1px solid #dce5e6;padding-left:9px;margin-left:3px}.compose-button{width:100%;height:46px;justify-content:flex-start;padding:0 18px;margin:0 0 22px;color:white;background:#197f75;box-shadow:0 7px 14px #167f7424}.compose-button:hover{background:#126d64}.compose-plus{font-size:19px;font-weight:400;line-height:0}.folder-nav,.account-nav{display:flex;flex-direction:column;gap:3px}.nav-item{height:38px;width:100%;display:flex;align-items:center;gap:11px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#65737c;text-align:left;font-size:12px;font-weight:500;transition:background .15s,color .15s}.nav-item:hover{background:#edf2f3;color:#273c40}.nav-item.active{color:#146e65;background:#e4f3ef;font-weight:700}.nav-icon{width:18px;flex:0 0 18px;text-align:center;font-size:16px;line-height:1;color:#829198}.active .nav-icon{color:#148478}.nav-count{margin-left:auto;color:#188577;font-size:10px;font-weight:700}.custom-folder-nav:empty{display:none}.custom-folder-nav{max-height:180px;overflow:auto;margin-top:9px;padding-top:8px;border-top:1px solid #e7edef}.custom-label{padding:0 10px 7px;color:#9aa6aa;font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.custom-account-label{margin-left:auto;max-width:65px;overflow:hidden;color:#a1abad;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.sidebar-divider{height:1px;background:#e7edef;margin:15px 6px 14px}.section-label{display:flex;justify-content:space-between;align-items:center;padding:0 10px 9px;color:#9aa6aa;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.mini-add{width:22px;height:22px;border:0;border-radius:7px;background:#edf3f3;color:#60717a;font-size:16px;line-height:1}.mini-add:hover{background:#dcece8;color:#147b70}.account-nav .nav-item{height:36px}.account-dot{width:19px;height:19px;flex:0 0 19px;display:grid;place-items:center;border-radius:7px;color:#fff;font-size:9px;font-weight:700}.tone-0{background:#368a80}.tone-1{background:#b78350}.tone-2{background:#777eae}.tone-3{background:#ad6e79}.tone-4{background:#5d87a1}.tone-5{background:#8974a3}.tone-0{background:#368a80}.tone-1{background:#b78350}.tone-2{background:#777eae}.tone-3{background:#ad6e79}.tone-4{background:#5d87a1}.tone-5{background:#8974a3}.account-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-unread{margin-left:auto;color:#94a1a7;font-size:10px}.sidebar-spacer{flex:1}.connection-hint{display:flex;align-items:center;gap:8px;margin:0 8px 11px;padding:10px 9px;border:1px solid #e7efed;border-radius:9px;background:#fff;color:#88989a;font-size:9px}.status-dot{width:6px;height:6px;border-radius:50%;background:#35a28f;box-shadow:0 0 0 3px #e5f5f1}.settings-item{color:#728087}.sidebar-bottom{display:flex;align-items:center;gap:9px;padding:12px 7px 0;border-top:1px solid #e7edef;margin-top:8px}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ddefe9;color:#1c8278;font-size:12px;font-weight:700}.sidebar-bottom>div{display:flex;flex-direction:column;gap:2px;min-width:0}.sidebar-bottom strong{font-size:10px;color:#506067}.sidebar-bottom small{font-size:9px;color:#9aa6aa}.logout-button{margin-left:auto}.main-area{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.topbar{height:70px;min-height:70px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;justify-content:space-between;padding:0 27px;background:#fff}.crumb{display:flex;align-items:center;gap:9px;font-size:12px}.crumb-kicker{color:#a1acb1}.crumb-divider{color:#d0d7da}.crumb strong{font-size:13px;color:#33434a}.topbar-actions{display:flex;align-items:center;gap:13px}.search-box{width:min(295px,35vw);height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #edf0f1;border-radius:10px;background:#f8fafb}.search-icon{font-size:20px;line-height:1;color:#9aa7ac;transform:rotate(-25deg)}.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#44545c;font-size:11px}.search-box input::placeholder{color:#a5b0b5}.search-box kbd{padding:2px 5px;border:1px solid #e3e8ea;border-radius:4px;background:#fff;color:#9ba7ac;font-size:9px}.icon-button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#7c8a90;font-size:18px;transition:background .15s,color .15s}.icon-button:hover{background:#f0f4f4;color:#286e67}.refresh-button{font-size:23px}.top-add-button{height:35px;padding:0 12px;border:1px solid #dcebe7;border-radius:9px;background:#f3faf8;color:#18796e;font-size:10px;font-weight:700}.top-add-button:hover{background:#e3f4ef}.top-add-button span{font-size:16px;margin-right:3px}.mobile-menu,.sidebar-close,.sidebar-shade{display:none}
.workspace{display:flex;min-height:0;flex:1;overflow:hidden}.list-pane{position:relative;display:flex;flex-direction:column;width:390px;min-width:320px;min-height:0;border-right:1px solid #edf0f2;background:#fff}.list-toolbar{height:68px;min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.list-heading{display:flex;align-items:center;gap:9px}.list-heading h1{font-size:16px;letter-spacing:-.04em;margin:0}.count-pill{padding:3px 7px;border-radius:7px;background:#f1f5f5;color:#93a0a4;font-size:9px}.list-tools{display:flex;align-items:center;gap:7px}.list-tools select{max-width:125px;height:30px;border:1px solid #edf0f0;border-radius:7px;padding:0 8px;background:#fff;color:#819097;font-size:9px}.small-tool{width:29px;height:29px;font-size:16px}.sync-banner{margin:0 14px 8px;padding:8px 10px;border-radius:8px;background:#fff8e7;color:#90733c;font-size:10px}.message-list{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain}.message-row{position:relative;display:flex;gap:11px;min-height:90px;padding:14px 16px 12px 15px;border-bottom:1px solid #f0f2f3;cursor:pointer;transition:background .13s}.message-row:hover{background:#f9fbfb}.message-row.selected{background:#f0f8f6}.message-row.unread{background:#fcfefd}.message-row.unread:before{content:"";position:absolute;left:6px;top:24px;width:5px;height:5px;border-radius:50%;background:#22a08d}.sender-avatar{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#e8f2f1;color:#528e86;font-size:12px;font-weight:700}.sender-avatar.tone-0{background:#368a80;color:#fff}.sender-avatar.tone-1{background:#b78350;color:#fff}.sender-avatar.tone-2{background:#777eae;color:#fff}.sender-avatar.tone-3{background:#ad6e79;color:#fff}.sender-avatar.tone-4{background:#5d87a1;color:#fff}.sender-avatar.tone-5{background:#8974a3;color:#fff}.sender-avatar.color-1{background:#f6efe4;color:#ab8054}.sender-avatar.color-2{background:#eef0fa;color:#7d83ae}.sender-avatar.color-3{background:#f6eaea;color:#ab7272}.sender-avatar.color-4{background:#e9f1f6;color:#6284a1}.message-content{min-width:0;flex:1}.message-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.message-sender{overflow:hidden;color:#596970;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.unread .message-sender{color:#26383d;font-weight:700}.message-time{flex:0 0 auto;color:#9aa6ab;font-size:9px}.message-subject{overflow:hidden;margin:5px 0 4px;color:#54636a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.unread .message-subject{color:#273a40;font-weight:700}.message-preview{overflow:hidden;color:#9aa5a9;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.message-foot{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.mail-chip{max-width:150px;overflow:hidden;padding:2px 6px;border-radius:5px;background:#f1f5f5;color:#8c9a9e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.star-mark{color:#e9b04e;font-size:12px}.empty-state{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}.empty-art{position:relative;width:112px;height:99px;display:grid;place-items:center;margin-bottom:17px}.empty-paper{width:58px;height:69px;padding:19px 10px 0;border:1px solid #dcebe7;border-radius:8px;background:#fbfdfd;box-shadow:0 8px 15px #456b6412;transform:rotate(-6deg)}.empty-paper span{display:block;height:3px;margin:0 0 7px;border-radius:4px;background:#deece8}.empty-paper span:nth-child(2){width:29px}.empty-paper span:nth-child(3){width:34px}.empty-spark{position:absolute;color:#e6b35f;font-size:17px}.spark-a{right:12px;top:10px}.spark-b{left:10px;bottom:11px;font-size:25px;color:#69b9a8}.empty-state h2{margin:0 0 6px;font-size:14px}.empty-state p{max-width:250px;margin:0 0 18px;color:#98a5a9;font-size:10px;line-height:1.7}.empty-state .button{min-height:35px;font-size:10px}.list-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px;border-top:1px solid #f0f2f3}.list-pagination .button{min-height:29px;font-size:9px}.list-pagination span{color:#9aa6ab;font-size:9px}
.detail-pane{position:relative;min-width:0;min-height:0;flex:1;background:#fff;overflow-y:auto;overscroll-behavior:contain}.detail-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9aa6ab;text-align:center}.placeholder-icon{width:59px;height:59px;display:grid;place-items:center;margin-bottom:16px;border:1px solid #e4eeec;border-radius:18px;background:#f8fbfa;color:#70a79e;font-size:25px}.detail-placeholder h2{margin:0 0 7px;color:#506067;font-size:14px}.detail-placeholder p{margin:0;font-size:10px}.detail-view{padding:28px clamp(22px,4vw,58px) 42px;max-width:1000px;margin:auto}.detail-toolbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:21px;border-bottom:1px solid #eef1f2}.detail-actions{display:flex;gap:5px}.detail-actions .icon-button{width:33px;height:33px;border:1px solid #edf0f0;font-size:15px}.detail-subject{margin:23px 0 19px;color:#24343a;font-size:22px;line-height:1.35;letter-spacing:-.04em;overflow-wrap:anywhere}.sender-meta{display:flex;align-items:flex-start;gap:11px}.sender-meta .sender-avatar{width:39px;height:39px;flex-basis:39px;border-radius:13px}.sender-info{min-width:0;flex:1}.sender-info-main{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.sender-info-main strong{font-size:11px;color:#38494f}.sender-info-main span{font-size:10px;color:#9ca8ac}.sender-detail-line{margin-top:5px;color:#99a4a8;font-size:9px;overflow-wrap:anywhere}.detail-date{margin-left:auto;flex:0 0 auto;color:#9aa5aa;font-size:9px}.detail-divider{height:1px;margin:19px 0 20px;background:#eef1f2}.mail-body{color:#405158;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.mail-body-text{white-space:pre-wrap;word-break:break-word}.mail-body iframe{display:block;width:100%;min-height:300px;border:0;background:#fff}.attachment-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.attachment-link{display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #e7edef;border-radius:9px;color:#52636a;text-decoration:none;font-size:10px}.attachment-link:hover{background:#f5faf8}.attachment-icon{font-size:15px;color:#61a195}.detail-account-tag{display:inline-flex;align-items:center;gap:6px;margin-top:17px;padding:5px 8px;border-radius:6px;background:#f5f7f7;color:#89969a;font-size:9px}.detail-back{display:none}.detail-actions-bottom{margin-top:26px;padding-top:17px;border-top:1px solid #eef1f2}.detail-actions-bottom .button{min-height:34px;font-size:10px}.detail-back{display:none}.detail-actions-bottom{margin-top:26px;padding-top:17px;border-top:1px solid #eef1f2}.detail-actions-bottom .button{min-height:34px;font-size:10px}
/* Dialogs */.dialog{width:min(100% - 28px,640px);max-height:min(92vh,900px);padding:0;border:1px solid #e8eeee;border-radius:19px;background:#fff;color:var(--ink);box-shadow:var(--shadow);overflow:auto}.dialog::backdrop{background:rgba(26,41,45,.33);backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:24px 26px 0}.dialog-header h2{margin:0;font-size:21px;letter-spacing:-.04em}.dialog-header .eyebrow{margin-bottom:5px}.close-dialog{font-size:23px}.dialog-intro{margin:10px 26px 18px;color:#8b999e;font-size:11px;line-height:1.7}.account-dialog{width:min(100% - 24px,680px)}.oauth-choices{margin:0 26px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.oauth-button{display:flex;align-items:center;gap:10px;min-width:0;padding:11px;border:1px solid #e6ecee;border-radius:11px;background:#fff;text-align:left}.oauth-button:hover{border-color:#b7d8d1;background:#f7fbfa}.oauth-button>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.oauth-button strong{font-size:10px;color:#36484f}.oauth-button small{font-size:8px;color:#9aa6aa;line-height:1.35}.oauth-g{display:grid;place-items:center;width:28px;height:28px;border:1px solid #eef0f1;border-radius:8px;color:#4285f4;font-weight:800;font-size:15px}.oauth-ms{display:grid;width:21px;height:21px;grid-template-columns:1fr 1fr;gap:2px}.oauth-ms i:nth-child(1){background:#f25022}.oauth-ms i:nth-child(2){background:#7fba00}.oauth-ms i:nth-child(3){background:#00a4ef}.oauth-ms i:nth-child(4){background:#ffb900}.oauth-arrow{color:#a2b0b3}.or-divider{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:1px 0 0;color:#adb7ba;font-size:9px}.or-divider:before,.or-divider:after{content:"";height:1px;flex:1;background:#edf0f1}.account-form{padding:0 26px 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 13px}.form-field{display:flex;flex-direction:column;gap:6px;color:#52636a;font-size:10px;font-weight:600}.span-two{grid-column:1/-1}.form-field input,.form-field select,.server-grid input{width:100%;height:37px;padding:0 10px;border:1px solid #e5ebed;border-radius:8px;background:#fbfcfc;color:#46575d;font-size:10px}.form-field input::placeholder,.server-grid input::placeholder{color:#b1bbbe}.form-field small{color:#9aa6aa;font-size:9px;font-weight:400;line-height:1.5}.protocol-card{margin-top:14px;padding:13px;border:1px solid #e9eeee;border-radius:11px;background:#fcfdfd}.protocol-title{display:flex;align-items:center;gap:9px;margin-bottom:11px}.protocol-title>div{display:flex;flex-direction:column;gap:2px}.protocol-title strong{color:#526269;font-size:10px}.protocol-title small{color:#a0abad;font-size:8px}.protocol-badge{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#e5f5f1;color:#178879;font-size:10px;font-weight:700}.send-badge{background:#f0eef8;color:#8175b3}.server-grid{display:grid;grid-template-columns:1.5fr .55fr 1fr;align-items:end;gap:9px}.server-grid label{display:flex;flex-direction:column;gap:5px;color:#879499;font-size:9px}.server-grid input{height:33px}.server-grid .secure-check{display:flex;flex-direction:row;align-items:center;gap:5px;height:33px;white-space:nowrap}.secure-check input{width:13px;height:13px;accent-color:#188779}.form-error{margin-top:12px;padding:9px 11px;border-radius:8px;background:#fff0ef;color:#b33d39;font-size:10px;line-height:1.5}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px}.footer-lock{color:#9ba7aa;font-size:9px}.button-arrow{font-size:15px}.settings-dialog{width:min(100% - 24px,590px)}.managed-accounts{padding:0 26px;display:flex;flex-direction:column;gap:8px}.managed-account{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e9eeee;border-radius:11px}.managed-account .account-dot{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:12px}.managed-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.managed-main strong{overflow:hidden;color:#42545a;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.managed-main span{overflow:hidden;color:#9ba6a9;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.managed-badge{padding:4px 7px;border-radius:5px;background:#eef7f4;color:#4e9187;font-size:8px}.remove-account{width:29px;height:29px;border:0;border-radius:7px;background:transparent;color:#ad9696;font-size:14px}.remove-account:hover{background:#fff0ef;color:#b74742}.security-note{display:flex;gap:11px;margin:18px 26px 0;padding:13px;border-radius:11px;background:#f5f9f8}.security-note>span{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:#e3f3ef;color:#33897c;font-size:12px}.security-note strong{color:#53646a;font-size:10px}.security-note p{margin:5px 0 0;color:#8d9b9f;font-size:9px;line-height:1.7}.settings-dialog>.dialog-footer{padding:16px 26px 24px;justify-content:flex-end}.settings-dialog .dialog-intro{margin-bottom:15px}.settings-empty{padding:25px;text-align:center;color:#a0abad;font-size:10px}.confirm-dialog{width:min(100% - 28px,390px);padding-bottom:22px}.confirm-dialog .dialog-footer{padding:16px 26px 0}.confirm-dialog .dialog-intro{margin-bottom:4px}
/* Compose */.compose-dialog{width:min(100% - 22px,660px);margin:auto 24px 20px auto;border-radius:15px}.compose-dialog::backdrop{background:rgba(22,36,40,.22);backdrop-filter:blur(1px)}.compose-dialog form{display:flex;flex-direction:column;min-height:520px}.compose-header{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 19px;background:#f5f8f8;border-bottom:1px solid #e9eeee}.compose-title{display:flex;align-items:center;gap:9px}.compose-title-mark{color:#188779;font-size:18px}.compose-title h2{margin:0;color:#415257;font-size:12px}.compose-header-actions{display:flex;gap:2px}.compose-field{display:flex;align-items:center;gap:13px;min-height:43px;padding:0 20px;border-bottom:1px solid #f0f2f2}.compose-field label{width:52px;flex:0 0 52px;color:#9aa5a9;font-size:10px}.compose-field input,.compose-field select{min-width:0;flex:1;height:34px;border:0;outline:0;background:transparent;color:#47585e;font-size:11px}.compose-field input::placeholder{color:#b0b9bc}.compose-field select{appearance:auto}.compose-body{flex:1;min-height:240px;padding:18px 21px;border:0;resize:vertical;outline:0;color:#42535a;font-size:11px;line-height:1.8}.compose-body::placeholder{color:#b1bbbe}.compose-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 20px 10px;border-top:1px solid #f2f4f4}.compose-tools>small{margin-left:auto;color:#a1abad;font-size:8px}.attach-button{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #e7eded;border-radius:7px;background:#fff;color:#718187;font-size:9px;cursor:pointer}.attach-button:hover{background:#f4faf8;color:#1b8176}.attach-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.compose-file-list{display:flex;flex-wrap:wrap;gap:5px}.attachment-token{display:flex;align-items:center;gap:5px;max-width:200px;padding:4px 6px;border:1px solid #e8eeee;border-radius:7px;background:#f9fbfb}.attachment-paper{color:#438f84;font-size:11px}.attachment-token-name{overflow:hidden;color:#5b6a70;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.attachment-token small{flex:0 0 auto;color:#a1abad;font-size:7px}.attachment-token button{width:16px;height:16px;border:0;border-radius:4px;background:transparent;color:#a39494;font-size:12px;line-height:1}.compose-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 17px;border-top:1px solid #edf0f0}.compose-from-note{color:#9ca7aa;font-size:9px}.compose-footer .button{min-height:35px;font-size:10px}.toast{position:fixed;z-index:30;top:18px;left:50%;max-width:min(90vw,520px);padding:11px 16px;border:1px solid #dcebe7;border-radius:10px;background:#fff;color:#42625e;box-shadow:0 9px 30px #203a3a17;font-size:11px;opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:.22s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{border-color:#f1d2cf;color:#a3443f;background:#fffafa}.loading{display:flex;align-items:center;justify-content:center;gap:8px;padding:30px;color:#97a4a8;font-size:10px}.spinner{width:14px;height:14px;border:2px solid #dfeae8;border-top-color:#238e80;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.sidebar{width:220px;min-width:220px}.list-pane{width:350px;min-width:310px}.topbar{padding:0 19px}.top-add-button{display:none}.detail-view{padding:24px 26px 35px}}
@media(max-width:800px){.detail-back{display:grid!important}.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:20;width:270px;min-width:270px;transform:translateX(-103%);transition:transform .22s;box-shadow:0 15px 50px #243d3d2a}.sidebar.open{transform:translateX(0)}.sidebar-close{display:grid}.sidebar-shade{position:fixed;inset:0;z-index:19;background:#152d2d55}.sidebar-shade.visible{display:block}.main-area{width:100%}.mobile-menu{display:grid}.topbar{height:60px;min-height:60px;padding:0 13px;gap:10px}.crumb{margin-right:auto}.crumb-kicker,.crumb-divider{display:none}.topbar-actions{gap:5px}.search-box{width:min(40vw,230px);height:34px}.refresh-button{width:30px}.workspace{position:relative;overflow:hidden}.list-pane{width:100%;min-width:0;border-right:0}.detail-pane{display:none;position:absolute;inset:0;z-index:3;background:white}.detail-pane.mobile-open{display:block}.detail-view{padding:17px 17px 34px}.detail-subject{font-size:19px}.detail-toolbar{padding-bottom:14px}.detail-back{display:grid!important}.list-toolbar{height:60px;min-height:60px;padding:0 15px}.message-row{padding-left:16px}.detail-date{font-size:8px}}
@media(max-width:500px){.auth-card{padding:27px 24px 24px;border-radius:21px}.auth-art{height:125px}.topbar{padding:0 9px}.crumb strong{font-size:12px}.topbar-actions{gap:2px}.search-box{width:37vw;padding:0 7px;gap:5px}.search-box input{font-size:10px}.search-box kbd{display:none}.list-tools select{max-width:105px}.oauth-choices{grid-template-columns:1fr}.or-divider{grid-column:auto}.dialog-header{padding:20px 19px 0}.dialog-intro{margin:9px 19px 15px}.account-form{padding:0 19px 18px}.oauth-choices{margin:0 19px 15px}.form-grid{grid-template-columns:1fr}.span-two{grid-column:auto}.server-grid{grid-template-columns:1fr .55fr}.server-grid .secure-check{grid-column:1/-1;height:auto}.dialog-footer{align-items:flex-start;flex-direction:column}.dialog-footer .button{align-self:flex-end}.footer-lock{font-size:8px}.managed-accounts{padding:0 19px}.security-note{margin:15px 19px 0}.settings-dialog>.dialog-footer{padding:15px 19px 20px;align-items:center}.settings-dialog>.dialog-footer .button{align-self:auto}.compose-dialog{margin:auto 8px 8px;width:calc(100% - 16px);max-height:90vh}.compose-dialog form{min-height:65vh}.compose-field{padding:0 14px}.compose-body{padding:15px}.detail-view{padding:13px 13px 28px}.sender-meta{gap:8px}.sender-meta .sender-avatar{width:34px;height:34px;flex-basis:34px}.sender-info-main strong{font-size:10px}.detail-date{max-width:80px;text-align:right}.message-row{min-height:84px;padding-top:12px;padding-bottom:11px}.message-preview{max-width:75vw}}

/* Mail provider marks */
.provider-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;overflow:hidden;border:1px solid #e9eef0;border-radius:6px;background:#fff;color:#52636a;font:800 10px/1 Arial,sans-serif;letter-spacing:-.04em}
.provider-icon b{font-size:15px;font-weight:800;background:conic-gradient(#4285f4 0deg 90deg,#34a853 90deg 180deg,#fbbc05 180deg 270deg,#ea4335 270deg);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.provider-ms-grid{width:13px;height:13px;display:grid;grid-template-columns:1fr 1fr;gap:2px}.provider-ms-grid i:nth-child(1){background:#f25022}.provider-ms-grid i:nth-child(2){background:#7fba00}.provider-ms-grid i:nth-child(3){background:#00a4ef}.provider-ms-grid i:nth-child(4){background:#ffb900}
.provider-yahoo{color:#6001d2;font-size:10px}.provider-icloud{color:#2994e8;font-size:15px}.provider-fastmail{color:#0877c9;font-size:13px}.provider-163{color:#dc3b35;font-size:7px;letter-spacing:-.08em}.provider-qq{position:relative;color:#1677e8;font-size:13px}.provider-qq:after{position:absolute;right:2px;bottom:2px;width:4px;height:4px;border-radius:50%;background:#f5c84c;content:""}.provider-zoho{background:linear-gradient(135deg,#fff 40%,#fff5ec);color:#e44838;font-size:13px}.provider-custom{color:#5f938b;font-size:12px}
.managed-account .provider-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:14px}.managed-account .provider-icon b{font-size:22px}.managed-account .provider-ms-grid{width:20px;height:20px;gap:3px}.managed-account .provider-yahoo{font-size:16px}.managed-account .provider-icloud{font-size:23px}.managed-account .provider-fastmail,.managed-account .provider-qq,.managed-account .provider-zoho{font-size:18px}.managed-account .provider-163{font-size:11px}

/* Locally embedded brand SVG marks. */
.provider-icon svg{display:block;width:14px;height:14px;fill:currentColor}.provider-google{color:#ea4335}.provider-qq{color:#30343b}.provider-qq:after{display:none}.provider-zoho{background:#fff;color:#e44838}.managed-account .provider-icon svg{width:23px;height:23px}

/* OAuth appears directly below the selected mailbox provider. */
.account-dialog .oauth-choices{margin:0 0 14px;grid-template-columns:minmax(0,1fr)}.account-dialog .oauth-button{width:100%}.account-dialog .or-divider{grid-column:auto}


/* AI sidebar and model settings */
.ai-launcher{height:35px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #d8ebe6;border-radius:9px;background:#f1faf7;color:#16786d;font-size:10px;font-weight:700;white-space:nowrap}.ai-launcher:hover{background:#e4f4ef}.ai-launcher>span:first-child{font-size:15px}
.ai-chat-panel{position:fixed;z-index:25;top:0;right:0;bottom:0;width:min(405px,calc(100vw - 24px));height:100vh;height:100dvh;display:flex;flex-direction:column;border-left:1px solid #e7eeee;background:#fff;box-shadow:-18px 0 55px rgba(26,48,51,.16)}.ai-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 13px;border-bottom:1px solid #eef1f2}.ai-chat-header .eyebrow{margin:0 0 3px;font-size:8px}.ai-chat-header h2{margin:0;color:#2d4147;font-size:16px}.ai-chat-header small{display:block;max-width:275px;margin-top:4px;overflow:hidden;color:#93a0a5;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.ai-chat-head-actions{display:flex;gap:3px}.ai-privacy-note{margin:12px 14px 8px;padding:9px 10px;border:1px solid #e5f0ed;border-radius:9px;background:#f6faf9;color:#758982;font-size:9px;line-height:1.65}.ai-quick-actions{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 9px}.ai-quick-actions .button{min-height:31px;padding:0 9px;font-size:9px}.ai-quick-actions button:disabled,.ai-context-button:disabled{cursor:not-allowed;opacity:.5}.ai-context-row{min-height:32px;display:flex;align-items:center;gap:6px;padding:0 14px 8px;border-bottom:1px solid #f0f2f3}.ai-context-button,.ai-context-clear{padding:4px 7px;border:1px solid #e4ecea;border-radius:7px;background:#fff;color:#548278;font-size:9px}.ai-context-button:hover,.ai-context-clear:hover{background:#f0f8f5}.ai-context-label{min-width:0;flex:1;overflow:hidden;color:#7c898d;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.ai-chat-messages{min-height:0;flex:1;display:flex;flex-direction:column;gap:11px;overflow:auto;padding:15px 14px 18px;overscroll-behavior:contain}.ai-welcome{margin:auto 8px;color:#9aa6aa;font-size:10px;line-height:1.8;text-align:center}.ai-message{max-width:92%;display:flex;flex-direction:column;gap:6px}.ai-message.user{align-self:flex-end;align-items:flex-end}.ai-message.assistant{align-self:flex-start;align-items:flex-start}.ai-message-label{color:#95a1a5;font-size:8px}.ai-message-bubble{padding:10px 11px;border:1px solid #e9eeee;border-radius:11px;background:#f7f9f9;color:#485a60;font-size:10px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.ai-message.user .ai-message-bubble{border-color:#d9eee8;background:#eef8f5;color:#315c55}.ai-message-actions{display:flex;gap:6px}.ai-message-actions button{min-height:27px;padding:0 8px;border:1px solid #dcebe7;border-radius:7px;background:#fff;color:#287c70;font-size:9px;font-weight:700}.ai-message-actions button:hover{background:#f0faf6}.ai-chat-form{display:flex;align-items:flex-end;gap:8px;padding:11px 13px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e9eeee;background:#fff}.ai-chat-form textarea{min-width:0;min-height:42px;max-height:135px;flex:1;resize:vertical;padding:9px 10px;border:1px solid #e3eaea;border-radius:9px;background:#fbfcfc;color:#42545a;font-size:10px;line-height:1.5}.ai-chat-form textarea::placeholder{color:#a4afb2}.ai-chat-form .button{min-height:37px;padding:0 12px;font-size:10px}.ai-chat-status{align-self:center;color:#92a0a4;font-size:9px}
.ai-settings-dialog{width:min(100% - 24px,590px)}.ai-settings-form{display:flex;flex-direction:column;gap:13px;padding:0 26px 23px}.ai-settings-form .form-field{gap:6px}.ai-settings-form .form-field input,.ai-settings-form .form-field select{height:39px}.ai-settings-divider{height:1px;background:#edf1f1}.ai-daily-toggle{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #e7eeee;border-radius:10px;background:#fafcfc;cursor:pointer}.ai-daily-toggle input{width:15px;height:15px;margin:2px 0 0;accent-color:#168779}.ai-daily-toggle span{display:flex;flex-direction:column;gap:4px}.ai-daily-toggle strong{color:#46595f;font-size:10px}.ai-daily-toggle small{color:#909da1;font-size:9px;line-height:1.6}.ai-daily-options{display:grid;grid-template-columns:1.3fr .7fr;gap:12px}.ai-settings-disclosure{margin:0;padding:10px 11px;border-radius:9px;background:#f5f9f8;color:#788a87;font-size:9px;line-height:1.7}.ai-settings-status{min-height:16px;color:#56887e;font-size:9px}.ai-settings-status.error{color:#af524c}.ai-settings-footer{padding-top:3px!important}.ai-settings-footer>div{display:flex;gap:8px}.ai-settings-footer .button{min-height:35px;font-size:9px}
@media(max-width:800px){.ai-chat-panel{width:min(420px,100vw);border-left:0}.ai-launcher{height:32px;padding:0 8px}.ai-launcher>span:nth-child(2){display:none}}
@media(max-width:500px){.ai-chat-panel{width:100vw}.ai-chat-header{padding-top:calc(15px + env(safe-area-inset-top))}.ai-settings-form{padding:0 19px 20px}.ai-daily-options{grid-template-columns:1fr}.ai-settings-footer{align-items:center!important;flex-direction:row!important}.ai-settings-footer>div{flex-wrap:wrap;justify-content:flex-end}.ai-settings-footer .button{padding:0 9px}}

.ai-error-message .ai-message-bubble{border-color:#f1d9d6;background:#fff7f6;color:#a34c47}
