:root { /* v2 brand — warm charcoal + green (aligns with the token system in index.css). Legacy classes still read these; the v2 shell/components use the token system. */ --bg: #1a1917; --panel: #211f1d; --panel-2: #2a2724; --text: #f2efe9; --muted: #a8a29a; --accent: #46ad27; --danger: #d95a4a; --ok: #5bbf4a; } * { 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 #332f2b; } .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; } /* ── Search bar ── */ .search-form { display: flex; align-items: center; gap: 0; flex: 1; max-width: 420px; } .search-input { flex: 1; background: var(--panel-2); border: 1px solid #332f2b; border-right: none; color: var(--text); border-radius: 6px 0 0 6px; padding: 7px 10px; font-size: 13px; min-width: 0; } .search-input:focus { outline: none; border-color: var(--accent); } .search-btn { background: var(--panel-2); border: 1px solid #332f2b; border-left: none; color: var(--muted); border-radius: 0 6px 6px 0; padding: 7px 10px; cursor: pointer; font-size: 13px; } .search-btn:hover { color: var(--text); border-color: var(--accent); } .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 #332f2b; 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 #332f2b; 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 #332f2b; 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: #332f2b; 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 #332f2b; 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--link { cursor: pointer; } .widget--link:hover { border-color: var(--accent); } .mini-row--link { cursor: pointer; } .mini-row--link:hover td { color: var(--accent); } .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 #332f2b; text-align: left; } .num { text-align: right; } .muted { color: var(--muted); font-size: 12px; } /* Emails by Category — ranked horizontal bars */ .cat-bars { display: flex; flex-direction: column; gap: 6px; overflow: auto; } .cat-bar { display: grid; grid-template-columns: 92px 1fr 40px; gap: 8px; align-items: center; width: 100%; padding: 3px 4px; margin: 0; border: none; background: transparent; border-radius: 6px; text-align: left; font: inherit; color: inherit; } .cat-bar--link { cursor: pointer; } .cat-bar--link:hover { background: rgba(255, 255, 255, 0.04); } .cat-bar:disabled { cursor: default; } .cat-bar-label { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-bar-track { height: 14px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; } .cat-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; min-width: 2px; } .cat-bar-count { font-size: 11px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; } .cat-bar--link:hover .cat-bar-label { color: var(--accent); } /* 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 master-detail ─────────────────────────────────────────────── */ .senders-master-detail { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 56px); /* fill below topbar */ overflow: hidden; } /* Left panel — sender list */ .sl-panel { display: flex; flex-direction: column; border-right: 1px solid #332f2b; overflow: hidden; } .sl-search-wrap { padding: 10px 12px 6px; } .sl-search { width: 100%; box-sizing: border-box; background: var(--panel-2); border: 1px solid #332f2b; color: var(--text); border-radius: 6px; padding: 7px 10px; font-size: 13px; } .sl-count { padding: 0 14px 6px; font-size: 11px; color: var(--muted); } .sl-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; } .sl-item { display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 10px 14px; border-bottom: 1px solid #26231f; color: var(--text); } .sl-item:hover { background: var(--panel-2); } .sl-item--active { background: var(--panel-2); border-left: 3px solid var(--accent); padding-left: 11px; } .sl-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sl-addr { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; } .sl-meta { display: flex; align-items: baseline; gap: 8px; } .sl-email-count { font-size: 13px; font-weight: 700; color: var(--accent); } .sl-unread { font-size: 11px; color: var(--muted); } /* Right panel — email list for selected sender */ .sd-panel { display: flex; flex-direction: column; overflow-y: auto; padding: 0; } .sd-panel-header { padding: 16px 20px 12px; border-bottom: 1px solid #332f2b; background: var(--panel); position: sticky; top: 0; z-index: 1; } .sd-panel-name { font-size: 16px; font-weight: 700; } .sd-panel-addr { font-size: 12px; color: var(--muted); margin-bottom: 4px; } .sd-panel-count { font-size: 12px; color: var(--muted); } /* Single email detail view */ .sd-detail { padding: 20px; max-width: 760px; } .sd-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid #332f2b; border-radius: 6px; color: var(--text); font-size: 13px; cursor: pointer; padding: 5px 12px; margin-bottom: 18px; } .sd-back:hover { background: var(--panel-2); } .sd-detail-header { margin-bottom: 14px; } .sd-detail-subject { font-size: 18px; font-weight: 700; margin-bottom: 6px; } .sd-detail-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .sd-detail-sep { opacity: 0.4; } .sd-snippet { background: var(--panel); border: 1px solid #332f2b; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; margin-bottom: 18px; } .sd-ai-summary { margin-bottom: 14px; } .sd-ai-summary-text { background: var(--panel-2); border: 1px solid #332f2b; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--text); } .sd-detail-actions { display: flex; gap: 10px; } .btn-sm { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 600; } .btn-sm:hover { opacity: 0.85; } .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 #332f2b; color: var(--text); border-radius: 6px; padding: 8px; } .card { background: var(--panel); border: 1px solid #332f2b; 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 #3d3833; 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: #57c231; } /* ── 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 #332f2b; 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 #332f2b; } /* ── 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 { height: 44px; border-bottom: 1px solid #332f2b; cursor: pointer; transition: background 0.1s ease; } .email-row > td { padding-top: 0; padding-bottom: 0; vertical-align: middle; } /* Single, consistent hover state for the whole row. */ .email-row:hover { background: var(--panel); } /* Unread: prominent subject, keep sender readable but not shouty. */ .email-row--unread .el-subj-text { font-weight: 700; color: var(--text); } .email-row--unread .el-sender { font-weight: 600; color: var(--text); } .el-select { width: 34px; padding: 0 4px 0 10px; text-align: center; } .el-select > * { vertical-align: middle; } .el-unread { width: 14px; padding: 0 4px 0 0; text-align: center; } .unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } /* Sender: secondary in the hierarchy — muted by default. */ .el-sender { width: 180px; padding: 0 12px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; } /* Subject + snippet share one line: subject prominent, snippet muted. */ .el-subject { padding: 0 8px; overflow: hidden; max-width: 0; white-space: nowrap; text-overflow: ellipsis; } .el-subj-text { color: var(--text); } .el-snippet { color: var(--muted); font-size: 12.5px; } .el-snippet::before { content: '—'; margin: 0 6px; opacity: 0.55; } .el-meta { width: 80px; padding: 0 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: 0 0 0 8px; text-align: right; color: var(--muted); white-space: nowrap; font-size: 12px; } .el-actions { width: 96px; padding: 0 6px; text-align: right; white-space: nowrap; } .action-btn { background: none; border: none; padding: 4px 5px; cursor: pointer; font-size: 13px; line-height: 1; opacity: 0; transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease; border-radius: 4px; color: var(--muted); } .action-btn:hover { background: var(--panel-2); color: var(--text); opacity: 1 !important; } .action-btn--active { opacity: 1 !important; } .action-btn--danger:hover { color: var(--danger); } .email-row:hover .action-btn { opacity: 0.65; } .action-btn:focus-visible { opacity: 1 !important; outline: 2px solid var(--accent); outline-offset: 1px; } .email-row--acting { opacity: 0.6; pointer-events: none; } .action-btn--unsub { font-size: 11px; } .action-btn--done { opacity: 1 !important; color: var(--ok); } .fv-sentinel { height: 1px; } .fv-loading-more { color: var(--muted); font-size: 13px; padding: 16px 0; text-align: center; } .fv-end { color: var(--muted); font-size: 12px; padding: 20px 0 8px; text-align: center; } /* ── 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, #46ad27, #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; } /* ── Sync status (topbar) ──────────────────────────────────────────────── */ .sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-right: 4px; } .sync-status--error { color: var(--danger); } .sync-label--err { color: var(--danger); } .sync-spinner { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #3d3833; border-top-color: var(--accent); animation: sync-spin 0.7s linear infinite; } @keyframes sync-spin { to { transform: rotate(360deg); } } .sync-bar-wrap { width: 50px; height: 4px; background: var(--panel-2); border-radius: 3px; overflow: hidden; } .sync-bar { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; } /* ── Email detail body (Senders page) ──────────────────────────────────── */ .sd-body-loading { padding: 8px 0 18px; } .sd-body { background: var(--panel); border: 1px solid #332f2b; border-radius: 8px; padding: 16px 18px; font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; margin-bottom: 18px; max-height: 60vh; overflow-y: auto; } /* ── Unsubscribe queue ──────────────────────────────────────────────────── */ .unsub-page { max-width: 1000px; } .unsub-toast { color: var(--ok); font-size: 13px; margin-left: 6px; } .unsub-tabs { display: flex; gap: 6px; margin: 16px 0 10px; } .unsub-tab { background: var(--panel); border: 1px solid #332f2b; color: var(--muted); border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; } .unsub-tab:hover { color: var(--text); } .unsub-tab--active { color: var(--text); border-color: var(--accent); background: var(--panel-2); } .unsub-tab-count { font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 1px 6px; } .unsub-grid { width: 100%; } .unsub-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; border: 1px solid #3d3833; } .unsub-badge--detected { color: var(--muted); } .unsub-badge--queued { color: #f2c94c; border-color: #f2c94c66; } .unsub-badge--progress { color: var(--accent); border-color: var(--accent); } .unsub-badge--ok { color: var(--ok); border-color: var(--ok); } .unsub-badge--fail { color: var(--danger); border-color: var(--danger); } .unsub-badge--skip { color: var(--muted); } .unsub-confidence { font-size: 11px; font-weight: 600; } .unsub-confidence--high { color: var(--ok); } .unsub-confidence--mid { color: #f2c94c; } .unsub-confidence--low { color: var(--danger); } /* ── Bulk selection toolbar (folder/search/sender email lists) ──────────── */ .bulk-toolbar { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid #332f2b; border-radius: 8px; padding: 8px 14px; margin-bottom: 10px; font-size: 13px; } .bulk-toolbar .muted { font-size: 12px; } .bulk-toolbar-spacer { flex: 1; } .bulk-btn { background: var(--panel); border: 1px solid #332f2b; color: var(--text); border-radius: 6px; padding: 5px 12px; font-size: 12px; cursor: pointer; } .bulk-btn:hover { border-color: var(--accent); } .bulk-btn--danger:hover { border-color: var(--danger); color: var(--danger); } /* ── Keyboard shortcut help ──────────────────────────────────────────────── */ .kbd-hint { position: fixed; bottom: 14px; right: 14px; font-size: 11px; color: var(--muted); background: var(--panel); border: 1px solid #332f2b; border-radius: 6px; padding: 4px 10px; opacity: 0.7; } .kbd-hint kbd { background: var(--panel-2); border: 1px solid #3d3833; border-radius: 3px; padding: 0 4px; font-family: inherit; } /* ── Saved searches ─────────────────────────────────────────────────────── */ .saved-search-row { display: flex; align-items: center; gap: 8px; } .saved-search-save-btn { background: none; border: 1px solid #332f2b; color: var(--muted); border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; } .saved-search-save-btn:hover { color: var(--text); border-color: var(--accent); } .email-row--focused { outline: 1px solid var(--accent); outline-offset: -1px; } .digest-toggle { font-size: 16px; padding: 4px 8px; }