﻿
    :root{--brand:#7c5cff;--brand-h:#5f41ff;--brand-bg:#f1edff;--accent:#22d3ee;--accent-2:#f43f5e;--side-bg:#0b1020;--side-h:#121a33;--side-a:#1a2447;--surface:#ffffff;--surface-2:#f7f8fc;--text:#0f172a;--muted:#64748b;--ring:rgba(124,92,255,.25);--glow:0 18px 50px rgba(64,56,128,.22);}
    *{font-family:'Inter',system-ui,-apple-system,sans-serif;}
    body{overflow:hidden;height:100vh;margin:0;}
    .reading-body,.reading-body *:not(iframe):not(style):not(script),.reading-body *:not(iframe)::before,.reading-body *:not(iframe)::after{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;width:auto!important;}
    .reading-body .email-content-wrapper *:not(style):not(script):not(link),.reading-body .email-content-wrapper *:not(style):not(script)::before,.reading-body .email-content-wrapper *:not(style):not(script)::after{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;width:auto!important;}
    .reading-body .email-content-wrapper p,.reading-body .email-content-wrapper div,.reading-body .email-content-wrapper span,.reading-body .email-content-wrapper td,.reading-body .email-content-wrapper th,.reading-body .email-content-wrapper li{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;width:auto!important;}
    .reading-body .email-content-wrapper table{display:table!important;max-width:none!important;width:auto!important;}
    .reading-body .email-content-wrapper img{display:inline-block!important;max-width:100%!important;}
    .reading-body .email-content-wrapper br{display:inline!important;}
    *[style*="text-overflow:ellipsis"],*[style*="text-overflow: ellipsis"],*[style*="overflow:hidden"]{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;max-width:none!important;width:auto!important;}
    .prose,.prose *,.prose-slate,.prose-slate *,.prose p,.prose div,.prose span,.prose-slate p,.prose-slate div,.prose-slate span{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;width:auto!important;display:block!important;line-height:normal!important;}
    .prose table,.prose-slate table{display:table!important;max-width:none!important;width:auto!important;}
    .prose img,.prose-slate img{display:inline-block!important;max-width:100%!important;}
    .prose br,.prose-slate br{display:inline!important;}
    div[data-testid="text-email-body"],div[data-testid="text-email-body"] *{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;width:auto!important;display:block!important;}
    div[data-testid="text-email-body"] table{display:table!important;}
    div[data-testid="text-email-body"] img{display:inline-block!important;}

    /* â”€â”€ Landing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .landing-bg{background:radial-gradient(circle at 10% 10%,rgba(124,92,255,.35) 0%,transparent 45%),radial-gradient(circle at 90% 20%,rgba(34,211,238,.25) 0%,transparent 40%),radial-gradient(circle at 50% 100%,rgba(244,63,94,.2) 0%,transparent 45%),linear-gradient(135deg,#090d1c 0%,#111a3a 45%,#0a1024 100%);min-height:100vh;}
    .landing-card{background:rgba(255,255,255,.94);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.25);}
    .brand-logo{width:52px;height:52px;background:linear-gradient(135deg,#7c5cff 0%,#22d3ee 100%);border-radius:14px;display:flex;align-items:center;justify-content:center;box-shadow:0 16px 40px rgba(124,92,255,.45);}
    .landing-nav{padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;}
    .landing-nav a{color:#e2e8f0;text-decoration:none;font-size:13px;font-weight:600;opacity:.85;}
    .landing-nav a:hover{opacity:1;}
    .landing-nav .nav-pill{border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:6px 12px;background:rgba(255,255,255,.06);}
    .landing-footer{margin-top:40px;padding:28px;border-top:1px solid rgba(255,255,255,.12);color:#cbd5f1;}
    .landing-footer h6{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#94a3b8;margin-bottom:10px;}
    .landing-footer a{color:#cbd5f1;text-decoration:none;font-size:12px;}
    .landing-footer a:hover{color:#fff;}
    .nav-pills .nav-link{color:#6b7280;font-weight:500;border-radius:10px;padding:10px 24px;transition:.2s;}
    .nav-pills .nav-link.active{background:var(--brand);color:#fff;}
    .form-control:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,70,229,.15);}
    .btn-brand{background:linear-gradient(135deg,#7c5cff 0%,#22d3ee 100%);border:none;color:#fff;font-weight:700;padding:12px;border-radius:12px;transition:.2s;box-shadow:0 16px 40px rgba(124,92,255,.35);}
    .btn-brand:hover{background:linear-gradient(135deg,#6b4dff 0%,#14b8d4 100%);color:#fff;transform:translateY(-1px);box-shadow:0 20px 50px rgba(34,211,238,.35);}
    .btn-brand:disabled{opacity:.6;transform:none;}
    .input-icon{position:relative;}.input-icon i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#9ca3af;font-size:15px;z-index:2;}
    .input-icon .form-control{padding-left:42px;}
    .form-control{border-radius:10px;padding:11px 16px;border:1.5px solid #e5e7eb;font-size:14px;}
    .feature-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;box-shadow:0 10px 24px rgba(34,211,238,.25);}

    /* â”€â”€ Mail Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .mail-layout{display:flex;height:100vh;overflow:hidden;}
    .mail-sidebar{width:260px;min-width:260px;background:var(--side-bg);color:#e2e8f0;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.06);transition:width .3s,min-width .3s;}
    .mail-sidebar.collapsed{width:60px;min-width:60px;}.mail-sidebar.collapsed .hide-collapsed{display:none!important;}
    .mail-sidebar .brand-area{padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.06);}
    .sidebar-nav{flex:1;overflow-y:auto;padding:8px 10px;}
    .sidebar-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;cursor:pointer;transition:.15s;font-size:13px;color:#94a3b8;margin-bottom:1px;position:relative;text-decoration:none;}
    .sidebar-item:hover{background:var(--side-h);color:#e2e8f0;}.sidebar-item.active{background:var(--side-a);color:#fff;font-weight:500;}
    .sidebar-item.active::before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:var(--brand);}
    .sidebar-item .badge-count{margin-left:auto;font-size:10px;font-weight:600;background:rgba(255,255,255,.1);color:#94a3b8;padding:2px 7px;border-radius:10px;min-width:20px;text-align:center;}
    .sidebar-item.active .badge-count{background:var(--brand);color:#fff;}
    .sidebar-section{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#475569;padding:14px 12px 6px;font-weight:600;display:flex;align-items:center;justify-content:space-between;}
    .sidebar-footer{padding:14px;border-top:1px solid rgba(255,255,255,.06);}
    .user-avatar{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex-shrink:0;}
    .compose-btn{width:100%;padding:9px;background:var(--brand);color:#fff;border:none;border-radius:10px;font-weight:600;font-size:13px;display:flex;align-items:center;justify-content:center;gap:8px;transition:.2s;cursor:pointer;}
    .compose-btn:hover{background:var(--brand-h);transform:translateY(-1px);}

    /* â”€â”€ Account/Folder Items â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .account-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;cursor:pointer;transition:.15s;font-size:13px;color:#94a3b8;margin-bottom:1px;}
    .account-item:hover{background:var(--side-h);color:#e2e8f0;}.account-item.active{background:var(--side-a);color:#fff;}
    .account-avatar{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex-shrink:0;}
    .account-item .acct-name{font-weight:500;font-size:12.5px;}.account-item .acct-email{font-size:10.5px;color:#64748b;}.account-item.active .acct-email{color:#94a3b8;}
    .brand-account-switcher{cursor:pointer;display:flex;align-items:center;gap:10px;flex-grow:1;overflow:hidden;position:relative;}
    .brand-account-switcher:hover{opacity:.85;}
    .brand-chevron{font-size:10px;color:#64748b;transition:transform .2s;margin-left:auto;flex-shrink:0;}
    .brand-chevron.open{transform:rotate(180deg);}
    .account-dropdown{position:absolute;top:100%;left:0;right:0;background:linear-gradient(180deg,#111830 0%,#0d1526 100%);border:1px solid rgba(255,255,255,.08);border-radius:0 0 12px 12px;box-shadow:0 12px 32px rgba(0,0,0,.4);z-index:1000;max-height:320px;overflow-y:auto;padding:6px;}
    .account-dropdown .account-item{margin-bottom:2px;border-radius:8px;}
    .account-dropdown .account-item.active{background:rgba(99,102,241,.15);border-left:3px solid var(--brand);}
    .account-dropdown-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999;}
    .folder-item{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 44px;border-radius:8px;cursor:pointer;transition:.12s;font-size:12.5px;color:#64748b;margin-bottom:1px;}
    .folder-item:hover{background:var(--side-h);color:#94a3b8;}.folder-item.active{background:var(--side-a);color:#fff;font-weight:500;}
    .folder-item .badge-count{margin-left:auto;font-size:10px;font-weight:600;background:rgba(255,255,255,.08);color:#64748b;padding:1px 6px;border-radius:8px;min-width:18px;text-align:center;}
    .folder-item.active .badge-count{background:var(--brand);color:#fff;}
    .folder-item .folder-actions{display:none;gap:2px;margin-left:auto;}.folder-item:hover .folder-actions{display:flex;}
    .folder-item.drag-over{background:var(--brand)!important;color:#fff!important;}

    /* â”€â”€ Quota Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .quota-bar{margin:8px 14px;}.quota-label{font-size:10px;color:#64748b;margin-bottom:2px;display:flex;justify-content:space-between;}
    .quota-progress{height:4px;background:rgba(255,255,255,.08);border-radius:2px;overflow:hidden;}
    .quota-progress-fill{height:100%;background:var(--brand);border-radius:2px;transition:width .3s;}

    /* â”€â”€ Email List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .email-list-pane{width:400px;min-width:320px;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;background:#fafbfc;}
    .email-list-header{padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#fff;}
    .email-list-scroll{flex:1;overflow-y:auto;}
    .email-item{display:flex;gap:10px;padding:10px 16px;border-bottom:1px solid #f0f1f3;cursor:pointer;transition:.12s;position:relative;align-items:flex-start;}
    .email-item:hover{background:#f0f4ff;}.email-item.active{background:#eff2ff;border-left:3px solid var(--brand);padding-left:13px;}
    .email-item.unread{background:#fff;}.email-item.unread .email-sender{font-weight:600;color:#111827;}
    .email-item.unread .email-subject{font-weight:600;color:#111827;}
    .email-item.selected{background:#e8ebff;}
    .email-item[draggable="true"]{cursor:grab;}.email-item[draggable="true"]:active{cursor:grabbing;}
    .email-checkbox{flex-shrink:0;margin-top:2px;accent-color:var(--brand);}
    .email-star{flex-shrink:0;cursor:pointer;color:#d1d5db;font-size:14px;transition:.15s;margin-top:3px;}
    .email-star:hover,.email-star.starred{color:#f59e0b;}
    .email-avatar{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex-shrink:0;}
    .email-sender{font-size:13px;color:#374151;}.email-subject{font-size:12.5px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .email-preview{font-size:11.5px;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
    .email-date{font-size:10.5px;color:#9ca3af;white-space:nowrap;}.email-size{font-size:10px;color:#c0c4cc;}
    .email-attachment-badge{font-size:11px;color:#9ca3af;}
    .load-more-btn{padding:12px;text-align:center;border-bottom:1px solid #f0f1f3;}.load-more-btn button{font-size:13px;}

    /* â”€â”€ Labels/Tags â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .email-label{display:inline-block;font-size:9px;font-weight:600;padding:1px 6px;border-radius:4px;margin-right:3px;text-transform:uppercase;letter-spacing:.5px;}
    .label-red{background:#fee2e2;color:#dc2626;}.label-blue{background:#dbeafe;color:#2563eb;}.label-green{background:#dcfce7;color:#16a34a;}
    .label-yellow{background:#fef3c7;color:#d97706;}.label-purple{background:#f3e8ff;color:#9333ea;}.label-orange{background:#ffedd5;color:#ea580c;}
    .label-pink{background:#fce7f3;color:#db2777;}.label-gray{background:#f3f4f6;color:#6b7280;}

    /* â”€â”€ Bulk/Filter/Sort Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .bulk-bar{padding:8px 16px;background:#eff2ff;border-bottom:1px solid #dde1ff;display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap;}
    .bulk-bar .btn{font-size:12px;padding:4px 10px;}
    .filter-sort-bar{padding:6px 16px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:6px;font-size:12px;background:#fff;}
    .filter-pill{padding:3px 10px;border-radius:20px;cursor:pointer;transition:.15s;border:1px solid #e5e7eb;background:#fff;color:#6b7280;font-size:11px;white-space:nowrap;}
    .filter-pill:hover{border-color:var(--brand);color:var(--brand);}.filter-pill.active{background:var(--brand);color:#fff;border-color:var(--brand);}

    /* â”€â”€ Search â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .search-box{position:relative;}.search-box input{font-size:13px;padding:7px 12px 7px 34px;border-radius:8px;border:1.5px solid #e5e7eb;width:100%;background:#f9fafb;}
    .search-box input:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 2px rgba(79,70,229,.1);}
    .search-box i{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#9ca3af;font-size:13px;}
    .search-results-label{padding:6px 16px;background:#fef3c7;font-size:12px;color:#92400e;border-bottom:1px solid #fde68a;display:flex;align-items:center;justify-content:space-between;}

    /* â”€â”€ Reading Pane â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .reading-pane{flex:1;display:flex;flex-direction:column;background:#fff;overflow:hidden;}
    .reading-header{padding:18px 24px;border-bottom:1px solid #e5e7eb;}
    .reading-body{flex:1;overflow-y:auto!important;padding:24px;max-height:none!important;height:auto!important;background:#f3f4f6;}
    .email-viewer-card{max-width:680px;margin:0 auto;background:#fff;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,.06);overflow:hidden;}
    .email-viewer-plain{padding:24px;color:#1f2937;}
    .email-view-toolbar{max-width:680px;margin:0 auto 10px;display:flex;justify-content:flex-end;}
    .email-html-frame{display:block;width:100%;border:0;min-height:120px;background:#fff;}
    .thread-body-wrap .email-viewer-card{max-width:100%;}
    .email-content-wrapper{width:100%!important;overflow:visible!important;max-height:none!important;height:auto!important;min-height:auto!important;max-width:none!important;}
    .email-content-wrapper *:not(style):not(script):not(link){max-width:none!important;width:auto!important;word-wrap:break-word!important;overflow-wrap:break-word!important;text-overflow:clip!important;white-space:normal!important;overflow:visible!important;max-height:none!important;height:auto!important;min-height:auto!important;}
    .email-content-wrapper p,.email-content-wrapper div,.email-content-wrapper span,.email-content-wrapper td,.email-content-wrapper th,.email-content-wrapper li,.email-content-wrapper h1,.email-content-wrapper h2,.email-content-wrapper h3,.email-content-wrapper section,.email-content-wrapper article{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-height:none!important;height:auto!important;min-height:auto!important;}
    .reading-body pre{white-space:pre-wrap;font-family:inherit;margin:0;line-height:1.7;color:#374151;}
    .reading-body img{max-width:100%!important;height:auto!important;display:inline-block!important;}
    .reading-body table{max-width:100%!important;table-layout:auto!important;word-wrap:break-word!important;display:table!important;}
    .reading-body [style*="text-overflow"],.reading-body [style*="overflow:hidden"],.reading-body [style*="overflow: hidden"],.email-content-wrapper [style*="text-overflow"],.email-content-wrapper [style*="overflow:hidden"],.email-content-wrapper [style*="overflow: hidden"],.email-content-wrapper [style*="max-height"],.email-content-wrapper [style*="height"]{text-overflow:clip!important;overflow:visible!important;white-space:normal!important;max-height:none!important;height:auto!important;min-height:auto!important;}
    .email-text p{margin:0 0 10px 0;line-height:1.7;color:#374151;}
    .email-text p:last-child{margin-bottom:0;}
    .quote-details{margin:8px 0;}
    .quote-details summary{cursor:pointer;color:#6b7280;font-size:12px;}
    .email-quote{border-left:3px solid #e5e7eb;padding-left:12px;margin:6px 0 0;color:#6b7280;font-size:13px;}
    .email-meta-avatar{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:15px;}

    /* â”€â”€ Layout: Bottom Pane â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .mail-content-area.layout-bottom{flex-direction:column!important;}
    .layout-bottom .email-list-pane{width:100%!important;min-width:0!important;border-right:none!important;border-bottom:1px solid #e5e7eb;height:50%;}
    .layout-bottom .reading-pane{height:50%;}
    .mail-content-area.layout-off .reading-pane{display:none!important;}.layout-off .email-list-pane{width:100%!important;min-width:0!important;border-right:none!important;}

    /* â”€â”€ Attachments â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .attachments-bar{padding:12px 24px;border-top:1px solid #e5e7eb;background:#f8f9fb;}
    .attachment-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;font-size:12px;margin:3px;cursor:pointer;transition:.15s;text-decoration:none;color:inherit;}
    .attachment-chip:hover{border-color:var(--brand);background:var(--brand-bg);color:var(--brand);}
    .att-icon{font-size:16px;}

    /* â”€â”€ Thread View â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .thread-item{border:1px solid #e5e7eb;border-radius:10px;margin-bottom:8px;overflow:hidden;}
    .thread-header{padding:10px 16px;background:#f8f9fb;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:13px;}
    .thread-header:hover{background:#eff2ff;}
    .thread-header.collapsed .thread-body-wrap{display:none;}
    .thread-body-wrap{padding:16px;border-top:1px solid #e5e7eb;}
    .thread-count{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--brand-bg);color:var(--brand);font-size:10px;font-weight:700;}

    /* â”€â”€ Quick Reply â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .quick-reply{border-top:1px solid #e5e7eb;padding:16px 24px;background:#fafbfc;}
    .quick-reply textarea{border:1.5px solid #e5e7eb;border-radius:10px;font-size:13px;padding:10px 14px;width:100%;resize:none;min-height:60px;transition:min-height .2s;}
    .quick-reply textarea:focus{border-color:var(--brand);box-shadow:0 0 0 2px rgba(79,70,229,.1);min-height:100px;}

    /* â”€â”€ Context Menu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .context-menu{position:fixed;z-index:10000;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:6px 0;min-width:200px;}
    .context-menu-item{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:13px;cursor:pointer;transition:.1s;color:#374151;}
    .context-menu-item:hover{background:#f0f4ff;color:var(--brand);}.context-menu-divider{height:1px;background:#e5e7eb;margin:4px 0;}
    .context-menu-item.danger{color:#dc2626;}.context-menu-item.danger:hover{background:#fef2f2;}

    /* â”€â”€ Compose â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .compose-footer{border-top:1px solid #e5e7eb;padding:12px 20px;background:#fafbfc;}
    .cc-bcc-toggle{cursor:pointer;color:var(--brand);font-size:12px;font-weight:500;}.cc-bcc-toggle:hover{text-decoration:underline;}
    .contact-suggest{position:absolute;z-index:1000;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);max-height:180px;overflow-y:auto;width:100%;top:100%;left:0;}
    .contact-suggest-item{padding:8px 14px;cursor:pointer;font-size:13px;border-bottom:1px solid #f3f4f6;}
    .contact-suggest-item:hover{background:#f0f4ff;}.contact-suggest-item:last-child{border-bottom:none;}

    /* â”€â”€ Rich Text Editor â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .editor-toolbar{display:flex;flex-wrap:wrap;gap:2px;padding:6px 8px;border-bottom:1px solid #e5e7eb;background:#f8f9fb;}
    .editor-toolbar button{background:none;border:1px solid transparent;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:13px;color:#374151;transition:.12s;line-height:1;}
    .editor-toolbar button:hover{background:#e5e7eb;}.editor-toolbar button.active{background:var(--brand-bg);color:var(--brand);border-color:var(--brand);}
    .editor-toolbar .sep{width:1px;background:#d1d5db;margin:2px 4px;align-self:stretch;}
    #composeEditor{min-height:200px;padding:16px;font-size:14px;line-height:1.7;outline:none;overflow-y:auto;max-height:400px;}
    #composeEditor:empty::before{content:attr(placeholder);color:#9ca3af;}

    /* â”€â”€ File Upload Area â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .upload-area{padding:8px 16px;border-top:1px solid #e5e7eb;background:#f8f9fb;}
    .upload-preview{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
    .upload-file{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:11px;}
    .upload-file .remove{cursor:pointer;color:#dc2626;font-weight:bold;margin-left:4px;}

    /* â”€â”€ Analytics â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;text-align:center;}
    .stat-number{font-size:28px;font-weight:700;color:var(--brand);}
    .stat-label{font-size:12px;color:#6b7280;margin-top:4px;}
    .chart-bar-container{display:flex;align-items:flex-end;gap:4px;height:120px;padding:8px 0;}
    .chart-bar{flex:1;background:var(--brand);border-radius:4px 4px 0 0;min-width:12px;transition:height .3s;position:relative;}
    .chart-bar:hover{background:var(--brand-h);}
    .chart-bar-label{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);font-size:8px;color:#9ca3af;white-space:nowrap;}
    .chart-bar-value{position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-size:9px;color:#6b7280;font-weight:600;}
    .top-list-item{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #f3f4f6;font-size:13px;}

    /* â”€â”€ Settings â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .settings-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:24px;margin-bottom:16px;}
    .config-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f3f4f6;font-size:14px;}
    .config-row:last-child{border-bottom:none;}.config-label{color:#6b7280;font-weight:500;}
    .config-value{color:#111827;font-family:'SF Mono','Fira Code',monospace;font-size:13px;user-select:all;}

    /* â”€â”€ Empty/Loading â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#9ca3af;text-align:center;padding:40px;}
    .empty-state i{font-size:56px;margin-bottom:16px;color:#d1d5db;}.empty-state h5{color:#6b7280;font-weight:600;margin-bottom:8px;}

    /* â”€â”€ Undo Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .undo-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#1e1b4b;color:#fff;padding:12px 24px;border-radius:12px;display:flex;align-items:center;gap:16px;font-size:14px;z-index:10001;box-shadow:0 8px 32px rgba(0,0,0,.3);animation:fadeUp .3s ease-out;}
    .undo-toast button{background:var(--brand);color:#fff;border:none;padding:6px 16px;border-radius:8px;font-weight:600;font-size:13px;cursor:pointer;transition:.15s;}
    .undo-toast button:hover{background:var(--brand-h);}
    .undo-progress{width:100px;height:3px;background:rgba(255,255,255,.2);border-radius:2px;overflow:hidden;}
    .undo-progress-fill{height:100%;background:var(--brand);animation:undoCountdown 5s linear forwards;}
    @keyframes undoCountdown{from{width:100%}to{width:0%}}

    /* â”€â”€ Misc â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .fade-up{animation:fadeUp .3s ease-out;}@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none;}}
    .fade-in{animation:fadeIn .2s ease-in;}@keyframes fadeIn{from{opacity:0}to{opacity:1}}
    ::-webkit-scrollbar{width:6px;}::-webkit-scrollbar-track{background:transparent;}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px;}
    .mail-sidebar ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);}
    .toast-container{position:fixed;bottom:24px;right:24px;z-index:9999;}
    .kbd{display:inline-block;padding:2px 6px;background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;font-size:11px;font-family:monospace;color:#374151;line-height:1.4;}

    /* â”€â”€ Dark Mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    [data-bs-theme="dark"] .email-list-pane{background:#1a1a2e;border-color:#2d2d52;}
    [data-bs-theme="dark"] .email-list-header{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .filter-sort-bar{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .email-item{border-color:#2d2d52;}[data-bs-theme="dark"] .email-item:hover{background:#252542;}
    [data-bs-theme="dark"] .email-item.active{background:#2d2d52;}[data-bs-theme="dark"] .email-item.unread{background:#1e1e36;}
    [data-bs-theme="dark"] .email-item.unread .email-sender,[data-bs-theme="dark"] .email-item.unread .email-subject{color:#e2e8f0;}
    [data-bs-theme="dark"] .email-item.selected{background:#2d2d5a;}
    [data-bs-theme="dark"] .reading-pane{background:#16162b;}[data-bs-theme="dark"] .reading-header{border-color:#2d2d52;}
    [data-bs-theme="dark"] .reading-body{background:#12121f;}
    [data-bs-theme="dark"] .reading-body pre{color:#374151;}
    [data-bs-theme="dark"] .email-viewer-card{background:#fff;border-color:#e5e7eb;}
    [data-bs-theme="dark"] .email-viewer-plain{color:#1f2937;}
    [data-bs-theme="dark"] .settings-card{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .search-box input{background:#1e1e36;border-color:#2d2d52;color:#e2e8f0;}
    [data-bs-theme="dark"] .bulk-bar{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .email-sender{color:#cbd5e1;}[data-bs-theme="dark"] .email-subject{color:#cbd5e1;}
    [data-bs-theme="dark"] .search-results-label{background:#312e81;color:#c7d2fe;border-color:#4338ca;}
    [data-bs-theme="dark"] .config-row{border-color:#2d2d52;}[data-bs-theme="dark"] .config-value{color:#e2e8f0;}
    [data-bs-theme="dark"] .compose-footer{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .filter-pill{background:#1e1e36;border-color:#2d2d52;color:#94a3b8;}
    [data-bs-theme="dark"] .context-menu{background:#1e1e36;border-color:#2d2d52;}[data-bs-theme="dark"] .context-menu-item{color:#e2e8f0;}
    [data-bs-theme="dark"] .context-menu-item:hover{background:#252542;}
    [data-bs-theme="dark"] .attachments-bar{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .attachment-chip{background:#252542;border-color:#2d2d52;color:#e2e8f0;}
    [data-bs-theme="dark"] .quick-reply{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .quick-reply textarea{background:#16162b;border-color:#2d2d52;color:#e2e8f0;}
    [data-bs-theme="dark"] .contact-suggest{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .contact-suggest-item{border-color:#2d2d52;color:#e2e8f0;}.contact-suggest-item:hover{background:#252542;}
    [data-bs-theme="dark"] .load-more-btn{border-color:#2d2d52;}
    [data-bs-theme="dark"] .stat-card{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .editor-toolbar{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .editor-toolbar button{color:#e2e8f0;}
    [data-bs-theme="dark"] .editor-toolbar button:hover{background:#2d2d52;}
    [data-bs-theme="dark"] #composeEditor{color:#e2e8f0;}
    [data-bs-theme="dark"] .upload-area{background:#1e1e36;border-color:#2d2d52;}
    [data-bs-theme="dark"] .upload-file{background:#252542;border-color:#2d2d52;color:#e2e8f0;}
    [data-bs-theme="dark"] .thread-item{border-color:#2d2d52;}
    [data-bs-theme="dark"] .thread-header{background:#1e1e36;}
    [data-bs-theme="dark"] .thread-body-wrap{border-color:#2d2d52;}

    /* â”€â”€ Pro UI Overrides â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .mail-layout{background:var(--surface-2);}
    .mail-main{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;}
    .mail-topbar{padding:14px 20px;background:rgba(255,255,255,.75);backdrop-filter:blur(16px);border-bottom:1px solid #e7e9f2;display:flex;align-items:center;justify-content:space-between;gap:12px;}
    .topbar-title{font-weight:700;font-size:16px;color:var(--text);letter-spacing:.2px;}
    .topbar-sub{font-size:12px;color:var(--muted);}
    .topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
    .btn-neo{border:1px solid #e4e7f2;background:#fff;border-radius:12px;padding:8px 12px;font-size:12px;font-weight:600;color:#1f2a44;box-shadow:var(--glow);transition:.15s;}
    .btn-neo:hover{border-color:#d7dbeb;transform:translateY(-1px);}
    .mail-sidebar{background:linear-gradient(180deg,#0b1020 0%,#101a38 100%);}
    .email-list-pane{background:var(--surface-2);border-right:1px solid #e6e9f3;}
    .email-list-header{background:#fff;border-bottom:1px solid #e6e9f3;}
    .email-item:hover{background:#eef2ff;}
    .email-item.active{background:#e8edff;}
    .reading-pane{background:var(--surface);}
    .settings-card,.stat-card{border-radius:16px;border:1px solid #e6e9f3;box-shadow:var(--glow);}
    .context-menu{border-radius:14px;border:1px solid #e6e9f3;box-shadow:0 12px 32px rgba(15,23,42,.15);}
    .search-box input{padding:9px 40px 9px 36px;border-radius:12px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.06);}
    .bulk-bar{background:#eef0ff;border-bottom:1px solid #dfe3ff;}
    .filter-sort-bar{padding:8px 16px;border-bottom:1px solid #e6e9f3;}
    .filter-pill{padding:5px 12px;border-radius:20px;border:1px solid #e6e9f3;}
    .landing-bg{background:radial-gradient(circle at 10% 10%,rgba(124,92,255,.35) 0%,transparent 45%),radial-gradient(circle at 90% 20%,rgba(34,211,238,.25) 0%,transparent 40%),radial-gradient(circle at 50% 100%,rgba(244,63,94,.2) 0%,transparent 45%),linear-gradient(135deg,#090d1c 0%,#111a3a 45%,#0a1024 100%);}
    .landing-card{box-shadow:0 24px 80px rgba(15,23,42,.35);}
    .brand-logo{background:linear-gradient(135deg,#7c5cff 0%,#22d3ee 100%);}
    [data-bs-theme="dark"] .mail-topbar{background:rgba(15,18,34,.8);border-color:#1f2a44;}
    [data-bs-theme="dark"] .btn-neo{background:#141a33;border-color:#1f2a44;color:#e2e8f0;}

    @media print{.mail-sidebar,.email-list-pane,.reading-header .d-flex.gap-1,.quick-reply,.attachments-bar .attachment-chip a{display:none!important;}.mail-layout{display:block!important;}.reading-pane{overflow:visible!important;}}
    @media(max-width:768px){.mail-sidebar:not(.show-mobile){width:0!important;min-width:0!important;overflow:hidden;}.email-list-pane{width:100%!important;min-width:0!important;}.reading-pane.mobile-hidden{display:none!important;}}
  
