@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";:root{--bg-primary:#f8fafc;--bg-secondary:#fff;--bg-hover:#f1f5f9;--text-primary:#0f172a;--text-secondary:#64748b;--text-muted:#94a3b8;--accent:#3b82f6;--accent-hover:#2563eb;--accent-light:#eff6ff;--border:#e2e8f0;--sidebar-w:260px;--list-w:350px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a}@media (prefers-color-scheme:dark){:root{--bg-primary:#09090b;--bg-secondary:#18181b;--bg-hover:#27272a;--text-primary:#f8fafc;--text-secondary:#a1a1aa;--text-muted:#52525b;--accent:#8b5cf6;--accent-hover:#7c3aed;--accent-light:#8b5cf626;--border:#27272a;--shadow-sm:0 1px 2px 0 #00000080;--shadow-md:0 4px 6px -1px #0006, 0 2px 4px -2px #0006;--shadow-lg:0 10px 15px -3px #00000080, 0 4px 6px -4px #00000080}}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased;font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5;overflow:hidden}.app-container{background:var(--bg-primary);width:100vw;height:100vh;display:flex}.sidebar{width:var(--sidebar-w);background-color:var(--bg-secondary);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;padding:1.5rem 1rem;transition:all .3s;display:flex}.brand{color:var(--text-primary);align-items:center;gap:.75rem;margin-bottom:2rem;padding:0 .5rem;font-size:1.25rem;font-weight:700;display:flex}.brand-icon{color:var(--accent);background:var(--accent-light);border-radius:.75rem;justify-content:center;align-items:center;padding:.5rem;display:flex}.nav-item{color:var(--text-secondary);cursor:pointer;border-radius:.5rem;align-items:center;gap:.75rem;margin-bottom:.25rem;padding:.75rem 1rem;font-weight:500;transition:all .2s;display:flex}.nav-item:hover{background-color:var(--bg-hover);color:var(--text-primary)}.nav-item.active{background-color:var(--accent-light);color:var(--accent)}.nav-badge{background:var(--accent);color:#fff;border-radius:1rem;margin-left:auto;padding:.1rem .5rem;font-size:.75rem;font-weight:600}.email-list-container{width:var(--list-w);background-color:var(--bg-primary);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;display:flex}.list-header{border-bottom:1px solid var(--border);background-color:var(--bg-secondary);z-index:10;flex-direction:column;gap:1rem;padding:1.5rem;display:flex;position:sticky;top:0}.search-bar{background:var(--bg-hover);border:1px solid #0000;border-radius:.5rem;align-items:center;gap:.5rem;padding:.5rem 1rem;transition:border-color .2s;display:flex}.search-bar:focus-within{border-color:var(--accent);background:var(--bg-secondary)}.search-bar input{color:var(--text-primary);background:0 0;border:none;outline:none;width:100%;font-family:inherit}.email-list{flex:1;overflow-y:auto}.email-item{border-bottom:1px solid var(--border);cursor:pointer;background:var(--bg-primary);padding:1.25rem 1.5rem;transition:all .2s}.email-item:hover{background:var(--bg-hover)}.email-item.selected{background:var(--accent-light);border-left:3px solid var(--accent);padding-left:calc(1.5rem - 3px)}.email-item-header{justify-content:space-between;align-items:baseline;margin-bottom:.25rem;display:flex}.email-sender{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;max-width:70%;font-size:.95rem;font-weight:600;overflow:hidden}.email-time{color:var(--text-muted);font-size:.75rem}.email-subject{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;margin-bottom:.25rem;font-size:.9rem;font-weight:500;overflow:hidden}.email-preview{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;overflow:hidden}.email-reader{background-color:var(--bg-secondary);flex-direction:column;flex:1;display:flex;overflow-y:auto}.reader-empty{color:var(--text-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1rem;display:flex}.reader-empty svg{opacity:.5;width:48px;height:48px}.reader-header{border-bottom:1px solid var(--border);padding:2rem}.reader-subject{color:var(--text-primary);margin-bottom:1.5rem;font-size:1.5rem;font-weight:700}.reader-meta{justify-content:space-between;align-items:flex-start;display:flex}.sender-info{align-items:center;gap:1rem;display:flex}.sender-avatar{background:linear-gradient(135deg, var(--accent), var(--accent-hover));color:#fff;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.2rem;font-weight:600;display:flex}.sender-details{flex-direction:column;display:flex}.sender-name{color:var(--text-primary);font-weight:600}.sender-email{color:var(--text-secondary);font-size:.85rem}.reader-time{color:var(--text-muted);font-size:.85rem}.reader-body{color:var(--text-primary);padding:2rem;font-size:.95rem;line-height:1.6}.reader-body p{margin-bottom:1rem}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}@keyframes fadeIn{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:.3s forwards fadeIn}.compose-btn{background:var(--accent);color:#fff;cursor:pointer;box-shadow:var(--shadow-md);border:none;border-radius:1rem;justify-content:center;align-items:center;gap:.75rem;margin-bottom:2rem;padding:1rem;font-family:inherit;font-size:1rem;font-weight:600;transition:all .2s;display:flex}.compose-btn:hover{background:var(--accent-hover);box-shadow:var(--shadow-lg);transform:translateY(-2px)}.compose-modal{background:var(--bg-secondary);z-index:100;border:1px solid var(--border);border-bottom:none;border-radius:1rem 1rem 0 0;flex-direction:column;width:500px;animation:.3s cubic-bezier(.16,1,.3,1) forwards slideUp;display:flex;position:fixed;bottom:0;right:5rem;box-shadow:0 -10px 40px #0003}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.compose-header{background:var(--bg-hover);border-bottom:1px solid var(--border);border-radius:1rem 1rem 0 0;justify-content:space-between;align-items:center;padding:1rem 1.5rem;display:flex}.compose-header h3{color:var(--text-primary);font-size:.95rem;font-weight:600}.close-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:.25rem;padding:.25rem;transition:all .2s;display:flex}.close-btn:hover{background:var(--bg-primary);color:var(--text-primary)}.compose-body{flex-direction:column;display:flex}.compose-body input{border:none;border-bottom:1px solid var(--border);color:var(--text-primary);background:0 0;outline:none;padding:1rem 1.5rem;font-family:inherit;font-size:.95rem}.compose-body input:focus{background:var(--bg-primary)}.compose-body textarea{color:var(--text-primary);resize:none;background:0 0;border:none;outline:none;height:300px;padding:1.5rem;font-family:inherit;font-size:.95rem}.compose-footer{border-top:1px solid var(--border);background:var(--bg-secondary);justify-content:flex-start;padding:1rem 1.5rem;display:flex}.send-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:2rem;align-items:center;gap:.5rem;padding:.75rem 2rem;font-family:inherit;font-weight:600;transition:background .2s;display:flex}.send-btn:hover{background:var(--accent-hover)}.send-btn:disabled{opacity:.7;cursor:not-allowed}
