:root{font-family:'DM Sans',Inter,Segoe UI,system-ui,sans-serif;color-scheme:dark;--bg:#060d19;--side:#091525;--panel:#0b1829;--panel2:#0e1f32;--surface:#142940;--field:#0f2136;--border:#233851;--line:rgba(130,165,201,.12);--text:#eaf4ff;--muted:#88a0b9;--faint:#668098;--accent:#82bdff;--aqua:#57e4cc;--aqua-dark:#0a3a42;--active:rgba(91,180,252,.13);--danger:#ff8d9d;--shadow:0 24px 70px rgba(0,0,0,.28)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden}body{background:var(--bg);color:var(--text);font-size:14px}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--aqua);outline-offset:3px}button svg,a svg{flex-shrink:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}svg use[href*='nebula']{stroke:none}.sr-only{position:absolute;left:-9999px}.ambient{position:fixed;inset:0;pointer-events:none;overflow:hidden}.ambient-orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.19}.orb-a{width:480px;height:480px;background:#225795;top:-360px;right:5%}.orb-b{width:400px;height:400px;background:#087a78;bottom:-360px;left:-220px}
.app{position:relative;height:100vh;min-height:550px;display:flex;flex-direction:column}.app[hidden],.auth-page[hidden],.modal-backdrop[hidden],.compose-window[hidden]{display:none!important}.topbar{height:76px;display:flex;gap:19px;align-items:center;padding:0 29px;border-bottom:1px solid var(--line);background:rgba(7,17,30,.92);flex-shrink:0;z-index:2}.brand{display:flex;align-items:center;gap:11px;min-width:181px}.brand-mark{display:grid;place-items:center;position:relative;width:43px;height:43px;background:linear-gradient(147deg,#1c4b75,#10283f);border-radius:13px;color:#9cdbff;box-shadow:inset 0 0 0 1px #366789,0 8px 24px rgba(51,155,230,.1);transform:rotate(-6deg)}.brand-mark svg{width:28px;height:28px;filter:drop-shadow(0 0 9px #5cc3ff88)}.brand-letters{font-size:14px;font-weight:800;letter-spacing:.18em;line-height:1.25}.brand-sub{display:block;font-size:10px;letter-spacing:.39em;color:var(--accent);font-weight:700;margin-top:3px}.top-separator{height:24px;width:1px;background:var(--border)}.platform-label{font-weight:800;color:#6f89a7;letter-spacing:.16em;font-size:9px;white-space:nowrap}.pulse-dot{display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;background:var(--aqua);box-shadow:0 0 12px #4df1cf;animation:pulse 3s infinite;margin:0 4px}.search-wrap{display:flex;align-items:center;gap:13px;margin-left:auto;background:var(--field);border:1px solid var(--border);height:43px;width:min(570px,40vw);border-radius:13px;padding:0 13px;color:#85a4c1;transition:border-color .2s,box-shadow .2s}.search-wrap:focus-within{border-color:#67bafd;box-shadow:0 0 0 3px #65baff16}.search-wrap input{border:0;outline:0;background:transparent;width:100%;color:var(--text);font-size:13px;min-width:0}.search-wrap input::placeholder{color:#778da4}.search-wrap kbd{border:1px solid #3a5068;border-radius:5px;padding:1px 6px;font-size:11px;color:#748ba3}.top-actions{display:flex;align-items:center;gap:4px;margin-left:8px}.icon-button{border:1px solid transparent;background:transparent;display:inline-grid;place-items:center;border-radius:11px;width:39px;height:39px;transition:background .16s,border-color .16s,transform .2s,color .16s}.icon-button:hover{background:var(--active);border-color:#37638b;color:#a9dcff;transform:translateY(-1px)}.icon-button.small{width:33px;height:33px}.account-chip{display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:var(--field);padding:4px 9px 4px 5px;border-radius:22px;margin-left:7px;max-width:211px;font-size:12px}.account-chip>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chip svg{width:13px;height:13px;color:var(--muted)}.account-avatar{display:grid;place-items:center;flex-shrink:0;border-radius:50%;width:31px;height:31px;background:linear-gradient(135deg,#4ee3da,#4889f9);color:#072638;font-weight:800}.mobile-menu{display:none}
.workspace{display:flex;min-height:0;flex:1}.sidebar{width:257px;flex:0 0 257px;display:flex;flex-direction:column;background:rgba(8,22,38,.95);border-right:1px solid var(--line);z-index:2}.side-top{padding:28px 18px 19px}.compose-main{height:53px;width:100%;display:flex;align-items:center;gap:12px;padding:0 12px;border:1px solid #78dcdf55;border-radius:15px;background:linear-gradient(100deg,#63efd7,#73b5ff);color:#08283f;font-weight:800;box-shadow:0 8px 32px #2fc2c025;transition:transform .22s,box-shadow .22s,filter .22s}.compose-main:hover{transform:translateY(-3px);box-shadow:0 13px 37px #48cbec55;filter:saturate(1.12)}.compose-plus{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#052d3450}.compose-shortcut{font-weight:700;margin-left:auto;opacity:.55}.side-content{padding:5px 15px;overflow:auto;min-height:0}.side-label{font-size:10px;letter-spacing:.18em;color:var(--faint);font-weight:800;margin:13px 11px 10px}.mailbox-box{display:flex;gap:7px;align-items:center;border:1px solid var(--border);background:var(--field);border-radius:11px;padding:3px 5px 3px 9px;margin:0 3px 19px}.mailbox-box select{width:100%;min-width:0;background:transparent;border:0;color:var(--text);font-size:12px;outline:0;height:35px;cursor:pointer}.mailbox-box option,.setting-row select{background:#1c3047;color:white}.side-nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;height:43px;text-align:left;border:1px solid transparent;border-radius:11px;padding:0 14px;background:none;color:#a0b7cf;position:relative;transition:background .2s,color .2s,transform .2s}.nav-item:hover{background:#1c3551aa;color:white;transform:translateX(2px)}.nav-item.active{background:var(--active);border-color:#5b9acf27;color:var(--accent);font-weight:800}.nav-item.active:before{content:"";width:3px;height:23px;background:linear-gradient(#5debd8,#61aaf3);box-shadow:0 0 13px #4ab8ef77;position:absolute;left:0;border-radius:4px}.nav-item svg{width:18px;height:18px}.nav-item .count{font-size:10px;color:var(--aqua);margin-left:auto}.side-divider{height:1px;background:var(--line);margin:26px 10px 18px}.side-link{padding:12px 14px;display:flex;align-items:center;gap:12px;font-size:12px;color:#829ab5;border-radius:10px}.side-link:hover{background:#122942}.side-link svg{width:16px;height:16px}.side-link .trailing{width:13px;height:13px;margin-left:auto}.side-bottom{margin-top:auto;padding:19px 23px 23px;background:linear-gradient(180deg,transparent,#091523)}.storage-header{display:flex;justify-content:space-between;font-size:11px;font-weight:700;color:var(--muted)}.storage-bar{height:4px;background:#263f57;border-radius:99px;margin:11px 0 24px;overflow:hidden}.storage-bar i{display:block;background:linear-gradient(90deg,#55e9d2,#75b2fe);height:100%;width:0;transition:width .6s}.connection{font-size:11px;color:#a3b9cd;display:block}.connection-dot{display:inline-block;width:7px;height:7px;background:#586f82;border-radius:50%;margin-right:4px}.connection.ready .connection-dot{background:#50e4c9;box-shadow:0 0 9px #41d6c0}.connection.warning .connection-dot{background:#ffb76e}.side-note{display:block;margin-top:13px;color:#5d7286;font-size:10px;letter-spacing:.04em}
.mail-main{display:flex;min-width:0;flex:1;background:rgba(6,14,27,.64)}.mail-list-panel{width:min(485px,43%);display:flex;flex-direction:column;border-right:1px solid var(--line);min-width:310px}.panel-header{min-height:117px;padding:25px 27px 19px;display:flex;justify-content:space-between;align-items:flex-end}.eyebrow{font-weight:800;font-size:10px;letter-spacing:.17em;color:#66b8e7;margin:0 0 12px}.panel-header h1{margin:0;font-size:26px;font-weight:800;letter-spacing:-.045em}.folder-count{font-size:13px;font-weight:600;color:var(--muted)}.header-tools{display:flex}.list-controls{border-top:1px solid var(--line);border-bottom:1px solid var(--line);height:47px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;color:var(--muted);font-size:11px}.message-list{flex:1;overflow:auto;min-height:0;scrollbar-color:#3b5b78 transparent;scrollbar-width:thin}.message-item{position:relative;text-align:left;padding:19px 21px 18px 28px;border-bottom:1px solid var(--line);cursor:pointer;transition:background .2s;display:block}.message-item:hover{background:#12294299}.message-item.selected{background:#16324ccc}.message-item.unread .message-title,.message-item.unread .message-sender{color:var(--text);font-weight:800}.message-item.unread:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#56e6ce,#6faefd)}.message-top,.message-heading{display:flex;align-items:center;gap:10px}.message-icon{width:38px;height:38px;background:linear-gradient(130deg,#1c4e69,#274367);border:1px solid #456887;display:grid;place-items:center;border-radius:12px;color:#9dcdf2;font-size:13px;font-weight:800;flex-shrink:0}.message-sender{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-time{font-size:10px;margin-left:auto;color:var(--faint);white-space:nowrap}.message-title{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:14px 0 7px}.message-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7d98b0;font-size:12px;margin:0 0 0 0}.message-actions{position:absolute;right:18px;bottom:17px;display:none;gap:2px;background:#122942;border-radius:8px;box-shadow:0 0 0 8px #122942}.message-item:hover .message-actions,.message-item:focus-within .message-actions{display:flex}.message-actions .icon-button{width:27px;height:27px}.message-actions svg{width:15px;height:15px}.mini-star{margin-left:5px;color:#83a0bb;cursor:pointer;background:none;border:0;padding:1px}.mini-star.is-star{color:#eec578}.mini-star svg{width:16px;height:16px}.pagination{height:51px;flex-shrink:0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 21px;color:var(--faint);font-size:11px}.mini-button{border:1px solid var(--border);padding:7px 12px;border-radius:9px;background:var(--panel2);color:var(--muted);display:flex;align-items:center;gap:5px;font-size:11px;transition:background .2s}.mini-button:hover{background:var(--surface);color:var(--text)}.mini-button svg{width:13px;height:13px}.reader{min-width:0;flex:1;overflow:auto}.reader-empty{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;max-width:450px;margin:auto;padding:40px 20px}.reader-graphic{height:220px;width:220px;display:grid;place-items:center;position:relative;margin-bottom:22px}.reader-graphic svg{width:100px;height:100px;color:#8bc7fa;filter:drop-shadow(0 0 36px #4baeff99);animation:levitate 5s infinite ease-in-out}.reader-ring{position:absolute;inset:0;border-radius:50%;border:1px solid #487cab30;box-shadow:inset 0 0 0 25px #102f4433,0 0 90px #4492eb13;animation:rotate 30s linear infinite}.reader-ring:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--aqua);position:absolute;top:19px;left:30px;box-shadow:0 0 18px var(--aqua)}.reader-label{font-size:10px;font-weight:800;letter-spacing:.2em;color:var(--aqua)}.reader-empty h2{font-size:28px;letter-spacing:-.05em;margin:15px 0 8px}.reader-empty p{max-width:325px;line-height:1.8;color:var(--muted);margin:0 0 27px}.reader-empty>span{font-size:10px;letter-spacing:.07em;color:var(--faint)}.reader-message{padding:38px clamp(26px,5vw,66px)}.reader-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.reader-top .icon-button{border:1px solid var(--border);width:36px;height:36px}.reader-top .icon-button svg{width:17px;height:17px}.reader-subject{font-size:30px;line-height:1.25;letter-spacing:-.04em;margin:34px 0 24px;overflow-wrap:anywhere}.reader-author{display:flex;gap:14px;padding-bottom:25px;border-bottom:1px solid var(--line);align-items:center}.reader-author .message-icon{width:46px;height:46px}.reader-author b{font-size:13px}.reader-author small{display:block;color:var(--muted);margin-top:3px}.reader-author time{margin-left:auto;font-size:11px;color:var(--muted)}.reader-text{font-size:14px;line-height:1.85;color:#c3d5e6;white-space:pre-wrap;overflow-wrap:anywhere;padding:29px 0;max-width:820px}.reader-footer{padding-top:20px;border-top:1px solid var(--line)}.reader-footer button{display:inline-flex;gap:7px;align-items:center}.empty-list{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:70px 30px;color:var(--muted)}.empty-list svg{width:44px;height:44px;color:#487fa4}.empty-list h3{font-size:16px;color:var(--text);margin:15px 0 6px}.empty-list p{max-width:270px;line-height:1.7}
/* Login */
.auth-page{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:45px 24px;background:radial-gradient(ellipse 70% 60% at 85% 20%,#10305d66,transparent),var(--bg)}.auth-panel{max-width:480px;width:100%;border-radius:28px;padding:38px 39px 34px;background:linear-gradient(160deg,#102641,#0a1729 85%);border:1px solid #40618960;box-shadow:0 40px 130px #0008;position:relative;overflow:hidden}.auth-panel:after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;background:#3f8eec24;filter:blur(60px);top:-80px;right:-100px;pointer-events:none}.auth-brand{display:flex;align-items:center;gap:15px;font-size:15px;font-weight:800;letter-spacing:.18em}.brand-mark.large{width:47px;height:47px}.auth-brand small{display:block;color:var(--accent);letter-spacing:.27em;font-size:9px;margin-top:3px}.auth-symbol{position:relative;margin:38px 0 34px;width:92px;height:92px;background:linear-gradient(135deg,#174966,#193c6a);display:grid;place-items:center;border-radius:26px;border:1px solid #5c9ddb6f;transform:rotate(-8deg);box-shadow:0 0 66px #3d93f54c}.auth-symbol svg{width:46px;height:46px;color:#8cdafa}.auth-symbol-orbit{position:absolute;inset:-18px;border:1px solid #4787b333;border-radius:34px;animation:rotate 24s linear infinite}.auth-panel h1{font-size:clamp(30px,4vw,39px);line-height:1.1;letter-spacing:-.055em;margin:0}.auth-panel h1 em{font-style:normal;background:linear-gradient(90deg,#66f4d0,#86b8ff);background-clip:text;color:transparent}.auth-intro{color:#a5bdd5;line-height:1.7;margin:17px 0 24px}.auth-panel form{display:flex;flex-direction:column;gap:10px}.auth-panel label,.modal label{font-weight:700;font-size:12px;color:#bfd1e4}.auth-panel input,.modal input,.compose-window input,.compose-window textarea{background:#0b1d30;border:1px solid #355574;border-radius:12px;height:44px;color:#eaf4ff;padding:0 14px;width:100%}.auth-panel input::placeholder,.compose-window input::placeholder,.compose-window textarea::placeholder{color:#65829d}.password-row{display:flex;align-items:center;position:relative}.password-row input{padding-right:52px}.password-row button{position:absolute;right:4px;width:39px;height:36px}.login-submit,.primary-action,.send-action{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;background:linear-gradient(100deg,#56e7d5,#74b6ff);color:#082638;border:0;border-radius:12px;height:47px;margin-top:15px;font-weight:800;box-shadow:0 10px 30px #3a9bee2b;transition:transform .2s,box-shadow .2s}.login-submit:hover,.primary-action:hover,.send-action:hover{transform:translateY(-2px);box-shadow:0 12px 33px #4fd2ee55}.login-submit svg{width:16px;height:16px}.login-error{min-height:1.2em;margin:4px 0 0;color:#ffa6ad;font-size:12px}.auth-foot{margin-top:22px;border-top:1px solid #35557455;padding-top:18px;color:#839db6;font-size:11px;line-height:1.7}.auth-back{position:absolute;left:30px;bottom:22px;color:var(--muted);font-size:12px}.auth-back svg{width:13px;height:13px;vertical-align:middle}
/* Modals, composer and toast */
.modal-backdrop{position:fixed;inset:0;z-index:10;background:#010814b8;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(460px,100%);border:1px solid #43678c;background:linear-gradient(145deg,#132c46,#0c1b2d);box-shadow:var(--shadow);border-radius:23px;padding:26px;display:flex;flex-direction:column;gap:14px}.modal-top{display:flex;align-items:center;justify-content:space-between}.modal-top h2{margin:0;font-size:21px}.modal>p{line-height:1.65;color:var(--muted);margin:2px 0}.modal input{margin:0}.modal .primary-action{margin-top:8px}.field-hint{font-size:11px;color:var(--faint)!important}.segmented{display:flex;border-radius:12px;border:1px solid var(--border);padding:4px;gap:5px}.segmented label{flex:1;text-align:center;padding:10px 5px;border-radius:8px;cursor:pointer;font-size:12px;background:#10263c}.segmented input{width:auto;height:auto;accent-color:#64e9d6}.setting-row{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);gap:15px}.setting-row select{padding:10px;border-radius:9px;border:1px solid var(--border)}.setting-row b{color:var(--accent)}.danger-button{border:1px solid #af495c;color:#ff9eb0;background:#7c293122;border-radius:9px;padding:11px}.compose-window{position:fixed;z-index:9;right:34px;bottom:0;width:min(525px,calc(100vw - 28px));height:min(650px,85vh);display:flex;flex-direction:column;background:#0e2034;border:1px solid #41719b;border-radius:18px 18px 0 0;box-shadow:0 17px 100px #000c;overflow:hidden;animation:slideUp .25s ease}.compose-head{height:55px;flex-shrink:0;background:#1a3553;display:flex;align-items:center;justify-content:space-between;padding:0 17px 0 23px;font-weight:800;font-size:11px;letter-spacing:.12em;color:#b4d3ef}.compose-head>div{display:flex}.compose-window form{display:flex;flex-direction:column;flex:1;min-height:0}.compose-field{min-height:49px;display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:0 17px}.compose-field label{color:#7d9bb6;font-size:12px;flex:0 0 45px}.compose-field span{color:var(--text);font-size:12px}.compose-field input{height:45px;background:transparent;border:0;border-radius:0;padding:0;outline:0}.compose-window textarea{resize:none;height:auto;flex:1;min-height:100px;background:transparent;border:0;padding:22px;font-size:13px;line-height:1.7;outline:0}.compose-footer{border-top:1px solid var(--line);display:flex;align-items:center;padding:12px 16px;gap:12px}.compose-footer .send-action{width:130px;margin:0}.compose-footer .send-action svg{width:16px;height:16px}.compose-footer span{margin-left:auto;color:var(--faint);font-size:10px}.compose-window.minimized{height:55px}.compose-window.minimized form{display:none}#toast{position:fixed;bottom:23px;left:50%;z-index:25;transform:translate(-50%,130px);opacity:0;pointer-events:none;padding:13px 19px;border-radius:13px;background:#1d3852;border:1px solid #457295;box-shadow:0 17px 55px #0008;font-size:12px;transition:transform .25s,opacity .25s;color:white}#toast.show{transform:translate(-50%,0);opacity:1}
body[data-theme="light"]{color-scheme:light;--bg:#e8eef6;--side:#f4f8ff;--panel:#f8fbff;--panel2:#f2f6fc;--surface:#dcecff;--field:#e6effb;--border:#bed0e2;--line:rgba(34,75,117,.12);--text:#142b47;--muted:#597089;--faint:#73879f;--accent:#216fbd;--active:#d5e8fc;--shadow:0 24px 70px rgba(24,58,88,.17);background:#eef4fa}body[data-theme="light"] .topbar,body[data-theme="light"] .sidebar{background:#f5f9ff}body[data-theme="light"] .mail-main{background:#eef5ff}body[data-theme="light"] .message-item.selected{background:#d8eafe}body[data-theme="light"] .message-item:hover{background:#e1edfb}body[data-theme="light"] .reader-text{color:#385472}body[data-theme="light"] .compose-window,body[data-theme="light"] .modal{background:#e8f2fc}body[data-theme="light"] .auth-panel{background:linear-gradient(155deg,#f6fbff,#dceafa)}body[data-theme="light"] input,body[data-theme="light"] textarea{color:#173550;background:#e2eefc}body[data-theme="light"] .message-actions{background:#d9ebfc;box-shadow:0 0 0 6px #d9ebfc}
@keyframes pulse{50%{opacity:.42;box-shadow:0 0 1px #4df1cf}}@keyframes levitate{50%{transform:translateY(-11px) rotate(6deg)}}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes slideUp{from{transform:translateY(22px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:1250px){.platform-label,.top-separator{display:none}.search-wrap{width:min(470px,42vw)}.mail-list-panel{min-width:330px;width:43%}.sidebar{width:222px;flex-basis:222px}}
@media(max-width:980px){.topbar{padding:0 17px}.account-chip>span:nth-child(2){display:none}.search-wrap{width:auto;flex:1}.sidebar{position:fixed;top:76px;bottom:0;left:0;transform:translateX(-105%);transition:transform .25s;box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-grid}.mail-list-panel{width:44%;min-width:310px}}
@media(max-width:700px){.topbar{height:65px;gap:10px;padding:0 12px}.brand{min-width:auto}.brand-mark{width:34px;height:34px}.brand-letters{font-size:11px;letter-spacing:.08em}.brand-sub{font-size:8px}.top-actions{gap:0;margin:0}.top-actions .icon-button:nth-child(1),.top-actions .icon-button:nth-child(3){display:none}.search-wrap{height:38px;min-width:0;width:auto}.search-wrap kbd{display:none}.search-wrap input{font-size:12px}.sidebar{top:65px}.mail-list-panel{width:100%;min-width:0;border:0}.reader{position:fixed;z-index:4;inset:65px 0 0;background:var(--bg);transform:translateX(104%);transition:transform .26s}.reader.open{transform:translateX(0)}.reader-message{padding:20px}.reader-subject{font-size:23px}.panel-header{padding:18px 19px}.panel-header h1{font-size:24px}.list-controls{padding:0 19px}.message-item{padding:15px 19px}.message-actions{display:flex;right:18px;bottom:12px}.message-preview{padding-right:57px}.compose-window{right:0;width:100vw;max-height:calc(100vh - 65px)}.auth-panel{padding:30px 24px}.auth-back{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Self-contained star emblem in empty reader; visible even if SVG external resources are blocked. */
.reader-graphic::after{content:"";position:absolute;width:110px;height:110px;background:linear-gradient(145deg,#b8e7ff 13%,#69baff 48%,#4fe6cd 92%);clip-path:polygon(50% 0%,64% 37%,100% 50%,64% 63%,50% 100%,36% 63%,0% 50%,36% 37%);filter:drop-shadow(0 0 22px #76c7ff);animation:levitate 5s ease-in-out infinite}.reader-graphic>svg{display:none}
@media(min-width:981px){.mail-list-panel{width:clamp(380px,35%,530px)}}
@media(max-width:700px){.message-actions{background:transparent;box-shadow:none}.message-item{padding-right:64px}}
@media(max-width:700px){.brand{min-width:35px}.brand-letters{display:none}.search-wrap{min-width:90px}}

/* Zellns Mail 0.2 — auth options & account popover; intentional continuation of original Nebula design. */
.account-menu-wrap{position:relative;flex-shrink:0}.account-menu[hidden]{display:none!important}.account-menu{position:absolute;right:0;top:calc(100% + 12px);width:min(326px,calc(100vw - 26px));z-index:50;background:linear-gradient(155deg,#152d47,#0a192c);border:1px solid #527693;border-radius:17px;box-shadow:0 24px 65px #000b;padding:9px;animation:mailMenuIn .19s ease both}
.account-menu:before{content:"";position:absolute;right:20px;top:-6px;width:11px;height:11px;transform:rotate(45deg);background:#152d47;border-left:1px solid #527693;border-top:1px solid #527693}.account-menu-header{display:grid;grid-template-columns:10px 1fr;align-items:center;column-gap:10px;padding:14px 13px 16px;margin-bottom:6px;border-bottom:1px solid #6ea4d526}.account-menu-header strong{font-weight:780;font-size:14px}.account-menu-header small{grid-column:2;color:#a0b8d0;font-size:11px;overflow:hidden;text-overflow:ellipsis}.account-menu-dot{width:8px;height:8px;background:#50e4c9;box-shadow:0 0 13px #50e4c982;border-radius:50%;grid-row:span 2}.account-menu-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;border:1px solid transparent;border-radius:10px;padding:12px;background:transparent;color:#e3f1ff;font-size:12px;transition:background .16s,border-color .16s,transform .16s}.account-menu-item svg{width:18px;height:18px;color:#8cbbef}.account-menu-item:hover,.account-menu-item:focus-visible{background:#294c70;border-color:#6294bd66;transform:translateX(2px);color:white}.account-menu-item.danger{color:#ffbcc8}.account-menu-item.danger svg{color:#ff9cad}
.zellns-login{display:flex;align-items:center;gap:13px;margin-top:27px;border-radius:14px;border:1px solid #87efdf92;background:linear-gradient(115deg,#54e4d6,#83baff);color:#08263d;padding:14px;box-shadow:0 11px 40px #39b6ce30;transition:transform .2s,box-shadow .2s,filter .2s;position:relative;overflow:hidden}.zellns-login:before{content:"";position:absolute;inset:-30% 100% -30% -30%;background:linear-gradient(105deg,transparent,#fff5,transparent);transform:skewX(-22deg);transition:inset .45s}.zellns-login:hover{color:#06243c;transform:translateY(-3px);box-shadow:0 16px 45px #49b7ea55}.zellns-login:hover:before{inset:-30% -30% -30% 100%}.zel-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#0c36506b;flex-shrink:0}.zel-mark svg{height:29px;width:29px;stroke:none}.zel-copy{display:flex;flex:1;flex-direction:column;gap:4px}.zel-copy strong{font-size:13px;line-height:1.25}.zel-copy small{font-size:10px;opacity:.76}.zel-arrow{width:18px;height:18px}.remember-hint{color:#9ab6ce;line-height:1.65;font-size:11px;margin:14px 1px 0}.auth-divider{display:flex;align-items:center;gap:16px;color:#7896b2;font-size:11px;margin:23px 0 14px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#5e8db64b}.password-login{border:1px solid #3a5879;border-radius:12px;background:#0b1c2f9c}.password-login>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px;color:#d5e8fa;font-size:12px;font-weight:760}.password-login>summary::-webkit-details-marker{display:none}.password-login>summary svg{width:16px;height:16px;transition:transform .2s}.password-login[open]>summary svg{transform:rotate(180deg)}.password-login>form{padding:2px 17px 18px}.password-lead{color:#95b4cf;font-size:11px;line-height:1.6;margin:1px 0 8px}.auth-foot a{color:#91e8e7;font-weight:760}.auth-panel{max-width:510px}.auth-panel .password-row button{border:1px solid #3f6387;background:#173652;color:#caedff}.auth-panel .password-row button:hover{background:#244c6a}.auth-panel .password-row button svg{width:17px;height:17px}
body[data-theme="light"] .account-menu{background:#eef7ff;color:#163653}body[data-theme="light"] .account-menu-item{color:#173653}body[data-theme="light"] .account-menu-item:hover{background:#cfe5f9}body[data-theme="light"] .password-login{background:#ecf6ff;border-color:#93acc7}body[data-theme="light"] .password-login>summary{color:#1a3b5a}body[data-theme="light"] .password-lead,body[data-theme="light"] .remember-hint{color:#496882}
@keyframes mailMenuIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:550px){.account-menu{right:-8px}.auth-panel{padding:30px 23px}.zellns-login{gap:10px}.zel-mark{width:38px;height:38px}.zel-copy strong{font-size:12px}}@media(prefers-reduced-motion:reduce){.account-menu{animation:none}.account-menu-item,.zellns-login,.zellns-login:before{transition:none}}
/* Prevent focus scrolling horizontally inside the login card due to clipped glow decoration. */
.auth-panel{overflow:clip}.auth-panel:after{right:0;top:0;width:140px;height:140px;filter:blur(36px)}

/* v0.3: small role and quota affordances, no layout redesign. */
.mailbox-quota-note{margin:6px 4px 12px;font-size:11px;line-height:1.5;color:var(--muted);letter-spacing:.005em}
.role-chip{display:inline-block;vertical-align:middle;margin-left:5px;padding:3px 7px;border:1px solid #527ea288;border-radius:20px;background:#8bbbeb12;color:#9ec6e7;font-size:9px;font-weight:750;letter-spacing:.02em}
.role-chip.admin{border-color:#67e9d792;color:#71f0d8;background:#3fbbad22}
.quota-modal-hint{padding:10px 12px;background:#2e547333;border:1px solid #4c769950;border-radius:10px;color:var(--muted)!important}
.outbound-hint{font-size:11px;line-height:1.4;color:#9bb8ce;margin:0;padding:8px 17px;border-top:1px solid #3b5b7940;background:#1e385422}
body[data-theme=light] .role-chip{color:#375e83}body[data-theme=light] .role-chip.admin{color:#14685a}body[data-theme=light] .outbound-hint{color:#3b5971}
@media(max-width:700px){.mailbox-quota-note{font-size:10px}.outbound-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.role-chip,.mailbox-quota-note{transition:none}}

/* Zellns Nebula 0.4 — three composer modes and crisp central login */
.auth-page{background:radial-gradient(900px 550px at 50% 26%,#24487542,transparent 75%),linear-gradient(180deg,#09182a,#050d19);padding:42px 22px}
.auth-panel{max-width:510px;border-radius:24px;box-shadow:0 28px 100px #0008,0 0 0 1px #8bbdff08}
.auth-back{left:50%;transform:translateX(-50%);bottom:16px;white-space:nowrap}
.compose-mode-control{width:32px;height:32px;background:#264766;border:1px solid #537ca155;color:#d2ecff;border-radius:9px;font-size:17px;letter-spacing:0;margin-right:5px;display:grid;place-items:center}
.compose-mode-control:hover{background:#3c658c}
.compose-window[data-mode="floating"]{border-radius:18px;bottom:auto;right:auto;width:min(560px,calc(100vw - 20px));height:min(650px,calc(100vh - 20px));min-width:340px;min-height:250px;resize:both;animation:none;box-shadow:0 22px 105px #000d;max-width:calc(100vw - 12px);max-height:calc(100vh - 12px)}
.compose-window[data-mode="floating"] .compose-head{cursor:grab;touch-action:none;user-select:none}
.compose-window[data-mode="floating"] .compose-head:active{cursor:grabbing}
.compose-window[data-mode="fullscreen"]{inset:0;width:100vw;height:100dvh;max-height:100dvh;border-radius:0;animation:none;z-index:20}
.compose-window[data-mode="fullscreen"] textarea{font-size:15px;line-height:1.85;padding:26px max(20px,calc((100vw - 880px)/2))}
.compose-window[data-mode="fullscreen"] .compose-field{padding:0 max(17px,calc((100vw - 880px)/2))}
.compose-window[data-mode="docked"]{max-height:calc(100dvh - 20px)}
.compose-window.minimized{height:55px!important;min-height:55px!important;resize:none!important}
.compose-window:not(.minimized) .compose-head{height:56px}
body[data-theme="light"] .compose-mode-control{background:#d7e9fc;color:#23476b;border-color:#b4cee9}
@media(max-width:700px){.compose-window[data-mode="floating"]{min-width:0;min-height:220px;resize:none}.compose-window[data-mode="docked"]{right:0;bottom:0;width:100vw;height:min(610px,calc(100dvh - 65px));border-radius:18px 18px 0 0}.compose-window[data-mode="fullscreen"]{height:100dvh;min-height:0}.auth-panel{max-width:500px}}
@media(prefers-reduced-motion:reduce){.compose-window{animation:none!important}}

.remember-auto{display:flex;gap:10px;align-items:flex-start;margin:10px 0 0;font-size:12px;color:#c6ddf0!important;line-height:1.5;cursor:pointer}.remember-auto input{width:17px;height:17px;flex:0 0 17px;accent-color:#5ce4d2}.remember-hint{font-size:11px;color:#8ba9c1;line-height:1.6;margin:7px 0 15px}.setting-row input[type=checkbox]{width:18px;height:18px;accent-color:#64e3d0}
