/* Finley design system. One file, no build step.
   Tokens first; components below use only tokens so dark mode is just a token swap. */

:root {
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #f7f2e9;              /* cream */
  --surface: #fffdf9;
  --surface-2: #f2ece1;
  --border: #e7ddcc;
  --border-strong: #d6c9b4;
  --text: #241a12;            /* dark brown, near black */
  --text-2: #5f5246;
  --text-3: #978a7b;

  --brand: #f37021;           /* Finley orange */
  --brand-hover: #d85f14;
  --brand-soft: #fdeadb;
  --brand-ink: #a4430b;
  --on-brand: #ffffff;
  --grad: linear-gradient(var(--brand), var(--brand));
  --green: #2f7a3e;  --green-soft: #e6f1e3;

  --sb-bg: #241a12; --sb-border: #3a2c20; --sb-text: #cdbfae; --sb-strong: #ffffff;
  --sb-hover: rgba(255,255,255,.06); --sb-active: rgba(243,112,33,.16);

  --blue: #2f5d8a;   --blue-soft: #e5edf4;
  --amber: #a15c07;  --amber-soft: #fdf3e2;
  --red: #c0362c;    --red-soft: #fdebea;
  --violet: #8a5a2b; --violet-soft: #f4e9dc;
  --gray-soft: #efe8dc;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(60, 35, 15, .04), 0 1px 3px rgba(60, 35, 15, .04);
  --shadow: 0 1px 2px rgba(60, 35, 15, .04), 0 6px 20px rgba(60, 35, 15, .07);
  --shadow-lg: 0 10px 40px rgba(60, 35, 15, .12);
  --focus: 0 0 0 3px rgba(243, 112, 33, .22);
  --sidebar: 240px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15100b; --surface: #1d1712; --surface-2: #251e17; --border: #33291f; --border-strong: #463a2d;
    --text: #f3ebe0; --text-2: #c2b4a3; --text-3: #8d7f70;
    --brand: #ff8a3d; --brand-hover: #ffa265; --brand-soft: #3a2414; --brand-ink: #ffc59c; --on-brand: #1d1209;
    --green: #7bc98a; --green-soft: #17271a; --sb-bg: #120d09; --sb-border: #2a2119;
    --blue: #8fb3d9; --blue-soft: #18222d; --amber: #e8a64a; --amber-soft: #2c2111; --red: #f07a70; --red-soft: #321816;
    --violet: #d0a77c; --violet-soft: #2a2017; --gray-soft: #2a231c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #15100b; --surface: #1d1712; --surface-2: #251e17; --border: #33291f; --border-strong: #463a2d;
    --text: #f3ebe0; --text-2: #c2b4a3; --text-3: #8d7f70;
    --brand: #ff8a3d; --brand-hover: #ffa265; --brand-soft: #3a2414; --brand-ink: #ffc59c; --on-brand: #1d1209;
    --green: #7bc98a; --green-soft: #17271a; --sb-bg: #120d09; --sb-border: #2a2119;
    --blue: #8fb3d9; --blue-soft: #18222d; --amber: #e8a64a; --amber-soft: #2c2111; --red: #f07a70; --red-soft: #321816;
    --violet: #d0a77c; --violet-soft: #2a2017; --gray-soft: #2a231c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 620; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); } .small { font-size: 12.5px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

/* layout helpers */
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 10px); flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid > *, .stack > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1000px) { .grid-main, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 550 13.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--red); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }
form.inline { display: inline; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 560; font-size: 13px; }
.hint { color: var(--text-3); font-size: 12.5px; }
.input, .textarea, .select { width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: 14px/1.45 var(--font); transition: border-color .12s, box-shadow .12s; }
.input, .select { height: 36px; }
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; }
.file { font: inherit; color: var(--text-2); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.kpi-label { color: var(--text-2); font-size: 12.5px; font-weight: 520; display: flex; align-items: center; gap: 6px; }
.kpi-label svg { width: 14px; height: 14px; color: var(--text-3); }
.kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 560; background: var(--gray-soft); color: var(--text-2); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px;
  border-radius: 7px; font-weight: 650; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.score-A { background: var(--green-soft); color: var(--green); }
.score-B { background: var(--blue-soft); color: var(--blue); }
.score-C { background: var(--amber-soft); color: var(--amber); }
.score-D, .score-unscored { background: var(--gray-soft); color: var(--text-3); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-weight: 560; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .cell-main { font-weight: 560; }
.table .cell-sub { color: var(--text-3); font-size: 12.5px; }
.table input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--text-2); text-decoration: none; font-weight: 540; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.tab .count { background: var(--gray-soft); color: var(--text-2); border-radius: 999px; padding: 0 7px; font-size: 11.5px; line-height: 18px; }

/* ---------- alerts / flash ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; border: 1px solid transparent; }
.alert svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.alert-success { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--blue-soft); color: var(--blue); }
.alert-warn { background: var(--amber-soft); color: var(--amber); }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 48px 24px; }
.empty-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty-icon svg { width: 22px; height: 22px; }
.empty h3 { font-size: 15px; }
.empty p { color: var(--text-2); max-width: 420px; margin: 6px auto 16px; }

/* ---------- progress ---------- */
.progress { height: 8px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .3s; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- checklist ---------- */
.checklist { display: flex; flex-direction: column; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; text-decoration: none; border-top: 1px solid var(--border); }
.check-item:hover { background: var(--surface-2); }
.check-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; margin-top: 1px; }
.check-item.done .check-dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.check-item.done .check-title { color: var(--text-3); text-decoration: line-through; }
.check-dot svg { width: 12px; height: 12px; }
.check-title { font-weight: 560; }

/* ---------- bar chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-stack { width: 100%; max-width: 26px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.bar { width: 100%; border-radius: 4px 4px 2px 2px; }
.bar[style="height:0%"] { display: none; }
.bar-stack::after { content: ""; height: 2px; border-radius: 2px; background: var(--border); }
.bar.drafted { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.bar.sent { background: var(--brand); }
.bar-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ======================= APP SHELL ======================= */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px;
  border-right: 1px solid var(--border); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 10px 14px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.logo svg { width: 16px; height: 16px; }
.nav-section { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 520; }
.nav-link svg { width: 17px; height: 17px; flex: none; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-link .count { margin-left: auto; font-size: 11.5px; background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.sidebar-cta { margin: 6px 4px 10px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.usercard { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-weight: 650; font-size: 12.5px; flex: none; }
.main { min-width: 0; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 30; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 80px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 13px; margin-bottom: 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .page { padding: 20px 16px 64px; }
}

/* ---------- review (email preview) ---------- */
.review { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 140px); }
.review-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: calc(100vh - 140px); }
.review-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); text-decoration: none; }
.review-item:hover { background: var(--surface-2); }
.review-item.active { background: var(--brand-soft); }
.review-item .who { font-weight: 580; }
.review-item .subj { color: var(--text-2); font-size: 13px; }
.review-pane { padding: 24px 28px; min-width: 0; }
@media (max-width: 860px) { .review { grid-template-columns: 1fr; } .review-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); } .review-pane { padding: 18px 16px; } }
.email { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.email-meta { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); display: grid; grid-template-columns: 56px 1fr; row-gap: 4px; }
.email-meta b { color: var(--text-3); font-weight: 520; }
.email-subject { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 14px 18px; font: 600 16px var(--font); background: transparent; color: var(--text); }
.email-body { width: 100%; border: 0; padding: 16px 18px; font: 15px/1.65 var(--font); background: transparent; color: var(--text); min-height: 260px; resize: vertical; }
.email-subject:focus, .email-body:focus { outline: none; background: var(--surface-2); }
.email-static { padding: 16px 18px; white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.facts { display: flex; flex-direction: column; gap: 8px; }
.fact { display: flex; gap: 8px; font-size: 13px; }
.fact .id { font-family: var(--mono); font-size: 11px; color: var(--text-3); background: var(--gray-soft); border-radius: 5px; padding: 1px 5px; height: fit-content; }
.meter { display: grid; grid-template-columns: 96px 1fr 22px; align-items: center; gap: 10px; font-size: 13px; }
.meter .progress { height: 6px; }

/* ---------- run panel ---------- */
.runlog { max-height: 220px; overflow-y: auto; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.runlog .ok { color: var(--green); } .runlog .err { color: var(--red); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1000px 500px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-body { padding: 28px; }

/* ======================= POLISH LAYER ======================= */
h1 { font-size: 26px; font-weight: 720; letter-spacing: -0.025em; }
h2 { font-size: 16px; font-weight: 650; }
.page { padding: 32px 36px 88px; max-width: 1220px; }
.page-head { margin-bottom: 26px; }
.page-head p { font-size: 14.5px; }

/* buttons: a little depth, gradient primary */
.btn { border-radius: 9px; font-weight: 580; }
.btn-primary { background: var(--brand); border-color: transparent; background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  box-shadow: 0 1px 2px rgba(70, 40, 15, .08), 0 4px 12px rgba(70, 40, 15, .07), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background-color: var(--brand-hover); }
.btn-glow { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 20px rgba(70, 40, 15, .11), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-glow:hover { filter: brightness(1.06); background: var(--grad); }
.input, .select, .textarea { border-radius: 9px; }
.file::file-selector-button { font: 580 13px var(--font); height: 32px; padding: 0 12px; margin-right: 10px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.file::file-selector-button:hover { background: var(--surface-2); }

/* cards */
.card, .kpi { border-color: var(--border); box-shadow: var(--shadow-sm); }
.card-head { padding: 18px 22px; }
.card-body { padding: 22px; }
.card-foot { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }

/* KPI tiles with colored icon chips */
.kpis { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { padding: 18px; position: relative; overflow: hidden; }
.kpi-label { font-size: 12.5px; font-weight: 560; gap: 8px; }
.kpi-label svg { width: 26px; height: 26px; padding: 6px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.kpi:nth-child(2) .kpi-label svg { background: var(--violet-soft); color: var(--violet); }
.kpi:nth-child(3) .kpi-label svg { background: var(--blue-soft); color: var(--blue); }
.kpi:nth-child(4) .kpi-label svg { background: var(--green-soft); color: var(--green); }
.kpi:nth-child(5) .kpi-label svg { background: var(--amber-soft); color: var(--amber); }
.kpi:nth-child(6) .kpi-label svg { background: var(--gray-soft); color: var(--text-2); }
.kpi-value { font-size: 30px; font-weight: 720; margin-top: 12px; letter-spacing: -0.03em; }

/* chart */
.bars { height: 170px; }
.bar.sent { background: var(--grad); }
.bar.drafted { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }

/* tables */
.table th { background: transparent; font-size: 11.5px; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.tab.active { border-bottom-color: var(--brand); color: var(--brand-ink); }
.empty-icon { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(70, 40, 15, .06); }

/* ---------- icon rail (light, compact) ---------- */
:root { --sidebar: 76px; }
.app { background: linear-gradient(90deg, var(--surface) var(--sidebar), transparent var(--sidebar)); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 14px 8px; align-items: stretch; gap: 2px; }
.sidebar .brand { justify-content: center; padding: 2px 0 12px; }
.sidebar .brand .lbl { display: none; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(70, 40, 15, .11); }
.logo svg { width: 18px; height: 18px; }
.sidebar-cta { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px; background: var(--text); color: var(--surface); text-decoration: none; box-shadow: var(--shadow); }
.sidebar-cta:hover { background: var(--brand); }
.sidebar-cta svg { width: 18px; height: 18px; }
.sidebar-cta .lbl { display: none; }
.sidebar .nav-link { position: relative; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 0 7px; border-radius: 10px; font-size: 10.5px; font-weight: 560; color: var(--text-3); text-align: center; line-height: 1.1; }
.sidebar .nav-link svg { width: 19px; height: 19px; }
.sidebar .nav-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar .nav-link.active { background: var(--brand-soft); color: var(--brand-ink); }
.sidebar .nav-link .count { position: absolute; top: 3px; right: 9px; margin: 0; font-size: 10px; line-height: 16px; padding: 0 5px; background: var(--brand); color: #fff; }
.sidebar .usercard { justify-content: center; padding: 10px 0 0; flex-direction: column; gap: 6px; }
.sidebar .usercard .grow { display: none; }
.avatar { background: var(--grad); color: #fff; }
@media (max-width: 860px) {
  .sidebar { width: 240px; padding: 14px 10px; }
  .sidebar .brand { justify-content: flex-start; padding: 2px 8px 12px; } .sidebar .brand .lbl { display: inline; }
  .sidebar-cta { width: auto; height: 38px; margin: 0 4px 10px; display: flex; gap: 8px; align-items: center; justify-content: center; } .sidebar-cta .lbl { display: inline; font-weight: 600; }
  .sidebar .nav-link { flex-direction: row; justify-content: flex-start; font-size: 14px; padding: 8px 10px; gap: 10px; text-align: left; }
  .sidebar .nav-link .count { position: static; margin-left: auto; }
  .sidebar .usercard { flex-direction: row; justify-content: flex-start; padding: 10px; } .sidebar .usercard .grow { display: block; }
  .page { padding: 20px 16px 64px; }
}

/* dark buttons, the default call to action */
.btn-dark { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-dark:hover { background: var(--brand); border-color: var(--brand); }
.inline-icon { display: inline-block; vertical-align: -3px; width: 14px; height: 14px; }

/* ---------- find: workspace (chat + lead sheet) ---------- */
.ws { display: grid; grid-template-columns: 380px minmax(0, 1fr); height: 100vh; }
.ws[data-state="empty"] { display: block; height: auto; }
.ws[data-state="empty"] .ws-chat, .ws[data-state="empty"] .ws-sheet { display: none; }
.ws[data-state="sheet"] .ws-empty { display: none; }
.ws-empty { padding: 9vh 24px 80px; }
.ws-empty-inner { max-width: 760px; margin: 0 auto; }
.find-hero { text-align: center; }
.find-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.05; }
.find-hero h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.find-hero p { color: var(--text-2); font-size: 16px; max-width: 600px; margin: 14px auto 0; }
.prompt-card { margin-top: 30px; padding: 6px 6px 8px; border-radius: 18px; box-shadow: 0 1px 2px rgba(60,35,15,.04), 0 16px 48px rgba(70, 40, 15, .04); }
.prompt-card:focus-within { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 0 0 4px var(--brand-soft), 0 16px 48px rgba(70, 40, 15, .04); }
.mode-tabs { display: flex; gap: 4px; padding: 4px; }
.mode-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-3); font: 560 13px var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.mode-tab svg { width: 14px; height: 14px; }
.mode-tab.active { background: var(--surface-2); color: var(--text); }
.prompt-card .prompt { border: 0; box-shadow: none; font-size: 17px; line-height: 1.5; min-height: 96px; padding: 8px 12px; resize: none; background: transparent; }
.prompt-card .prompt:focus { box-shadow: none; }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 0 8px; flex-wrap: wrap; }
.pill-select, .pill-check { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--surface); cursor: pointer; }
.pill-select svg { width: 14px; height: 14px; color: var(--text-3); }
.pill-select select { border: 0; background: transparent; font: 520 13px var(--font); color: var(--text); max-width: 190px; cursor: pointer; outline: none; }
.pill-check input { accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: 520 13px var(--font); cursor: pointer; }
.chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); color: var(--brand-ink); background: var(--brand-soft); }
.more-options { margin-top: 18px; }
.more-options summary { text-align: center; color: var(--text-3); font-size: 13px; cursor: pointer; list-style: none; }
.more-options summary::after { content: " ▾"; }
.recent { margin-top: 44px; }
.recent-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.recent-item:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.recent-item > svg { color: var(--text-3); width: 16px; height: 16px; flex: none; }
.recent-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }

.ws > * { min-width: 0; }
.ws-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--surface); }
.ws-chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 560; min-width: 0; }
.ws-chat-head .crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.ws-chat-head .crumb svg { width: 14px; height: 14px; }
.ws-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { font-size: 14px; line-height: 1.55; }
.msg-user { align-self: flex-end; max-width: 88%; background: var(--surface-2); border: 1px solid var(--border); padding: 10px 13px; border-radius: 14px 14px 4px 14px; }
.msg-agent { display: flex; gap: 10px; align-items: flex-start; }
.agent-ic .logo { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.agent-ic .logo svg { width: 13px; height: 13px; }
.agent-body { min-width: 0; }
.steps-done { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.steps-done li::before { content: "✓ "; color: var(--green); }
.ws-follow { margin: 12px; border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 10px 8px 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.ws-follow:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.ws-follow textarea { width: 100%; border: 0; resize: none; font: 14px/1.45 var(--font); background: transparent; color: var(--text); outline: none; }
.icon-btn { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--text); color: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--brand); }
.icon-btn svg { width: 15px; height: 15px; }

.ws-sheet { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.sheet-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px 12px; flex-wrap: wrap; }
.sheet-head h2 { font-size: 18px; font-weight: 680; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-demo { background: var(--amber-soft); color: var(--amber); }
.sheet-stats { display: flex; align-items: center; gap: 26px; padding: 0 20px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sheet-stats span { display: block; font-size: 11.5px; color: var(--text-3); }
.sheet-stats b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sheet-progress { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 8px; font-size: 12.5px; min-width: 280px; }
.sheet-progress.hidden { display: none; }
.sheet-progress .progress { grid-column: 1 / -1; height: 4px; }
.sheet-wrap { flex: 1; overflow: auto; position: relative; }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; counter-reset: rn; }
.sheet th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 560; color: var(--text-2); padding: 9px 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); white-space: nowrap; }
.sheet th svg { display: inline-block; width: 13px; height: 13px; color: var(--text-3); margin-right: 6px; vertical-align: -2px; }
.sheet td { padding: 9px 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.sheet tr:hover td { background: color-mix(in srgb, var(--brand-soft) 40%, transparent); }
.sheet .rn { width: 44px; text-align: center; color: var(--text-3); font-variant-numeric: tabular-nums; background: var(--surface); }
.sheet tbody tr { counter-increment: rn; }
.sheet tbody .rn::before { content: counter(rn); }
.sheet .why { min-width: 260px; max-width: 420px; color: var(--text-2); }
.sheet .cell-main { font-weight: 580; }
.sheet .cell-sub { color: var(--text-3); font-size: 12px; text-decoration: none; display: block; }
.sheet a.cell-sub:hover { color: var(--brand); }
.row-new td { animation: rowin .5s ease-out; }
@keyframes rowin { from { background: var(--brand-soft); } }
.co { display: flex; gap: 10px; align-items: center; }
.co-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--text-2); flex: none; }
.fit { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-variant-numeric: tabular-nums; }
.fit i { width: 12px; height: 12px; border-radius: 3px; background: var(--border-strong); }
.fit-A i { background: #22c55e; } .fit-B i { background: #84cc16; } .fit-C i { background: #f59e0b; } .fit-D i { background: #ef4444; }
.fit-new { color: var(--text-3); font-weight: 520; }
.fit-new i { background: transparent; border: 1.5px dashed var(--border-strong); }
.sheet-empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
@media (max-width: 1000px) {
  .ws { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sheet-head .btn { flex: 1 1 auto; }
  .ws-chat { border-right: 0; border-bottom: 1px solid var(--border); max-height: 60vh; }
  .ws-sheet { min-height: 70vh; }
  .ws-empty { padding-top: 32px; }
}

/* ---------- auth ---------- */
.auth { background: radial-gradient(900px 480px at 50% -10%, rgba(70, 40, 15, .06), transparent 70%), radial-gradient(700px 400px at 90% 110%, rgba(70, 40, 15, .04), transparent 70%), var(--bg); }
.auth .card { box-shadow: var(--shadow-lg); }
.auth .brand { font-size: 18px; }

/* ===== EDITORIAL PASS: quiet surfaces, flat orange, serif numbers ===== */
.btn-primary { background-image: none; box-shadow: none; }
.btn-glow { box-shadow: none; }
.btn { box-shadow: none; }
.kpi-label svg { display: none; }
.kpi-label { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--text-3); font-weight: 600; }
.kpi-value { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; line-height: 1.05; margin-top: 10px; }
.kpi, .card { box-shadow: none; }
.kpis { gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.kpis .kpi { border: 0; border-radius: 0; border-right: 1px solid var(--border); background: transparent; }
.kpis .kpi:last-child { border-right: 0; }
.logo { background: var(--brand); box-shadow: none; border-radius: 8px; }
.empty-icon { background: var(--surface-2); color: var(--text-2); box-shadow: none; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0; }
.avatar { background: var(--text); color: var(--surface); }
@media (max-width: 900px) { .kpis .kpi { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ===== PORTAL PASS: electric blue on white, condensed grotesk, square corners =====
   Everything is one ink (blue) on paper (white), like a two-color print. */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  color-scheme: light;
  --ink: #1a1aff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f3ff;
  --border: #d2d2ff; --border-strong: #1a1aff;
  --text: #1a1aff; --text-2: #4b4bff; --text-3: #8080ff;
  --brand: #1a1aff; --brand-hover: #0000d6; --brand-soft: #e8e8ff; --brand-ink: #1a1aff; --on-brand: #ffffff;
  --grad: linear-gradient(#1a1aff, #1a1aff);
  --green: #1a1aff; --green-soft: #e8e8ff; --blue: #1a1aff; --blue-soft: #e8e8ff;
  --amber: #1a1aff; --amber-soft: #f3f3ff; --violet: #1a1aff; --violet-soft: #e8e8ff; --gray-soft: #f3f3ff;
  --red: #e0002a; --red-soft: #ffe6ea;
  --sb-bg: #1a1aff; --sb-border: #4b4bff; --sb-text: #d2d2ff; --sb-strong: #fff;
  --radius-sm: 0; --radius: 0; --radius-lg: 0;
  --shadow-sm: none; --shadow: none; --shadow-lg: none;
  --focus: 0 0 0 2px #fff, 0 0 0 4px #1a1aff;
}
body { background: #fff; color: var(--ink); }
::selection { background: var(--ink); color: #fff; }
.card, .kpis, .prompt-card, .ws-follow, .hero-box, .app-mock, .plan, .faq details, .step, .mock, .recent-item, .auth .card { border: 1.5px solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; }
.btn, .input, .textarea, .select, .pill-select, .chip, .mode-tab, .tag, .badge, .icon-btn, .logo, .sidebar-cta, .nav-link, .avatar, .eyebrow, .eyebrow b, .msg, .co-ic, .hero-input .btn, .hero-box .new { border-radius: 0 !important; }
.btn { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; font-weight: 600; box-shadow: none; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary, .btn-dark, .lp .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; background-image: none; }
.btn-primary:hover, .btn-dark:hover, .lp .btn-primary:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost { border-color: transparent; background: transparent; }
.final .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.final .btn-primary:hover { background: var(--ink); color: #fff; }

/* Display type: heavy, condensed, uppercase, like a poster. */
.hero h1, .find-hero h1, .page-head h1, .section-head h2, .split h2, .final h2, .sheet-head h2,
.kpi-value, .strip .stat b, .feature h3, .feature::before, .plan .price {
  font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: .92; }
.hero h1 { font-size: clamp(56px, 10vw, 136px); }
.hero h1 em, .final h2 em, .find-hero h1 em { font-style: normal; background: var(--ink); color: #fff; -webkit-text-fill-color: #fff; padding: 0 .12em; }
.final h2 em { background: #fff; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.find-hero h1 { font-size: clamp(44px, 6vw, 76px); }
.page-head h1 { font-size: 52px; }
.section-head h2 { font-size: clamp(44px, 6.4vw, 84px); }
.split h2 { font-size: clamp(40px, 5vw, 64px); }
.final h2 { font-size: clamp(48px, 8vw, 110px); }
.sheet-head h2 { font-size: 30px; }
.kpi-value { font-size: 56px; }
.strip .stat b { font-size: 64px; color: var(--ink); }
.feature h3 { font-size: 30px; }
.feature::before { font-size: 18px; color: var(--ink); }
.plan .price { font-size: 64px; }
.kpi-label, .kicker, .recent-title, .sheet th, .table th, .sheet-stats span, .label, .hero-note, .show-tab, .mode-tab, .lp-links a, .eyebrow, .tag, .badge {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; }
.kicker { font-weight: 700; }
.show-tab { font-size: 12.5px; }

/* Flat blue surfaces: no tints, no hover lifts, rules instead of boxes. */
.hero, .final, .section, .section.alt, .showcase, .strip, .lp { background: #fff !important; }
.hero::before { display: none; }
.final { background: var(--ink) !important; color: #fff; }
.final h2, .final p { color: #fff; }
.strip, .strip .stat { border-color: var(--ink) !important; border-width: 1.5px; }
.section.alt { border-color: var(--ink); }
.features { border-top: 1.5px solid var(--ink); }
.feature { border-bottom: 1.5px solid var(--ink); }
.sidebar { background: #fff; border-right: 1.5px solid var(--ink); }
.nav-link { color: var(--ink); }
.nav-link.active, .nav-link:hover { background: var(--ink); color: #fff; }
.sidebar-cta { background: var(--ink); color: #fff; }
.logo { background: var(--ink); color: #fff; }
.avatar { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.kpis .kpi { border-right: 1.5px solid var(--ink); }
.table th, .sheet th { background: #fff; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.sheet td, .table td { border-color: var(--border); }
.msg-user { background: var(--ink); color: #fff; border: 0; }
.agent-ic .logo { background: var(--ink); }
.mode-tab.active { background: var(--ink); color: #fff; }
.chip { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.chip:hover { background: var(--ink); color: #fff; }
.tag { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.eyebrow { border: 1.5px solid var(--ink); color: var(--ink); }
.eyebrow b { background: var(--ink); color: #fff; }
.progress { background: var(--brand-soft); border-radius: 0; } .progress span { background: var(--ink); border-radius: 0; }
.mark { background: var(--ink); color: #fff; border-radius: 0; }
.lp-nav { background: #fff; border-bottom: 1.5px solid var(--ink); }
.app { background: #fff; }
.kpi-sub, .muted, .faint, .hint, .cell-sub { color: var(--text-2); }
.fit i { border-radius: 0; }
.fit-A i { background: var(--ink); } .fit-B i { background: #6b6bff; } .fit-C i { background: #b5b5ff; } .fit-D i { background: #fff; border: 1.5px solid var(--ink); }
.fit-new i { border-color: var(--ink); }
.am-rail b { background: var(--ink); color: #fff; border-radius: 0; }
.hero h1 em, .final h2 em, .find-hero h1 em { -webkit-background-clip: border-box; background-clip: border-box; display: inline-block; line-height: .95; }
.sidebar .nav-link .lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .02em; }

/* ===== QUIET PASS: black on white, blue only as the accent ===== */
:root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
  --text: #0b0b0f; --text-2: #55565e; --text-3: #8c8d96;
  --border: #e6e6ea; --border-strong: #c9c9d1;
  --surface-2: #f6f6f8; --brand-soft: #eef0ff;
  --green: #0b0b0f; --amber: #0b0b0f; --violet: #0b0b0f; --blue: #1a1aff;
}
body { color: var(--text); }
.card, .kpis, .prompt-card, .ws-follow, .hero-box, .app-mock, .plan, .faq details, .step, .mock, .recent-item, .auth .card { border: 1px solid var(--border) !important; }
.prompt-card:focus-within, .ws-follow:focus-within, .hero-box:focus-within { border-color: var(--ink) !important; }
.kpis .kpi { border-right: 1px solid var(--border); }
.btn { border: 1px solid var(--border-strong); color: var(--text); }
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary, .btn-dark { color: #fff; border-color: var(--ink); }
.btn-primary:hover, .btn-dark:hover { background: var(--brand-hover); color: #fff; border-color: var(--brand-hover); }
.btn-ghost { border-color: transparent; }
.hero h1, .find-hero h1, .page-head h1, .section-head h2, .split h2, .final h2, .sheet-head h2,
.kpi-value, .strip .stat b, .feature h3, .plan .price { color: var(--text); font-weight: 700; }
.page-head h1 { font-size: 40px; }
.kpi-value { font-size: 44px; }
.hero h1 em, .find-hero h1 em, .final h2 em { background: none !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; padding: 0; }
.kpi-label, .recent-title, .sheet th, .table th, .sheet-stats span, .label, .hero-note, .show-tab, .mode-tab, .lp-links a, .tag, .badge { color: var(--text-3); }
.table th, .sheet th { color: var(--text-3); border-bottom: 1px solid var(--border); }
.kpi-sub, .muted, .faint, .hint, .cell-sub { color: var(--text-3); }
.sidebar { border-right: 1px solid var(--border); }
.nav-link { color: var(--text-2); }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--brand-soft); color: var(--ink); }
.sidebar-cta { background: var(--text); }
.avatar { border: 1px solid var(--border-strong); color: var(--text); }
.msg-user { background: var(--surface-2); color: var(--text); }
.mode-tab { color: var(--text-3); }
.mode-tab.active { background: var(--brand-soft); color: var(--ink); }
.chip { border: 1px solid var(--border); color: var(--text-2); }
.chip:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.tag { border-color: var(--border); background: var(--surface-2); }
.lp-nav { border-bottom: 1px solid var(--border); }
.features, .feature { border-color: var(--border) !important; border-width: 1px !important; }
.strip, .strip .stat { border-color: var(--border) !important; border-width: 1px !important; }
.section.alt { border-color: var(--border); }
.final { background: #fff !important; border-top: 1px solid var(--border); }
.final h2 { color: var(--text) !important; } .final p { color: var(--text-2) !important; }
.final .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
a { color: var(--ink); }
.cell-main, .co b, .sheet td, .table td { color: var(--text); }
