:root { --bg: #0f1420; --panel: #1a2030; --panel-2: #222a3d; --text: #e6e9f0; --muted: #8b93a7; --accent: #4f8cff; --danger: #eb5757; --ok: #6fcf97; } * { box-sizing: border-box; } body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); } .topbar { display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid #2c3550; } .brand { font-weight: 700; font-size: 18px; } .topbar nav a { color: var(--muted); text-decoration: none; margin-right: 14px; } .topbar nav a.active, .topbar nav a:hover { color: var(--text); } .spacer { flex: 1; } .user { color: var(--muted); font-size: 13px; } /* ── App body (sidebar + main) ── */ .app-body { display: flex; min-height: calc(100vh - 53px); } .sidebar { width: 216px; flex-shrink: 0; background: var(--panel); border-right: 1px solid #2c3550; display: flex; flex-direction: column; overflow-y: auto; transition: width 0.2s ease; } .sidebar--collapsed { width: 48px; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 10px; border-bottom: 1px solid #2c3550; min-height: 42px; flex-shrink: 0; } .sidebar-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-left: 6px; } .sidebar-toggle { padding: 2px 6px; font-size: 17px; line-height: 1; color: var(--muted); flex-shrink: 0; } .sidebar-toggle:hover { color: var(--text); } /* Section headings */ .section-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; border-bottom: 1px solid #2c3550; padding: 7px 10px 7px 12px; cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; } .section-head:hover { color: var(--text); } .section-title { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; } .section-arrow { font-size: 13px; transform: rotate(90deg); display: inline-block; transition: transform 0.15s; } .section-arrow--closed { transform: rotate(0deg); } /* Folder items */ .folder-list { list-style: none; margin: 0; padding: 2px 0; } .folder-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; color: var(--muted); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; transition: background 0.1s, color 0.1s; } .folder-item:hover { background: var(--panel-2); color: var(--text); } .folder-item:hover .fav-pin { opacity: 1; } .folder-item--active { border-left-color: var(--accent); color: var(--text); background: var(--panel-2); } .folder-icon { font-size: 14px; flex-shrink: 0; } .folder-label { flex: 1; overflow: hidden; text-overflow: ellipsis; } .folder-spacer { flex: 1; } .folder-badge { font-size: 10px; font-weight: 600; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 1px 5px; flex-shrink: 0; } .folder-item--active .folder-badge { background: #2c3550; color: var(--accent); } /* Favorite pin/unpin button */ .fav-pin { background: none; border: none; padding: 0 2px; cursor: pointer; font-size: 12px; color: var(--muted); opacity: 0; transition: opacity 0.1s, color 0.1s; flex-shrink: 0; line-height: 1; } .fav-pin:hover { color: var(--accent); } .fav-pin--remove { opacity: 1; color: var(--danger); } .fav-pin--remove:hover { color: #ff7070; } main { padding: 20px; flex: 1; min-width: 0; } button, .btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 14px; } button.danger, .btn.danger { background: var(--danger); } button:disabled { opacity: 0.5; cursor: default; } .toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; } .widget-toggles { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); } .grid-item { background: var(--panel); border: 1px solid #2c3550; border-radius: 10px; overflow: hidden; } .widget { padding: 14px; height: 100%; display: flex; flex-direction: column; } .widget h3 { margin: 0 0 10px; font-size: 14px; cursor: move; } .widget canvas { flex: 1; min-height: 0; } .stat { align-items: flex-start; justify-content: center; } .stat-value { font-size: 34px; font-weight: 700; } .stat-label { color: var(--muted); font-size: 13px; cursor: move; } .health-score { font-size: 46px; font-weight: 800; } .health-score span { font-size: 18px; color: var(--muted); } .grade-A { color: var(--ok); } .grade-B { color: #9bdf6f; } .grade-C { color: #f2c94c; } .grade-D { color: #f2994a; } .grade-F { color: var(--danger); } .recs { margin: 8px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); } table.mini, table.grid { width: 100%; border-collapse: collapse; font-size: 13px; } table.mini td { padding: 3px 0; } table.grid th, table.grid td { padding: 8px; border-bottom: 1px solid #2c3550; text-align: left; } .num { text-align: right; } .muted { color: var(--muted); font-size: 12px; } .heatmap { display: flex; flex-direction: column; gap: 2px; } .hm-row { display: flex; align-items: center; gap: 2px; } .hm-day { width: 30px; font-size: 10px; color: var(--muted); } .hm-cell { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; } /* Category heatmap */ .cat-heatmap { display: flex; flex-direction: column; gap: 3px; overflow: auto; } .chm-row { display: grid; grid-template-columns: 92px repeat(7, 1fr); gap: 3px; align-items: stretch; } .chm-head .chm-col { font-size: 10px; color: var(--muted); text-align: center; } .chm-label { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chm-cell { background: var(--accent); border-radius: 3px; min-height: 22px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; } /* react-grid-layout resize handle — make it clearly visible on the dark theme */ .react-resizable-handle { opacity: 0; transition: opacity 0.15s; } .grid-item:hover .react-resizable-handle { opacity: 1; } .react-resizable-handle::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-bottom-right-radius: 2px; } .react-grid-item.react-grid-placeholder { background: var(--accent); opacity: 0.25; border-radius: 10px; } /* Senders by volume */ .senders-page { max-width: 1100px; } .tier { margin-top: 22px; } .tier-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .tier-head h3 { margin: 0; font-size: 16px; } .tier-dot { width: 12px; height: 12px; border-radius: 50%; } .tier-count { color: var(--muted); font-size: 12px; } .sender-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } .sender-block { background: var(--panel); border: 1px solid #2c3550; border-top: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; } .sb-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sb-domain { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; } .sb-stats { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .sb-count { font-size: 20px; font-weight: 700; } .sb-unread { font-size: 11px; color: var(--accent); } .sb-unsub { font-size: 10px; color: var(--muted); border: 1px solid #36405c; border-radius: 4px; padding: 0 4px; } .tier-more { margin-top: 8px; } .page { max-width: 900px; } .form-row { display: flex; gap: 10px; margin: 14px 0; } .form-row input { flex: 1; } input, select { background: var(--panel-2); border: 1px solid #2c3550; color: var(--text); border-radius: 6px; padding: 8px; } .card { background: var(--panel); border: 1px solid #2c3550; border-radius: 10px; padding: 14px; margin-top: 12px; } .card.success { border-color: var(--ok); } .card ul { font-size: 13px; color: var(--muted); } /* ── Dev banner ── */ .dev-banner { background: repeating-linear-gradient(45deg, #3a2e12, #3a2e12 12px, #332810 12px, #332810 24px); color: #ffce6b; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; border-bottom: 1px solid #5a4718; } /* ── Shared buttons ── */ .brand-link { text-decoration: none; color: var(--text); display: inline-flex; } .ghost { background: transparent; border: 1px solid #36405c; color: var(--text); } .ghost:hover { border-color: var(--accent); } .cta { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; } .cta:hover { background: #5d97ff; } /* ── Landing page ── */ .landing { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; } .landing-bar { display: flex; align-items: center; padding: 18px 0; } .hero { text-align: center; padding: 48px 0 36px; } .hero h1 { font-size: 42px; margin: 18px 0 10px; letter-spacing: -0.02em; } .hero .sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 24px; line-height: 1.5; } .hero-cta { margin: 8px 0; } .fineprint { color: var(--muted); font-size: 12px; margin-top: 14px; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; } .feature { background: var(--panel); border: 1px solid #2c3550; border-radius: 12px; padding: 20px; } .feature-icon { font-size: 26px; } .feature h3 { margin: 10px 0 6px; font-size: 17px; } .feature p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; } .closing { text-align: center; margin: 56px 0 20px; } .closing h2 { font-size: 28px; margin-bottom: 18px; } .landing-footer { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c3550; } /* ── Folder view ── */ .folder-view { max-width: 960px; } .folder-view-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; } .folder-view-title { margin: 0; font-size: 20px; font-weight: 700; } .folder-view-count { color: var(--muted); font-size: 13px; } .fv-loading, .fv-empty { color: var(--muted); font-size: 14px; padding: 32px 0; } .fv-error { color: var(--danger); font-size: 14px; padding: 12px 0; } .email-list { width: 100%; border-collapse: collapse; font-size: 13px; } .email-row { border-bottom: 1px solid #2c3550; cursor: default; } .email-row:hover { background: var(--panel); } .email-row--unread .el-sender, .email-row--unread .el-subj-text { font-weight: 700; color: var(--text); } .el-unread { width: 14px; padding: 10px 4px 10px 0; } .unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } .el-sender { width: 180px; padding: 10px 12px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); } .el-subject { padding: 10px 8px; overflow: hidden; } .el-subj-text { color: var(--text); } .el-snippet { color: var(--muted); } .el-meta { width: 80px; padding: 10px 8px; text-align: right; white-space: nowrap; } .el-attach { margin-right: 4px; font-size: 12px; } .el-size { font-size: 11px; color: var(--muted); } .el-date { width: 70px; padding: 10px 0 10px 8px; text-align: right; color: var(--muted); white-space: nowrap; font-size: 12px; } .fv-pagination { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--muted); } .fv-pagination button { background: var(--panel); border: 1px solid #2c3550; color: var(--text); padding: 6px 12px; } .fv-pagination button:disabled { opacity: 0.35; cursor: default; } /* ── Sync splash ── */ .splash { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 14, 22, 0.92); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; } .splash-card { text-align: center; max-width: 440px; padding: 32px; } .splash-card h2 { margin: 16px 0 6px; } .progress-track { height: 10px; background: var(--panel-2); border-radius: 6px; overflow: hidden; margin: 20px 0 10px; } .progress-fill { height: 100%; background: linear-gradient(90deg, #4f8cff, #6fcf97); border-radius: 6px; transition: width 0.4s ease; } .progress-fill[data-indeterminate="true"] { animation: indet 1.2s ease-in-out infinite; } @keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } } .progress-label { color: var(--muted); font-size: 13px; }