:root{--bg:#03040f;--panel:#0a0d22;--line:#242a49;--text:#f7f7fb;--muted:#a8acc1;--blue:#008cff;--violet:#6426ff;--green:#11d886;--danger:#ff5f7d}*{box-sizing:border-box}body{margin:0;color:var(--text);font-family:Inter,Arial,sans-serif;background:radial-gradient(circle at 80% 10%,rgba(76,20,190,.18),transparent 30%),linear-gradient(180deg,#040510,#02030c);min-height:100vh}.portal-body{overflow-x:hidden}.portal-glow{position:fixed;z-index:-1;border-radius:50%;filter:blur(110px);opacity:.2}.portal-glow.one{width:420px;height:420px;background:#0b64ff;right:-220px;top:120px}.portal-glow.two{width:350px;height:350px;background:#8c13ff;left:-220px;bottom:0}.auth-shell{width:min(100% - 30px,760px);margin:0 auto;padding:54px 0}.portal-logo{display:block;width:245px;max-width:70vw;margin:0 auto 28px}.auth-card{width:min(100%,490px);margin:auto;padding:34px;border:1px solid rgba(99,60,255,.55);border-radius:20px;background:linear-gradient(145deg,rgba(13,17,43,.97),rgba(5,7,22,.96));box-shadow:0 20px 80px rgba(0,0,0,.4),0 0 35px rgba(83,28,220,.13)}.auth-card.wide{width:100%}.kicker{color:#9a7aff;font-weight:800;font-size:11px;letter-spacing:.15em;margin:0 0 12px}.auth-card h1,.welcome h1{font-family:Sora,Inter,sans-serif;margin:0;font-size:32px}.intro{color:var(--muted);line-height:1.6;margin:10px 0 25px}.auth-card label{display:block;color:#d9dbea;font-size:12px;font-weight:600;margin:14px 0}.auth-card input{display:block;width:100%;height:50px;margin-top:7px;border:1px solid var(--line);border-radius:10px;background:#060819;color:white;padding:0 14px;font:inherit;outline:0}.auth-card input:focus{border-color:#7040ff;box-shadow:0 0 0 3px rgba(112,64,255,.13)}label small{display:block;color:#858ba4;margin-top:6px;font-weight:400}.primary{width:100%;height:52px;margin-top:13px;border:0;border-radius:10px;color:white;font-weight:800;background:linear-gradient(110deg,#008ff6,#2844ff 46%,#8d21f6);cursor:pointer}.switch{text-align:center;color:var(--muted);font-size:13px;margin:22px 0 0}.auth-card a,.portal-header a{color:#9e8bff;text-decoration:none}.form-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:10px}.form-row .remember{display:flex;align-items:center;margin:0;color:var(--muted)}.remember input{width:16px;height:16px;margin:0 7px 0 0}.alert,.toast{padding:12px 14px;border-radius:9px;font-size:13px;line-height:1.45}.alert.error,.toast.error{border:1px solid rgba(255,95,125,.35);background:rgba(255,95,125,.1);color:#ff9caf}.alert.success,.toast.success{border:1px solid rgba(17,216,134,.3);background:rgba(17,216,134,.09);color:#62efb1}.alert.warning{border:1px solid rgba(255,196,77,.3);background:rgba(255,196,77,.08);color:#ffd278}.toast{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:20;max-width:min(90vw,580px)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-grid h2{grid-column:1/-1;font-size:14px;color:#a99aff;border-bottom:1px solid #202642;padding-bottom:9px;margin:23px 0 0}.form-grid .full{grid-column:1/-1}.portal-header{width:min(1180px,calc(100% - 42px));height:105px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(36,42,73,.65)}.portal-header img{width:220px}.portal-header nav{display:flex;align-items:center;gap:22px;color:var(--muted);font-size:13px}.dashboard-shell{width:min(1180px,calc(100% - 42px));margin:0 auto;padding:50px 0 80px}.welcome{margin-bottom:30px}.welcome h1{font-size:42px}.welcome>p:not(.kicker){color:var(--muted);font-size:16px}.dashboard-grid{display:grid;grid-template-columns:1.65fr .7fr .7fr;gap:16px}.integration-card,.info-card{border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#0d122d,#07091c);padding:23px}.integration-card{display:grid;grid-template-columns:64px 1fr;gap:18px;position:relative;overflow:hidden}.integration-card:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:#5b1cff;filter:blur(90px);opacity:.14;right:-100px;top:-100px}.card-icon{width:62px;height:62px;border-radius:15px;display:grid;place-items:center;font-size:28px;background:linear-gradient(135deg,rgba(0,143,246,.18),rgba(141,33,246,.24));color:#8d76ff}.integration-card h2{margin:10px 0 8px;font-size:25px}.integration-card p,.info-card p{color:var(--muted);line-height:1.55;font-size:13px}.integration-card button{grid-column:1/-1;height:46px;border:1px solid #343b62;border-radius:9px;background:#0a0d22;color:#777d96}.status{display:inline-block;font-size:9px;font-weight:800;letter-spacing:.12em;padding:6px 9px;border-radius:999px}.status.soon{background:rgba(113,54,255,.14);border:1px solid rgba(113,54,255,.4);color:#a98cff}.info-card>span{font-size:10px;color:#8f95ab;letter-spacing:.12em}.info-card h3{font-size:15px;word-break:break-word}.module-section{margin-top:30px}.module-section h2{font-size:18px}.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.module-grid div{min-height:130px;padding:20px;border:1px solid #202743;border-radius:13px;background:#080b1d;font-size:25px}.module-grid b,.module-grid small{display:block}.module-grid b{font-size:14px;margin-top:20px}.module-grid small{font-size:10px;color:#777d95;margin-top:5px}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr 1fr}.integration-card{grid-column:1/-1}.module-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.auth-shell{padding:28px 0}.auth-card{padding:25px 18px}.auth-card h1{font-size:26px}.form-grid{grid-template-columns:1fr}.form-grid h2,.form-grid .full{grid-column:1}.portal-header{height:auto;padding:22px 0;align-items:flex-start}.portal-header img{width:160px}.portal-header nav{flex-wrap:wrap;justify-content:flex-end;gap:10px 15px}.portal-header nav span{width:100%;text-align:right}.dashboard-shell{padding-top:35px}.welcome h1{font-size:32px}.dashboard-grid{grid-template-columns:1fr}.integration-card{grid-column:auto;grid-template-columns:50px 1fr;padding:18px}.card-icon{width:50px;height:50px}.module-grid{grid-template-columns:1fr 1fr}.form-row{align-items:flex-start;gap:10px}}
.platform-modules{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:16px;margin-bottom:28px}.platform-module{display:block;color:var(--text);text-decoration:none;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#0d122d,#07091c);padding:22px;transition:.2s transform,.2s border-color}.platform-module:hover{transform:translateY(-2px);border-color:#5d47c9}.platform-module.primary-module{display:grid;grid-template-columns:64px 1fr;gap:18px}.platform-module.primary-module strong{grid-column:1/-1;color:#9e8bff;font-size:13px}.platform-module h2,.platform-module h3{margin:10px 0 7px}.platform-module p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.platform-module>div:first-child:not(.card-icon){font-size:28px}.account-grid{grid-template-columns:repeat(3,1fr)}.platform-single{grid-template-columns:1.5fr .75fr .75fr}.module-placeholder{max-width:560px}@media(max-width:900px){.platform-modules{grid-template-columns:1fr 1fr}.platform-module.primary-module{grid-column:1/-1}.platform-single{grid-template-columns:1fr 1fr}.platform-single .integration-card{grid-column:1/-1}.account-grid{grid-template-columns:1fr 1fr}.account-grid article:last-child{grid-column:1/-1}}@media(max-width:600px){.platform-modules,.platform-single,.account-grid{grid-template-columns:1fr}.platform-module.primary-module,.platform-single .integration-card,.account-grid article:last-child{grid-column:auto}}
/* NUXSIT Platform 1.1 Alpha */
.menu-toggle{display:none;border:1px solid var(--line);background:#090c20;color:#fff;border-radius:10px;width:42px;height:42px;font-size:20px}.portal-nav a.active{color:#fff}.portal-nav a.active:after{content:"";display:block;height:2px;margin-top:6px;border-radius:2px;background:linear-gradient(90deg,var(--blue),var(--violet))}.nav-user{padding-left:12px;border-left:1px solid var(--line)}.logout-link{padding:9px 12px;border:1px solid var(--line);border-radius:9px}.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.system-pill{white-space:nowrap;padding:10px 14px;border:1px solid rgba(17,216,134,.25);background:rgba(17,216,134,.06);border-radius:999px;color:#7eeebe;font-size:12px}.system-pill span{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green);margin-right:8px}.dashboard-alert{margin:-10px 0 25px}.hero-module{position:relative;display:grid;grid-template-columns:80px 1fr auto;align-items:center;gap:24px;padding:30px;border:1px solid rgba(92,69,207,.65);border-radius:20px;background:radial-gradient(circle at 85% 0,rgba(98,38,255,.23),transparent 36%),linear-gradient(145deg,#101633,#080a1d);overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.24)}.hero-module-icon{width:78px;height:78px;display:grid;place-items:center;border-radius:20px;font-size:34px;background:linear-gradient(135deg,rgba(0,143,246,.2),rgba(141,33,246,.3));border:1px solid rgba(132,99,255,.35)}.hero-module h2{font:600 28px Sora,Inter,sans-serif;margin:11px 0 8px}.hero-module p{max-width:690px;margin:0;color:var(--muted);font-size:14px;line-height:1.6}.feature-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.feature-chips span{font-size:10px;color:#c6c1e6;padding:7px 9px;border:1px solid #2c3354;border-radius:999px;background:#090c21}.module-button{display:flex;align-items:center;gap:20px;text-decoration:none;color:white;font-weight:700;padding:15px 18px;border-radius:11px;background:linear-gradient(110deg,#008ff6,#3841ff 50%,#8d21f6);box-shadow:0 10px 30px rgba(68,39,255,.22)}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:38px 0 16px}.section-heading h2{margin:0;font:600 22px Sora,Inter,sans-serif}.section-heading>span{color:var(--muted);font-size:12px}.compact-modules{grid-template-columns:repeat(3,1fr)}.compact-modules .platform-module{min-height:220px}.module-icon{font-size:30px;margin-bottom:14px}.muted-status{color:#858ba4;border:1px solid #29304f;background:#090c20}.platform-module strong{display:block;margin-top:22px;color:#9e8bff;font-size:12px}.account-heading{margin-top:34px}.inline-link{display:inline-block;margin-top:16px;color:#9e8bff;text-decoration:none}
@media(max-width:900px){.hero-module{grid-template-columns:64px 1fr}.hero-module-icon{width:62px;height:62px}.module-button{grid-column:1/-1;justify-content:center}.compact-modules{grid-template-columns:1fr 1fr}.compact-modules .platform-module:last-child{grid-column:1/-1}.portal-header{position:relative}.menu-toggle{display:block}.portal-nav{display:none!important;position:absolute;z-index:30;top:86px;right:0;width:min(320px,calc(100vw - 42px));padding:18px;flex-direction:column!important;align-items:stretch!important;background:rgba(7,9,27,.98);border:1px solid var(--line);border-radius:14px;box-shadow:0 25px 70px rgba(0,0,0,.45)}.portal-nav.open{display:flex!important}.portal-nav a,.portal-nav span{padding:10px 8px}.portal-nav a.active:after{display:none}.nav-user{order:-1;border:0;border-bottom:1px solid var(--line);padding:5px 8px 14px!important}}
@media(max-width:600px){.dashboard-welcome{display:block}.system-pill{display:inline-block;margin-top:14px}.hero-module{grid-template-columns:1fr;padding:22px}.hero-module-icon{width:58px;height:58px}.hero-module h2{font-size:24px}.compact-modules{grid-template-columns:1fr}.compact-modules .platform-module:last-child{grid-column:auto}.section-heading{display:block}.section-heading>span{display:block;margin-top:7px}.portal-header{align-items:center}.portal-header nav span{width:auto;text-align:left}}
/* NUXSIT Mail 0.1 */
.mail-shell{max-width:1180px}.setup-card,.mail-toolbar,.mail-reader,.draft-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#0d122d,#07091c);padding:26px}.setup-card code{color:#c8bcff}.gmail-connect{margin-bottom:28px}.connected-status{color:#74efb7;border:1px solid rgba(17,216,134,.3);background:rgba(17,216,134,.08)}.mail-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.mail-toolbar h2{margin:10px 0 4px}.mail-toolbar p{margin:0;color:var(--muted)}.secondary-button{border:1px solid #343b62;border-radius:10px;background:#090c20;color:#d8daf0;padding:11px 15px;cursor:pointer}.mail-list{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#07091b}.mail-row{display:grid;grid-template-columns:46px 1fr 30px;align-items:center;gap:15px;padding:18px 20px;color:var(--text);text-decoration:none;border-bottom:1px solid #1b203a;transition:.18s background}.mail-row:last-child{border-bottom:0}.mail-row:hover{background:#0d1128}.mail-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,rgba(0,143,246,.25),rgba(141,33,246,.35));border:1px solid rgba(132,99,255,.3)}.mail-summary{min-width:0}.mail-summary>div{display:flex;justify-content:space-between;gap:20px}.mail-summary strong,.mail-summary time,.mail-summary h3,.mail-summary p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-summary strong{font-size:13px}.mail-summary time{max-width:42%;color:#7f859e;font-size:10px}.mail-summary h3{margin:6px 0 4px;font-size:14px}.mail-summary p{margin:0;color:var(--muted);font-size:12px}.mail-arrow{color:#9180ff}.mail-empty{padding:40px;text-align:center;color:var(--muted)}.mail-safety{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.mail-reader{margin-top:20px}.mail-reader h1{font:600 30px Sora,Inter,sans-serif;margin:10px 0}.mail-reader-head p{color:var(--muted);line-height:1.65}.mail-body{margin-top:22px;padding-top:22px;border-top:1px solid var(--line);color:#e5e6ef;line-height:1.7}.mail-body pre{white-space:pre-wrap;word-wrap:break-word;font:14px/1.7 Inter,Arial,sans-serif;margin:0}.mail-html{max-width:100%;overflow:auto;background:#fff;color:#111;padding:22px;border-radius:12px}.draft-card{max-width:760px;margin-top:22px}.draft-card h2{margin:10px 0}.draft-card>p{color:var(--muted)}.draft-card label{display:block;margin-top:15px;font-size:12px;font-weight:700}.draft-card input,.draft-card textarea{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:10px;background:#060819;color:#fff;padding:13px;font:inherit;outline:0}.draft-card input:focus,.draft-card textarea:focus{border-color:#7040ff;box-shadow:0 0 0 3px rgba(112,64,255,.13)}.mail-primary{max-width:260px}.mail-html a{color:#3a52d8}@media(max-width:800px){.mail-safety{grid-template-columns:1fr}.mail-toolbar{align-items:flex-start;gap:18px}.mail-summary>div{display:block}.mail-summary time{display:block;max-width:100%;margin-top:4px}}@media(max-width:600px){.mail-row{grid-template-columns:40px 1fr;padding:15px}.mail-arrow{display:none}.mail-toolbar{display:block}.mail-toolbar form{margin-top:16px}.mail-reader,.draft-card,.setup-card{padding:20px}.mail-reader h1{font-size:24px}}

/* NUXSIT Mail 0.2 */
.mail-list{box-shadow:0 22px 60px rgba(0,0,0,.18)}
.mail-row{position:relative;grid-template-columns:48px minmax(0,1fr) 28px;min-height:92px}
.mail-row.is-unread{background:linear-gradient(90deg,rgba(50,59,135,.18),transparent)}
.mail-row.is-unread:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(var(--blue),var(--violet))}
.mail-row.is-unread .mail-summary strong,.mail-row.is-unread .mail-summary h3{font-weight:800;color:#fff}
.mail-meta{align-items:center}
.mail-summary strong{color:#dfe2f3;font-size:13px}
.mail-summary time{font-size:11px;color:#8c91aa}
.mail-summary h3{font:600 15px Sora,Inter,sans-serif;color:#f3f3fa}
.mail-summary p{font-size:12px;line-height:1.45}
.mail-reader-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:18px;align-items:start}
.mail-avatar.large{width:54px;height:54px;border-radius:15px;font-size:20px}
.message-meta{display:flex;flex-wrap:wrap;gap:7px 12px;color:var(--muted);font-size:12px;line-height:1.5}
.message-meta strong{color:#fff}.message-meta span+span{position:relative;padding-left:12px}.message-meta span+span:before{content:"•";position:absolute;left:0;color:#555d7e}
.draft-actions{display:flex;align-items:center;gap:18px;margin-top:16px}.draft-actions .primary{margin:0}.draft-actions span{color:var(--muted);font-size:12px}
.toast{top:122px;z-index:50;box-shadow:0 14px 40px rgba(0,0,0,.35)}
@media(max-width:600px){.mail-reader-head{grid-template-columns:1fr}.mail-avatar.large{display:none}.message-meta{display:block}.message-meta span{display:block;padding-left:0!important;margin-top:4px}.message-meta span:before{display:none}.draft-actions{display:block}.draft-actions span{display:block;margin-top:10px}.toast{top:90px}}

/* NUXSIT Mail 0.3 - Smart sorting */
.mail-filters{display:flex;gap:9px;margin:0 0 16px;flex-wrap:wrap}.mail-filters a{display:flex;align-items:center;gap:8px;color:#aeb2c8;text-decoration:none;padding:10px 13px;border:1px solid #282f50;border-radius:999px;background:#080b1d;font-size:12px;font-weight:700}.mail-filters a span{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#151a36;color:#cbc8e8;font-size:10px}.mail-filters a.active{color:#fff;border-color:#6951dc;background:linear-gradient(110deg,rgba(0,143,246,.16),rgba(141,33,246,.18))}.mail-meta-right{display:flex!important;align-items:center;justify-content:flex-end!important;gap:10px;min-width:0}.mail-category{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.1em;border:1px solid #343b62}.category-reply{color:#74efb7;border-color:rgba(17,216,134,.38);background:rgba(17,216,134,.09)}.category-review{color:#ffd782;border-color:rgba(255,196,77,.38);background:rgba(255,196,77,.08)}.category-information{color:#7cc8ff;border-color:rgba(0,143,246,.38);background:rgba(0,143,246,.08)}.category-promotion{color:#c4a5ff;border-color:rgba(141,33,246,.38);background:rgba(141,33,246,.09)}.category-automatic{color:#9ca2b8;border-color:#343a56;background:#111427}.smart-sort-note,.classification-card,.no-reply-card{display:flex;align-items:center;gap:18px;margin-top:18px;padding:20px 22px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,#0b0f27,#07091b)}.smart-sort-icon{flex:0 0 auto;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#a68cff;font-size:24px;background:rgba(113,54,255,.13);border:1px solid rgba(113,54,255,.3)}.smart-sort-note h3,.classification-card h2,.no-reply-card h2{margin:0 0 6px;font-size:16px}.smart-sort-note p,.classification-card p,.no-reply-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.reader-kicker-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.reader-kicker-row .kicker{margin-bottom:0}.classification-card{align-items:flex-start}.classification-card>span{margin-top:2px}.category-border-reply{border-color:rgba(17,216,134,.27)}.category-border-review{border-color:rgba(255,196,77,.27)}.category-border-information{border-color:rgba(0,143,246,.27)}.category-border-promotion{border-color:rgba(141,33,246,.27)}.category-border-automatic{border-color:#303650}.no-reply-card{justify-content:space-between}.button-link{display:inline-block;text-decoration:none;white-space:nowrap}.mail-list+.smart-sort-note{margin-top:18px}@media(max-width:760px){.mail-meta-right{display:block!important}.mail-category{margin:0 0 5px}.no-reply-card{display:block}.no-reply-card .button-link{margin-top:15px}.smart-sort-note,.classification-card{align-items:flex-start}}@media(max-width:600px){.mail-filters{display:grid;grid-template-columns:1fr}.mail-filters a{justify-content:space-between}.mail-category{font-size:7px}.mail-meta-right{margin-top:4px}.smart-sort-note{padding:17px}.smart-sort-icon{display:none}}

/* NUXSIT Mail 0.4 - AI Reply */
.ai-reply-panel{margin:20px 0;padding:18px;border:1px solid rgba(112,64,255,.38);border-radius:14px;background:linear-gradient(135deg,rgba(0,143,246,.08),rgba(141,33,246,.10))}.ai-reply-copy{display:flex;align-items:flex-start;gap:13px}.ai-reply-copy h3{margin:0 0 5px;font-size:15px}.ai-reply-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.ai-badge{flex:0 0 auto;padding:6px 8px;border-radius:999px;color:#c9bbff;border:1px solid rgba(141,33,246,.4);background:rgba(141,33,246,.12);font-size:8px;font-weight:900;letter-spacing:.11em}.ai-reply-form{display:grid;grid-template-columns:150px minmax(220px,1fr) auto;gap:12px;align-items:end;margin-top:16px}.ai-reply-form label{margin:0}.ai-reply-form select,.ai-reply-form input{display:block;width:100%;height:44px;margin-top:7px;border:1px solid var(--line);border-radius:9px;background:#060819;color:#fff;padding:0 12px;font:inherit;outline:0}.ai-generate-button{height:44px;border:0;border-radius:9px;padding:0 18px;color:#fff;font-weight:800;cursor:pointer;background:linear-gradient(110deg,#008ff6,#3440ff 48%,#8d21f6)}.ai-config-warning{display:flex;flex-direction:column;gap:4px;margin-top:15px;padding:12px;border:1px solid rgba(255,196,77,.28);border-radius:10px;background:rgba(255,196,77,.07);color:#ffd782;font-size:12px}.ai-config-warning span{color:#c8bfa8}.draft-card textarea:not(:placeholder-shown){border-color:rgba(112,64,255,.65)}@media(max-width:780px){.ai-reply-form{grid-template-columns:1fr}.ai-generate-button{width:100%}}@media(max-width:600px){.ai-reply-copy{display:block}.ai-badge{display:inline-flex;margin-bottom:10px}}

/* NUXSIT Mail 0.5 */
.ai-personal-form{grid-template-columns:repeat(3,minmax(0,1fr))}.ai-personal-form .ai-notes{grid-column:1/3}.ai-personal-form .ai-generate-button{grid-column:3;min-width:0;width:100%;white-space:nowrap}.ai-quick-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.ai-quick-actions>span{color:var(--muted);font-size:12px;margin-right:3px}.ai-rewrite-form{margin:0}.ai-rewrite-form button{border:1px solid rgba(112,64,255,.45);border-radius:999px;background:rgba(112,64,255,.10);color:#d8d1ff;padding:8px 12px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.ai-rewrite-form button:hover{background:rgba(112,64,255,.20);border-color:rgba(112,64,255,.75)}@media(max-width:760px){.ai-personal-form{grid-template-columns:1fr 1fr}.ai-personal-form .ai-notes{grid-column:1/-1}.ai-personal-form .ai-generate-button{grid-column:1/-1}}@media(max-width:600px){.ai-personal-form{grid-template-columns:1fr}.ai-personal-form .ai-notes,.ai-personal-form .ai-generate-button{grid-column:auto}.ai-quick-actions{align-items:stretch}.ai-quick-actions>span{width:100%}.ai-rewrite-form{flex:1 1 calc(50% - 9px)}.ai-rewrite-form button{width:100%}}


/* NUXSIT Mail 0.6 - Draft Assistant */
.draft-assistant-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#737a98;font-size:10px;font-weight:900;letter-spacing:.14em}.draft-assistant-divider:before,.draft-assistant-divider:after{content:"";height:1px;flex:1;background:rgba(118,126,166,.24)}.draft-assistant-divider span{padding:0 5px}.draft-assistant-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;padding:17px;border:1px solid rgba(0,143,246,.28);border-radius:13px;background:rgba(5,10,31,.42)}.draft-assistant-head{grid-column:1/-1}.draft-assistant-head>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:start}.draft-assistant-head .ai-badge{grid-row:1/3;margin-top:1px}.draft-assistant-head h3{margin:0 0 5px;font-size:15px}.draft-assistant-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.draft-assistant-form label{margin:0}.draft-assistant-form textarea{min-height:122px;resize:vertical}.draft-assistant-button{min-width:170px;height:48px;margin-bottom:1px;white-space:nowrap}@media(max-width:760px){.draft-assistant-form{grid-template-columns:1fr}.draft-assistant-button{width:100%}}@media(max-width:600px){.draft-assistant-head>div{display:block}.draft-assistant-head .ai-badge{display:inline-flex;margin-bottom:10px}}

/* Mail 0.6.1 layout hotfix */
.ai-personal-form .ai-generate-button{display:flex;align-items:center;justify-content:center;padding:0 14px;font-size:12px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.ai-personal-form .ai-generate-button{font-size:13px;white-space:normal;min-height:44px;height:auto;padding:12px 14px}}

/* NUXSIT Mail 0.7 - Outlook-inspired three-pane interface */
.mail-07-shell{max-width:1500px;padding-top:26px}.mail-07-topbar{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.mail-07-topbar h1{margin:2px 0 0;font-size:34px}.mail-07-actions{display:flex;align-items:center;gap:12px}.mail-07-search{display:flex;align-items:center;gap:9px;min-width:260px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:#080b1e;color:#969cb7;text-decoration:none;font-size:12px}.mail-07-app{display:grid;grid-template-columns:220px minmax(330px,410px) minmax(430px,1fr);height:calc(100vh - 170px);min-height:650px;border:1px solid #242a49;border-radius:18px;overflow:hidden;background:#07091a;box-shadow:0 26px 70px rgba(0,0,0,.28)}.mail-07-sidebar{padding:18px 13px;border-right:1px solid #202540;background:linear-gradient(180deg,#0b0e25,#080a1b)}.mail-07-new{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:43px;border:0;border-radius:10px;background:linear-gradient(110deg,#008ff6,#3440ff 50%,#8d21f6);color:#fff;font-weight:800;opacity:.7}.mail-07-sidebar nav{display:grid;gap:4px;margin-top:18px}.mail-07-sidebar nav a{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;border-radius:8px;color:#b6bad0;text-decoration:none;font-size:12px}.mail-07-sidebar nav a:hover,.mail-07-sidebar nav a.active{background:rgba(73,72,190,.18);color:#fff}.mail-07-sidebar nav a.active{box-shadow:inset 3px 0 #218eff}.mail-07-sidebar nav b{font-size:10px;padding:3px 6px;border-radius:999px;background:#171b36;color:#d8d9e6}.mail-07-folder-title{margin:25px 9px 10px;color:#6f7696;font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.mail-07-account{display:flex;align-items:center;gap:9px;padding:9px}.mail-07-account>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#174286,#6625a4);font-weight:800}.mail-07-account div{min-width:0}.mail-07-account strong,.mail-07-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-07-account strong{font-size:10px}.mail-07-account small{margin-top:3px;color:#777e9b;font-size:9px}.mail-07-disconnect{margin:10px 9px 0;padding:0;border:0;background:transparent;color:#7f86a3;font-size:10px;cursor:pointer}.mail-07-list-pane{min-width:0;border-right:1px solid #202540;background:#080a1b}.mail-07-list-pane>header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #202540}.mail-07-list-pane h2{margin:0;font-size:17px}.mail-07-list-pane header p{margin:4px 0 0;color:#7f859f;font-size:10px}.mail-07-list-pane header button{width:34px;height:34px;border:1px solid #2a3154;border-radius:9px;background:#0d1028;color:#bac0d6;cursor:pointer}.mail-07-list{height:calc(100% - 72px);overflow-y:auto}.mail-07-item{position:relative;display:block;padding:15px 16px;border-bottom:1px solid #1d223d;color:inherit;text-decoration:none;transition:.15s}.mail-07-item:hover{background:#0d1028}.mail-07-item.is-selected{background:linear-gradient(100deg,rgba(0,143,246,.15),rgba(75,46,180,.12))}.mail-07-item.is-selected:before,.mail-07-item.is-unread:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:linear-gradient(#0a96ff,#7828f0)}.mail-07-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.mail-07-item-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e5e7f2;font-size:12px}.mail-07-item-top time{flex:0 0 auto;color:#7f859f;font-size:9px}.mail-07-item-subject{margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4f5fa;font-size:12px;font-weight:750}.mail-07-item p{margin:5px 0 9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#8e94ae;font-size:10px;line-height:1.45}.mail-07-item .mail-category{font-size:7px;padding:4px 7px}.mail-07-reader-pane{min-width:0;display:flex;flex-direction:column;background:radial-gradient(circle at 100% 0,rgba(89,32,184,.12),transparent 35%),#080a1b}.mail-07-reader-empty{margin:auto;text-align:center;color:#777f9d}.mail-07-reader-empty div{font-size:40px}.mail-07-reader-empty h2{margin:13px 0 5px;color:#dfe2ef}.mail-07-reader-empty p{margin:0;font-size:12px}.mail-07-reader-header{padding:22px 26px 18px;border-bottom:1px solid #202540}.mail-07-reader-tools{display:flex;align-items:center;justify-content:space-between;gap:10px}.mail-07-reader-tools>a{color:#a78cff;text-decoration:none;font-size:11px;font-weight:800}.mail-07-reader-header h2{margin:18px 0 16px;font-size:25px;line-height:1.25}.mail-07-sender{display:flex;align-items:center;gap:11px}.mail-07-sender>div:last-child{min-width:0}.mail-07-sender strong,.mail-07-sender span,.mail-07-sender small{display:block}.mail-07-sender strong{font-size:12px}.mail-07-sender span{margin-top:2px;color:#989eb8;font-size:10px}.mail-07-sender small{margin-top:5px;color:#747b99;font-size:9px}.mail-07-message-body{flex:1;overflow:auto;padding:25px 29px}.mail-07-message-body pre{margin:0;white-space:pre-wrap;word-break:break-word;color:#d8dbe9;font:400 13px/1.75 Inter,Arial,sans-serif}.mail-07-reader-footer{padding:17px 25px;border-top:1px solid #202540}.mail-07-reader-footer .module-button{display:inline-flex;padding:12px 17px;font-size:11px}.mail-07-list::-webkit-scrollbar,.mail-07-message-body::-webkit-scrollbar{width:8px}.mail-07-list::-webkit-scrollbar-thumb,.mail-07-message-body::-webkit-scrollbar-thumb{background:#252b4a;border-radius:8px}
@media(max-width:1100px){.mail-07-app{grid-template-columns:190px 340px minmax(360px,1fr)}.mail-07-search{min-width:200px}}
@media(max-width:880px){.mail-07-app{height:auto;min-height:0;grid-template-columns:170px minmax(0,1fr)}.mail-07-reader-pane{grid-column:1/-1;min-height:500px;border-top:1px solid #202540}.mail-07-list-pane{border-right:0}.mail-07-sidebar{border-right:1px solid #202540}}
@media(max-width:620px){.mail-07-topbar{align-items:flex-start}.mail-07-actions{display:none}.mail-07-app{display:block;border-radius:13px}.mail-07-sidebar{border-right:0;border-bottom:1px solid #202540}.mail-07-new,.mail-07-folder-title,.mail-07-account,.mail-07-disconnect{display:none}.mail-07-sidebar nav{grid-template-columns:repeat(3,1fr);margin-top:0}.mail-07-sidebar nav a{justify-content:center;text-align:center}.mail-07-sidebar nav a b{display:none}.mail-07-list-pane{height:520px}.mail-07-reader-pane{min-height:550px}.mail-07-reader-header{padding:19px}.mail-07-message-body{padding:21px}.mail-07-reader-tools{align-items:flex-start}.mail-07-reader-header h2{font-size:21px}}


/* NUXSIT Mail 0.8 - desktop workspace and automatic inbox refresh */
body.mail-fullscreen .portal-header{width:calc(100% - 32px);max-width:none;height:86px}
body.mail-fullscreen .portal-header img{width:185px}
.mail-08-shell{width:calc(100% - 24px);max-width:none;padding:18px 0 24px}
.mail-08-shell .mail-07-topbar{margin-bottom:12px}
.mail-08-shell .mail-07-app{height:calc(100vh - 138px);min-height:620px;grid-template-columns:230px minmax(360px,430px) minmax(480px,1fr)}
.mail-08-refresh{display:flex;align-items:center;gap:9px}
.mail-08-sync{color:#737b99;font-size:9px;white-space:nowrap}
.mail-08-sync.is-checking{color:#8fcfff}
.mail-08-sync.is-updated{color:#5ee8ad}
.mail-08-sync.is-error{color:#ff9caf}
@media(min-width:1700px){.mail-08-shell .mail-07-app{grid-template-columns:240px 460px minmax(600px,1fr)}}
@media(max-width:1100px){
 body.mail-fullscreen .portal-header{width:calc(100% - 28px)}
 .mail-08-shell{width:calc(100% - 20px)}
 .mail-08-shell .mail-07-app{grid-template-columns:190px 350px minmax(360px,1fr)}
}
@media(max-width:880px){
 body.mail-fullscreen .portal-header{width:min(1180px,calc(100% - 30px));height:auto;padding:20px 0}
 .mail-08-shell{width:min(100% - 24px,760px);padding-top:24px}
 .mail-08-shell .mail-07-app{height:auto;min-height:0;grid-template-columns:170px minmax(0,1fr)}
}
@media(max-width:620px){
 .mail-08-shell{width:calc(100% - 14px);padding-top:18px}
 .mail-08-shell .mail-07-app{display:block;height:auto;min-height:0}
 .mail-08-refresh .mail-08-sync{display:none}
 .mail-08-shell .mail-07-list-pane{height:58vh;min-height:430px;max-height:610px}
 .mail-08-shell .mail-07-reader-pane{min-height:65vh}
}

/* NUXSIT Mail 0.8.1 - desktop workflow redesign */
.mail-081-reader{position:relative;overflow:hidden}
.mail-081-reader-header{padding-top:16px}
.mail-081-commandbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mail-081-command{height:36px;padding:0 13px;border:1px solid #30375d;border-radius:9px;background:#0c1028;color:#d7dbec;font:700 10px/1 Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.mail-081-command:hover{border-color:#6759d7;background:#121638;color:#fff}
.mail-081-command.primary-command{border-color:transparent;background:linear-gradient(110deg,#078ff6,#5a36ff 62%,#8d20f6);color:#fff}
.mail-081-commandbar .mail-category{margin-left:auto}
.mail-081-reply-composer{position:absolute;z-index:8;left:0;right:0;top:0;bottom:auto;max-height:100%;padding:18px 22px 20px;border-top:1px solid #30385f;background:linear-gradient(180deg,#0c1028,#080b1d);box-shadow:0 22px 50px rgba(0,0,0,.38);overflow:auto;transform:translateY(-105%);transition:transform .22s ease}
.mail-081-reply-composer.is-open{transform:translateY(0)}
.mail-081-composer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.mail-081-composer-head h3{margin:3px 0 0;font-size:18px}
.mail-081-composer-head button,.mail-081-modal-close{width:34px;height:34px;border:1px solid #30375d;border-radius:9px;background:#0b0f27;color:#cfd3e7;font-size:20px;cursor:pointer}
.mail-081-compose-fields{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:12px}
.mail-081-reply-composer label{display:block;margin-bottom:11px;color:#dfe2ef;font-size:10px;font-weight:800}
.mail-081-reply-composer input,.mail-081-reply-composer textarea,.mail-081-modal select,.mail-081-modal input,.mail-081-modal textarea{width:100%;margin-top:6px;border:1px solid #293050;border-radius:9px;background:#070a1b;color:#eef0f8;padding:11px 12px;font:500 12px/1.45 Inter,Arial,sans-serif;box-sizing:border-box}
.mail-081-reply-composer textarea{min-height:150px;resize:vertical}
.mail-081-compose-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.mail-081-compose-actions .primary,.mail-081-compose-actions .secondary-button{min-height:41px;padding:0 15px}
.mail-081-reply-composer .ai-quick-actions{margin-top:13px;padding-top:12px;border-top:1px solid #242a49}
.mail-081-modal{position:absolute;z-index:20;inset:0;display:none;align-items:center;justify-content:center;padding:22px}
.mail-081-modal.is-open{display:flex}
.mail-081-modal-backdrop{position:absolute;inset:0;background:rgba(3,5,16,.78);backdrop-filter:blur(4px)}
.mail-081-modal-card{position:relative;z-index:1;width:min(620px,100%);max-height:calc(100% - 20px);overflow:auto;padding:24px;border:1px solid #40378a;border-radius:16px;background:linear-gradient(150deg,#111633,#0a0d22 72%);box-shadow:0 28px 80px rgba(0,0,0,.55)}
.mail-081-modal-card h3{margin:13px 0 7px;font-size:23px}.mail-081-modal-card>p{margin:0 0 18px;color:#9ba1bd;font-size:12px;line-height:1.55}
.mail-081-modal-close{position:absolute;right:16px;top:16px}
.mail-081-modal-form{display:grid;gap:14px}.mail-081-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mail-081-modal-form label{color:#dfe2ef;font-size:10px;font-weight:800}.mail-081-modal-form textarea{resize:vertical;min-height:110px}.mail-081-modal-form .primary{justify-self:end;min-width:170px}
body.mail-modal-open{overflow:hidden}
@media(min-width:1200px){.mail-08-shell .mail-07-app{grid-template-columns:230px minmax(370px,430px) minmax(0,1fr)}.mail-07-reader-header h2{font-size:28px}.mail-07-message-body pre{font-size:14px;line-height:1.8}.mail-081-reply-composer{padding-left:30px;padding-right:30px}}
@media(max-width:880px){.mail-081-commandbar .mail-category{margin-left:0}.mail-081-modal{position:fixed}.mail-081-reply-composer{position:relative;max-height:none;transform:none;display:none}.mail-081-reply-composer.is-open{display:block}.mail-081-compose-fields{grid-template-columns:1fr}}
@media(max-width:620px){.mail-081-commandbar{display:grid;grid-template-columns:1fr 1fr}.mail-081-command{width:100%;white-space:normal;height:auto;min-height:40px;padding:9px}.mail-081-command.primary-command{grid-column:1/-1}.mail-081-commandbar .mail-category{grid-column:1/-1;justify-self:start}.mail-081-form-grid{grid-template-columns:1fr}.mail-081-modal{padding:10px}.mail-081-modal-card{width:100%;max-height:calc(100vh - 20px);padding:20px 16px}.mail-081-modal-form .primary{width:100%;justify-self:stretch}.mail-081-compose-actions>*{width:100%}}


/* Mail 0.8.1.2 performance feedback */
.mail-081-modal-card.is-working::after {
  content: "Generating reply…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 6, 24, .76);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  font-weight: 800;
  letter-spacing: .02em;
  z-index: 20;
}
.mail-081-modal-form button[disabled], .ai-rewrite-form button[disabled] {
  opacity: .65;
  cursor: wait;
}

/* Mail 0.8.1.3 interaction hotfix */
.mail-081-reply-composer.is-open{top:0;bottom:auto;transform:translateY(0)}
.mail-081-modal{pointer-events:none}
.mail-081-modal.is-open{pointer-events:auto}
.mail-081-command,.secondary-button{position:relative;z-index:2}

/* 0.8.1.4 robust server-driven AI dialog links */
a.mail-081-command,
a.secondary-button,
a.mail-081-modal-close{
  text-decoration:none;
}
a.mail-081-command{display:inline-flex;align-items:center;justify-content:center}
a.mail-081-modal-close{display:flex;align-items:center;justify-content:center}
a.mail-081-modal-backdrop{display:block;text-decoration:none}

/* Mail 0.8.1.5 definitive modal-layer fix */
.mail-081-modal{position:fixed!important;z-index:9999!important;inset:0!important;display:none;align-items:center;justify-content:center;padding:24px;overflow:auto;pointer-events:none}
.mail-081-modal.is-open{display:flex!important;pointer-events:auto!important}
.mail-081-modal-backdrop{position:fixed!important;z-index:0;inset:0!important;width:100%;height:100%;border:0;margin:0;padding:0;background:rgba(3,5,16,.82);backdrop-filter:blur(5px);cursor:default}
.mail-081-modal-card{position:relative!important;z-index:1!important;width:min(680px,calc(100vw - 40px));max-height:calc(100vh - 48px);overflow:auto}
body.mail-modal-open{overflow:hidden}
button.mail-081-command,button.secondary-button{font-family:inherit}
@media(max-width:620px){.mail-081-modal{padding:10px}.mail-081-modal-card{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}}

/* NUXSIT Mail 0.8.1.6 - unified buttons, original message and reply workflow */
.nuxsit-mail-button,
.mail-081-command,
.mail-081-compose-actions button,
.mail-081-modal-form .primary,
.ai-quick-actions button,
.mail-08-refresh button,
.mail-07-new,
.mail-07-disconnect {
  border: 1px solid rgba(70,88,210,.38)!important;
  border-left: 3px solid #1597ff!important;
  border-radius: 10px!important;
  background: linear-gradient(110deg,rgba(20,65,170,.30),rgba(91,41,215,.28))!important;
  color: #f4f6ff!important;
  box-shadow: inset 0 0 0 1px rgba(128,113,255,.04)!important;
  transition: border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
.nuxsit-mail-button:hover,
.mail-081-command:hover,
.mail-081-compose-actions button:hover,
.mail-081-modal-form .primary:hover,
.ai-quick-actions button:hover,
.mail-08-refresh button:hover,
.mail-07-new:hover,
.mail-07-disconnect:hover {
  border-color: rgba(62,151,255,.72)!important;
  background: linear-gradient(110deg,rgba(19,92,210,.42),rgba(105,42,230,.38))!important;
  box-shadow: 0 8px 24px rgba(22,72,205,.14)!important;
  transform: translateY(-1px);
}
.mail-081-command.primary-command,
.mail-081-compose-actions .mail-primary,
.mail-081-modal-form .primary {
  border-left-color:#33b3ff!important;
  background:linear-gradient(110deg,#078ff6,#493cff 58%,#8d20f6)!important;
}
.mail-081-original-message{margin-top:18px;border:1px solid #252d51;border-radius:12px;background:#070a1b;overflow:hidden}
.mail-081-original-message summary{cursor:pointer;list-style:none;padding:13px 15px;color:#dfe5ff;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;background:linear-gradient(90deg,rgba(20,79,180,.16),rgba(92,39,194,.12));border-bottom:1px solid #242b4c}
.mail-081-original-message summary::-webkit-details-marker{display:none}
.mail-081-original-message summary::before{content:'▾';display:inline-block;margin-right:9px;color:#45aaff;transition:transform .15s ease}
.mail-081-original-message:not([open]) summary::before{transform:rotate(-90deg)}
.mail-081-original-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 15px 0;color:#9fa7c8;font-size:11px}
.mail-081-original-meta strong{color:#eef1ff}.mail-081-original-meta time{margin-left:auto}
.mail-081-original-message pre{margin:0;padding:14px 15px 18px;white-space:pre-wrap;overflow-wrap:anywhere;color:#cdd2e7;font:500 12px/1.65 Inter,Arial,sans-serif;max-height:290px;overflow:auto}
@media(max-width:620px){.mail-081-original-meta time{width:100%;margin-left:0}.mail-081-original-message pre{max-height:none}}


/* NUXSIT Mail 0.8.1.7 - fixed workspace and Ferrari-smooth message switching */
@media (min-width:881px){
  html:has(body.mail-fullscreen),body.mail-fullscreen{height:100%;overflow:hidden}
  body.mail-fullscreen{overscroll-behavior:none}
  body.mail-fullscreen .portal-header{flex:0 0 auto}
  .mail-08-shell{height:calc(100vh - 104px);min-height:0;padding-top:10px;padding-bottom:10px;box-sizing:border-box;overflow:hidden}
  .mail-08-shell .mail-07-topbar{height:58px;min-height:58px;margin:0 0 10px}
  .mail-08-shell .mail-07-app{height:calc(100% - 68px);min-height:0;contain:layout paint}
  .mail-07-sidebar{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .mail-07-list-pane{display:flex;min-height:0;flex-direction:column;overflow:hidden}
  .mail-07-list-pane>header{flex:0 0 72px}
  .mail-07-list{height:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:smooth}
  .mail-07-reader-pane{min-height:0;overflow:hidden;overscroll-behavior:contain}
  .mail-07-message-body{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;will-change:scroll-position}
}
.mail-07-item{contain:content;transform:translateZ(0)}
.mail-07-item:hover{transition:background-color .1s ease,transform .1s ease}
.mail-081-reader{transition:opacity .14s ease,transform .14s ease}
.mail-081-reader.is-entering{opacity:.55;transform:translateX(5px)}
.mail-081-reader.is-loading::after{content:"Loading message…";position:absolute;z-index:30;inset:0;display:grid;place-items:center;background:rgba(7,9,26,.48);backdrop-filter:blur(2px);color:#cfd7ff;font-size:11px;font-weight:800;letter-spacing:.04em}
@media (prefers-reduced-motion:reduce){.mail-081-reader,.mail-07-item{transition:none!important;scroll-behavior:auto!important}}

/* NUXSIT Mail 0.8.1.8 - true fixed desktop workspace */
@media (min-width:881px){
  html,
  body.mail-fullscreen{
    width:100%;
    height:100%;
    max-height:100%;
    overflow:hidden!important;
  }
  body.mail-fullscreen{
    position:fixed;
    inset:0;
    display:flex;
    flex-direction:column;
  }
  body.mail-fullscreen .portal-header{
    flex:0 0 86px;
    height:86px;
    min-height:86px;
  }
  body.mail-fullscreen > .mail-08-shell{
    flex:1 1 auto;
    width:calc(100% - 24px);
    height:auto!important;
    min-height:0;
    margin:0 auto;
    padding:10px 0;
    overflow:hidden!important;
  }
  .mail-08-shell .mail-07-topbar{
    flex:0 0 58px;
  }
  .mail-08-shell .mail-07-app{
    height:calc(100% - 68px)!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  .mail-07-sidebar,
  .mail-07-list,
  .mail-07-message-body,
  .mail-081-reply-composer{
    overscroll-behavior:contain;
    overflow-anchor:none;
  }
  .mail-07-list-pane,
  .mail-07-reader-pane,
  #mail-reader-pane{
    height:100%;
    min-height:0;
    overflow:hidden!important;
    overflow-anchor:none;
  }
  .mail-07-list{overflow-y:auto!important;overflow-x:hidden!important}
  .mail-07-message-body{flex:1 1 auto;overflow-y:auto!important;overflow-x:hidden!important}
}

/* NUXSIT Mail 0.8.1.9 - unified final buttons + rich HTML, images and attachments */
.mail-07-sidebar nav a{
  border:1px solid rgba(70,88,210,.38)!important;
  border-left:3px solid #1597ff!important;
  border-radius:10px!important;
  background:linear-gradient(110deg,rgba(20,65,170,.18),rgba(91,41,215,.16))!important;
  color:#d8dcef!important;
  min-height:38px;
  transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
.mail-07-sidebar nav a:hover,
.mail-07-sidebar nav a.active{
  border-color:rgba(62,151,255,.72)!important;
  background:linear-gradient(110deg,rgba(19,92,210,.42),rgba(105,42,230,.38))!important;
  box-shadow:0 8px 24px rgba(22,72,205,.14)!important;
  transform:translateY(-1px);
  color:#fff!important;
}
.mail-07-sidebar nav a b{background:rgba(123,130,210,.20)!important;color:#f3f5ff!important}
.mail-081-command.primary-command{border-left-color:#1597ff!important;background:linear-gradient(110deg,rgba(20,65,170,.30),rgba(91,41,215,.28))!important}
.mail-rich-message{overflow:visible!important}
.mail-html-frame{display:block;width:100%;min-height:180px;border:0;background:transparent;overflow:hidden}
.mail-attachments{margin:0 24px 24px;padding:16px;border:1px solid #273052;border-radius:13px;background:linear-gradient(145deg,#090d24,#07091a)}
.mail-attachments-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#aeb8dc;font-size:10px;font-weight:900;letter-spacing:.12em}
.mail-attachments-head b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:999px;background:#171d3d;color:#fff}
.mail-attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.mail-attachment-card{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #2d365d;border-left:3px solid #1597ff;border-radius:10px;background:linear-gradient(110deg,rgba(20,65,170,.20),rgba(91,41,215,.17));color:#eef2ff;text-decoration:none;min-width:0}
.mail-attachment-card:hover{border-color:#4ea8ff;background:linear-gradient(110deg,rgba(19,92,210,.36),rgba(105,42,230,.30))}
.mail-attachment-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#11193b;color:#53b6ff;font-size:18px}
.mail-attachment-card>span:last-child{min-width:0}.mail-attachment-card strong,.mail-attachment-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-attachment-card strong{font-size:12px}.mail-attachment-card small{margin-top:4px;color:#99a4ca;font-size:9px}
@media(max-width:880px){.mail-attachments{margin:0 14px 18px}.mail-html-frame{min-height:240px}}


/* NUXSIT Mail 0.8.1.10 - full-height reader for HTML mail */
.mail-07-reader-pane{
  min-width:0;
}
.mail-rich-message{
  display:flex!important;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  overflow:auto!important;
}
.mail-html-frame{
  display:block;
  width:100%;
  min-height:520px;
  border:0;
  background:transparent;
  overflow:hidden;
}
@media (min-width:881px){
  .mail-07-reader-pane{
    display:flex;
    flex-direction:column;
    min-height:0;
  }
  .mail-07-message-body.mail-rich-message{
    flex:1 1 auto;
    min-height:0;
    overflow:auto!important;
  }
  .mail-html-frame{
    min-height:100%;
  }
}
@media (max-width:880px){
  .mail-html-frame{
    min-height:70vh;
  }
}

/* NUXSIT Mail 0.8.1.11 - forwarded AI context */
.mail-ai-context-editor{margin:0 0 15px;border:1px solid #2a335b;border-radius:12px;background:#080c22;overflow:hidden}.mail-ai-context-editor summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;color:#e9edff;font-size:11px;font-weight:850}.mail-ai-context-editor summary span{padding:4px 8px;border:1px solid #394778;border-radius:999px;color:#9fb7ef;font-size:8px;text-transform:uppercase}.mail-ai-context-editor p{margin:0;padding:0 14px 10px;color:#8f99ba;font-size:10px}.mail-ai-context-editor textarea{display:block;width:calc(100% - 28px);margin:0 14px 14px;min-height:170px;resize:vertical;border:1px solid #303a65;border-radius:10px;background:#06091a;color:#dce2f7;padding:12px;box-sizing:border-box}


/* NUXSIT Mail 0.8.1.12 - attachments on top + Outlook-like sidebar */
.mail-12-nav-group{margin-top:14px;border-top:1px solid rgba(39,46,78,.9);padding-top:12px}
.mail-12-nav-group:first-of-type{margin-top:18px}
.mail-12-nav-group summary{list-style:none;cursor:pointer;color:#97a0c4;font-size:11px;font-weight:800;letter-spacing:.03em;display:flex;align-items:center;gap:8px}
.mail-12-nav-group summary::-webkit-details-marker{display:none}
.mail-12-nav-group summary::before{content:'›';display:inline-block;font-size:16px;line-height:1;transform:rotate(90deg);transition:transform .15s ease;color:#7b87b5}
.mail-12-nav-group:not([open]) summary::before{transform:rotate(0deg)}
.mail-12-nav-list{display:grid;gap:6px;margin-top:10px}
.mail-12-nav-list a{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;border-radius:10px;color:#d8dcef;text-decoration:none;font-size:12px;border:1px solid rgba(70,88,210,.38);border-left:3px solid #1597ff;background:linear-gradient(110deg,rgba(20,65,170,.18),rgba(91,41,215,.16));transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.mail-12-nav-list a:hover,.mail-12-nav-list a.active{border-color:rgba(62,151,255,.72);background:linear-gradient(110deg,rgba(19,92,210,.42),rgba(105,42,230,.38));box-shadow:0 8px 24px rgba(22,72,205,.14);transform:translateY(-1px);color:#fff}
.mail-12-nav-list a b{font-size:10px;padding:3px 6px;border-radius:999px;background:rgba(123,130,210,.20);color:#f3f5ff}
.mail-12-nav-list a.is-soon{opacity:.78}
.mail-12-nav-placeholder{margin-top:10px;padding:12px;border:1px dashed #2b3357;border-radius:10px;color:#7f88ac;font-size:11px;text-align:center;background:rgba(13,16,40,.55)}
.mail-attachments-top{margin:18px 24px 0}
.mail-attachments-top + .mail-07-message-body{padding-top:18px}
@media(max-width:620px){.mail-12-nav-group{margin-top:10px;padding-top:10px}.mail-12-nav-group summary{font-size:10px}.mail-attachments-top{margin:14px 14px 0}}


/* NUXSIT Mail 0.8.1.14 - direct send */
.mail-send-now{border-left-color:#20d596!important;background:linear-gradient(110deg,rgba(0,138,95,.40),rgba(33,91,220,.34))!important;box-shadow:0 10px 26px rgba(0,168,116,.13)}
.mail-send-now:hover{background:linear-gradient(110deg,rgba(0,172,118,.55),rgba(48,108,245,.46))!important}


/* NUXSIT Mail 0.8.1.15 - standard Save draft button */
.mail-081-compose-actions .mail-standard-action{
  min-height:41px;
  height:41px;
  padding:0 15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font:700 10px/1 Inter,Arial,sans-serif;
  cursor:pointer;
  white-space:nowrap;
}


/* NUXSIT Mail 0.8.1.16 - conversation view, compose and remembered recipients */
.mail-07-new{cursor:pointer;opacity:1!important}
.mail-conversation-thread{margin:18px 24px 0;padding:14px;border:1px solid #273052;border-radius:13px;background:linear-gradient(145deg,#090d24,#07091a)}
.mail-conversation-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#aeb8dc;font-size:10px;font-weight:900;letter-spacing:.12em}
.mail-thread-card{border:1px solid #293258;border-radius:10px;background:#0b0f29;margin-top:8px;overflow:hidden}
.mail-thread-card.is-sent{border-left:3px solid #28a8ff;background:linear-gradient(110deg,rgba(18,81,180,.22),rgba(79,40,177,.17))}
.mail-thread-card summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 14px;cursor:pointer;list-style:none}
.mail-thread-card summary::-webkit-details-marker{display:none}.mail-thread-card summary span{min-width:0}.mail-thread-card strong,.mail-thread-card small{display:block}.mail-thread-card small{margin-top:3px;color:#8e97ba;font-size:9px}.mail-thread-card time{color:#8e97ba;font-size:9px;white-space:nowrap}
.mail-thread-card pre{margin:0;padding:0 14px 14px;white-space:pre-wrap;overflow-wrap:anywhere;color:#d9ddec;font:500 12px/1.65 Inter,Arial,sans-serif}
.mail-compose-modal-card{width:min(760px,calc(100vw - 36px))}.mail-compose-modal-card textarea{min-height:260px}
@media(max-width:620px){.mail-conversation-thread{margin:14px 14px 0}.mail-compose-modal-card textarea{min-height:180px}}


/* NUXSIT Mail 0.8.1.19 - scrollable conversation column */
@media (min-width:881px){
  .mail-07-reader-pane,
  #mail-reader-pane{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .mail-07-reader-pane{
    display:block;
  }
  .mail-07-message-body.mail-rich-message,
  .mail-07-message-body{
    flex:none !important;
    overflow:visible !important;
    min-height:0;
  }
  .mail-html-frame{
    min-height:420px;
  }
}
.mail-conversation-thread{
  margin-bottom:18px;
}
.mail-081-reply-composer{
  margin-bottom:18px;
}


/* NUXSIT Mail 0.8.1.28 - Conversation Intelligence */
.mail-thread-original{margin:4px 14px 14px;border:1px solid #29345d;border-radius:9px;background:#080b1f;overflow:hidden}
.mail-thread-original summary{display:block!important;padding:9px 12px!important;color:#91a6d9;font-size:9px;font-weight:850;letter-spacing:.05em;cursor:pointer;text-transform:uppercase}
.mail-thread-original[open] summary{border-bottom:1px solid #242d50}
.mail-thread-original pre{max-height:320px;overflow:auto;margin:0!important;padding:12px!important;color:#9fa8c9!important;font-size:10px!important;line-height:1.55!important;background:#060819}


/* NUXSIT Mail 0.8.1.29 - full-field AI writing workspace */
.mail-081-modal-card{width:min(1480px,calc(100vw - 48px))!important;max-height:calc(100vh - 42px)!important}
.mail-ai-workspace-modal{padding:20px!important}
.mail-ai-workspace{height:calc(100vh - 40px);max-height:none!important;display:flex;flex-direction:column;overflow:hidden!important;padding:28px!important}
.mail-ai-workspace-head{flex:0 0 auto;padding-right:48px}.mail-ai-workspace-head h3{font-size:28px;margin:12px 0 5px}.mail-ai-workspace-head p{margin:0 0 18px;color:#9ba1bd}
.mail-ai-workspace-grid{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(500px,1.35fr);gap:18px;min-height:0;flex:1}
.mail-ai-chat-panel,.mail-ai-draft-panel{min-height:0;border:1px solid #29325a;border-radius:14px;background:#080b20;overflow:hidden}
.mail-ai-chat-panel{display:flex;flex-direction:column}.mail-ai-chat-feed{flex:1;min-height:150px;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.mail-ai-chat-welcome{margin:auto;max-width:430px;text-align:center;color:#aeb5d2}.mail-ai-chat-welcome strong{display:block;color:#fff;font-size:18px}.mail-ai-chat-welcome p{line-height:1.55}
.mail-ai-chat-bubble{max-width:88%;padding:11px 13px;border-radius:12px}.mail-ai-chat-bubble span{display:block;margin-bottom:5px;font-size:9px;font-weight:900;letter-spacing:.08em}.mail-ai-chat-bubble p{margin:0;color:#e8ebf7;font-size:12px;line-height:1.55}.mail-ai-chat-bubble.is-user{align-self:flex-end;background:linear-gradient(135deg,#16408c,#5120a4)}.mail-ai-chat-bubble.is-ai{align-self:flex-start;border:1px solid #303a67;background:#101630}
.mail-ai-start-form,.mail-ai-refine-form{flex:0 0 auto;border-top:1px solid #252d50;padding:16px}.mail-ai-refine-form label{display:block;color:#dfe2ef;font-size:10px;font-weight:800}.mail-ai-refine-form textarea{width:100%;margin-top:7px;min-height:100px;resize:vertical;border:1px solid #313961;border-radius:10px;background:#060919;color:#f0f2fb;padding:12px;box-sizing:border-box}.mail-ai-refine-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}
.mail-ai-draft-panel{display:flex;flex-direction:column;padding:16px}.mail-ai-draft-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#b9c2e8;font-size:10px;font-weight:900;letter-spacing:.1em}.mail-ai-draft-head small{color:#818aa9;font-weight:600;letter-spacing:0}.mail-ai-draft-panel textarea{flex:1;min-height:0;width:100%;resize:none;border:1px solid #333d69;border-radius:11px;background:#050819;color:#f1f3fa;padding:18px;font:600 13px/1.65 Inter,Arial,sans-serif;box-sizing:border-box}.mail-ai-draft-actions{display:flex;justify-content:flex-end;padding-top:12px}
@media(max-width:900px){.mail-ai-workspace{height:calc(100vh - 20px);padding:18px!important}.mail-ai-workspace-grid{grid-template-columns:1fr;overflow:auto}.mail-ai-chat-panel,.mail-ai-draft-panel{min-height:420px}.mail-ai-workspace-modal{padding:10px!important}}

/* NUXSIT Mail 0.8.1.30 - top-aligned full compose AI workspace */
.mail-compose-workspace-modal{align-items:flex-start!important;padding:14px 20px 20px!important;overflow:hidden!important}
.mail-compose-workspace{width:calc(100vw - 40px)!important;height:calc(100vh - 28px)!important;max-width:none!important;max-height:none!important;margin:0 auto!important;padding:24px!important;display:flex;flex-direction:column;overflow:hidden!important}
.mail-compose-workspace-head{flex:0 0 auto;padding-right:52px}.mail-compose-workspace-head h3{margin:9px 0 4px;font-size:27px}.mail-compose-workspace-head p{margin:0 0 15px;color:#9ca5c6}
.mail-compose-workspace-grid{display:grid;grid-template-columns:minmax(360px,.72fr) minmax(620px,1.55fr);gap:16px;flex:1;min-height:0}
.mail-compose-ai-panel,.mail-compose-editor-panel{min-height:0;border:1px solid #29325a;border-radius:14px;background:#080b20;overflow:hidden}
.mail-compose-ai-panel{display:flex;flex-direction:column}.mail-compose-ai-panel .mail-ai-chat-feed{min-height:0}
.mail-compose-ai-form{flex:0 0 auto;padding:15px;border-top:1px solid #252d50;max-height:48%;overflow:auto}.mail-compose-ai-form>label{display:block;color:#dfe2ef;font-size:10px;font-weight:800}.mail-compose-ai-form textarea{width:100%;margin-top:7px;min-height:105px;resize:vertical;border:1px solid #313961;border-radius:10px;background:#060919;color:#f0f2fb;padding:12px;box-sizing:border-box}.mail-compose-ai-form>button{width:100%;margin-top:10px}
.mail-compose-editor-panel{padding:16px}.mail-compose-send-form{height:100%;display:flex!important;flex-direction:column;min-height:0}.mail-compose-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mail-compose-body-label{display:flex!important;flex:1;min-height:0;flex-direction:column}.mail-compose-body-label textarea{flex:1!important;min-height:0!important;resize:none!important;font-size:13px!important;line-height:1.65!important}.mail-compose-send-form .mail-081-compose-actions{flex:0 0 auto;padding-top:12px}
@media(max-width:1000px){.mail-compose-workspace-grid{grid-template-columns:1fr;overflow:auto}.mail-compose-ai-panel,.mail-compose-editor-panel{min-height:520px}.mail-compose-workspace{overflow:auto!important}.mail-compose-editor-fields{grid-template-columns:1fr}}
@media(max-width:620px){.mail-compose-workspace-modal{padding:6px!important}.mail-compose-workspace{width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important;padding:15px!important}.mail-compose-workspace-head h3{font-size:21px}}

/* NUXSIT Mail 0.8.1.31 - always-visible workspace controls */
.mail-compose-workspace-modal{
  padding:8px 12px 12px!important;
}
.mail-compose-workspace{
  height:calc(100dvh - 20px)!important;
  width:calc(100vw - 24px)!important;
  padding:18px 22px 16px!important;
}
.mail-compose-workspace-head h3{margin-top:7px!important}
.mail-compose-workspace-head p{margin-bottom:10px!important}
.mail-compose-workspace-grid{min-height:0!important}
.mail-compose-editor-panel{
  display:flex;
  min-height:0!important;
  padding:12px 14px 0!important;
}
.mail-compose-send-form{
  flex:1;
  min-height:0!important;
  overflow:hidden;
}
.mail-compose-body-label{
  overflow:hidden;
}
.mail-compose-body-label textarea{
  overflow:auto!important;
}
.mail-compose-send-form .mail-081-compose-actions{
  position:sticky;
  bottom:0;
  z-index:8;
  display:flex!important;
  flex-wrap:wrap;
  gap:9px;
  margin:0 -14px;
  padding:12px 14px 14px!important;
  border-top:1px solid #29325a;
  background:linear-gradient(180deg,rgba(8,11,32,.96),#080b20 28%);
  box-shadow:0 -14px 24px rgba(3,5,18,.48);
}
.mail-compose-ai-form{
  position:sticky;
  bottom:0;
  z-index:6;
  background:#080b20;
  box-shadow:0 -12px 22px rgba(3,5,18,.42);
}
@media(max-height:820px){
  .mail-compose-workspace-head p{display:none}
  .mail-compose-workspace-head h3{font-size:23px!important;margin-bottom:9px!important}
  .mail-compose-workspace{padding-top:14px!important}
  .mail-compose-ai-form textarea{min-height:72px!important}
}
@media(max-width:1000px){
  .mail-compose-workspace{height:calc(100dvh - 12px)!important}
  .mail-compose-send-form .mail-081-compose-actions{position:sticky!important}
}

/* NUXSIT Mail 0.8.1.32 - shorter compose workspace with visible controls */
.mail-compose-workspace-modal{
  align-items:flex-start!important;
  padding:8px 12px!important;
  overflow:hidden!important;
}
.mail-compose-workspace{
  width:calc(100vw - 24px)!important;
  height:min(740px,calc(100dvh - 72px))!important;
  min-height:560px!important;
  max-height:calc(100dvh - 72px)!important;
  margin:0 auto!important;
  padding:14px 20px 12px!important;
}
.mail-compose-workspace-head h3{
  margin:5px 0 2px!important;
  font-size:24px!important;
}
.mail-compose-workspace-head p{
  margin:0 0 8px!important;
  font-size:13px!important;
}
.mail-compose-workspace-grid{
  flex:1 1 auto!important;
  min-height:0!important;
}
.mail-compose-editor-panel{
  padding:10px 12px 0!important;
}
.mail-compose-editor-fields input{
  min-height:38px!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
}
.mail-compose-body-label textarea{
  min-height:0!important;
}
.mail-compose-send-form .mail-081-compose-actions{
  position:relative!important;
  flex:0 0 auto!important;
  margin:0 -12px!important;
  padding:10px 12px 11px!important;
}
.mail-compose-ai-form{
  max-height:42%!important;
  padding:11px!important;
}
.mail-compose-ai-form textarea{
  min-height:64px!important;
  max-height:110px!important;
}
@media(max-height:760px){
  .mail-compose-workspace{
    height:calc(100dvh - 54px)!important;
    min-height:500px!important;
    max-height:calc(100dvh - 54px)!important;
  }
  .mail-compose-workspace-head p{display:none!important}
  .mail-compose-workspace-head h3{font-size:21px!important;margin-bottom:7px!important}
  .mail-compose-ai-form textarea{min-height:54px!important}
}
@media(max-width:1000px){
  .mail-compose-workspace{
    height:calc(100dvh - 28px)!important;
    max-height:calc(100dvh - 28px)!important;
    min-height:0!important;
    overflow:auto!important;
  }
}


/* NUXSIT Mail 0.8.1.33 - compact and minimizable Build from my text workspace */
.mail-ai-workspace-modal{
  align-items:flex-start!important;
  padding:10px 16px!important;
  overflow:hidden!important;
}
.mail-ai-workspace{
  width:min(1460px,calc(100vw - 32px))!important;
  height:min(700px,calc(100dvh - 88px))!important;
  min-height:500px!important;
  max-height:calc(100dvh - 88px)!important;
  margin:0 auto!important;
  padding:16px 18px 14px!important;
}
.mail-ai-workspace-head{padding-right:88px!important}
.mail-ai-workspace-head h3{font-size:24px!important;margin:7px 0 3px!important}
.mail-ai-workspace-head p{margin:0 0 10px!important;font-size:13px!important}
.mail-ai-workspace-grid{min-height:0!important}
.mail-ai-chat-panel,.mail-ai-draft-panel{min-height:0!important}
.mail-ai-draft-actions{flex:0 0 auto;padding-top:10px!important}
.mail-ai-window-controls{
  position:absolute;
  top:14px;
  right:14px;
  z-index:20;
  display:flex;
  gap:8px;
}
.mail-ai-window-controls .mail-081-modal-close,
.mail-ai-minimize{
  position:static!important;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid #30375d;
  border-radius:9px;
  background:#0b0f27;
  color:#dce2ff;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.mail-ai-minimize:hover,.mail-ai-window-controls .mail-081-modal-close:hover{border-color:#5a69aa;background:#121936}
.mail-ai-workspace-modal.is-minimized{
  display:block!important;
  pointer-events:none!important;
  padding:0!important;
  background:transparent!important;
}
.mail-ai-workspace-modal.is-minimized .mail-081-modal-backdrop{display:none!important}
.mail-ai-workspace-modal.is-minimized .mail-ai-workspace{
  position:fixed!important;
  right:18px!important;
  bottom:18px!important;
  left:auto!important;
  top:auto!important;
  width:min(440px,calc(100vw - 36px))!important;
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  margin:0!important;
  padding:13px 92px 11px 16px!important;
  overflow:hidden!important;
  pointer-events:auto!important;
  box-shadow:0 18px 50px rgba(0,0,0,.65)!important;
}
.mail-ai-workspace-modal.is-minimized .mail-ai-workspace-grid,
.mail-ai-workspace-modal.is-minimized .mail-ai-workspace-head p,
.mail-ai-workspace-modal.is-minimized .ai-badge{display:none!important}
.mail-ai-workspace-modal.is-minimized .mail-ai-workspace-head{padding:0!important}
.mail-ai-workspace-modal.is-minimized .mail-ai-workspace-head h3{
  margin:8px 0 0!important;
  font-size:15px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mail-ai-workspace-modal.is-minimized .mail-ai-window-controls{top:17px;right:12px}
@media(max-height:720px){
  .mail-ai-workspace{height:calc(100dvh - 54px)!important;max-height:calc(100dvh - 54px)!important;min-height:460px!important}
  .mail-ai-workspace-modal{padding:6px 12px!important}
  .mail-ai-workspace-head p{display:none!important}
}
@media(max-width:900px){
  .mail-ai-workspace{width:calc(100vw - 20px)!important;height:calc(100dvh - 44px)!important;max-height:calc(100dvh - 44px)!important;min-height:0!important;padding:14px!important}
  .mail-ai-workspace-modal{padding:6px 10px!important}
}


/* NUXSIT Mail 0.8.1.34 - one unified composer for new mail and replies */
.mail-legacy-reply-composer{display:none!important}
.mail-unified-original{margin:0 0 12px;border:1px solid #2e3965;border-radius:12px;background:#080c20;overflow:hidden;max-height:180px;flex:0 0 auto}
.mail-unified-original-head{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #252f54;color:#aeb9e0;font-size:9px;letter-spacing:.08em}
.mail-unified-original-meta{padding:9px 12px 0;color:#8994ba;font-size:9px}
.mail-unified-original pre{margin:0;padding:10px 12px 12px;max-height:115px;overflow:auto;white-space:pre-wrap;color:#dbe1f5;font:500 10px/1.5 Inter,Arial,sans-serif}
.mail-unified-ai-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mail-ai-answer-direct{border-left-color:#8c4dff!important;background:linear-gradient(110deg,rgba(48,91,220,.28),rgba(118,37,226,.32))!important}
.mail-compose-workspace-modal .mail-081-modal-backdrop{cursor:default}
@media(max-width:760px){.mail-unified-ai-actions{grid-template-columns:1fr}.mail-unified-original{max-height:145px}}


/* NUXSIT Mail 0.8.1.36 - stable unified AI actions and equal buttons */
.mail-compose-workspace .mail-unified-ai-actions,
.mail-compose-workspace .mail-081-compose-actions{align-items:stretch!important}
.mail-compose-workspace .mail-unified-ai-actions .nuxsit-mail-button,
.mail-compose-workspace .mail-081-compose-actions .nuxsit-mail-button{
  min-height:42px!important;
  height:42px!important;
  padding:0 18px!important;
  border-radius:10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.mail-compose-workspace .mail-unified-ai-actions .nuxsit-mail-button{width:100%!important}
.mail-compose-workspace .mail-081-compose-actions{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.mail-compose-workspace .mail-081-compose-actions .nuxsit-mail-button{min-width:120px!important}


/* NUXSIT Mail 0.8.1.37 - aligned unified controls */
.mail-compose-workspace .mail-unified-ai-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:10px!important;
}
.mail-compose-workspace .mail-unified-ai-actions > .nuxsit-mail-button{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 14px!important;
}
.mail-compose-workspace .mail-081-compose-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,140px))!important;
  align-items:center!important;
  justify-content:start!important;
  gap:10px!important;
}
.mail-compose-workspace .mail-081-compose-actions > .nuxsit-mail-button{
  box-sizing:border-box!important;
  width:140px!important;
  min-width:140px!important;
  max-width:140px!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 12px!important;
}
@media(max-width:760px){
  .mail-compose-workspace .mail-unified-ai-actions{grid-template-columns:1fr!important}
  .mail-compose-workspace .mail-081-compose-actions{grid-template-columns:1fr!important}
  .mail-compose-workspace .mail-081-compose-actions > .nuxsit-mail-button{width:100%!important;min-width:0!important;max-width:none!important}
}


/* NUXSIT Mail 0.8.1.41 - selectable forwarded thread messages */
.mail-forward-selectbar{margin:0 0 12px;padding:12px;border:1px solid #33406f;border-radius:11px;background:linear-gradient(110deg,rgba(19,78,170,.22),rgba(91,39,197,.18));display:flex;align-items:center;justify-content:space-between;gap:12px}
.mail-forward-selectbar[hidden]{display:none!important}.mail-forward-selectbar>div:first-child strong,.mail-forward-selectbar>div:first-child span{display:block}.mail-forward-selectbar>div:first-child strong{font-size:12px}.mail-forward-selectbar>div:first-child span{margin-top:3px;color:#9ca8ce;font-size:9px}
.mail-forward-select-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mail-forward-select-actions .nuxsit-mail-button{height:36px!important;min-width:92px!important;padding:0 13px!important}.mail-forward-select-actions label{display:flex;align-items:center;gap:7px;color:#9ca8ce;font-size:9px}.mail-forward-select-actions select{height:36px;border:1px solid #33406f;border-radius:9px;background:#090d22;color:#eef2ff;padding:0 10px}.mail-forward-select-actions .mail-forward-primary{background:linear-gradient(110deg,#168fff,#6f25ff)!important}
.mail-forward-pick{display:none;position:relative;flex:0 0 34px;width:34px;height:34px;border:1px solid #394677;border-radius:9px;background:#080c20;color:#dfe7ff;cursor:pointer}.is-forward-selecting .mail-forward-pick{display:grid;place-items:center}.mail-forward-pick .mail-forward-check{opacity:.28;font-weight:900}.mail-forward-order-badge{display:none;position:absolute;right:-5px;top:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#238dff;color:#fff;font-size:9px;line-height:17px}.mail-thread-card.is-forward-selected{border-color:#268fff!important;box-shadow:0 0 0 1px rgba(38,143,255,.35),0 0 20px rgba(75,58,255,.13)}.mail-thread-card.is-forward-selected .mail-forward-pick{background:linear-gradient(135deg,#168fff,#6f25ff);border-color:#63b8ff}.mail-thread-card.is-forward-selected .mail-forward-check{opacity:1}.mail-thread-card.is-forward-selected .mail-forward-order-badge{display:block}.is-forward-selecting .mail-thread-card summary{grid-template-columns:auto 1fr auto}.is-forward-selecting .mail-thread-card summary>span{flex:1}
@media(max-width:880px){.mail-forward-selectbar{align-items:flex-start;flex-direction:column}.mail-forward-select-actions{width:100%}.mail-forward-select-actions .nuxsit-mail-button{flex:1 1 120px}}

/* NUXSIT Mail 0.8.1.42 - Cc/Bcc and forwarded recipient assistant */
.mail-compose-recipient-fields{grid-template-columns:1fr 1fr!important}
.mail-forward-recipient-hint{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 10px;padding:9px 11px;border:1px solid #30406e;border-radius:9px;background:#0a0f28;color:#aeb9df;font-size:10px}
.mail-forward-recipient-hint[hidden]{display:none!important}.mail-forward-recipient-hint strong{color:#eef2ff}.mail-forward-recipient-hint span{flex:1;min-width:180px}.mail-forward-recipient-hint button{min-height:32px!important;height:32px!important;padding:0 12px!important;font-size:9px!important}
@media(max-width:1000px){.mail-compose-recipient-fields{grid-template-columns:1fr!important}}


/* NUXSIT Mail 0.8.1.44 - selectable recipients from forwarded headers */
.mail-forward-recipient-hint{display:block!important;margin:8px 0 10px;padding:11px 12px;border:1px solid #30406e;border-radius:10px;background:#0a0f28;color:#aeb9df;font-size:10px}
.mail-forward-recipient-hint[hidden]{display:none!important}
.mail-forward-recipient-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.mail-forward-recipient-head>div:first-child{display:flex;flex-direction:column;gap:3px}.mail-forward-recipient-head strong{color:#eef2ff}.mail-forward-recipient-head span{color:#8f9abd}
.mail-forward-recipient-quick{display:flex;gap:7px;flex-wrap:wrap}.mail-forward-recipient-quick .nuxsit-mail-button{min-height:31px!important;height:31px!important;padding:0 11px!important;font-size:9px!important}
.mail-forward-recipient-list{display:grid;gap:7px}.mail-forward-recipient-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border:1px solid #27345d;border-radius:8px;background:#080c20}.mail-forward-recipient-info{display:flex;align-items:center;gap:9px;min-width:0}.mail-forward-recipient-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eef2ff}.mail-forward-recipient-role{display:inline-grid;place-items:center;min-width:55px;padding:4px 7px;border-radius:999px;background:#18214a;color:#8dc9ff;font-size:8px;font-weight:900;text-transform:uppercase}.mail-forward-recipient-actions{display:flex;gap:5px;flex-wrap:wrap}.mail-forward-recipient-actions .nuxsit-mail-button{min-width:48px!important;min-height:29px!important;height:29px!important;padding:0 9px!important;font-size:8px!important}.mail-recipient-skip{opacity:.72}
@media(max-width:760px){.mail-forward-recipient-row{align-items:flex-start;flex-direction:column}.mail-forward-recipient-actions{width:100%}}


/* NUXSIT Mail 0.8.1.45 - balanced composer height */
.mail-compose-workspace{height:calc(100dvh - 54px)!important;max-height:calc(100dvh - 54px)!important;padding:16px 18px!important}
.mail-compose-workspace-head h3{font-size:23px!important;margin:4px 0 2px!important}.mail-compose-workspace-head p{margin-bottom:8px!important;font-size:12px!important}
.mail-compose-workspace-grid{gap:12px!important}.mail-compose-editor-fields{gap:8px!important}.mail-compose-editor-fields label{gap:4px!important}.mail-compose-editor-fields input{height:38px!important;min-height:38px!important}
.mail-unified-original{max-height:150px!important;margin-bottom:8px!important}.mail-unified-original pre{max-height:92px!important}
.mail-forward-recipient-hint{max-height:285px;overflow:hidden;margin:6px 0 8px!important;padding:9px 10px!important}.mail-forward-recipient-list{max-height:210px;overflow:auto;padding-right:3px}
.mail-forward-recipient-row{padding:6px 8px!important}.mail-forward-recipient-head{margin-bottom:7px!important}.mail-forward-recipient-quick{align-items:center}
.mail-recipient-done{background:linear-gradient(110deg,#168fff,#6f25ff)!important;border-left-color:#1597ff!important}
.mail-recipient-reopen{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:32px!important;min-height:32px!important;margin:5px 0 7px!important;padding:0 12px!important;font-size:9px!important;width:max-content!important}
.mail-recipient-reopen[hidden]{display:none!important}
.mail-compose-body-label{min-height:0!important}.mail-compose-body-label textarea{min-height:180px!important}
.mail-compose-editor-panel{min-height:0!important}.mail-compose-send-form{min-height:0!important}
@media(max-height:820px){.mail-compose-workspace{height:calc(100dvh - 36px)!important;max-height:calc(100dvh - 36px)!important;padding:12px 14px!important}.mail-compose-workspace-head p{display:none!important}.mail-forward-recipient-hint{max-height:225px}.mail-forward-recipient-list{max-height:155px}.mail-unified-original{max-height:125px!important}.mail-unified-original pre{max-height:70px!important}.mail-compose-body-label textarea{min-height:140px!important}}

/* NUXSIT Mail 0.8.1.46 - guaranteed visible composer controls */
.mail-compose-workspace-modal{
  align-items:flex-start!important;
  padding:8px 12px 18px!important;
  overflow:hidden!important;
}
.mail-compose-workspace{
  width:calc(100vw - 24px)!important;
  height:min(700px,calc(100dvh - 118px))!important;
  min-height:500px!important;
  max-height:calc(100dvh - 118px)!important;
  padding:12px 16px!important;
  overflow:hidden!important;
}
.mail-compose-workspace-head{flex:0 0 auto!important}
.mail-compose-workspace-head h3{font-size:22px!important;margin:3px 0 2px!important}
.mail-compose-workspace-head p{margin:0 0 7px!important;font-size:11px!important}
.mail-compose-workspace-grid{flex:1 1 auto!important;min-height:0!important;gap:10px!important}
.mail-compose-ai-panel,.mail-compose-editor-panel{min-height:0!important;overflow:hidden!important}
.mail-compose-ai-panel{display:flex!important;flex-direction:column!important}
.mail-compose-ai-panel .mail-ai-chat-feed{flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
.mail-compose-ai-form{flex:0 0 auto!important;max-height:44%!important;overflow:auto!important;padding:9px 10px!important}
.mail-compose-ai-form textarea{min-height:58px!important;max-height:82px!important}
.mail-compose-editor-panel{display:flex!important;flex-direction:column!important;padding:9px 11px 0!important}
.mail-compose-send-form{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
.mail-compose-editor-fields{flex:0 0 auto!important;gap:7px!important}
.mail-compose-editor-fields input{height:34px!important;min-height:34px!important;padding:7px 10px!important}
.mail-recipient-reopen{flex:0 0 auto!important;margin:3px 0 5px!important}
.mail-forward-recipient-hint{flex:0 0 auto!important;max-height:170px!important;margin:3px 0 5px!important}
.mail-forward-recipient-list{max-height:105px!important}
.mail-compose-body-label{display:flex!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
.mail-compose-body-label textarea{flex:1 1 auto!important;min-height:90px!important;overflow:auto!important}
.mail-compose-send-form .mail-081-compose-actions{
  position:relative!important;
  flex:0 0 auto!important;
  margin:0 -11px!important;
  padding:8px 11px 10px!important;
  background:#080b20!important;
  box-shadow:0 -10px 20px rgba(3,5,18,.38)!important;
}
@media(max-height:760px){
  .mail-compose-workspace{height:calc(100dvh - 92px)!important;max-height:calc(100dvh - 92px)!important;min-height:430px!important}
  .mail-compose-workspace-head p{display:none!important}
  .mail-unified-original{max-height:95px!important}.mail-unified-original pre{max-height:48px!important}
  .mail-forward-recipient-hint{max-height:130px!important}.mail-forward-recipient-list{max-height:75px!important}
  .mail-compose-ai-form{max-height:40%!important}.mail-compose-ai-form textarea{min-height:46px!important;max-height:64px!important}
}

/* NUXSIT Mail 0.8.1.68: full Gmail search and delete action */
.mail-search-form{position:relative}.mail-search-form input[type=search]{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#eef0f8;font:inherit}.mail-search-form input[type=search]::placeholder{color:#969cb7}.mail-search-form input[type=search]::-webkit-search-cancel-button{display:none}.mail-search-clear{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#aeb4ca;text-decoration:none;background:#171b36}.mail-delete-form{display:inline-flex;margin:0}.mail-delete-command{border-color:rgba(239,83,80,.45)!important;color:#ff9b99!important}.mail-delete-command:hover{background:rgba(239,83,80,.12)!important}.mail-search-result-note{color:#9aa1bd}


/* NUXSIT Mail 0.8.1.71: instant animated delete without confirmation. */
.mail-07-item.is-deleting{
  pointer-events:none;
  overflow:hidden;
  transform-origin:top center;
  animation:nuxsit-mail-fold-away .28s cubic-bezier(.55,.02,.2,1) forwards;
}
@keyframes nuxsit-mail-fold-away{
  0%{opacity:1;transform:perspective(700px) rotateX(0deg) translateX(0);max-height:180px;padding-top:15px;padding-bottom:15px;border-bottom-width:1px}
  55%{opacity:.25;transform:perspective(700px) rotateX(-72deg) translateX(34px);max-height:90px}
  100%{opacity:0;transform:perspective(700px) rotateX(-90deg) translateX(90px);max-height:0;padding-top:0;padding-bottom:0;border-bottom-width:0;margin:0}
}
.mail-instant-delete-error{margin:10px 14px;padding:11px 14px;border:1px solid rgba(255,80,125,.45);border-radius:10px;background:rgba(125,18,52,.28);color:#ff9bb8;font-size:12px;font-weight:700}
@media (prefers-reduced-motion:reduce){.mail-07-item.is-deleting{animation:none!important;opacity:0;max-height:0;padding:0;border:0}}


/* 0.8.1.75 - dedicated mobile mail layout inspired by native phone mail apps */
.mail-mobile-folderbar,.mail-mobile-folder-head,.mail-mobile-readerbar{display:none}
@media (max-width:760px){
  html,body{overflow-x:hidden}
  body.mail-mobile-folders-open,body.mail-mobile-reading{overflow:hidden}
  .mail-shell{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
  .mail-07-topbar{display:none!important}
  .dashboard-alert{margin:8px 12px!important}
  .mail-07-app{display:block!important;position:relative!important;height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#07090e!important}

  .mail-mobile-folderbar{display:grid;grid-template-columns:72px 1fr 88px;align-items:center;height:58px;padding:max(8px,env(safe-area-inset-top)) 10px 8px;box-sizing:content-box;background:rgba(7,9,14,.96);border-bottom:1px solid rgba(255,255,255,.10);position:relative;z-index:30;color:#fff}
  .mail-mobile-folderbar button{border:0;background:none;color:#58a6ff;font:inherit;padding:8px 2px}
  .mail-mobile-back-folders{font-size:38px!important;line-height:1;text-align:left}
  .mail-mobile-edit{text-align:right;font-size:14px!important}
  .mail-mobile-folderbar>div{text-align:center;min-width:0}.mail-mobile-folderbar strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-mobile-folderbar small{display:block;color:#9ca3af;font-size:11px;margin-top:2px}

  .mail-07-list-pane{position:absolute!important;inset:74px 0 0!important;width:100%!important;border:0!important;background:#07090e!important;display:flex!important;flex-direction:column!important}
  .mail-07-list-pane>header{display:none!important}
  .mail-07-list{height:auto!important;max-height:none!important;flex:1;overflow-y:auto!important;background:#07090e!important;padding:0 12px 86px!important;-webkit-overflow-scrolling:touch}
  .mail-07-item{display:block!important;min-height:76px!important;padding:11px 6px 10px 54px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.10)!important;border-radius:0!important;background:transparent!important;position:relative;color:#fff!important}
  .mail-07-item:before{content:attr(data-avatar);position:absolute;left:4px;top:14px;width:38px;height:38px;border-radius:9px;background:#b8d7ff;color:#1c3c66;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
  .mail-07-item.is-unread:after{content:'';position:absolute;left:-7px;top:34px;width:7px;height:7px;border-radius:50%;background:#0a84ff}
  .mail-07-item.is-selected{background:rgba(10,132,255,.14)!important}
  .mail-07-item-top{gap:8px!important}.mail-07-item-top strong{font-size:15px!important;color:#fff!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-07-item-top time{font-size:12px!important;color:#9ca3af!important;white-space:nowrap}
  .mail-07-item-subject{font-size:14px!important;color:#f3f4f6!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px!important}.mail-07-item p{font-size:12px!important;line-height:1.3!important;color:#9ca3af!important;margin:2px 0 0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mail-07-item .mail-category{display:none!important}

  .mail-mobile-folder-head{display:grid;grid-template-columns:70px 1fr 70px;align-items:center;position:absolute;inset:0 0 auto 0;z-index:70;min-height:58px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;box-sizing:content-box;background:#111318;border-bottom:1px solid rgba(255,255,255,.10);transform:translateX(-102%);transition:transform .22s ease;color:#fff}.mail-mobile-folder-head>div{text-align:center;min-width:0}.mail-mobile-folder-head strong{display:block}.mail-mobile-folder-head small{display:block;color:#8b93a1;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-mobile-folder-head button{border:0;background:none;color:#0a84ff;text-align:left;font-size:14px}
  .mail-07-sidebar{display:block!important;position:absolute!important;z-index:65!important;inset:74px 0 0!important;width:100%!important;max-width:none!important;transform:translateX(-102%);transition:transform .22s ease;background:#111318!important;padding:14px 12px 100px!important;overflow-y:auto!important;border:0!important}
  body.mail-mobile-folders-open .mail-07-sidebar,body.mail-mobile-folders-open .mail-mobile-folder-head{transform:translateX(0)}
  .mail-07-new{width:48px!important;height:48px!important;border-radius:50%!important;position:fixed!important;right:18px!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;z-index:75!important;font-size:0!important;padding:0!important}.mail-07-new span{font-size:27px!important;margin:0!important}
  .mail-12-nav-group{background:#1c1f25!important;border-radius:12px!important;margin:0 0 12px!important;overflow:hidden}.mail-12-nav-group summary{padding:12px 14px!important;color:#9ca3af!important}.mail-12-nav-list a{min-height:44px!important;padding:0 14px!important;border-bottom:1px solid rgba(255,255,255,.08)!important;border-radius:0!important;color:#f3f4f6!important}.mail-12-nav-list a:last-child{border-bottom:0!important}.mail-12-nav-list a.active{background:rgba(10,132,255,.16)!important;color:#68b4ff!important}.mail-12-nav-list a b{color:#aeb4bf!important}.mail-07-folder-title,.mail-07-account,.mail-07-disconnect{margin-left:2px!important;margin-right:2px!important}

  .mail-07-reader-pane{position:absolute!important;z-index:50!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:none!important;background:#fff!important;transform:translateX(102%);transition:transform .22s ease;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding-top:74px!important;padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
  body.mail-mobile-reading .mail-07-reader-pane{transform:translateX(0)}
  .mail-mobile-readerbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:fixed;z-index:90;left:0;right:0;top:0;min-height:58px;padding:max(8px,env(safe-area-inset-top)) 10px 8px;box-sizing:content-box;background:rgba(20,22,27,.96);border-bottom:1px solid rgba(255,255,255,.10);color:#fff}.mail-mobile-readerbar button{border:0;background:none;color:#58a6ff;font-size:15px;padding:8px;text-align:left}.mail-mobile-readerbar button:last-child{text-align:right;font-size:23px}.mail-mobile-readerbar strong{font-size:14px}.mail-mobile-reader-back{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mail-mobile-reader-back span{font-size:13px}
  .mail-07-reader-empty{display:none!important}.mail-07-reader-header{padding:18px 16px 12px!important;background:#fff!important;color:#111!important}.mail-07-reader-header h2{font-size:22px!important;line-height:1.25!important;color:#111!important}.mail-07-sender{color:#111!important}.mail-07-sender span,.mail-07-sender small{color:#667085!important}.mail-avatar{flex:none}
  .mail-081-commandbar{position:fixed!important;z-index:91!important;left:0;right:0;bottom:0;min-height:58px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;background:rgba(20,22,27,.96)!important;border-top:1px solid rgba(255,255,255,.12)!important;display:flex!important;justify-content:space-around!important;gap:6px!important}.mail-081-commandbar .mail-category{display:none!important}.mail-081-commandbar .mail-delete-form{display:contents!important}.mail-081-command{border:0!important;background:transparent!important;color:#58a6ff!important;font-size:0!important;min-width:54px!important;padding:10px!important}.mail-081-command:before{font-size:23px}.mail-081-command[data-reply-source]:first-child:before{content:'↩'}.mail-081-command[data-original-subject]:not(:first-child):before{content:'↗'}.mail-delete-command:before{content:'⌫'}
  .mail-conversation-thread{padding:0 10px 20px!important;background:#f5f5f7!important}.mail-conversation-head{padding:12px 6px!important}.mail-thread-card,.mail-direct-image-body,.mail-thread-html-frame{max-width:100%!important}.mail-thread-html-frame{min-height:180px!important}.mail-inline-image-gallery img,.mail-attachment-image-preview img,.mail-direct-image-body img{max-width:100%!important;height:auto!important}
  .mail-081-modal-card{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important;padding-bottom:env(safe-area-inset-bottom)!important}.mail-081-modal{padding:0!important}
}


/* 0.8.1.76 - faster mobile opening and fixed message actions in top bar */
@media (max-width:760px){
  .mail-mobile-readerbar{
    grid-template-columns:minmax(118px,1fr) auto 126px!important;
    padding-right:8px!important;
  }
  .mail-mobile-readerbar>button:last-child{display:none!important}
  .mail-mobile-readerbar strong{position:absolute;left:50%;transform:translateX(-50%);pointer-events:none}
  .mail-mobile-reader-back{max-width:132px!important;padding-right:4px!important}
  .mail-081-commandbar{
    position:fixed!important;
    z-index:96!important;
    top:max(8px,env(safe-area-inset-top))!important;
    right:6px!important;
    bottom:auto!important;
    left:auto!important;
    width:auto!important;
    min-height:42px!important;
    height:42px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
  }
  .mail-081-commandbar .mail-delete-form{display:block!important;margin:0!important}
  .mail-081-commandbar .mail-081-command{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    color:#58a6ff!important;
    background:transparent!important;
  }
  .mail-081-commandbar .mail-081-command:active{background:rgba(88,166,255,.16)!important}
  .mail-07-reader-pane{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
}


/* 0.8.1.77 - fullscreen mobile reader with floating glass controls */
@media (max-width:760px){
  body.mail-mobile-reading{background:#fff!important}
  body.mail-mobile-reading .mail-07-app{background:#fff!important}
  .mail-07-reader-pane{
    inset:0!important;
    height:100dvh!important;
    padding:0 0 calc(88px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
    scroll-padding-top:76px!important;
    overscroll-behavior-y:contain;
  }
  .mail-mobile-readerbar{
    left:10px!important;right:auto!important;top:calc(7px + env(safe-area-inset-top))!important;
    width:auto!important;min-height:0!important;height:42px!important;
    padding:0!important;display:flex!important;border:0!important;
    border-radius:22px!important;background:rgba(20,22,27,.72)!important;
    -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
    box-shadow:0 4px 18px rgba(0,0,0,.22)!important;
  }
  .mail-mobile-readerbar strong,.mail-mobile-readerbar>button:last-child{display:none!important}
  .mail-mobile-reader-back{
    max-width:154px!important;height:42px!important;padding:0 14px 0 11px!important;
    color:#fff!important;font-size:27px!important;line-height:1!important;display:flex!important;align-items:center!important;gap:4px!important;
  }
  .mail-mobile-reader-back span{font-size:13px!important;color:#fff!important;max-width:102px;overflow:hidden;text-overflow:ellipsis}
  .mail-081-commandbar{
    top:auto!important;right:auto!important;left:50%!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    transform:translateX(-50%)!important;
    width:auto!important;height:48px!important;min-height:48px!important;
    padding:3px 7px!important;gap:2px!important;
    border:1px solid rgba(255,255,255,.20)!important;border-radius:25px!important;
    background:rgba(20,22,27,.72)!important;
    -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
    box-shadow:0 5px 22px rgba(0,0,0,.28)!important;
  }
  .mail-081-commandbar .mail-081-command{
    width:44px!important;min-width:44px!important;height:42px!important;border-radius:21px!important;color:#fff!important;
  }
  .mail-081-commandbar .mail-081-command:before{font-size:22px!important}
  .mail-081-commandbar .mail-081-command:active{background:rgba(255,255,255,.16)!important}
  .mail-07-reader-header{
    padding:calc(66px + env(safe-area-inset-top)) 16px 14px!important;
    border:0!important;background:#fff!important;
  }
  .mail-07-reader-header h2{margin-top:0!important;font-size:21px!important}
  .mail-conversation-thread{padding:0!important;background:#fff!important}
  .mail-conversation-head{display:none!important}
  .mail-thread-card{margin:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
  .mail-thread-card>summary{padding:11px 16px!important;border-top:1px solid #eceef2!important;border-bottom:1px solid #eceef2!important}
  .mail-thread-content{padding:0!important;overflow:visible!important}
  .mail-thread-html-frame{display:block!important;width:100%!important;max-width:100%!important;min-height:180px!important;border:0!important;overflow:hidden!important;background:#fff!important}
  .mail-direct-image-body{margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
  .mail-direct-image-body figure{margin:0!important}
  .mail-direct-image-body img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;border-radius:0!important}
  .mail-inline-image-gallery,.mail-attachment-image-preview{padding-left:12px!important;padding-right:12px!important}
}

/* 0.8.1.78 - dark mobile reader, full-height inbox and reliable floating actions */
@media (max-width:760px){
  /* Let the mail app use the full remaining phone viewport. */
  .mail-07-app{height:100dvh!important;min-height:100dvh!important}
  .mail-07-list-pane{inset:74px 0 0!important;height:calc(100dvh - 74px)!important;min-height:0!important}
  .mail-07-list{height:100%!important;min-height:0!important;padding-bottom:calc(12px + env(safe-area-inset-bottom))!important}

  /* Keep the reader in the same dark NUXSIT style as Inbox. */
  body.mail-mobile-reading,
  body.mail-mobile-reading .mail-07-app,
  body.mail-mobile-reading .mail-07-reader-pane{background:#07090e!important;color:#f5f7fb!important}
  body.mail-mobile-reading .mail-07-reader-pane{
    position:fixed!important;
    inset:0!important;
    z-index:80!important;
    transform:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:0 0 calc(82px + env(safe-area-inset-bottom))!important;
  }
  .mail-07-reader-header{
    padding:calc(66px + env(safe-area-inset-top)) 16px 14px!important;
    background:#07090e!important;
    color:#f5f7fb!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
  }
  .mail-07-reader-header h2,
  .mail-07-sender,
  .mail-07-sender strong{color:#f5f7fb!important}
  .mail-07-sender span,.mail-07-sender small{color:#9ca3af!important}
  .mail-conversation-thread{background:#07090e!important;padding:0 10px 18px!important}
  .mail-thread-card{background:#111318!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;overflow:hidden!important}
  .mail-thread-card>summary{background:#111318!important;color:#f5f7fb!important;border-color:rgba(255,255,255,.10)!important}
  .mail-thread-content{background:#fff!important;color:#111!important}
  .mail-direct-image-body{background:#fff!important}

  /* Floating glass navigation and action controls must remain visible. */
  .mail-mobile-readerbar{
    display:flex!important;
    position:fixed!important;
    z-index:1000!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .mail-081-commandbar{
    display:flex!important;
    position:fixed!important;
    z-index:1001!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  .mail-081-commandbar .mail-081-command,
  .mail-081-commandbar .mail-delete-form{visibility:visible!important;opacity:1!important;pointer-events:auto!important}
  .mail-081-commandbar .mail-081-command{display:grid!important}
  .mail-081-commandbar .mail-081-command:nth-of-type(1):before{content:'↩'!important}
  .mail-081-commandbar .mail-081-command:nth-of-type(2):before{content:'↗'!important}
  .mail-081-commandbar .mail-delete-command:before{content:'⌫'!important}
}


/* 0.8.1.79 - mobile top action pills aligned with Inbox button */
@media (max-width:760px){
  /* keep the header actions on the same top floating line as the Inbox pill */
  .mail-mobile-readerbar{
    left:10px!important;
    right:auto!important;
    top:calc(7px + env(safe-area-inset-top))!important;
    width:auto!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    border:0!important;
    border-radius:22px!important;
    background:rgba(64,68,76,.88)!important;
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    backdrop-filter:blur(16px) saturate(140%);
    box-shadow:0 6px 22px rgba(0,0,0,.24)!important;
  }
  .mail-mobile-readerbar .mail-mobile-reader-back{
    max-width:none!important;
    height:42px!important;
    padding:0 14px 0 11px!important;
    color:#fff!important;
    font-size:18px!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    border-radius:22px!important;
    background:transparent!important;
  }
  .mail-mobile-readerbar .mail-mobile-reader-back span{
    font-size:15px!important;
    color:#fff!important;
    max-width:none!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }

  .mail-081-commandbar{
    top:calc(7px + env(safe-area-inset-top))!important;
    right:10px!important;
    left:auto!important;
    bottom:auto!important;
    transform:none!important;
    width:auto!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    gap:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:none!important;
  }
  .mail-081-commandbar .mail-delete-form{
    display:block!important;
    margin:0!important;
  }
  .mail-081-commandbar .mail-081-command{
    width:auto!important;
    min-width:0!important;
    height:42px!important;
    padding:0 14px!important;
    border-radius:22px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    background:rgba(64,68,76,.88)!important;
    color:#fff!important;
    border:0!important;
    font-size:14px!important;
    font-weight:700!important;
    line-height:1!important;
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    backdrop-filter:blur(16px) saturate(140%);
    box-shadow:0 6px 22px rgba(0,0,0,.24)!important;
    white-space:nowrap!important;
  }
  .mail-081-commandbar .mail-081-command:before{
    display:none!important;
    content:none!important;
  }
  .mail-081-commandbar .mail-081-command:active{
    background:rgba(84,89,99,.96)!important;
  }

  /* room for both top pill groups */
  .mail-07-reader-header{
    padding-top:calc(74px + env(safe-area-inset-top))!important;
  }

  /* make the inbox list fill all available screen height */
  .mail-07-list-pane{
    inset:74px 0 0!important;
    height:calc(100dvh - 74px)!important;
    min-height:0!important;
  }
  .mail-07-list{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    padding-bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }
}
