Autonomous AI sales agent powered by Claude Code or Codex. Finds prospects, writes cold emails, sends campaigns, handles replies, books meetings. No API keys needed — runs on your Claude or Codex subscriptions.
Bring the dashboard redesign into the open repo
Ethand682dedd1ef1
diff --git a/harvey/dashboard.py b/harvey/dashboard.pyindex fabbbbb..a29bf95 100644--- a/harvey/dashboard.py+++ b/harvey/dashboard.py@@ -15,7 +15,9 @@ import aiosqliteimport yamlfrom dotenv import load_dotenvfrom fastapi import FastAPI, Request-from fastapi.responses import HTMLResponse, JSONResponse, PlainTextResponse+from fastapi.responses import (+ HTMLResponse, JSONResponse, PlainTextResponse, Response,+)logger = logging.getLogger("harvey.dashboard")@@ -1225,20 +1227,33 @@ async def get_runs_api():WEB_DIR = (Path(__file__).resolve().parent / "web")[email protected]("/static/{filename}")-async def static_file(filename: str):- """Serve the dashboard's CSS/JS from disk.+TEXT_TYPES = {".css": "text/css", ".js": "text/javascript", ".svg": "image/svg+xml"}+BINARY_TYPES = {".woff2": "font/woff2", ".woff": "font/woff", ".png": "image/png"}++[email protected]("/static/{path:path}")+async def static_file(path: str):+ """Serve the dashboard's own assets from disk.- Read per-request rather than cached at import: editing app.css or app.js- and hitting reload is the whole point of having them as real files.+ Read per-request rather than cached at import: editing app.css and hitting+ reload is the whole point of having them as real files. Fonts are vendored+ rather than fetched from a CDN — this is a local tool and it should work+ with the network off."""- path = (WEB_DIR / filename).resolve()- if path.parent != WEB_DIR.resolve() or not path.is_file():+ target = (WEB_DIR / path).resolve()+ root = WEB_DIR.resolve()+ if not target.is_file() or not target.is_relative_to(root):return PlainTextResponse("not found", status_code=404)- types = {".css": "text/css", ".js": "text/javascript", ".svg": "image/svg+xml"}++ if target.suffix in BINARY_TYPES:+ return Response(+ target.read_bytes(),+ media_type=BINARY_TYPES[target.suffix],+ headers={"Cache-Control": "public, max-age=604800"},+ )return PlainTextResponse(- path.read_text(),- media_type=types.get(path.suffix, "text/plain"),+ target.read_text(),+ media_type=TEXT_TYPES.get(target.suffix, "text/plain"),headers={"Cache-Control": "no-store"},)diff --git a/harvey/web/app.css b/harvey/web/app.cssindex 0ff87de..5469d53 100644--- a/harvey/web/app.css+++ b/harvey/web/app.css@@ -1,576 +1,585 @@- :root {- --bg: #08090c;- --panel: #0f1216;- --panel-raised: #141922;- --border: #1d2430;- --border-strong: #2b3444;- --text: #e9ecf2;- --text-2: #9aa4b4;- --text-3: #5c6774;- --accent: #3ecf8e;- --accent-deep: #22996a;- --accent-soft: rgba(62, 207, 142, 0.12);- --blue: #74a8ff;- --amber: #e5b567;- --red: #e06c75;- --purple: #b48ce8;- --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;- --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;- }-- * { margin: 0; padding: 0; box-sizing: border-box; }- ::selection { background: rgba(62,207,142,0.25); }-- html { color-scheme: dark; }-- body {- font-family: var(--sans);- background: var(--bg);- background-image:- radial-gradient(1100px 480px at 75% -12%, rgba(62,207,142,0.06), transparent 60%),- radial-gradient(900px 420px at 8% -10%, rgba(116,168,255,0.05), transparent 55%);- background-repeat: no-repeat;- color: var(--text);- min-height: 100vh;- font-size: 14px;- -webkit-font-smoothing: antialiased;- }-- a { color: var(--blue); text-decoration: none; }- a:hover { text-decoration: underline; }-- /* ── Header ── */- header {- position: sticky; top: 0; z-index: 100;- background: rgba(8,9,12,0.82);- backdrop-filter: blur(14px);- -webkit-backdrop-filter: blur(14px);- border-bottom: 1px solid var(--border);- padding: 14px 32px;- display: flex; align-items: center; justify-content: space-between; gap: 16px;- }-- .brand { display: flex; align-items: center; gap: 12px; }- .brand .mark {- width: 34px; height: 34px; border-radius: 9px;- background: linear-gradient(145deg, #2fbf82, #17795a);- box-shadow: 0 0 0 1px rgba(62,207,142,0.35), 0 4px 14px rgba(62,207,142,0.18);- display: flex; align-items: center; justify-content: center;- font-weight: 800; font-size: 17px; color: #04140d; letter-spacing: -0.5px;- }- .brand h1 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.1; }- .brand .tagline {- font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px;- color: var(--text-3); margin-top: 2px; font-weight: 600;- }-- .header-controls { display: flex; align-items: center; gap: 10px; }-- .harvey-status {- display: flex; align-items: center; gap: 8px;- font-size: 12px; font-weight: 600; color: var(--text-2);- padding: 7px 14px;- background: var(--panel);- border: 1px solid var(--border);- border-radius: 99px;- }- .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }- .status-dot.running {- background: var(--accent);- box-shadow: 0 0 0 0 rgba(62,207,142,0.5);- animation: pulse 2s infinite;- }- .status-dot.stopped { background: #4a5361; }- .status-dot.offline { background: var(--red); }- @keyframes pulse {- 0% { box-shadow: 0 0 0 0 rgba(62,207,142,0.45); }- 70% { box-shadow: 0 0 0 7px rgba(62,207,142,0); }- 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); }- }-- .refresh-btn {- background: var(--panel); border: 1px solid var(--border); color: var(--text-2);- padding: 7px 14px; border-radius: 99px; cursor: pointer;- font-size: 12px; font-weight: 600; font-family: inherit;- transition: border-color .15s, color .15s;- }- .refresh-btn:hover { border-color: var(--border-strong); color: var(--text); }-- /* ── Nav ── */- nav {- position: sticky; top: 63px; z-index: 99;- background: rgba(8,9,12,0.82);- backdrop-filter: blur(14px);- -webkit-backdrop-filter: blur(14px);- border-bottom: 1px solid var(--border);- padding: 0 24px; display: flex; overflow-x: auto;- scrollbar-width: none;- }- nav::-webkit-scrollbar { display: none; }-- nav button {- position: relative;- background: none; border: none;- color: var(--text-3); padding: 13px 14px; cursor: pointer;- font-size: 13px; font-weight: 500; font-family: inherit;- transition: color .15s; white-space: nowrap;- }- nav button:hover { color: var(--text-2); }- nav button.active { color: var(--text); font-weight: 600; }- nav button.active::after {- content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;- height: 2px; border-radius: 2px 2px 0 0; background: var(--accent);- }-- main { padding: 28px 32px 64px; max-width: 1400px; margin: 0 auto; }-- .section { display: none; }- .section.active { display: block; animation: rise .25s ease; }- @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }-- .section-head { margin-bottom: 20px; }- .section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }- .section-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }-- /* ── Cards ── */- .card {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- padding: 24px; margin-bottom: 16px;- }- .card h2 { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; margin-bottom: 16px; }-- /* ── Stat cards ── */- .stats-grid {- display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));- gap: 14px; margin-bottom: 28px;- }- .stat-card {- position: relative; overflow: hidden;- background: linear-gradient(180deg, var(--panel-raised), var(--panel));- border: 1px solid var(--border); border-radius: 12px; padding: 20px;- transition: border-color .2s;- }- .stat-card:hover { border-color: var(--border-strong); }- .stat-card::before {- content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;- background: linear-gradient(90deg, transparent, rgba(62,207,142,0.35), transparent);- }- .stat-card .label {- font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;- color: var(--text-3); font-weight: 700; margin-bottom: 10px;- }- .stat-card .value {- font-size: 34px; font-weight: 750; letter-spacing: -1px; line-height: 1;- font-variant-numeric: tabular-nums;- }- .stat-card .breakdown { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }- .chip {- font-size: 11px; font-weight: 550; color: var(--text-2);- background: rgba(255,255,255,0.04); border: 1px solid var(--border);- padding: 2px 9px; border-radius: 99px; font-variant-numeric: tabular-nums;- }- .chip b { color: var(--text); font-weight: 650; }-- /* ── Progress ── */- .progress-wrap { margin-bottom: 24px; }- .progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }- .progress-label .pct { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }- .progress-label .text { color: var(--text-3); }- .progress-bar { background: rgba(255,255,255,0.05); border-radius: 99px; height: 8px; overflow: hidden; }- .progress-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }- .progress-fill.green { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }- .progress-fill.yellow { background: linear-gradient(90deg, #a3801f, var(--amber)); }-- /* ── Setup checklist ── */- .check-item {- display: flex; align-items: flex-start; gap: 14px;- padding: 14px 0; border-bottom: 1px solid var(--border);- }- .check-item:last-child { border-bottom: none; }- .check-icon {- width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;- display: flex; align-items: center; justify-content: center;- font-size: 12px; margin-top: 1px;- }- .check-icon.done { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(62,207,142,0.3); }- .check-icon.pending { background: transparent; color: var(--text-3); border: 1px dashed var(--border-strong); }- .check-info { flex: 1; }- .check-label { font-size: 14px; font-weight: 550; color: var(--text); }- .check-label.done { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.15); }- .check-help { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }- .optional-tag {- font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;- background: rgba(116,168,255,0.1); color: var(--blue);- padding: 2px 8px; border-radius: 99px; margin-left: 8px; vertical-align: 1px;- }- .subhead {- margin: 20px 0 4px; font-size: 10.5px; color: var(--text-3);- text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;- }-- /* ── Forms ── */- .form-group { margin-bottom: 16px; }- .form-label {- display: block; font-size: 11px; color: var(--text-2); margin-bottom: 7px;- text-transform: uppercase; letter-spacing: 0.8px; font-weight: 650;- }- .form-input {- width: 100%; padding: 10px 14px;- background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong);- border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit;- transition: border-color .15s, box-shadow .15s;- }- .form-input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(62,207,142,0.12); }- .form-input::placeholder { color: var(--text-3); }- .form-row { display: flex; gap: 10px; align-items: flex-end; }- .form-row .form-group { flex: 1; }- .card .lede { font-size: 13px; color: var(--text-2); margin: -6px 0 18px; line-height: 1.6; }-- .btn {- padding: 9px 20px; border: 1px solid transparent; border-radius: 8px;- font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;- transition: background .15s, border-color .15s, transform .05s;- }- .btn:active { transform: translateY(1px); }- .btn:disabled { opacity: 0.5; cursor: not-allowed; }- .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }- .btn-primary { background: var(--accent-deep); color: #eafff5; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }- .btn-primary:hover:not(:disabled) { background: #2ab27c; }- .btn-danger { background: #8a2f36; color: #ffe9ea; }- .btn-danger:hover:not(:disabled) { background: #a13940; }- .btn-secondary { background: rgba(255,255,255,0.03); border-color: var(--border-strong); color: var(--text-2); }- .btn-secondary:hover:not(:disabled) { color: var(--text); border-color: #3a4557; }- .btn-sm { padding: 6px 13px; font-size: 12px; }- .btn-group { display: flex; gap: 10px; margin-top: 16px; }-- .test-result { font-size: 13px; margin-top: 10px; padding: 9px 13px; border-radius: 8px; }- .test-result.success { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(62,207,142,0.25); }- .test-result.error { background: rgba(224,108,117,0.1); color: var(--red); border: 1px solid rgba(224,108,117,0.25); }- .test-result.pending { background: rgba(255,255,255,0.04); color: var(--text-2); border: 1px solid var(--border); }-- /* ── Controls ── */- .control-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }- @media (max-width: 900px) { .control-panel { grid-template-columns: 1fr; } }-- .status-big { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }- .status-big .dot { width: 13px; height: 13px; border-radius: 50%; }- .status-big .dot.running { background: var(--accent); animation: pulse 2s infinite; }- .status-big .dot.stopped { background: #4a5361; }- .status-big .label { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }- .status-big .label.running { color: var(--accent); }- .status-big .label.stopped { color: var(--text-2); }- .status-meta { font-size: 12px; color: var(--text-3); margin-bottom: 18px; font-variant-numeric: tabular-nums; min-height: 15px; }-- .log-viewer {- background: #07080a; border: 1px solid var(--border); border-radius: 10px;- padding: 14px 16px; font-family: var(--mono);- font-size: 11.5px; color: #8fa39a; line-height: 1.65;- max-height: 420px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;- }-- /* ── Help ── */- .help-section { margin-bottom: 28px; }- .help-section h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }- .help-section p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 10px; }- .help-section code { background: rgba(255,255,255,0.05); padding: 2px 7px; border-radius: 5px; font-size: 12.5px; font-family: var(--mono); color: var(--text); }- .help-section pre {- background: var(--panel); border: 1px solid var(--border); border-radius: 10px;- padding: 16px; font-size: 12.5px; font-family: var(--mono); color: var(--text-2); line-height: 1.7;- overflow-x: auto; margin: 12px 0;- }-- .file-table { width: 100%; font-size: 13px; border-collapse: collapse; }- .file-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }- .file-table tr:last-child td { border-bottom: none; }- .file-table td:first-child { color: var(--text); font-family: var(--mono); font-size: 12px; white-space: nowrap; width: 220px; }- .file-table td:last-child { color: var(--text-2); }-- details { margin-bottom: 8px; }- details summary {- cursor: pointer; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border);- border-radius: 10px; font-size: 13.5px; font-weight: 550; color: var(--text-2); list-style: none;- transition: color .15s;- }- details summary:hover { color: var(--text); }- details summary::-webkit-details-marker { display: none; }- details summary::before { content: "+"; display: inline-block; width: 18px; color: var(--accent); font-weight: 700; }- details[open] summary::before { content: "–"; }- details[open] summary { border-radius: 10px 10px 0 0; border-bottom: none; color: var(--text); }- details .faq-body {- padding: 4px 16px 16px 34px; background: var(--panel); border: 1px solid var(--border); border-top: none;- border-radius: 0 0 10px 10px; font-size: 13px; color: var(--text-2); line-height: 1.7;- }-- /* ── Toast ── */- .toast {- position: fixed; bottom: 24px; right: 24px; padding: 12px 20px;- border-radius: 10px; font-size: 13px; font-weight: 550; z-index: 1000;- box-shadow: 0 12px 32px rgba(0,0,0,0.5);- animation: toastIn .2s ease, toastOut .3s 2.2s forwards;- }- .toast.success { background: #0d2a1d; color: var(--accent); border: 1px solid rgba(62,207,142,0.4); }- .toast.error { background: #2c1416; color: var(--red); border: 1px solid rgba(224,108,117,0.4); }- @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }- @keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(6px); } }-- /* ── Tables ── */- .table-card {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- overflow-x: auto;- }- table { width: 100%; border-collapse: collapse; font-size: 13px; }- th {- text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border);- color: var(--text-3); font-weight: 700; font-size: 10.5px;- text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;- background: rgba(255,255,255,0.015);- }- td {- padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top;- max-width: 300px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2);- }- td:first-child { color: var(--text); font-weight: 550; }- tr:last-child td { border-bottom: none; }- tbody tr { transition: background .1s; }- tbody tr:hover td { background: rgba(255,255,255,0.02); }- .verified { color: var(--accent); }- .email-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }- .email-tag.verified { color: var(--accent); background: var(--accent-soft); }- .email-tag.risky { color: var(--amber); background: rgba(229,181,103,0.12); }- .email-tag.guess { color: var(--text-3); background: rgba(255,255,255,0.05); }- .email-tag.invalid { color: var(--red); background: rgba(224,108,117,0.12); }- .muted { color: var(--text-3); }-- .badge {- display: inline-flex; align-items: center; gap: 6px;- padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 650;- border: 1px solid transparent; white-space: nowrap;- }- .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }- .badge-new { background: rgba(116,168,255,0.1); color: var(--blue); border-color: rgba(116,168,255,0.22); }- .badge-contacted, .badge-open, .badge-objection { background: rgba(229,181,103,0.1); color: var(--amber); border-color: rgba(229,181,103,0.22); }- .badge-replied, .badge-active, .badge-interested { background: var(--accent-soft); color: var(--accent); border-color: rgba(62,207,142,0.25); }- .badge-meeting { background: rgba(180,140,232,0.12); color: var(--purple); border-color: rgba(180,140,232,0.25); }- .badge-draft { background: rgba(255,255,255,0.05); color: var(--text-2); border-color: var(--border-strong); }- .badge-closed { background: rgba(255,255,255,0.04); color: var(--text-3); border-color: var(--border); }- .badge-lost, .badge-not_interested { background: rgba(224,108,117,0.1); color: var(--red); border-color: rgba(224,108,117,0.22); }- .badge-unknown { background: rgba(255,255,255,0.04); color: var(--text-3); border-color: var(--border); }-- .campaign-card, .convo-card {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- padding: 24px; margin-bottom: 16px;- }- .campaign-card h3, .convo-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; margin-bottom: 6px; }- .campaign-card .meta, .convo-card .meta {- font-size: 12px; color: var(--text-3); margin-bottom: 18px;- display: flex; gap: 14px; align-items: center; flex-wrap: wrap;- }-- .email-step {- border-left: 2px solid var(--border-strong); padding: 14px 20px; margin: 0 0 12px 6px;- border-radius: 0 10px 10px 0; background: rgba(255,255,255,0.015);- }- .email-step .step-num {- font-size: 10px; color: var(--accent); text-transform: uppercase;- letter-spacing: 1px; font-weight: 700; margin-bottom: 7px;- }- .email-step .subject { font-size: 14px; font-weight: 650; margin-bottom: 8px; }- .email-step .body { font-size: 13px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }-- .thread-msg {- padding: 12px 16px; margin-bottom: 8px; border-radius: 12px; max-width: 78%;- font-size: 13px; line-height: 1.6; white-space: pre-wrap;- }- .thread-msg.sent { background: rgba(62,207,142,0.08); border: 1px solid rgba(62,207,142,0.16); color: #cfeee0; margin-left: auto; border-bottom-right-radius: 4px; }- .thread-msg.received { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-2); border-bottom-left-radius: 4px; }- .thread-msg .sender { font-size: 10.5px; color: var(--text-3); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }-- .activity-feed { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px 20px; }- .activity-item { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: baseline; }- .activity-item:last-child { border-bottom: none; }- .activity-item .time { color: var(--text-3); font-size: 12px; min-width: 130px; font-variant-numeric: tabular-nums; }- .activity-item .agent {- color: var(--accent); min-width: 84px; font-size: 11px; font-weight: 700;- text-transform: uppercase; letter-spacing: 0.8px;- }- .activity-item .action { color: var(--text-2); }-- /* ── Empty states ── */- .empty {- text-align: center; padding: 72px 24px;- background: var(--panel); border: 1px dashed var(--border-strong); border-radius: 12px;- }- .empty .glyph {- width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 12px;- background: rgba(255,255,255,0.03); border: 1px solid var(--border);- display: flex; align-items: center; justify-content: center;- font-size: 20px; color: var(--text-3);- }- .empty .title { font-size: 15px; font-weight: 650; color: var(--text); margin-bottom: 6px; }- .empty .copy { font-size: 13px; color: var(--text-3); line-height: 1.6; max-width: 420px; margin: 0 auto; }- .empty .copy b { color: var(--text-2); font-weight: 600; }-- @media (max-width: 700px) {- header, main { padding-left: 18px; padding-right: 18px; }- nav { padding: 0 10px; }- .brand .tagline { display: none; }- }-- /* ── Nav counts: how much is waiting, without opening the tab ── */- .nav-count {- display: none; margin-left: 6px; padding: 1px 6px; border-radius: 99px;- font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;- background: rgba(229,181,103,0.16); color: var(--amber);- }- .nav-count.on { display: inline-block; }- .nav-count.good { background: var(--accent-soft); color: var(--accent); }-- /* ── Today: the action queue ── */- .queue { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }- .queue-item {- display: flex; align-items: center; gap: 16px; padding: 16px 18px;- background: var(--panel); border: 1px solid var(--border);- border-left: 3px solid var(--border-strong); border-radius: 12px;- }- .queue-item.warn { border-left-color: var(--amber); }- .queue-item.bad { border-left-color: var(--red); }- .queue-item.good { border-left-color: var(--accent); }- .queue-item .qtext { flex: 1; min-width: 0; }- .queue-item .qtitle { font-size: 14.5px; font-weight: 650; letter-spacing: -0.2px; }- .queue-item .qdetail { font-size: 12.5px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }- .queue-clear {- display: flex; align-items: center; gap: 12px; padding: 20px;- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- margin-bottom: 26px;- }- .queue-clear .glyph { font-size: 20px; color: var(--accent); }- .queue-clear .qtitle { font-size: 14.5px; font-weight: 650; }- .queue-clear .qdetail { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }-- /* ── Signals review ── */- .sig-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }- .sig-stat {- background: var(--panel); border: 1px solid var(--border); border-radius: 10px;- padding: 12px 18px; min-width: 132px;- }- .sig-stat .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }- .sig-stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); margin-top: 3px; }- .sig-stat.confirmed .n { color: var(--accent); }- .sig-stat.proposed .n { color: var(--amber); }- .sig-stat.rejected .n { color: var(--text-3); }-- .sig-group { margin-bottom: 22px; }- .sig-group-head {- display: flex; align-items: flex-start; justify-content: space-between;- gap: 16px; margin-bottom: 12px;- }- .sig-group-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }- .sig-group-head p { font-size: 12.5px; color: var(--text-3); margin-top: 4px; max-width: 640px; line-height: 1.55; }-- .sig-row {- display: flex; gap: 16px; align-items: flex-start; padding: 15px 18px;- border-bottom: 1px solid var(--border);- }- .sig-row:last-child { border-bottom: none; }- .sig-row.rejected { opacity: 0.45; }- .sig-row .sig-main { flex: 1; min-width: 0; }- .sig-row .sig-label { font-size: 14px; font-weight: 600; }- .sig-row .sig-code {- font-family: var(--mono); font-size: 10.5px; color: var(--text-3);- margin-left: 8px; letter-spacing: 0.3px;- }- .sig-row .sig-desc { font-size: 12.5px; color: var(--text-2); margin-top: 5px; line-height: 1.6; max-width: 660px; }- .sig-row .sig-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }- .sig-row .sig-decide { display: flex; gap: 6px; flex-shrink: 0; padding-top: 2px; }- .cost-chip {- font-size: 11px; padding: 2px 8px; border-radius: 5px;- background: rgba(255,255,255,0.04); color: var(--text-3); border: 1px solid var(--border);- }- .cost-chip.free { color: var(--accent); background: var(--accent-soft); border-color: rgba(62,207,142,0.22); }- .cost-chip.paid { color: var(--amber); background: rgba(229,181,103,0.1); border-color: rgba(229,181,103,0.22); }-- /* ── Cohort builder ── */- .cohort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }- .cohort-pick {- display: flex; align-items: center; gap: 9px; padding: 9px 12px;- border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px;- cursor: pointer; user-select: none; background: rgba(255,255,255,0.015);- }- .cohort-pick:hover { border-color: var(--border-strong); }- .cohort-pick input { accent-color: var(--accent); }- .cohort-pick .n { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }- .cohort-size { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; color: var(--accent); font-variant-numeric: tabular-nums; }-- /* ── Decisions desk ── */- .desk { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }- .desk-list {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- overflow: hidden; max-height: 640px; overflow-y: auto;- }- .desk-item {- padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer;- border-left: 3px solid transparent;- }- .desk-item:last-child { border-bottom: none; }- .desk-item:hover { background: rgba(255,255,255,0.02); }- .desk-item.active { background: var(--accent-soft); border-left-color: var(--accent); }- .desk-item .to { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }- .desk-item .sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }- .desk-pane {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px;- }- .desk-pane .to-line { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }- .desk-pane .subject { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; margin: 10px 0 14px; }- .desk-pane .body {- font-size: 14px; color: var(--text-2); line-height: 1.75; white-space: pre-wrap;- padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);- }- .desk-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }- kbd {- font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 4px;- background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); color: var(--text-2);- }-- @media (max-width: 900px) {- .desk { grid-template-columns: 1fr; }- .desk-list { max-height: 240px; }- }-- /* ── One status vocabulary ──- Every status in Harvey — prospect, campaign, conversation, outbox,- signal, email deliverability — renders through the same five tones, so- "waiting on me" looks identical everywhere it appears. */- .badge.t-waiting { background: rgba(229,181,103,0.1); color: var(--amber); border-color: rgba(229,181,103,0.22); }- .badge.t-active { background: rgba(116,168,255,0.1); color: var(--blue); border-color: rgba(116,168,255,0.22); }- .badge.t-good { background: var(--accent-soft); color: var(--accent); border-color: rgba(62,207,142,0.25); }- .badge.t-bad { background: rgba(224,108,117,0.1); color: var(--red); border-color: rgba(224,108,117,0.22); }- .badge.t-idle { background: rgba(255,255,255,0.04); color: var(--text-3); border-color: var(--border); }- .badge.t-note { background: rgba(180,140,232,0.12); color: var(--purple); border-color: rgba(180,140,232,0.25); }-- /* ── Discovery provider menu ── */- .prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 24px; }- .prov-card {- background: var(--panel); border: 1px solid var(--border); border-radius: 12px;- padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 8px;- }- .prov-card:hover { border-color: var(--border-strong); }- .prov-card.selected { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), transparent 60%); }- .prov-card .prov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }- .prov-card h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }- .prov-card .blurb { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }- .prov-card .row { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }- .prov-card .row .k { color: var(--text-3); min-width: 42px; }- .prov-card .row .v { color: var(--text-2); }- .prov-card .caveat {- font-size: 11.5px; color: var(--amber); background: rgba(229,181,103,0.07);- border-left: 2px solid rgba(229,181,103,0.4); padding: 7px 10px; border-radius: 0 6px 6px 0;- line-height: 1.55;- }- .estimate-box {- border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;- background: rgba(255,255,255,0.015); margin-bottom: 16px;- }- .estimate-box .amount { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }- .estimate-box .amount.free { color: var(--accent); }- .estimate-box .amount.paid { color: var(--amber); }- .query-list { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 12px; line-height: 1.8; max-height: 160px; overflow-y: auto; }+/* ══════════════════════════════════════════════════════════════+ Harvey — dashboard styles++ Three rules the whole sheet follows:++ 1. The interface carries no colour. Only STATUS is allowed a hue,+ so anything coloured on screen means something.+ 2. Structure comes from hairlines, alignment and type weight —+ not from wrapping everything in a bordered card.+ 3. Every figure is monospaced and tabular, so columns of numbers+ line up and a changing value doesn't shift the layout.++ Light and dark are the same design, re-tokenised. Nothing but the+ values in :root / [data-theme] changes between them.+ ══════════════════════════════════════════════════════════════ */++@font-face {+ font-family: 'Newsreader'; font-style: normal; font-weight: 400 500;+ font-display: swap; src: url('/static/fonts/newsreader.woff2') format('woff2');+}+@font-face {+ font-family: 'Geist'; font-style: normal; font-weight: 400 600;+ font-display: swap; src: url('/static/fonts/geist.woff2') format('woff2');+}+@font-face {+ font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500;+ font-display: swap; src: url('/static/fonts/geist-mono.woff2') format('woff2');+}++/* ── Tokens ──────────────────────────────────────────────────── */++:root {+ --serif: 'Newsreader', Georgia, 'Times New Roman', serif;+ --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;+ --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;++ --r-sm: 3px;+ --r-md: 5px;+ --gut: 28px;++ /* Light — warm paper. Greys are tinted warm; nothing is neutral grey. */+ --bg: #FBFAF8;+ --panel: #FFFFFF;+ --panel-raised: #F5F3EF;+ --border: #E8E4DD;+ --border-strong: #D3CDC3;+ --rule: #1E1B17; /* the heavy rule under a heading */+ --text: #1E1B17;+ --text-2: #5E584F;+ --text-3: #948D82;+ --ink: #1E1B17; /* the one "accent": ink */+ --ink-contrast: #FBFAF8;+ --ink-soft: #EFEBE3;++ --s-good: #3D6046; --s-good-bg: #EAF0EB; --s-good-line: #CFDDD3;+ --s-wait: #8A6A1F; --s-wait-bg: #FAF2DC; --s-wait-line: #EADFBE;+ --s-bad: #96322E; --s-bad-bg: #FBEBE9; --s-bad-line: #EFD3CF;+ --s-active: #2C5F7C; --s-active-bg: #E9F0F5; --s-active-line: #D0DFE9;+ --s-note: #5B4A72; --s-note-bg: #F1EDF6; --s-note-line: #E0D8E9;++ --shadow: 0 8px 24px rgba(30, 27, 23, 0.10);+ color-scheme: light;+}++/* Dark — warm charcoal. Same design, re-tokenised.+ Declared twice on purpose: once for an explicit choice, once for the+ system preference when the user hasn't chosen. A single selector list+ can't do both, because the explicit one must win over the media query. */+:root[data-theme='dark'] {+ --bg: #131210;+ --panel: #1A1917;+ --panel-raised: #221F1C;+ --border: #2B2825;+ --border-strong: #3D3934;+ --rule: #6B655D;+ --text: #ECE8E1;+ --text-2: #A39C92;+ --text-3: #6E6960;+ --ink: #ECE8E1;+ --ink-contrast: #131210;+ --ink-soft: #262320;++ --s-good: #86AE90; --s-good-bg: rgba(134,174,144,0.11); --s-good-line: rgba(134,174,144,0.26);+ --s-wait: #CBAA63; --s-wait-bg: rgba(203,170,99,0.11); --s-wait-line: rgba(203,170,99,0.26);+ --s-bad: #CB8279; --s-bad-bg: rgba(203,130,121,0.11); --s-bad-line: rgba(203,130,121,0.26);+ --s-active: #85A2BD; --s-active-bg: rgba(133,162,189,0.11); --s-active-line: rgba(133,162,189,0.26);+ --s-note: #A091B3; --s-note-bg: rgba(160,145,179,0.11); --s-note-line: rgba(160,145,179,0.26);++ --shadow: 0 8px 28px rgba(0, 0, 0, 0.55);+ color-scheme: dark;+}++@media (prefers-color-scheme: dark) {+ :root:not([data-theme='light']) {+ --bg:#131210; --panel:#1A1917; --panel-raised:#221F1C;+ --border:#2B2825; --border-strong:#3D3934; --rule:#6B655D;+ --text:#ECE8E1; --text-2:#A39C92; --text-3:#6E6960;+ --ink:#ECE8E1; --ink-contrast:#131210; --ink-soft:#262320;+ --s-good:#86AE90; --s-good-bg:rgba(134,174,144,0.11); --s-good-line:rgba(134,174,144,0.26);+ --s-wait:#CBAA63; --s-wait-bg:rgba(203,170,99,0.11); --s-wait-line:rgba(203,170,99,0.26);+ --s-bad:#CB8279; --s-bad-bg:rgba(203,130,121,0.11); --s-bad-line:rgba(203,130,121,0.26);+ --s-active:#85A2BD; --s-active-bg:rgba(133,162,189,0.11); --s-active-line:rgba(133,162,189,0.26);+ --s-note:#A091B3; --s-note-bg:rgba(160,145,179,0.11); --s-note-line:rgba(160,145,179,0.26);+ --shadow:0 8px 28px rgba(0,0,0,0.55);+ color-scheme: dark;+ }+}++* { margin: 0; padding: 0; box-sizing: border-box; }+::selection { background: var(--ink-soft); color: var(--text); }++html { scroll-behavior: smooth; }+body {+ font-family: var(--sans);+ background: var(--bg);+ color: var(--text);+ font-size: 14px;+ line-height: 1.55;+ min-height: 100dvh;+ -webkit-font-smoothing: antialiased;+ font-feature-settings: 'cv11', 'ss01';+}+a { color: inherit; text-decoration: underline; text-underline-offset: 2px;+ text-decoration-color: var(--border-strong); text-decoration-thickness: 1px; }+a:hover { text-decoration-color: var(--text); }+:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }++/* ── Masthead ────────────────────────────────────────────────── */++header {+ display: flex; align-items: center; justify-content: space-between;+ gap: 20px; padding: 14px var(--gut) 12px;+ border-bottom: 1px solid var(--border);+}+.brand { display: flex; align-items: center; gap: 10px; }+.brand .mark {+ width: 24px; height: 24px; flex: none;+ display: flex; align-items: center; justify-content: center;+ background: var(--ink); color: var(--ink-contrast);+ border-radius: var(--r-sm);+ font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1;+}+.brand h1 {+ font-family: var(--serif); font-size: 19px; font-weight: 500;+ letter-spacing: -0.012em; line-height: 1.1;+}+.brand .tagline {+ font-family: var(--serif); font-style: italic; font-size: 11.5px;+ color: var(--text-3); line-height: 1.2; margin-top: 1px;+}+.header-controls { display: flex; align-items: center; gap: 8px; }+.harvey-status {+ display: flex; align-items: center; gap: 7px;+ font-family: var(--mono); font-size: 11.5px; color: var(--text-2);+ padding-right: 4px;+}+.status-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-3); }+.status-dot.running { background: var(--s-good); }+.status-dot.stopped { background: var(--text-3); }+.status-dot.offline { background: var(--s-bad); }++.icon-btn, .refresh-btn {+ background: none; border: 1px solid var(--border-strong); border-radius: var(--r-sm);+ color: var(--text-2); font-family: var(--sans); font-size: 12px; font-weight: 450;+ padding: 5px 11px; cursor: pointer; transition: color .15s, border-color .15s;+}+.icon-btn:hover, .refresh-btn:hover { color: var(--text); border-color: var(--text-3); }+.icon-btn { font-family: var(--mono); font-size: 11px; padding: 5px 9px; }++/* ── Nav ─────────────────────────────────────────────────────── */++nav {+ display: flex; gap: 0; padding: 0 var(--gut);+ border-bottom: 1px solid var(--border);+ overflow-x: auto; scrollbar-width: none;+}+nav::-webkit-scrollbar { display: none; }+nav button {+ background: none; border: none; border-bottom: 1.5px solid transparent;+ color: var(--text-3); font-family: var(--sans); font-size: 13px; font-weight: 450;+ padding: 10px 0 9px; margin-right: 24px; cursor: pointer; white-space: nowrap;+ transition: color .15s;+}+nav button:hover { color: var(--text-2); }+nav button.active { color: var(--text); border-bottom-color: var(--ink); font-weight: 500; }+nav button:last-child { margin-right: 0; }+.nav-count {+ display: none; margin-left: 6px; padding: 0 5px; border-radius: 2px;+ font-family: var(--mono); font-size: 10px; font-weight: 500;+ background: var(--s-wait-bg); color: var(--s-wait);+}+.nav-count.on { display: inline-block; }++main { padding: 30px var(--gut) 88px; max-width: 1400px; margin: 0 auto; }++.section { display: none; }+.section.active { display: block; animation: rise .22s cubic-bezier(.16,1,.3,1); }+@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }++/* ── Headings ────────────────────────────────────────────────── */++.section-head { margin-bottom: 24px; }+.section-head h2 {+ font-family: var(--serif); font-size: 31px; font-weight: 400;+ letter-spacing: -0.018em; line-height: 1.12;+}+.section-head p {+ font-size: 13.5px; color: var(--text-2); margin-top: 6px;+ max-width: 66ch; text-wrap: pretty;+}+.subhead {+ font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3);+ border-bottom: 1px solid var(--border); padding-bottom: 6px; margin: 34px 0 14px;+}++/* ── Today: an asymmetric two-column screen ──────────────────── */++.today-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: start; }+.today-rail { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 22px; }+.rail-block > .subhead { margin-top: 0; }++@media (max-width: 1080px) {+ .today-grid { grid-template-columns: 1fr; gap: 26px; }+ .today-rail { position: static; }+}++/* The action queue — the only thing on the page with real weight */+.queue { border-top: 1px solid var(--rule); }+.queue-item {+ display: flex; align-items: flex-start; gap: 18px;+ padding: 17px 2px 17px 0; border-bottom: 1px solid var(--border);+}+.queue-item::before {+ content: ''; width: 2px; align-self: stretch; flex: none; margin-right: 2px;+ background: var(--text-3);+}+.queue-item.warn::before { background: var(--s-wait); }+.queue-item.bad::before { background: var(--s-bad); }+.queue-item.good::before { background: var(--s-good); }+.queue-item .qtext { flex: 1; min-width: 0; }+.queue-item .qtitle { font-size: 15px; font-weight: 500; letter-spacing: -0.006em; }+.queue-item .qdetail {+ font-size: 13px; color: var(--text-2); margin-top: 4px;+ max-width: 68ch; text-wrap: pretty;+}+.queue-item .btn { flex: none; margin-top: 1px; }++.queue-clear {+ display: flex; align-items: center; gap: 13px;+ border-top: 1px solid var(--rule); border-bottom: 1px solid var(--border);+ padding: 22px 2px;+}+.queue-clear .glyph { color: var(--s-good); font-size: 17px; line-height: 1; }+.queue-clear .qtitle { font-size: 15px; font-weight: 500; }+.queue-clear .qdetail { font-size: 13px; color: var(--text-2); margin-top: 3px; max-width: 60ch; }++/* Rail figures — a stacked ledger, not glowing tiles */+.figures { border-top: 1px solid var(--rule); }+/* A subhead already draws a rule; a second one right under it reads as a+ mistake. Anything that follows a subhead drops its own top border. */+.subhead + * > .figures,+.subhead + .figures,+.subhead + * > .activity-feed,+.subhead + .activity-feed { border-top: none; }+.figure {+ display: flex; align-items: baseline; justify-content: space-between; gap: 12px;+ padding: 9px 0; border-bottom: 1px solid var(--border);+}+.figure .k { font-size: 12.5px; color: var(--text-2); }+.figure .v {+ font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums;+ color: var(--text); letter-spacing: -0.01em;+}+.figure .v.zero { color: var(--text-3); }+.figure-note { font-size: 11.5px; color: var(--text-3); margin-top: 8px; }++/* Legacy stat grid (usage tab) */+.stats-grid {+ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;+ border-top: 1px solid var(--rule); border-bottom: 1px solid var(--border);+}+.stat-card { padding: 15px 20px 17px; border-right: 1px solid var(--border); }+.stat-card:last-child { border-right: none; }+.stat-card .label { font-size: 12px; color: var(--text-3); margin-bottom: 7px; }+.stat-card .value {+ font-family: var(--mono); font-size: 26px; font-weight: 400;+ letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums;+}+.stat-card .breakdown { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 4px 12px; }+.chip { font-family: var(--mono); font-size: 11px; color: var(--text-3); }+.chip b { color: var(--text-2); font-weight: 500; }++/* ── Panels ──────────────────────────────────────────────────── */++.card {+ background: var(--panel); border: 1px solid var(--border);+ border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 16px;+}+.card h2 { font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: -0.004em; }+.card .lede { font-size: 13px; color: var(--text-2); margin: -4px 0 16px; max-width: 66ch; }++/* ── Buttons ─────────────────────────────────────────────────── */++.btn {+ display: inline-flex; align-items: center; gap: 7px;+ font-family: var(--sans); font-size: 13px; font-weight: 500;+ padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid transparent;+ cursor: pointer; white-space: nowrap;+ transition: background .15s, border-color .15s, color .15s;+}+.btn:active { transform: translateY(0.5px); }+.btn:disabled { opacity: .45; cursor: not-allowed; }+.btn-primary { background: var(--ink); color: var(--ink-contrast); }+.btn-primary:hover:not(:disabled) { opacity: .86; }+.btn-secondary { background: none; border-color: var(--border-strong); color: var(--text-2); }+.btn-secondary:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); }+.btn-danger { background: none; border-color: var(--s-bad); color: var(--s-bad); }+.btn-danger:hover:not(:disabled) { background: var(--s-bad-bg); }+.btn-sm { padding: 5px 11px; font-size: 12px; }+.btn-group { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }++kbd {+ font-family: var(--mono); font-size: 10px; padding: 1px 4px;+ border: 1px solid var(--border-strong); border-radius: 2px;+ background: var(--panel-raised); color: var(--text-3);+}++/* ── Status: the only coloured thing on screen ───────────────── */++.badge {+ display: inline-flex; align-items: center;+ font-family: var(--mono); font-size: 10.5px; font-weight: 500;+ padding: 2px 6px; border-radius: 2px; border: 1px solid transparent;+ white-space: nowrap;+}+.badge.t-waiting { background: var(--s-wait-bg); color: var(--s-wait); border-color: var(--s-wait-line); }+.badge.t-active { background: var(--s-active-bg); color: var(--s-active); border-color: var(--s-active-line); }+.badge.t-good { background: var(--s-good-bg); color: var(--s-good); border-color: var(--s-good-line); }+.badge.t-bad { background: var(--s-bad-bg); color: var(--s-bad); border-color: var(--s-bad-line); }+.badge.t-idle { background: var(--panel-raised);color: var(--text-3); border-color: var(--border); }+.badge.t-note { background: var(--s-note-bg); color: var(--s-note); border-color: var(--s-note-line); }++/* ── Tables ──────────────────────────────────────────────────── */++.table-card {+ background: var(--panel); border: 1px solid var(--border);+ border-radius: var(--r-md); overflow: auto;+}+table { width: 100%; border-collapse: collapse; font-size: 13px; }+th {+ text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3);+ padding: 9px 15px; border-bottom: 1px solid var(--border-strong);+ white-space: nowrap; position: sticky; top: 0; background: var(--panel);+}+td {+ padding: 10px 15px; border-bottom: 1px solid var(--border);+ font-variant-numeric: tabular-nums; vertical-align: top;+}+tbody tr:last-child td { border-bottom: none; }+tbody tr:hover td { background: var(--panel-raised); }+td a { text-decoration: none; }+td a:hover { text-decoration: underline; }+.muted { color: var(--text-3); }+.num { font-family: var(--mono); text-align: right; }++/* ── Signals ─────────────────────────────────────────────────── */++.sig-summary { display: flex; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--border); margin-bottom: 26px; }+.sig-stat { padding: 14px 24px 16px; border-right: 1px solid var(--border); min-width: 118px; }+.sig-stat:last-child { border-right: none; }+.sig-stat .n { font-family: var(--mono); font-size: 25px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }+.sig-stat .k { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }+.sig-stat.confirmed .n { color: var(--s-good); }+.sig-stat.proposed .n { color: var(--s-wait); }+.sig-stat.rejected .n { color: var(--text-3); }++.sig-group { margin-bottom: 26px; }+.sig-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }+.sig-group-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -0.014em; }+.sig-group-head p { font-size: 13px; color: var(--text-2); margin-top: 4px; max-width: 62ch; text-wrap: pretty; }++.sig-row { display: flex; gap: 20px; align-items: flex-start; padding: 15px 20px; border-bottom: 1px solid var(--border); }+.sig-row:last-child { border-bottom: none; }+.sig-row.rejected { opacity: .5; }+.sig-row .sig-main { flex: 1; min-width: 0; }+.sig-row .sig-label { font-size: 14px; font-weight: 500; }+.sig-row .sig-code { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-left: 8px; }+.sig-row .sig-desc { font-size: 13px; color: var(--text-2); margin-top: 5px; max-width: 68ch; text-wrap: pretty; }+.sig-row .sig-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; align-items: center; }+.sig-row .sig-decide { display: flex; gap: 6px; flex: none; }++.cost-chip {+ font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 2px;+ border: 1px solid var(--border); color: var(--text-3); background: var(--panel-raised);+}+.cost-chip.free { color: var(--s-good); background: var(--s-good-bg); border-color: var(--s-good-line); }+.cost-chip.paid { color: var(--s-wait); background: var(--s-wait-bg); border-color: var(--s-wait-line); }++/* ── Cohort builder ──────────────────────────────────────────── */++.cohort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 7px; }+.cohort-pick {+ display: flex; align-items: center; gap: 9px; padding: 8px 11px;+ border: 1px solid var(--border); border-radius: var(--r-sm);+ font-size: 12.5px; cursor: pointer; user-select: none;+}+.cohort-pick:hover { border-color: var(--border-strong); }+.cohort-pick:has(input:checked) { border-color: var(--text-3); background: var(--panel-raised); }+.cohort-pick input { accent-color: var(--ink); }+.cohort-pick .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }+.cohort-size { font-family: var(--mono); font-size: 33px; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }++/* ── Decisions desk ──────────────────────────────────────────── */++.desk { display: grid; grid-template-columns: 254px minmax(0,1fr); gap: 16px; align-items: start; }+.desk-list { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden auto; max-height: 620px; }+.desk-item { padding: 11px 13px; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; cursor: pointer; }+.desk-item:last-child { border-bottom: none; }+.desk-item:hover { background: var(--panel-raised); }+.desk-item.active { background: var(--panel-raised); border-left-color: var(--ink); }+.desk-item .to { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.desk-item .sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }++.desk-pane { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 32px; }+.desk-pane .to-line { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }+.desk-pane .subject { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -0.018em; margin: 12px 0 16px; line-height: 1.2; }+.desk-pane .body {+ font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; max-width: 64ch;+ padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);+}+.desk-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }++@media (max-width: 900px) { .desk { grid-template-columns: 1fr; } .desk-list { max-height: 220px; } }++/* ── Discovery providers ─────────────────────────────────────── */++.prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 26px; }+.prov-card {+ display: flex; flex-direction: column; gap: 8px; padding: 17px 18px; cursor: pointer;+ background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-md);+ transition: border-color .15s;+}+.prov-card:hover { border-color: var(--border-strong); }+.prov-card.selected { border-color: var(--text-3); background: var(--panel-raised); }+.prov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }+.prov-card h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.006em; }+.prov-card .blurb { font-size: 12.5px; color: var(--text-2); text-wrap: pretty; }+.prov-card .row { display: flex; gap: 8px; font-size: 11.5px; }+.prov-card .row .k { color: var(--text-3); min-width: 40px; flex: none; }+.prov-card .row .v { color: var(--text-2); }+.prov-card .caveat {+ font-size: 11.5px; color: var(--s-wait); background: var(--s-wait-bg);+ border-left: 2px solid var(--s-wait-line); padding: 7px 10px;+ border-radius: 0 var(--r-sm) var(--r-sm) 0; text-wrap: pretty;+}++.estimate-box { border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 16px; background: var(--panel-raised); }+.estimate-box .amount { font-family: var(--mono); font-size: 27px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }+.estimate-box .amount.free { color: var(--s-good); }+.estimate-box .amount.paid { color: var(--s-wait); }+.query-list { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 12px; line-height: 1.75; max-height: 150px; overflow-y: auto; }++/* ── Forms ───────────────────────────────────────────────────── */++.form-group { margin-bottom: 15px; }+.form-label { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-bottom: 5px; }+.form-input {+ width: 100%; padding: 8px 11px; font-family: var(--sans); font-size: 13px;+ background: var(--bg); color: var(--text);+ border: 1px solid var(--border-strong); border-radius: var(--r-sm);+ transition: border-color .15s;+}+.form-input:focus { outline: none; border-color: var(--text-3); }+.form-input::placeholder { color: var(--text-3); }+.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }+.form-row .form-group { flex: 1; min-width: 130px; }++.test-result { font-size: 12.5px; margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid transparent; }+.test-result.success { background: var(--s-good-bg); color: var(--s-good); border-color: var(--s-good-line); }+.test-result.error { background: var(--s-bad-bg); color: var(--s-bad); border-color: var(--s-bad-line); }+.test-result.pending { background: var(--panel-raised); color: var(--text-2); border-color: var(--border); }++/* ── Setup checklist ─────────────────────────────────────────── */++.progress-wrap { margin-bottom: 18px; }+.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }+.progress-label .pct { font-family: var(--mono); font-variant-numeric: tabular-nums; }+.progress-label .text { color: var(--text-3); }+.progress-bar { height: 3px; background: var(--border); border-radius: 99px; overflow: hidden; }+.progress-fill { height: 100%; transition: width .5s cubic-bezier(.16,1,.3,1); }+.progress-fill.green { background: var(--s-good); }+.progress-fill.yellow { background: var(--s-wait); }++.check-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }+.check-item:last-child { border-bottom: none; }+.check-icon {+ width: 15px; height: 15px; flex: none; margin-top: 2px; border-radius: 50%;+ display: flex; align-items: center; justify-content: center; font-size: 9px;+}+.check-icon.done { background: var(--s-good-bg); color: var(--s-good); border: 1px solid var(--s-good-line); }+.check-icon.pending { border: 1px dashed var(--border-strong); color: var(--text-3); }+.check-info { flex: 1; min-width: 0; }+.check-label { font-size: 13px; font-weight: 500; }+.check-label.done { color: var(--text-3); font-weight: 400; }+.check-help { font-size: 12px; color: var(--text-3); margin-top: 3px; text-wrap: pretty; }+.optional-tag { font-size: 10px; color: var(--text-3); font-weight: 400; margin-left: 5px; }++details summary { cursor: pointer; list-style: none; }+details summary::-webkit-details-marker { display: none; }+details summary::before { content: '+ '; font-family: var(--mono); color: var(--text-3); }+details[open] summary::before { content: '– '; }++/* ── Campaigns, conversations, activity ──────────────────────── */++.campaign-card, .convo-card {+ background: var(--panel); border: 1px solid var(--border);+ border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 13px;+}+.campaign-card h3, .convo-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.008em; }+.campaign-card .meta, .convo-card .meta { font-size: 12px; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }++.email-step { border-left: 2px solid var(--border); padding: 2px 0 2px 15px; margin-bottom: 15px; }+.email-step .step-num { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-bottom: 4px; }+.email-step .subject { font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }+.email-step .body { font-size: 13px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }++.thread-msg { max-width: 78%; padding: 11px 14px; border-radius: var(--r-md); margin-bottom: 9px; font-size: 13px; line-height: 1.65; }+.thread-msg.sent { background: var(--panel-raised); border: 1px solid var(--border); margin-left: auto; }+.thread-msg.received { background: var(--bg); border: 1px solid var(--border); }+.thread-msg .sender { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-bottom: 4px; }++.activity-feed { border-top: 1px solid var(--rule); }+.activity-item { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; align-items: baseline; }+.activity-item:last-child { border-bottom: none; }+.activity-item .time { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); min-width: 108px; flex: none; }+.activity-item .agent { font-family: var(--mono); font-size: 11px; color: var(--text-2); min-width: 62px; flex: none; }+.activity-item .action { color: var(--text-2); }++/* ── Help & misc ─────────────────────────────────────────────── */++.help-section { margin-bottom: 26px; }+.help-section h2 { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.014em; margin-bottom: 9px; }+.help-section p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 9px; max-width: 70ch; }+.help-section code { font-family: var(--mono); font-size: 12px; background: var(--panel-raised); border: 1px solid var(--border); border-radius: 2px; padding: 1px 5px; }+.help-section pre { background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 13px 15px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; }+.file-table { width: 100%; font-size: 12.5px; border-collapse: collapse; }+.file-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }+.file-table td:first-child { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; width: 210px; }+.file-table td:last-child { color: var(--text-2); }+.file-table tr:last-child td { border-bottom: none; }++.control-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }+@media (max-width: 900px) { .control-panel { grid-template-columns: 1fr; } }+.status-big { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }+.status-big .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }+.status-big .dot.running { background: var(--s-good); }+.status-big .label { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }+.status-big .label.running { color: var(--s-good); }+.status-meta { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-bottom: 16px; min-height: 15px; }+.log-viewer { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 13px 15px; font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--text-2); height: 340px; overflow-y: auto; white-space: pre-wrap; }++.empty { text-align: center; padding: 46px 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); }+.empty .glyph { font-size: 20px; color: var(--text-3); margin-bottom: 12px; }+.empty .title { font-family: var(--serif); font-size: 19px; font-weight: 400; margin-bottom: 6px; }+.empty .copy { font-size: 13px; color: var(--text-3); line-height: 1.65; max-width: 46ch; margin: 0 auto; text-wrap: pretty; }+.empty .copy b { color: var(--text-2); font-weight: 500; }++.toast {+ position: fixed; bottom: 22px; right: 22px; z-index: 60;+ padding: 11px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 450;+ box-shadow: var(--shadow); animation: toast-in .25s cubic-bezier(.16,1,.3,1);+}+@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }+.toast.success { background: var(--ink); color: var(--ink-contrast); }+.toast.error { background: var(--s-bad); color: #fff; }++@media (max-width: 700px) {+ :root { --gut: 18px; }+ .brand .tagline { display: none; }+ .section-head h2 { font-size: 26px; }+}++@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }+}diff --git a/harvey/web/app.js b/harvey/web/app.jsindex 2135f95..b810e58 100644--- a/harvey/web/app.js+++ b/harvey/web/app.js@@ -4,6 +4,35 @@ let _companies = [], _prospects = [], _campaigns = [];let _signals = null; // last /api/signals payload, for the cohort builderlet _desk = { items: [], i: 0 };+// ── Appearance ──+//+// Three states, not two: "auto" follows the OS and is the default, so the+// dashboard matches the rest of your machine until you deliberately override+// it. Stored per-browser; nothing is sent anywhere.++const THEMES = ['auto', 'light', 'dark'];++function applyTheme(mode) {+ const root = document.documentElement;+ if (mode === 'auto') root.removeAttribute('data-theme');+ else root.setAttribute('data-theme', mode);+ const btn = document.getElementById('theme-btn');+ if (btn) btn.textContent = mode;+}++function cycleTheme() {+ const now = localStorage.getItem('harvey-theme') || 'auto';+ const next = THEMES[(THEMES.indexOf(now) + 1) % THEMES.length];+ try { localStorage.setItem('harvey-theme', next); } catch { /* private mode */ }+ applyTheme(next);+}++(function initTheme() {+ let saved = 'auto';+ try { saved = localStorage.getItem('harvey-theme') || 'auto'; } catch { /* ignore */ }+ applyTheme(THEMES.includes(saved) ? saved : 'auto');+})();+// ── Utilities ──function escHtml(s) {@@ -133,7 +162,7 @@ function showTab(id, btn) {function loadCurrentTab() {switch (currentTab) {- case 'today': loadToday(); loadStats(); loadSetupStatus(); loadRuns(); break;+ case 'today': loadToday(); loadSetupStatus(); loadRuns(); loadTodayActivity(); break;case 'signals': loadSignals(); break;case 'discover': loadDiscoverProviders(); break;case 'companies': if (!companyDrill) loadCompanies(); break;@@ -157,7 +186,7 @@ async function loadToday() {navCount('nav-today', (data.items || []).filter(i => i.tone !== 'good').length);navCount('nav-outbox', (data.stats || {}).outbox_pending || 0);- navCount('nav-signals', 0);+ renderFigures(data.stats || {});const items = data.items || [];if (!items.length) {@@ -182,6 +211,41 @@ async function loadToday() {).join('') + '</div>';}+function renderFigures(stats) {+ const el = document.getElementById('today-figures');+ if (!el) return;+ const row = (label, value) =>+ '<div class="figure"><span class="k">' + label + '</span>' ++ '<span class="v' + (value ? '' : ' zero') + '">' + value + '</span></div>';++ el.innerHTML = '<div class="figures">' ++ row('Companies', stats.companies || 0) ++ row('Contacts', stats.prospects || 0) ++ row('Signals on', stats.signals_confirmed || 0) ++ row('Not yet read', stats.unprofiled || 0) ++ row('Awaiting approval', stats.outbox_pending || 0) ++ row('Scheduled', stats.outbox_approved || 0) ++ row('Live conversations', stats.open_conversations || 0) ++ '</div>';+}++async function loadTodayActivity() {+ const el = document.getElementById('today-activity');+ if (!el) return;+ const data = await api('/api/activity');+ if (!Array.isArray(data) || !data.length) {+ el.innerHTML = '<p class="muted" style="font-size:12.5px">' ++ 'Nothing yet. Every action Harvey takes shows up here.</p>';+ return;+ }+ el.innerHTML = '<div class="activity-feed">' + data.slice(0, 12).map(a =>+ '<div class="activity-item">' ++ '<span class="time">' + formatDate(a.created_at) + '</span>' ++ '<span class="agent">' + escHtml(a.agent) + '</span>' ++ '<span class="action">' + escHtml(String(a.action_type).replace(/_/g, ' ')) + '</span>' ++ '</div>').join('') + '</div>';+}+function navCount(id, n) {const el = document.getElementById(id);if (!el) return;@@ -198,19 +262,27 @@ function goTab(id) {async function loadRuns() {const el = document.getElementById('today-runs');+ const block = document.getElementById('today-runs-block');if (!el) return;const runs = await api('/api/runs');- if (!Array.isArray(runs) || !runs.length) { el.innerHTML = ''; return; }- el.innerHTML = '<div class="subhead">Collector runs</div>' +- '<div class="table-card"><table><thead><tr><th>Stage</th><th>Status</th>' +- '<th>Provider</th><th>Records</th><th>Cost</th><th>Started</th></tr></thead><tbody>' +- runs.map(r =>- '<tr><td>' + escHtml(r.stage) + '</td><td>' + badge(r.status) + '</td>' +- '<td class="muted">' + escHtml(r.provider || '—') + '</td>' +- '<td>' + (r.records || 0) + '</td>' +- '<td class="muted">' + (r.cost_usd ? '$' + Number(r.cost_usd).toFixed(4) : 'free') + '</td>' +- '<td class="muted">' + formatDate(r.started_at) + '</td></tr>'- ).join('') + '</tbody></table></div>';+ if (!Array.isArray(runs) || !runs.length) {+ if (block) block.style.display = 'none';+ el.innerHTML = '';+ return;+ }+ if (block) block.style.display = '';++ // A rail is 300px wide — a seven-column table does not belong here.+ el.innerHTML = '<div class="figures">' + runs.slice(0, 6).map(r =>+ '<div class="figure" style="align-items:flex-start">' ++ '<span class="k">' + escHtml(r.stage) ++ '<br><span class="muted" style="font-size:11px">' ++ formatDate(r.started_at) + '</span></span>' ++ '<span style="text-align:right;flex:none">' + badge(r.status) ++ '<br><span class="muted" style="font-family:var(--mono);font-size:11px">' ++ (r.records || 0) + ' rec · ' ++ (r.cost_usd ? '$' + Number(r.cost_usd).toFixed(4) : 'free') + '</span></span>' ++ '</div>').join('') + '</div>';}// ── Setup checklist (lives on Today, and disappears once it's done) ──@@ -222,38 +294,35 @@ async function loadSetupStatus() {if (!data || !data.checks) { el.innerHTML = ''; return; }const pct = data.percent || 0;- const renderCheck = (c, optional) => {- const icon = c.done- ? '<span class="check-icon done">✓</span>'- : '<span class="check-icon pending">●</span>';- return '<div class="check-item">' + icon ++ // Finished setup disappears completely rather than greeting you forever.+ if (pct === 100) { el.innerHTML = ''; return; }++ const renderCheck = (c, optional) =>+ '<div class="check-item">' ++ (c.done ? '<span class="check-icon done">✓</span>'+ : '<span class="check-icon pending"></span>') +'<div class="check-info">' +'<div class="check-label ' + (c.done ? 'done' : '') + '">' + escHtml(c.label) +- (optional ? ' <span class="optional-tag">optional</span>' : '') + '</div>' ++ (optional ? '<span class="optional-tag">optional</span>' : '') + '</div>' +(!c.done ? '<div class="check-help">' + escHtml(c.help) + '</div>' : '') +'</div></div>';- };- let checks = data.checks.filter(c => c.required).map(c => renderCheck(c, false)).join('');+ const required = data.checks.filter(c => c.required);const optional = data.checks.filter(c => !c.required);- if (optional.length) {- checks += '<div class="subhead">Optional</div>';- checks += optional.map(c => renderCheck(c, true)).join('');- }- // Complete setup collapses out of the way rather than greeting you forever.- const open = pct < 100 ? ' open' : '';el.innerHTML =- '<details class="card"' + open + '>' +- '<summary style="cursor:pointer;font-size:14px;font-weight:650">Setup — ' +- pct + '% complete <span class="muted" style="font-weight:400">(' +- data.completed + ' of ' + data.total_required + ' required steps)</span></summary>' +- '<div style="margin-top:16px">' +- '<div class="progress-bar" style="margin-bottom:18px"><div class="progress-fill ' +- (pct === 100 ? 'green' : 'yellow') + '" style="width:' + pct + '%"></div></div>' +- checks +- '</div>' +- '</details>';+ '<div class="rail-block">' ++ '<div class="subhead">Setup — ' + pct + '%</div>' ++ '<div class="progress-bar" style="margin-bottom:14px">' ++ '<div class="progress-fill yellow" style="width:' + pct + '%"></div></div>' ++ required.map(c => renderCheck(c, false)).join('') ++ (optional.length+ ? '<details style="margin-top:10px"><summary class="muted" ' ++ 'style="font-size:12px">' + optional.length + ' optional</summary>' ++ '<div style="margin-top:6px">' ++ optional.map(c => renderCheck(c, true)).join('') + '</div></details>'+ : '') ++ '</div>';}// ── Signals: Harvey proposes, you confirm ──@@ -1241,9 +1310,9 @@ async function loadActivity() {// ── Init & live refresh ──loadToday();-loadStats();loadSetupStatus();loadRuns();+loadTodayActivity();loadHarveyStatus();// Agent status: quick poll@@ -1265,7 +1334,7 @@ setInterval(async () => {setInterval(() => {if (document.hidden) return;switch (currentTab) {- case 'today': loadToday(); loadStats(); loadRuns(); break;+ case 'today': loadToday(); loadRuns(); loadTodayActivity(); break;case 'companies': if (!companyDrill) loadCompanies(); break;case 'prospects': loadProspects(); break;case 'campaigns': loadCampaigns(); break;diff --git a/harvey/web/fonts/geist-mono.woff2 b/harvey/web/fonts/geist-mono.woff2new file mode 100644index 0000000..cf24126Binary files /dev/null and b/harvey/web/fonts/geist-mono.woff2 differdiff --git a/harvey/web/fonts/geist.woff2 b/harvey/web/fonts/geist.woff2new file mode 100644index 0000000..8f01e76Binary files /dev/null and b/harvey/web/fonts/geist.woff2 differdiff --git a/harvey/web/fonts/newsreader.woff2 b/harvey/web/fonts/newsreader.woff2new file mode 100644index 0000000..8cd8effBinary files /dev/null and b/harvey/web/fonts/newsreader.woff2 differdiff --git a/harvey/web/index.html b/harvey/web/index.htmlindex 5d1aa9c..2e380f8 100644--- a/harvey/web/index.html+++ b/harvey/web/index.html@@ -21,6 +21,8 @@<span class="status-dot stopped" id="header-dot"></span><span id="header-status-text">Checking…</span></div>+ <button class="icon-btn" id="theme-btn" onclick="cycleTheme()"+ title="Appearance: follows your system until you pick one">auto</button><button class="refresh-btn" onclick="loadCurrentTab()">Refresh</button></div></header>@@ -49,11 +51,27 @@<h2>Today</h2><p>Anything waiting on you, then everything Harvey has built so far.</p></div>- <div id="today-queue"></div>- <div id="today-setup"></div>- <div class="subhead">Pipeline</div>- <div class="stats-grid" id="stats-grid"></div>- <div id="today-runs"></div>+ <div class="today-grid">+ <div class="today-main">+ <div id="today-queue"></div>+ <div class="rail-block" style="margin-top:34px">+ <div class="subhead">Recent activity</div>+ <div id="today-activity"></div>+ </div>+ </div>++ <aside class="today-rail">+ <div class="rail-block">+ <div class="subhead">Pipeline</div>+ <div id="today-figures"></div>+ </div>+ <div class="rail-block" id="today-runs-block">+ <div class="subhead">Collector runs</div>+ <div id="today-runs"></div>+ </div>+ <div id="today-setup"></div>+ </aside>+ </div></div><!-- Signals: the confirmation gate -->diff --git a/pyproject.toml b/pyproject.tomlindex 4d91c79..8e27a32 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "harvey"-version = "0.1.0"+version = "0.2.0"description = "Autonomous AI sales agent. Always Be Closing."readme = "README.md"requires-python = ">=3.11"@@ -43,6 +43,7 @@ dev = [[project.urls]Homepage = "https://github.com/ethanplusai/harvey"Issues = "https://github.com/ethanplusai/harvey/issues"+Changelog = "https://github.com/ethanplusai/harvey/blob/main/CHANGELOG.md"[project.scripts]harvey = "harvey.cli:main"@@ -50,6 +51,7 @@ harvey = "harvey.cli:main"[tool.setuptools.packages.find]include = ["harvey*"]-# The dashboard's HTML/CSS/JS are real files, served from disk.+# The dashboard's HTML/CSS/JS are real files served from disk, and its fonts+# are vendored so a local tool renders correctly with the network off.[tool.setuptools.package-data]-harvey = ["web/*"]+harvey = ["web/*", "web/fonts/*"]