/* Self-hosted Inter (variable, latin) — pixel-exact match to the Deal Room, no CDN dependency. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}

:root {
  /* ── Deal Room design language: warm neutral ground + coral, Inter ──
     Ported from magnet-demo-portal so the CRM and the Deal Room read as one product. */
  --ink: #151817; --ink-2: #454b47; --ink-3: #6f7773;
  --line: #dde0dd; --line-2: #eceeec;
  --bg: #f3f4f2; --card: #ffffff;
  --rust: #ef5b4c;                                 /* primary accent = Deal Room coral */
  --coral: #ef5b4c; --coral-soft: #fff0ed;
  --teal: #168277; --teal-soft: #e7f5f1;
  --amber: #b98222; --amber-soft: #fff7e6;
  --green: #2d7d54; --green-soft: #eaf6ee;
  --blue: #168277;                                 /* remap "blue" links/focus → teal for cohesion */
  --red: #d0453a;
  --gray: #6f7773; --gray-soft: #eef0ee;
  /* previously-undefined vars that only had inline fallbacks — pin them to the system now */
  --accent: #ef5b4c; --muted: #6f7773; --wash: #f4f5f3; --chip: #eef0ee; --border: #dde0dd; --fg: #151817;
}
.route-progress { background: var(--blue, #2563eb); height: 2px; left: 0; opacity: 0; pointer-events: none; position: fixed; right: 0; top: 0; transform: scaleX(0); transform-origin: left; transition: opacity .15s ease, transform 8s cubic-bezier(.2,.7,.2,1); z-index: 200; }
.route-progress.active { opacity: 1; transform: scaleX(.88); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.mark .dot { color: var(--rust); }
.brand-name { font-size: 15px; font-weight: 600; }
.brand-sub { font-size: 12px; color: var(--ink-3); }
.nav a { font-size: 13px; font-weight: 500; color: var(--ink-3); padding: 6px 10px; border-radius: 6px; }
.nav a.active { color: var(--ink); background: var(--line-2); }

/* App shell with left sidebar (real-CRM layout) */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 216px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.sidebar .brand { margin-bottom: 22px; padding: 0 6px; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav-group { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); padding: 6px 10px 4px; }
.sidelink { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 10px; border-radius: 8px; }
.sidelink:hover { background: var(--line-2); color: var(--ink); }
.sidelink.active { background: var(--ink); color: #fff; }
.sidelink-ico { font-size: 15px; width: 18px; text-align: center; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.side-foot-lbl { font-size: 12px; color: var(--ink-3); }
.main-col { flex: 1; min-width: 0; }
.side-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--line-2); border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.sidelink.active .side-count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.sidelink .side-dot { display: inline-block; width: 9px; height: 9px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; }
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: sticky; top: 0; z-index: 10; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; }
  .sidebar .brand { margin-bottom: 0; flex-shrink: 0; }
  .sidenav { flex-direction: row; margin-left: 6px; overflow-x: auto; flex-wrap: nowrap; gap: 2px; -webkit-overflow-scrolling: touch; }
  .sidelink { padding: 7px 10px; white-space: nowrap; }
  .sidenav-group, .side-count { display: none; }
  .side-foot { margin-top: 0; margin-left: auto; border-top: none; padding: 0; flex-shrink: 0; }
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 24px 80px; }
.pagehead h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; }
.pagehead p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* Funnel */
.funnel {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin: 22px 0 8px;
}
.fstep { display: block; background: var(--card); padding: 14px 12px; position: relative; text-align: center; transition: background .12s; cursor: pointer; }
.fstep:hover { background: var(--line-2); }
.fstep:hover .fcount { color: var(--rust); }
/* Exit KPIs (Dropped / Do Not Contact) — a small muted 2-tile row under the funnel */
.funnel.exits { grid-template-columns: 1fr 1fr; max-width: 360px; margin: 1px 0 8px; }
.fstep.exit .fcount { color: var(--muted, #8a8a8a); }
.fstep.exit:hover .fcount { color: var(--rust); }

/* ── Sankey pipeline flow ────────────────────────────────────────── */
.sankeywrap { margin: 20px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 12px 14px 14px; }
.sankey-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sankey-title { flex: 1 1 auto; }
.sankey-months { display: flex; gap: 5px; }
.skm { font-size: 11px; font-weight: 600; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.skm:hover { background: var(--line-2); }
.skm.active { background: var(--green, #4c9f6f); color: #fff; border-color: var(--green, #4c9f6f); }
.sankey-legend { font-size: 11px; font-weight: 500; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.sankey-legend .lg { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin: 0 2px 0 9px; vertical-align: middle; }
.lg.go { background: #4c9f6f; } .lg.wait { background: #c99a3a; } .lg.lost { background: #c2453a; }
.sankey { display: block; width: 100%; height: auto; overflow: visible; }
.sk-lbl { fill: var(--ink-2); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round; }
.sk-pct { fill: var(--ink-3); font-weight: 500; }
.sk-mrr { fill: #4c9f6f; font-weight: 700; }
.sankey rect { transition: opacity .12s; }
@media (max-width: 560px) { .sk-lbl { font-size: 12px; } }

/* ── Financial cockpit ──────────────────────────────────────────── */
.fin { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.fin > summary.fin-summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.fin > summary::-webkit-details-marker { display: none; }
.fin > summary::before { content: "▸"; color: var(--green, #4c9f6f); font-size: 12px; margin-right: 4px; transition: transform .15s; display: inline-block; align-self: center; }
.fin[open] > summary::before { transform: rotate(90deg); }
.fin-title { font-weight: 700; font-size: 14px; flex: 1 1 auto; }
.fin-headline { font-weight: 500; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fin-body { padding: 0 16px 16px; }
.fin-months { display: flex; gap: 6px; margin: 2px 0 14px; flex-wrap: wrap; }
.fin-mtab { font-size: 12px; font-weight: 600; padding: 4px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.fin-mtab:hover { background: var(--line-2); }
.fin-mtab.active { background: var(--green, #4c9f6f); color: #fff; border-color: var(--green, #4c9f6f); }
.fin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.finm { border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: var(--bg); }
.finm-v { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; }
.finm-l { font-size: 11px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.finm-n { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.finm-t { font-size: 10px; font-weight: 700; color: var(--green, #4c9f6f); margin-top: 3px; }
.finm-good .finm-v { color: #2f9e5f; }
.finm-bad .finm-v { color: #c2453a; }
.finm-warn .finm-v { color: #b5802a; }
.fin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fin-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; background: var(--bg); }
.fin-card h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; }
.fin-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fin-tbl td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fin-tbl td span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.fin-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 10px; }
.fin-total td { font-weight: 800; border-bottom: none; border-top: 2px solid var(--line-2); }
.fin-foot { font-size: 11px; color: var(--ink-3); margin: 9px 0 0; line-height: 1.45; }
.fin-tbl thead th { text-align: left; font-size: 10.5px; color: var(--ink-3); font-weight: 600; padding: 0 0 5px; border-bottom: 1px solid var(--line-2); }
.fin-tbl thead th.num { text-align: right; padding-left: 10px; }
.fin-eff-det { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.fin-eff-det > summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.fin-eff-det > summary::-webkit-details-marker { display: none; }
.fin-eff-det > summary::before { content: "▸"; color: var(--green, #4c9f6f); font-size: 12px; transition: transform .15s; }
.fin-eff-det[open] > summary::before { transform: rotate(90deg); }
.fin-eff-hint { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.fin-eff-det[open] .fin-eff-hint { display: none; }
.fin-eff { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.eff { border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: var(--bg); text-align: center; }
.eff-v { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.5px; color: var(--green, #4c9f6f); }
.eff-l { display: block; font-size: 10.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.25; }
.eff-b { display: block; font-size: 9.5px; color: var(--ink-3); opacity: .75; margin-top: 3px; }
@media (max-width: 560px) { .fin-eff { grid-template-columns: repeat(2, 1fr); } }
.fin-rec { margin-top: 14px; padding: 12px 14px; border-radius: 9px; background: rgba(76,159,111,0.10); border: 1px solid rgba(76,159,111,0.30); font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) { .fin-metrics { grid-template-columns: repeat(3, 1fr); } .fin-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fin-metrics { grid-template-columns: repeat(2, 1fr); } }

.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fef3c7; border: 1px solid #f2d98a; color: #7a5a12; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-size: 13px; }
.filterbar .clearf { font-weight: 700; color: #7a5a12; }
.filterbar .clearf:hover { text-decoration: underline; }

/* Needs Action / To-Dos */
.todos { border: 1px solid #f2d98a; background: #fffdf5; border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }
.todos-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #7a5a12; margin-bottom: 8px; }
.todos-count { background: var(--rust); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.todo-list { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; }
.todo:hover { background: #fff7e6; }
.todo.pri { border-left: 3px solid var(--rust); background: #fdf3ee; }
.todo-check button { width: 18px; height: 18px; padding: 0; border-radius: 5px; border: 1.5px solid var(--ink-3); background: var(--card); color: transparent; cursor: pointer; font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.todo-check button:hover { border-color: var(--green); color: var(--green); background: #f0fdf4; }
/* ✓ clicked: check it green + fade the row out in place (no navigation). */
.todo.todo-done { opacity: 0; transform: translateX(6px); transition: opacity 0.2s ease, transform 0.2s ease; }
.todo.todo-done .todo-check button { border-color: var(--green); background: var(--green); color: #fff; }
.todo-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-summary { font-size: 13px; color: var(--ink); line-height: 1.4; }
.todo.pri .todo-summary { font-weight: 600; }
.todo-meta { display: flex; gap: 10px; font-size: 11px; color: var(--ink-3); }
.todo-meta a { color: var(--blue); border-bottom: 1px dotted var(--line); }

/* Pipeline-wide AutoRAG search */
.pipesearch { margin-bottom: 20px; }
.ps-form { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; background: var(--card); }
.ps-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.ps-ico { font-size: 15px; opacity: 0.75; }
.ps-input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 13px; background: transparent; color: var(--ink); }
.ps-form button { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.ps-form button:hover { background: var(--blue); }
.ps-form button:disabled { background: var(--ink-3); cursor: default; }
.ps-out { margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash, #f7f7f5); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.ps-answer { white-space: pre-wrap; }
.ps-sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
/* Direct SQL matches — these render before (and independently of) the AI answer, so an AI failure
   can no longer blank out deals the lookup already found. */
.ps-hits { display: flex; flex-direction: column; gap: 6px; }
.ps-hit { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); text-decoration: none; color: inherit; }
.ps-hit:hover { border-color: var(--blue); }
.ps-hit-co { font-weight: 600; font-size: 13px; }
.ps-hit-st { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--wash, #f2f2ef); color: var(--ink-2, var(--ink-3)); }
.ps-hit-meta { flex: 1 1 100%; font-size: 11.5px; color: var(--ink-3); }
.ps-hits + .ps-answer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ps-err { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* Board quick showup Yes/No — right on the card */
.deal-wrap { display: flex; flex-direction: column; }
.deal-wrap:has(.deal-showup) > .deal { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.deal-showup { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; background: #fffdf5; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-top: 0; border-radius: 0 0 9px 9px; }
.ds-q { font-size: 11px; font-weight: 700; color: #7a5a12; }
.ds-f { display: flex; gap: 6px; margin-left: auto; }
.ds-f button { font: inherit; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; background: var(--card); }
.ds-yes { color: var(--green); }
.ds-yes:hover { background: var(--green); color: #fff; border-color: var(--green); }
.ds-no { color: var(--red); }
.ds-no:hover { background: var(--red); color: #fff; border-color: var(--red); }
.todo-showup { display: flex; align-items: center; gap: 6px; margin-left: auto; align-self: center; }
.todo-showup .ds-q { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.todo-showup button { font: inherit; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; background: var(--card); white-space: nowrap; }
.campbadge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; white-space: nowrap; }
.fact-camp select { font: inherit; font-size: 12px; padding: 3px 6px; margin-top: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); max-width: 100%; cursor: pointer; }
.fact-camp select:hover { border-color: var(--blue); }
.fcount { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.flabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-2); margin-top: 2px; }
.fnote { font-size: 10px; color: var(--ink-3); }
.fconv { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 800; color: var(--rust); }
.leak { font-size: 12px; color: var(--ink-3); margin-bottom: 22px; }
.leak strong { color: var(--ink); }

/* Board */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
/* Stage view: a clean responsive grid of deal tiles (no columns) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

/* Sortable pipeline stage table (clickable rows) */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* Dropped/DNC web-intel columns (Raj 2026-08-07): did they move to an incumbent + site freshness */
.pt-incumbent { font-size: 12px; }
.incumbent-gw { color: #C8411A; font-weight: 700; }
.pt-gw { text-align: center; }
.gw-yes { display: inline-block; background: #dc2626; color: #fff; font-weight: 800; font-size: 10px; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em; }
.pt-fresh { font-size: 12px; text-transform: capitalize; }
.fresh-active { color: #1a7f37; font-weight: 600; }
.fresh-recent { color: #1a7f37; }
.fresh-stale { color: #b45309; }
.fresh-abandoned { color: #C8411A; font-weight: 600; }
.fresh-unknown { color: var(--ink-3); }
.pipetable { width: 100%; border-collapse: collapse; font-size: 13px; }
.pipetable th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--line-2); position: sticky; top: 0; cursor: pointer; white-space: nowrap; user-select: none; }
.pipetable th:hover { color: var(--ink); }
.pipetable th.num { text-align: right; }
.pipetable th.sorted-asc::after { content: ' ▲'; color: var(--blue); font-size: 9px; }
.pipetable th.sorted-desc::after { content: ' ▼'; color: var(--blue); font-size: 9px; }
.pipetable td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.pipetable td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pipetable tbody tr { cursor: pointer; transition: background .1s; }
.pipetable tbody tr:hover { background: var(--line-2); }
.pipetable tbody tr:last-child td { border-bottom: none; }
.pt-co { font-weight: 600; color: var(--ink); }
.pt-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.pt-past { color: var(--rust); font-weight: 600; }
/* CSV export button (warm leads + no-shows) */
.csvbtn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #fff; background: #16a34a; border-radius: 7px; padding: 4px 11px; text-decoration: none; white-space: nowrap; }
.csvbtn:hover { background: #15803d; }
/* Contacts call-sheet column — all contacts per company stacked, email + phone tap-to-act */
.pipetable td.pt-contacts { vertical-align: top; max-width: 340px; }
.ptc { padding: 2px 0; line-height: 1.4; }
.ptc + .ptc { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 5px; }
.ptc-name { display: block; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.pt-contacts a { display: inline-block; margin-right: 12px; font-size: 12px; color: var(--blue); text-decoration: none; }
.pt-contacts a:hover { text-decoration: underline; }
.ptc-none { font-size: 11px; color: var(--ink-3); font-style: italic; margin-right: 10px; }
.tzpill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; padding: 1px 5px; margin-left: -6px; border-radius: 4px; background: var(--line); color: var(--ink-2); vertical-align: 1px; cursor: help; font-variant-numeric: tabular-nums; }
.col { background: var(--line-2); border-radius: 12px; padding: 10px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); }
.col-count { font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--card); border-radius: 999px; padding: 1px 8px; }
.col-body { display: flex; flex-direction: column; gap: 8px; }

.deal {
  display: block; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 9px; padding: 12px; transition: box-shadow .15s, transform .05s;
}
.deal:hover { box-shadow: 0 2px 10px rgba(15,23,42,.08); }
.deal:active { transform: translateY(1px); }
.deal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.deal-name { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }
.deal-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.deal-demo { font-size: 11px; font-weight: 600; color: var(--blue); margin-top: 4px; }
.deal-demo.past { color: var(--rust); }
.deal-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--ink-2); }
.deal-meta .silent.hot { color: var(--red); font-weight: 600; }
.deal-move { font-size: 11px; color: var(--ink-2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); line-height: 1.45; }
.deal-move strong { color: var(--ink); }

/* Stage chips */
.stage { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.stage.s4 { background: #fef3c7; color: #a9741b; }
.stage.s3 { background: #dbeafe; color: var(--blue); }
.stage.s2 { background: #f5e4dd; color: var(--rust); }
.stage.s5 { background: #dcfce7; color: var(--green); }

/* Deal detail */
.back { display: inline-block; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.dealhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dealhead h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.4px; }
.dealhead-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.dealhead-dom { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.contacts-top { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.ct { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 13px; }
.ct.primary .ct-name { font-weight: 700; }
.ct-name { color: var(--ink); }
.ct-star { color: var(--green); margin-right: 4px; }
.ct-title { color: var(--ink-3); font-weight: 400; }
.ct-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-variant-numeric: tabular-nums; border-bottom: 1px dotted var(--line); }
.ct-link:hover { border-bottom-style: solid; }
.ct-none { font-size: 12px; color: var(--ink-3); }

/* Pipeline stage bar (one-tap move) */
.stagebar { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 4px; align-items: center; }
.stage-step, .stage-drop { font: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-3); cursor: pointer; position: relative; }
.stage-step { border-radius: 0; }
.stage-step:first-of-type { border-radius: 7px 0 0 7px; }
.stage-step:last-of-type { border-radius: 0 7px 7px 0; }
.stage-step:hover, .stage-drop:hover { color: var(--ink); border-color: var(--ink-3); z-index: 1; }
.stage-step.done { background: #eafaf0; color: var(--green); border-color: #bfe8cd; }
.stage-step.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.stage-step[value="5"].current { background: var(--green); border-color: var(--green); }
.stage-drop { border-radius: 7px; margin-left: 10px; color: var(--gray); }
.stage-drop:hover { color: var(--red); border-color: var(--red); }
.stage-drop.current { background: var(--gray-soft); color: var(--gray); border-color: var(--gray); }

/* Phase 7 — single deal status pill + status bar */
.statuspill { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.statuspill.st-demo_booked { background: #dbeafe; color: var(--blue); }
.statuspill.st-no_show { background: #fee2e2; color: var(--red); }
.statuspill.st-demoed { background: #fef3c7; color: #a9741b; }
.statuspill.st-proposal { background: #f5e4dd; color: var(--rust); }
.statuspill.st-negotiating { background: #ede9fe; color: #6d28d9; }
.statuspill.st-won { background: #dcfce7; color: var(--green); }
.statuspill.st-dropped { background: var(--gray-soft); color: var(--gray); }
.statuspill.st-dnc { background: #1f2937; color: #f3f4f6; }
.prop-dnc { font-size: 12px; color: var(--red); font-weight: 600; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px; }
.statusbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; align-items: center; }
.statusbar-label { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.4px; }
.statusbar select { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; }
.statusbar select:hover { border-color: var(--ink-3); }
.statusbar-hint { font-size: 11px; color: var(--ink-3); }
.statusbar-hint b { color: var(--ink-2); font-weight: 600; }
.edit-hint { font-size: 11px; color: var(--ink-3); margin: 0 0 8px; }

/* Active-meeting showup strip (top cockpit) */
.showup-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; background: #fffdf5; border: 1px solid #f2d98a; border-radius: 10px; padding: 10px 14px; margin: 6px 0 4px; }
.ss-label { font-size: 12px; color: #7a5a12; }
.ss-label b { color: var(--ink); }
.showup-strip .sw { justify-content: flex-end; }

/* Account chat agent (Cloudflare Workers AI) — conversational window */
.accountchat { margin: 12px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.chat-badge { font-size: 10px; font-weight: 500; color: var(--ink-3); background: var(--wash, #f6f6f4); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.chat-log { min-height: 140px; max-height: 320px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 13px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--wash, #f2f2f0); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; max-width: 100%; background: transparent; color: var(--ink-3); font-size: 11px; text-align: center; padding: 2px 4px; }
/* Quick-action command chips above the account-chat input (Raj 2026-08-06 — discoverable tools) */
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.chat-chip { font: inherit; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; white-space: nowrap; line-height: 1.4; }
.chat-chip:hover { border-color: var(--blue); color: var(--ink); background: rgba(124,92,246,.06); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 13px; outline: 0; background: var(--card); color: var(--ink); }
.chat-input:focus { border-color: var(--blue); }
.chat-form button { font: inherit; font-size: 13px; font-weight: 600; padding: 0 18px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.chat-form button:hover { background: var(--blue); }
.chat-form button:disabled { background: var(--ink-3); cursor: default; }
.memory { margin: 0; padding: 4px 14px 12px; }
.memory > summary { font-size: 12px; color: var(--ink-2); cursor: pointer; list-style: none; }
.memory > summary::-webkit-details-marker { display: none; }
.memory > summary::before { content: '▸ '; color: var(--ink-3); }
.memory[open] > summary::before { content: '▾ '; }
.dossier { margin-top: 8px; padding: 12px 14px; background: var(--wash, #f7f7f5); border: 1px solid var(--line); border-radius: 10px; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ink); max-height: 420px; overflow-y: auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 18px 0; }
.fact { background: var(--card); padding: 12px 14px; }
.fact span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); font-weight: 600; }
.fact b { display: block; font-size: 14px; margin-top: 3px; text-transform: capitalize; }
.contactbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.contactbar a { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.contactbar a:hover { border-color: var(--ink-3); }
.read { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.read h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); margin-bottom: 6px; }
.read p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.read-why { border-left-color: var(--rust); }
.read-move { border-left-color: var(--green); }
.workspace { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.workspace h3 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ws-empty { font-size: 13px; color: var(--ink-3); line-height: 1.6; max-width: 640px; }

@media (max-width: 960px) {
  .board, .funnel, .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .board, .funnel, .facts, .two-col { grid-template-columns: 1fr; }
}

/* Saved views */
.views { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.viewtab {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.viewtab:hover { border-color: var(--ink-3); }
.viewtab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewcount { font-size: 11px; opacity: .6; }
.viewtab.active .viewcount { opacity: .8; }

.taskbadge { color: var(--blue); background: #dbeafe; border-radius: 999px; padding: 0 7px; font-weight: 600; }
.col-empty { text-align: center; color: var(--line); font-size: 20px; padding: 8px 0; }

/* Deal detail: two-column workspace */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.panel h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.panel-hint, .empty-note { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.empty-note { padding: 8px 0; }

/* forms */
.row-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.row-form .in-summary { flex: 1 1 100%; }
input, select, textarea, .row-form button, .log-form button {
  font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; background: var(--bg); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.row-form button, .log-form button {
  background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; cursor: pointer; padding: 7px 14px;
}
.row-form button:hover, .log-form button:hover { opacity: .9; }
.log-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.log-row { display: flex; gap: 8px; }
.log-form textarea { width: 100%; resize: vertical; }
.log-form button { align-self: flex-start; }

/* tasks */
.tasklist { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; }
.task-check button {
  width: 18px; height: 18px; padding: 0; border-radius: 5px; border: 1.5px solid var(--ink-3); background: var(--card);
  color: transparent; cursor: pointer; line-height: 1; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.task-check button:hover { border-color: var(--green); color: var(--green); background: #f0fdf4; }
.task-body { display: flex; flex-direction: column; gap: 2px; }
.task-summary { font-size: 13px; color: var(--ink); }
.task-meta { display: flex; gap: 8px; font-size: 11px; color: var(--ink-3); }
.task-type { text-transform: capitalize; }
.task.done { opacity: .55; }
.task.done .task-summary { text-decoration: line-through; }
.task .check { color: var(--green); font-weight: 700; }
.done-details { margin-top: 10px; }
.done-details summary { font-size: 12px; color: var(--ink-3); cursor: pointer; }

/* timeline */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--line); padding-left: 14px; margin-left: 2px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-3); }
.tl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--ink-3); }
.tl-kind { font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-size: 9px; padding: 2px 6px; border-radius: 4px; background: var(--line-2); color: var(--ink-2); }
.tl-kind.k-call { background: #f5e4dd; color: var(--rust); }
.tl-kind.k-email { background: #dbeafe; color: var(--blue); }
.tl-kind.k-meeting { background: #fef3c7; color: var(--amber); }
.tl-when { margin-left: auto; }
.tl-summary { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.tl-actor { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* Edit deal */
.edit { margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.edit > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 12px 16px; list-style: none; }
.edit > summary::before { content: "✎ "; }
.edit[open] > summary { border-bottom: 1px solid var(--line-2); }
.edit-form { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); font-weight: 600; }
.edit-form input, .edit-form select, .edit-form textarea { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--ink); }
.edit-wide { width: 100%; }
.edit-form textarea { resize: vertical; }
.edit-form > button { align-self: flex-start; background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; cursor: pointer; padding: 8px 16px; }
.edit-form > button:hover { opacity: .9; }
@media (max-width: 620px) { .edit-grid { grid-template-columns: 1fr; } }

/* Chase pool banner + leads table */
.chase { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 13px; }
.chase strong { font-size: 15px; }
.chase-go { color: var(--rust); font-weight: 600; white-space: nowrap; }
.chase:hover .chase-go { text-decoration: underline; }

/* Stat strip (Warm Leads) */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-n { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.stat-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3); margin-top: 2px; }
.stat-note { font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.stat-hi { border-color: #bfe8cd; background: #f6fdf9; }
.stat-hi .stat-n { color: var(--green); }
@media (max-width: 640px) { .statrow { grid-template-columns: 1fr 1fr; } }

.leadwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.leads { width: 100%; border-collapse: collapse; font-size: 13px; }
table.leads th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--line-2); position: sticky; top: 0; }
table.leads td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.leads tr:last-child td { border-bottom: none; }
.lead-name { font-weight: 600; color: var(--ink); }
.lead-co { font-size: 11px; color: var(--ink-3); }
.lead-contact { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.lead-contact a { color: var(--ink-2); border-bottom: 1px dotted var(--line); }
.lead-contact a:hover { color: var(--ink); }
.disp { font-size: 11px; color: var(--ink-2); background: var(--line-2); border-radius: 4px; padding: 2px 7px; display: inline-block; }
.disp.q { background: #dcfce7; color: var(--green); font-weight: 600; }
.disp.claim { background: #fef3c7; color: #a9741b; font-weight: 600; margin-left: 4px; }
.lead-notes { color: var(--ink-3); font-size: 12px; line-height: 1.5; max-width: 480px; }
.icp-verdict { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.icp-verdict::first-letter { text-transform: uppercase; }
.icp-note { font-size: 11px; color: var(--ink-3); line-height: 1.45; margin-top: 3px; }
/* No-show ICP triage: verdict shown under the company, left-accent by tier. */
.pt-co + .pt-sub + .icp-verdict, td > .icp-verdict { margin-top: 4px; max-width: 520px; padding: 3px 0 3px 8px; border-left: 3px solid var(--ink-3); }
.icp-verdict.icp-strong { border-left-color: #16a34a; }
.icp-verdict.icp-qualified { border-left-color: #d97706; }
.icp-verdict.icp-nofit { border-left-color: #9ca3af; color: var(--ink-3); font-weight: 500; }

/* Meetings & showups */
.meetings { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.mtg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--ink-3); border-radius: 8px; }
.mtg.s-showed { border-left-color: var(--green); }
.mtg.s-no_show { border-left-color: var(--red); }
.mtg.s-booked { border-left-color: var(--amber); }
.mtg-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mtg-date { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.mtg-title { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.mtg-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mtg-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-2); }
.mtg.s-showed .mtg-status { color: var(--green); }
.mtg.s-no_show .mtg-status { color: var(--red); }
.mtg.s-booked .mtg-status { color: var(--amber); }
.mtg-set { display: flex; gap: 4px; }
.mtg-set button { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--card); cursor: pointer; font-size: 11px; line-height: 1; }
.mtg-set button[value="showed"]:hover { border-color: var(--green); color: var(--green); }
.mtg-set button[value="no_show"]:hover { border-color: var(--red); color: var(--red); }

/* showup disposition flow */
.mtg .sw { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sw-step { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sw-step[hidden] { display: none; }            /* must beat .sw-step's display */
.sw.saving { opacity: 0.55; pointer-events: none; }
.sw-q { font-size: 11px; color: var(--ink-3); }
.sw-btn { font: inherit; font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .1s, border-color .1s, color .1s; }
.sw-btn:hover { border-color: var(--ink-3); background: var(--wash, #f6f6f4); }
.sw-btn:active { transform: translateY(0.5px); }
.sw-btn.ok:hover { border-color: var(--green); color: var(--green); background: #f0fdf4; }
.sw-btn.no:hover, .sw-btn.drop:hover { border-color: var(--red); color: var(--red); background: #fef2f2; }
.sw-btn.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.sw-btn.ok.sel { background: var(--green); border-color: var(--green); }
.sw-btn.no.sel, .sw-btn.drop.sel { background: var(--red); border-color: var(--red); }
.sw-notes { font-size: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; width: 200px; max-width: 100%; }

.dash-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-3); margin: 6px 0 8px; }

/* AEO Audit panel (deal page) */
.audit { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 14px 0; overflow: hidden; }
.audit-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--line-2); }
.audit-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.audit-pdf { font-size: 12px; font-weight: 600; color: var(--blue); }
.audit-pdf:hover { text-decoration: underline; }
.audit-body { display: flex; gap: 18px; padding: 16px; align-items: flex-start; }
.audit-score { flex-shrink: 0; width: 100px; text-align: center; padding: 14px 8px; border-radius: 12px; }
.audit-score.v-lo { background: #fef2f2; } .audit-score.v-mid { background: #fffbeb; } .audit-score.v-hi { background: #f0fdf4; }
.audit-num { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.audit-score.v-lo .audit-num { color: var(--red); } .audit-score.v-mid .audit-num { color: var(--amber); } .audit-score.v-hi .audit-num { color: var(--green); }
.audit-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); margin-top: 2px; }
.audit-detail { flex: 1; min-width: 0; }
.audit-invis { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; } .audit-invis b { color: var(--ink); }
.audit-q { font-size: 12.5px; color: var(--ink-2); padding: 4px 0; border-top: 1px dashed var(--line); line-height: 1.4; }
.audit-persona { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--rust); background: #f5e4dd; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.audit-comp { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); } .audit-comp b { color: var(--rust); }
@media (max-width: 600px) { .audit-body { flex-direction: column; } .audit-score { width: 100%; } }

/* ══ Deal record: AI-native two-column layout (header · main · rail) ══ */
.drhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.drhead-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.drhead-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.drhead-sub { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.drhead-dom { color: var(--blue); border-bottom: 1px dotted var(--line); }
.drhead-dom:hover { border-bottom-style: solid; }
.drhead-primary { color: var(--ink-2); }
.drhead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qbtn { font-size: 13px; font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--ink-2); white-space: nowrap; }
.qbtn:hover { border-color: var(--ink-3); color: var(--ink); }
.qbtn.deal-room-open,
.qbtn.deal-room-create {
  border-color: #84cc16;
  background: #84cc16;
  color: #132009;
  font-weight: 750;
}
.qbtn.deal-room-create { cursor: pointer; font-family: inherit; }
.qbtn.deal-room-create:disabled { cursor: wait; opacity: .68; }

.drecord { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 340px); gap: 18px; align-items: start; }
.drecord-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.drecord-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }

/* AI cockpit — next move + why/signal */
.cockpit { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cockpit-move { padding: 14px 16px; border-left: 3px solid var(--green); }
.cockpit-tag { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); margin-bottom: 5px; }
.cockpit-move p { font-size: 15px; color: var(--ink); line-height: 1.55; }
/* Collapsible per-deal NEPQ multi-channel next move (call / email / text / voicemail). */
.play { margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); overflow: hidden; }
.play > summary { cursor: pointer; list-style: none; padding: 9px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; user-select: none; }
.play > summary::-webkit-details-marker { display: none; }
.play > summary::before { content: "▸"; color: var(--green); font-size: 12px; transition: transform 0.15s; }
.play[open] > summary::before { transform: rotate(90deg); }
.play[open] > summary { border-bottom: 1px solid var(--line); }
.play.play-read { margin-top: 8px; border-color: var(--rust, #b5502a); }
.play.play-read > summary { color: var(--rust, #b5502a); }
.play.play-read > summary::before { color: var(--rust, #b5502a); }
/* Next-move: NEPQ close + Ajinkya deal-read shown inline, one under the other */
.nepq-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--green, #4c9f6f); background: rgba(76,159,111,.13); padding: 1px 6px; border-radius: 4px; margin-right: 7px; vertical-align: middle; }
.dealread { margin: 9px 0 2px; padding: 9px 12px; border-left: 3px solid var(--rust, #b5502a); background: rgba(181,80,42,.06); border-radius: 0 7px 7px 0; }
.dealread-tag { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rust, #b5502a); margin-bottom: 3px; }
.dealread p { margin: 0; font-size: 13px; line-height: 1.5; }
.play-hint { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 11px; }
/* Tier heat icons — won 🏆 / dropped 💤 (special, single icon) */
.tier-heat { font-size: 12px; margin-right: 4px; letter-spacing: -2px; vertical-align: 1px; cursor: help; }
.tier-heat-lg { font-size: 16px; margin-right: 6px; letter-spacing: -3px; }
/* 5-chili heat RATING (Raj 2026-08-06): always 5 — lit ones hot-red, unlit greyed out. hot=5 warm=3 cold=1 */
.chili-rate { display: inline-flex; gap: 1px; margin-right: 5px; vertical-align: 1px; cursor: help; }
.chili-rate-lg { gap: 2px; margin-right: 7px; }
.chili { font-size: 11px; line-height: 1; }
.chili-rate-lg .chili { font-size: 14px; }
.chili.on { filter: none; }
.chili.off { filter: grayscale(1) opacity(0.32); }
/* Business Overseer — the command layer on the bare dashboard (Raj 2026-08-06) */
.overseer { border: 1px solid var(--line, #e5e3de); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(124,92,246,.06), transparent 60%); }
.overseer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.overseer-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7c5cf6; }
.overseer-when { font-size: 11px; color: var(--ink-3); }
.overseer-narrative { margin: 8px 0 12px; font-size: 14px; line-height: 1.5; }
.overseer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ov-stat { border: 1px solid var(--line, #e5e3de); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.ov-stat span { font-size: 11px; color: var(--ink-3); }
.ov-stat strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.ov-stat small { font-size: 10.5px; color: var(--ink-3); }
.ov-stat.risk { border-color: rgba(200,65,26,.4); background: rgba(200,65,26,.05); }
.ov-stat.risk strong { color: #C8411A; }
.overseer-priorities { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.overseer-priorities li { font-size: 13px; line-height: 1.45; }
.ov-why { color: var(--ink-3); font-style: italic; }
/* Sales Genie expert-comparison table */
.genie-headline { margin: 0 0 10px; font-size: 14px; }
.genie-wrap { margin: 4px 0 6px; }
.genie-caption { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.genie-rec { color: #7c5cf6; font-weight: 600; }
.genie-ghost { margin: 0 0 10px; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #b45309; }
.genie-ghost b { color: #92400e; }
.genie-ghost-note { color: var(--ink-3); font-style: italic; }
.brain-stamp { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.brain-stamp b { color: var(--ink-2); font-weight: 600; }
.genie-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.genie-tbl td { border-top: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; }
.genie-tbl tr:first-child td { border-top: none; }
.genie-who { width: 148px; padding-right: 14px !important; }
.genie-emoji { font-size: 15px; margin-right: 5px; }
.genie-name { font-weight: 700; color: var(--ink); }
.genie-lens { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.genie-move { color: var(--ink); line-height: 1.5; }
.genie-pick { background: linear-gradient(90deg, rgba(124,92,246,.09), transparent); }
.genie-pick .genie-name::after { content: ' ★'; color: #7c5cf6; }
@media (max-width: 560px){ .genie-who { width: auto; } .genie-tbl, .genie-tbl tbody, .genie-tbl tr, .genie-tbl td { display: block; } .genie-tbl td { border-top: none; padding: 2px 0; } .genie-tbl tr { border-top: 1px solid var(--line); padding: 8px 0; } }
.play[open] .play-hint { display: none; }
.play-body { display: flex; flex-direction: column; }
.play-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 12px; }
.play-row + .play-row { border-top: 1px dashed var(--line); }
.play-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3); padding-top: 2px; white-space: nowrap; }
.play-v { font-size: 13.5px; color: var(--ink); line-height: 1.5; white-space: pre-wrap; margin: 0; }
@media (max-width: 560px) { .play-row { grid-template-columns: 1fr; gap: 3px; } }
.cockpit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.cockpit-read { background: var(--card); padding: 12px 16px; }
.cockpit-read h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); margin-bottom: 4px; font-weight: 700; }
.cockpit-read p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 520px) { .cockpit-grid { grid-template-columns: 1fr; } }

.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.panel-count { font-size: 11px; font-weight: 700; color: var(--blue); background: #dbeafe; border-radius: 999px; padding: 1px 8px; }

/* ✍️ Handwrite-ready gift letter (collapsible) */
.handwrite { border-color: #f0e4c4; }
.handwrite > summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.handwrite > summary::-webkit-details-marker { display: none; }
.handwrite > summary::before { content: '▸'; color: var(--ink-3); }
.handwrite[open] > summary::before { content: '▾'; }
.handwrite[open] > summary { margin-bottom: 8px; }
.handwrite .letter { font: 15.5px/1.75 Georgia, "Times New Roman", serif; white-space: pre-wrap; word-break: break-word; color: var(--ink); background: #fffdf7; border: 1px solid #f0e4c4; border-radius: 10px; padding: 18px 22px; margin-top: 4px; }

/* Rail cards + properties */
.rail-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rail-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink-3); margin-bottom: 10px; }
.rail-h-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rail-h-row .rail-h { margin-bottom: 0; }

/* 🔬 Web Intelligence (Parallel) rail-card + /research view */
.ri-form { margin: 0; }
.ri-btn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; }
.ri-btn:hover { border-color: rgba(132,204,22,.5); color: var(--ink); }
.ri-body { display: flex; flex-direction: column; gap: 7px; }
.ri-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 12px; line-height: 1.45; align-items: start; }
.ri-k { color: var(--ink-3); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .4px; padding-top: 2px; }
.ri-v { color: var(--ink-2); }
.ri-row.ri-bad .ri-v { color: var(--red); font-weight: 600; }
.ri-row.ri-bad .ri-v em { color: var(--ink-3); font-weight: 400; font-style: normal; }
.ri-row.ri-ok .ri-v { color: var(--green); }
.ri-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.ri-pill.ri-ok { background: #f0fdf4; color: var(--green); }
.ri-pill.ri-warn { background: #fffbeb; color: var(--amber); }
.ri-pill.ri-bad { background: #fef2f2; color: var(--red); }
.ri-pill.ri-muted { background: var(--line); color: var(--ink-3); }
.ri-summary { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line-2); }
.ri-cites { margin-top: 6px; }
.ri-cites summary { font-size: 11px; color: var(--ink-3); cursor: pointer; }
.ri-cites a { display: block; font-size: 11px; color: var(--link, #2563eb); margin-top: 4px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-ts { font-size: 10px; color: var(--ink-3); margin: 8px 0 0; }
.ri-empty { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin: 0; }

/* 🔬 Web Intelligence — full-width panel on the deal page */
.wi-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 16px 18px; margin: 0 0 14px; }
.wi-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wi-head h3 { font-size: 15px; margin: 0; }
.wi-head-right { display: flex; align-items: center; gap: 10px; }
.wi-ts { font-size: 11px; color: var(--ink-3); }
.wi-btn { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; }
.wi-btn:hover { border-color: rgba(132,204,22,.5); color: var(--ink); }
.wi-banner { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.wi-flag { flex: 1 1 180px; min-width: 170px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wi-flag-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); }
.wi-flag-val { font-size: 15px; font-weight: 700; }
.wi-flag-note { font-size: 11px; color: var(--ink-3); }
.wi-flag-bad { background: #fef2f2; border-color: rgba(220,38,38,.28); } .wi-flag-bad .wi-flag-val { color: var(--red); }
.wi-flag-good { background: #f0fdf4; border-color: rgba(22,163,74,.28); } .wi-flag-good .wi-flag-val { color: var(--green); }
.wi-flag-warn { background: #fffbeb; border-color: rgba(217,119,6,.28); } .wi-flag-warn .wi-flag-val { color: var(--amber); }
.wi-flag-ok .wi-flag-val { color: var(--green); } .wi-flag-muted .wi-flag-val { color: var(--ink-2); }
.wi-evidence { font-size: 12px; color: var(--ink-3); font-style: italic; margin: 0 0 10px; }
.wi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 10px; }
.wi-cell { display: flex; flex-direction: column; gap: 3px; }
.wi-k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); }
.wi-v { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.wi-summary { font-size: 13px; color: var(--ink); line-height: 1.55; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); }
.wi-cites { margin-top: 10px; }
.wi-cites summary { font-size: 11px; color: var(--ink-3); cursor: pointer; }
.wi-cites-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.wi-cites-list a { font-size: 11px; color: var(--link, #2563eb); text-decoration: none; }
.wi-empty { font-size: 13px; color: var(--ink-3); margin: 0; }

/* /research page */
.ri-page { padding: 20px 26px; max-width: 1180px; }
.ri-head h1 { font-size: 20px; margin: 0 0 4px; }
.ri-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ri-head p { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.ri-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ri-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 120px; }
.ri-kpi b { display: block; font-size: 22px; font-weight: 700; }
.ri-kpi span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.ri-kpi.ri-kbad b { color: var(--red); } .ri-kpi.ri-kwarn b { color: var(--amber); }
.ri-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ri-tab { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; }
.ri-tab.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.ri-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ri-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.ri-table thead th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2, transparent); }
.ri-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ri-table tr:last-child td { border-bottom: 0; }
.ri-co { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
a.ri-co:hover { color: var(--link, #2563eb); }
.ri-dom { display: block; font-size: 11px; color: var(--ink-3); }
.ri-upd { display: block; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.ri-inc { color: var(--red); font-weight: 600; font-size: 12px; }
.ri-diy { color: var(--amber); font-weight: 600; font-size: 12px; }
.ri-muted { color: var(--ink-3); }
.ri-tel { font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ri-tel:hover { color: var(--link, #2563eb); text-decoration: underline; }
.ri-sig { color: var(--ink-2); max-width: 420px; line-height: 1.45; }

/* 🎯 Go-After board (dashboard) */
.goafter { margin: 22px 0; }
.goafter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.goafter-title { font-size: 15px; font-weight: 700; }
.goafter-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; max-width: 640px; }
.goafter-more { font-size: 12px; color: var(--link, #2563eb); text-decoration: none; white-space: nowrap; }
.goafter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ga-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 7px; }
.ga-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ga-name { font-weight: 600; font-size: 13px; color: var(--ink); text-decoration: none; }
a.ga-name:hover { color: var(--link, #2563eb); }
.ga-score { font-size: 12px; font-weight: 700; color: var(--card); background: var(--ink); border-radius: 7px; padding: 1px 8px; }
.ga-dom { font-size: 11px; color: var(--ink-3); margin-top: -3px; }
.ga-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ga-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.ga-inc { color: var(--red); border-color: rgba(220,38,38,.3); }
.ga-green { color: var(--green); border-color: rgba(22,163,74,.3); }
.ga-diy { color: var(--amber); border-color: rgba(217,119,6,.3); }
.ga-why { font-size: 12px; color: var(--ink-2); line-height: 1.45; margin: 2px 0 0; }

/* 📇 Cold Leads page */
.cl-page { padding: 20px 26px; max-width: 1200px; }
.cl-head h1 { font-size: 20px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.cl-src { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--line); padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.cl-head p { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-tab { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); text-decoration: none; }
.cl-tab.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.cl-controls { display: flex; gap: 8px; }
.cl-search, .cl-catsel { font-size: 12px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.cl-search { min-width: 240px; }
.cl-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.cl-table thead th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cl-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-co { font-weight: 600; color: var(--ink); text-decoration: none; }
.cl-co:hover { color: var(--link, #2563eb); }
.cl-phone { color: var(--link, #2563eb); text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.cl-web { color: var(--link, #2563eb); text-decoration: none; font-size: 12px; }
.cl-web:hover { text-decoration: underline; }
.cl-export { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.cl-export:hover { border-color: rgba(132,204,22,.5); color: var(--ink); }
.cl-cat { font-size: 11px; color: var(--ink-3); max-width: 200px; }
.cl-loc { font-size: 12px; color: var(--ink-3); max-width: 220px; }
.cl-muted { color: var(--ink-3); }
.cl-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; }
.cl-new { background: #eff6ff; color: #2563eb; } .cl-contacted { background: #f0fdf4; color: var(--green); } .cl-dnc { background: #fef2f2; color: var(--red); } .cl-queued { background: #fffbeb; color: var(--amber); }
.cl-actions { display: flex; gap: 6px; white-space: nowrap; }
.cl-actions form { margin: 0; }
.cl-btn { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; }
.cl-btn:hover { border-color: rgba(132,204,22,.5); color: var(--ink); }
.cl-btn-x:hover { border-color: rgba(220,38,38,.5); color: var(--red); }
.cl-empty { text-align: center; color: var(--ink-3); padding: 24px; }
.deal-room-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(132, 204, 22, .35);
  background: linear-gradient(145deg, rgba(132, 204, 22, .08), var(--card) 45%);
}
.deal-room-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(132, 204, 22, .45);
}
.deal-room-card.is-live::before { background: #84cc16; }
.deal-room-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 750;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.deal-room-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}
.deal-room-status.live { color: #65a30d; }
.deal-room-status.live i { background: #84cc16; box-shadow: 0 0 0 3px rgba(132, 204, 22, .13); }
.deal-room-summary {
  margin: 2px 0 12px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.deal-room-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}
.deal-room-metrics div {
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}
.deal-room-metrics strong { display: block; font-size: 21px; line-height: 1; color: var(--ink); }
.deal-room-metrics span { display: block; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.deal-room-signal-list { display: grid; gap: 6px; margin-bottom: 9px; }
.deal-room-signal-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.deal-room-signal-list span { color: var(--ink-3); }
.deal-room-signal-list b { color: var(--ink-2); font-weight: 650; text-align: right; text-transform: capitalize; }
.deal-room-intent { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
.deal-room-intent span {
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 10px;
}
.deal-room-intent span.seen { border-color: rgba(132, 204, 22, .4); color: #65a30d; background: rgba(132, 204, 22, .08); }
.deal-room-proposal {
  background: rgba(239,91,76,.06);
  border: 1px solid rgba(239,91,76,.2);
  display: grid;
  gap: 3px;
  margin: 0 0 11px;
  padding: 10px;
}
.deal-room-proposal span { color: var(--coral); font-size: 9.5px; font-weight: 750; text-transform: uppercase; }
.deal-room-proposal strong { color: var(--ink); font-size: 12px; }
.deal-room-proposal small { color: var(--ink-3); font-size: 10px; }
.deal-room-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.deal-room-primary,
.deal-room-copy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 35px;
  padding: 8px 10px;
  border-radius: 8px;
  font: 700 11.5px/1.2 inherit;
  cursor: pointer;
}
.deal-room-primary {
  border: 1px solid #84cc16;
  background: #84cc16;
  color: #132009;
}
button.deal-room-primary { width: 100%; }
.deal-room-copy { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.deal-room-pdf {
  border-top: 1px solid var(--line-2);
  color: var(--coral);
  display: block;
  font-size: 11px;
  font-weight: 750;
  margin-top: 10px;
  padding-top: 9px;
  text-align: center;
  text-decoration: none;
}
.deal-room-note { display: block; margin-top: 8px; color: var(--ink-3); font-size: 10.5px; line-height: 1.45; }
.deal-room-message { display: none; margin: 9px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.4; }
.deal-room-message:not(:empty) { display: block; }
.deal-room-message.error { color: #dc2626; }
.prop-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.prop-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3); }
.prop-field select { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); cursor: pointer; width: 100%; }
.prop-field select:hover { border-color: var(--blue); }
.proplist { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); margin-top: 2px; }
.prop { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.prop:last-child { border-bottom: 0; }
.prop span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.prop b { font-size: 13px; color: var(--ink); font-weight: 600; text-align: right; text-transform: capitalize; }
.rail-contacts { display: flex; flex-direction: column; gap: 12px; }
.rail-ship { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.rail-ship-lbl { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3); margin-bottom: 3px; }
.rail-contacts .ct { flex-direction: column; align-items: flex-start; gap: 3px; }
.rail-card .edit { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; margin: 12px 0 0; background: transparent; }
.rail-card .edit > summary { padding: 10px 0 0; }
.rail-card .edit[open] > summary { border-bottom: 0; }
.rail-card .edit-form { padding: 10px 0 0; }
.rail-card .edit-grid { grid-template-columns: 1fr; }

/* Audit inside the rail */
.audit-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.audit-score-row .audit-score { width: auto; min-width: 76px; padding: 10px 8px; }
.audit-score-row .audit-num { font-size: 24px; }
.audit-score-row .audit-invis { margin: 0; }

/* Ask-this-account panel (chat lives in the main column now) */
.accountchat-panel .chat-log { border: 1px solid var(--line); border-radius: 10px; background: var(--wash, #f7f7f5); }
.accountchat-panel .chat-form { padding: 10px 0 0; border-top: 0; }
.accountchat-panel .memory { padding: 10px 0 0; }

@media (max-width: 960px) {
  .drecord { grid-template-columns: 1fr; }
  .drecord-rail { position: static; }
}

/* Collapsible chat on the deal page */
.chatbox { border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; background: var(--card); }
.chatbox > summary { list-style: none; cursor: pointer; padding: 11px 16px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.chatbox > summary::-webkit-details-marker { display: none; }
.chatbox > summary::before { content: '▸  '; color: var(--ink-3); }
.chatbox[open] > summary::before { content: '▾  '; }
.chatbox[open] > summary { border-bottom: 1px solid var(--line); }
.chatbox .accountchat { border: 0; margin: 0; border-radius: 0; }

/* Sales Genie — Maya (AI strategist) block */
.maya{background:linear-gradient(180deg,rgba(124,92,246,.10),rgba(124,92,246,.03));border:1px solid rgba(124,92,246,.30);border-radius:12px;padding:12px 14px;margin:6px 0 10px}
.maya-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.maya-tag{font-weight:700;font-size:12px;letter-spacing:.02em;color:#7c5cf6}
.maya-vs{font-size:11px;font-weight:600;color:#c2453a;background:rgba(194,69,58,.10);border:1px solid rgba(194,69,58,.25);border-radius:999px;padding:1px 8px}
.maya-strategy{margin:0 0 6px;line-height:1.5}
.maya-dm{margin:6px 0;font-size:13px;background:rgba(124,92,246,.06);border-left:3px solid #7c5cf6;padding:6px 10px;border-radius:6px}
.maya-block{margin:6px 0 0;font-size:13px}
.maya-block b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:2px}
.maya-block ul{margin:0;padding-left:18px}
.maya-block li{margin:2px 0;line-height:1.45}

/* SMS Drip panel (Phase 9c) */
.sms-drip>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}
.sms-drip>summary::-webkit-details-marker{display:none}
.sms-drip>summary::before{content:'▸';color:var(--muted);font-size:11px}
.sms-drip[open]>summary::before{content:'▾'}
.sms-pill{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:1px 7px;border-radius:999px;background:var(--chip,#eee);color:var(--muted)}
.sms-pill.sms-active{background:rgba(76,159,111,.15);color:#4c9f6f}
.sms-pill.sms-paused,.sms-pill.sms-draft{background:rgba(201,154,58,.15);color:#c99a3a}
.sms-pill.sms-stopped,.sms-pill.sms-done{background:rgba(120,120,120,.15);color:var(--muted)}
.sms-note{font-size:12px;color:var(--muted);line-height:1.45;margin:8px 0 0}
.sms-panel{margin-top:8px}
.sms-meta{font-size:12px;color:var(--muted);margin-bottom:8px}
.sms-step{border:1px solid var(--border,#e5e5e5);border-radius:8px;padding:7px 9px;margin-bottom:7px;background:var(--card,#fff)}
.sms-step-h{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-bottom:5px}
.sms-step-n{width:17px;height:17px;border-radius:50%;background:#7c5cf6;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.sms-day{width:44px;padding:1px 4px;font-size:12px;border:1px solid var(--border,#ddd);border-radius:5px;font:inherit}
.sms-txt{width:100%;box-sizing:border-box;font:inherit;font-size:13px;line-height:1.4;border:1px solid var(--border,#ddd);border-radius:6px;padding:5px 7px;resize:vertical}
.sms-txt-ro{font-size:13px;line-height:1.4;color:var(--fg)}
.sms-b{margin-left:auto;font-size:10px;font-weight:600;padding:1px 6px;border-radius:999px}
.sms-b.sent{background:rgba(76,159,111,.14);color:#4c9f6f}
.sms-b.sched{background:rgba(95,127,179,.14);color:#5f7fb3}
.sms-b.canc{background:rgba(120,120,120,.14);color:var(--muted)}
.sms-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.sms-btn{font:inherit;font-size:12px;font-weight:600;padding:5px 11px;border-radius:7px;border:1px solid var(--border,#ddd);background:var(--card,#fff);color:var(--fg);cursor:pointer}
.sms-btn:hover{border-color:#7c5cf6}
.sms-btn.sms-start{background:#4c9f6f;color:#fff;border-color:#4c9f6f}
.sms-btn.sms-stop{background:#c2453a;color:#fff;border-color:#c2453a}
.sms-msg{font-size:11px;color:var(--muted);margin-top:6px;min-height:14px}

/* ════════════════════════════════════════════════════════════════════
   DEAL ROOM THEME — ported from magnet-demo-portal so the CRM matches the
   Deal Room's UX/UI. Kept as an override block (scoped, later source order)
   so it's easy to read and revert. DOM is unchanged; this is pure restyle.
   ════════════════════════════════════════════════════════════════════ */

/* — Signature dark sidebar (Deal Room .admin-sidebar) — */
.sidebar {
  background: #171a19;
  border-right: 1px solid #232624;
}
.sidebar .brand-name { color: #f4f5f3; }
.sidebar .brand-sub { color: #79807c; }
.sidebar .mark { background: var(--coral); color: #fff; }
.sidebar .mark .dot { color: #fff; opacity: .8; }
.sidenav-group { color: #69706d; }
.sidelink { color: #a8aeab; font-weight: 620; }
.sidelink:hover { background: #202422; color: #f4f5f3; }
.sidelink.active { background: #2b2f2d; color: #fff; }
.side-count { background: #2c302e; color: #8f9692; }
.sidelink.active .side-count { background: rgba(255,255,255,.16); color: #fff; }
.side-foot { border-top: 1px solid #2a2e2c; }
.side-foot-lbl { color: #79807c; }
@media (max-width: 820px) {
  /* horizontal bar keeps the dark ground */
  .sidebar { border-right: 0; border-bottom: 1px solid #232624; }
}

/* — Status pills & stage chips on the Deal Room soft-tint system — */
.stage.s2, .statuspill.st-proposal { background: var(--coral-soft); color: var(--coral); }
.stage.s3, .statuspill.st-demo_booked { background: var(--teal-soft); color: var(--teal); }
.stage.s4, .statuspill.st-demoed { background: var(--amber-soft); color: var(--amber); }
.stage.s5, .statuspill.st-won { background: var(--green-soft); color: var(--green); }
.statuspill.st-no_show { background: #fbe9e7; color: var(--coral); }

/* — Timeline kind chips — */
.tl-kind.k-call { background: var(--coral-soft); color: var(--coral); }
.tl-kind.k-email { background: var(--teal-soft); color: var(--teal); }
.tl-kind.k-meeting { background: var(--amber-soft); color: var(--amber); }

/* — "Deal Room" CTA + card: lime → the Deal Room's own coral — */
.qbtn.deal-room-open, .qbtn.deal-room-create {
  border-color: var(--coral); background: var(--coral); color: #fff; font-weight: 700;
}
.deal-room-card { border-color: rgba(239,91,76,.32); background: linear-gradient(145deg, rgba(239,91,76,.07), var(--card) 45%); }
.deal-room-card::before { background: rgba(239,91,76,.42); }
.deal-room-card.is-live::before { background: var(--coral); }
.deal-room-status.live { color: var(--coral); }
.deal-room-status.live i { background: var(--coral); box-shadow: 0 0 0 3px rgba(239,91,76,.13); }
.deal-room-intent span.seen { border-color: rgba(239,91,76,.4); color: var(--coral); background: var(--coral-soft); }
.deal-room-primary { border-color: var(--coral); background: var(--coral); color: #fff; }

/* — Pipeline table header on warm ground — */
.pipetable th, table.leads th { background: var(--wash); }

/* — White sticky topbar + global command-search (Deal Room .admin-topbar + .command-search) — */
.crm-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 24px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.crm-topbar-title { font-size: 16px; font-weight: 720; letter-spacing: -.2px; color: var(--ink); }
.cmdk { position: relative; width: min(440px, 46vw); }
.cmdk-field {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px;
  background: var(--wash); border: 1px solid var(--line); border-radius: 8px; color: var(--ink-3);
}
.cmdk-field:focus-within { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,130,119,.08); }
.cmdk-ico { font-size: 13px; opacity: .8; }
.cmdk-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); }
.cmdk-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cmdk-field kbd { background: #fff; border: 1px solid var(--line); border-radius: 4px; color: #8c928f; font: inherit; font-size: 11px; padding: 2px 6px; }
.cmdk-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 48px rgba(21,24,23,.16); max-height: 62vh; overflow-y: auto;
}
.cmdk-results a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px;
  padding: 9px 12px; border-top: 1px solid var(--line-2);
}
.cmdk-results a:first-child { border-top: 0; }
.cmdk-results a:hover, .cmdk-results a.sel { background: var(--wash); }
.cmdk-co { font-size: 13px; font-weight: 620; color: var(--ink); }
.cmdk-results .statuspill { justify-self: end; }
.cmdk-sub { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); }
.cmdk-empty { padding: 16px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
@media (max-width: 820px) {
  .crm-topbar { position: static; height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .cmdk { width: 100%; }
}

/* — KPI metric cards with colored icon chips (Deal Room .metric-panel) — */
.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 6px; }
.metric-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; min-height: 104px;
}
.metric-panel > span { display: flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12px; font-weight: 650; }
.metric-panel > strong { font-size: 27px; font-weight: 720; letter-spacing: -.5px; color: var(--ink); }
.metric-panel > small { color: var(--ink-3); font-size: 11.5px; }
.mdot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.mdot.coral { background: var(--coral); } .mdot.teal { background: var(--teal); } .mdot.amber { background: var(--amber); } .mdot.green { background: var(--green); }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; } }

/* Deal workspace: LinkedIn-style account profile plus an independent rail. */
.wrap.deal-wrap {
  max-width: 1580px;
  padding: 24px clamp(18px, 2.2vw, 36px) 80px;
}
.deal-wrap .deal-workspace {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 390px);
}
.deal-wrap .deal-workspace-main { min-width: 0; }
.deal-wrap .drecord-main { gap: 18px; }
.deal-wrap .drecord-rail {
  gap: 12px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 0 3px 12px 0;
  position: sticky;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
  top: 72px;
}
.deal-wrap .drecord-rail > .rail-card { flex: 0 0 auto; }
.deal-wrap .drhead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
}
.deal-wrap .drhead-cover {
  background: #dfe7e3;
  border-bottom: 1px solid #d4ddd8;
  height: 82px;
  position: relative;
}
.deal-wrap .drhead-cover::after {
  color: #728079;
  content: "PROJECTA ACCOUNT PROFILE";
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  position: absolute;
  right: 22px;
  top: 18px;
}
.deal-wrap .drhead-body {
  padding: 0 22px 20px;
  position: relative;
}
.deal-wrap .drhead-avatar {
  align-items: center;
  background: #18211d;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #b7ef55;
  display: flex;
  font-size: 24px;
  font-weight: 800;
  height: 78px;
  justify-content: center;
  letter-spacing: .02em;
  margin-top: -39px;
  width: 78px;
}
.deal-wrap .drhead-id { margin-top: 11px; }
.deal-wrap .drhead-title { gap: 10px; }
.deal-wrap .drhead-title h1 {
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 750;
  letter-spacing: -.45px;
  line-height: 1.12;
}
.deal-wrap .drhead-sub {
  color: var(--ink-2);
  font-size: 13.5px;
  gap: 5px 13px;
  margin-top: 8px;
}
.deal-wrap .drhead-sub > span + span::before {
  color: var(--ink-3);
  content: "·";
  margin-right: 13px;
}
.deal-wrap .drhead-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 7px;
}
.deal-wrap .drhead-contact-line a {
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.deal-wrap .drhead-contact-line a:hover { text-decoration: underline; }
.deal-wrap .drhead-actions {
  border-top: 1px solid var(--line-2);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}
.deal-wrap .account-details-band {
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(140px, 1.15fr) repeat(5, minmax(100px, 1fr));
  margin-top: 10px;
}
.account-status-control,
.account-detail {
  border-right: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 6px 12px;
}
.account-detail:last-child { border-right: 0; }
.account-status-control label,
.account-detail span,
.account-drop-control label {
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.account-detail b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 690;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-portfolio {
  align-items: center;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 2fr);
  padding: 14px 0 4px;
}
.account-portfolio-heading {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
}
.account-portfolio-heading > svg { color: var(--teal); flex: 0 0 auto; }
.account-portfolio-heading > span,
.account-portfolio-sites a > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.account-portfolio-heading strong { font-size: 12.5px; }
.account-portfolio-heading small {
  color: var(--ink-3);
  font-size: 10.5px;
  margin-top: 2px;
}
.account-portfolio-sites {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.account-portfolio-sites a {
  align-items: center;
  background: #f7f9f7;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 9px 10px;
  text-decoration: none;
}
.account-portfolio-sites a:hover { border-color: rgba(22, 130, 119, .4); }
.account-portfolio-sites strong,
.account-portfolio-sites small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-portfolio-sites strong { font-size: 11.5px; }
.account-portfolio-sites small { color: var(--ink-3); font-size: 9.5px; }
.account-portfolio-sites em {
  background: #eaf6df;
  border-radius: 999px;
  color: #3f6d18;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 760;
  padding: 3px 6px;
  text-transform: capitalize;
}
.account-portfolio-sites svg { color: var(--ink-3); }
.account-status-control select,
.account-drop-control select {
  appearance: none;
  background: #f5f6f4;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 680;
  min-width: 0;
  padding: 6px 26px 6px 8px;
}
.account-status-control { position: relative; }
.account-status-control::after {
  bottom: 22px;
  color: var(--ink-3);
  content: "⌄";
  font-size: 12px;
  pointer-events: none;
  position: absolute;
  right: 23px;
}
.account-drop-control {
  align-items: center;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 10px;
  padding: 10px 0 0;
}
.account-drop-control select { flex: 1; max-width: 430px; }
.account-edit {
  border-top: 1px solid var(--line-2);
  margin-top: 10px;
  padding-top: 9px;
}
.account-edit > summary {
  color: var(--ink-2);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 680;
  list-style: none;
  width: max-content;
}
.account-edit > summary::before { color: var(--ink-3); content: "✎ "; }
.account-edit > summary::-webkit-details-marker { display: none; }
.account-edit .edit-form {
  border-top: 1px solid var(--line-2);
  margin-top: 10px;
  padding: 15px 0 0;
}
.account-edit .edit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-edit .edit-form > button { border-radius: 6px; }
.deal-wrap .qbtn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 650;
  min-height: 34px;
  padding: 7px 13px;
}
.deal-wrap .drecord-main > .wi-panel,
.deal-wrap .drecord-main > .cockpit,
.deal-wrap .drecord-main > .panel {
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(21, 24, 23, .02);
}
.deal-wrap .wi-panel { margin: 0; padding: 20px; }
.deal-wrap .wi-head h3,
.deal-wrap .panel-head h3 { font-size: 16px; font-weight: 720; letter-spacing: -.15px; }
.module-icon {
  align-items: center;
  background: var(--teal-soft);
  border: 1px solid rgba(22, 130, 119, .2);
  border-radius: 4px;
  color: var(--teal);
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  letter-spacing: .02em;
  margin-right: 7px;
  vertical-align: middle;
  width: 24px;
}
.deal-wrap .rail-card {
  border-radius: 6px;
  padding: 16px;
}
.deal-wrap .rail-h {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .03em;
}
.deal-wrap .deal-room-card { padding: 18px; }
.deal-wrap .deal-room-card .rail-h { font-size: 14px; text-transform: none; letter-spacing: 0; }
.deal-room-card .deal-room-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deal-room-card .deal-room-metrics div { min-width: 0; padding: 10px 8px; }
.deal-room-card .deal-room-metrics strong {
  font-size: 18px;
  letter-spacing: -.25px;
  overflow-wrap: anywhere;
}
.deal-room-card .deal-room-metrics span { font-size: 9.5px; }
.deal-room-card .intent-high-intent { color: var(--coral); font-size: 14px; }
.deal-room-card .intent-engaged { color: var(--teal); font-size: 14px; }
.deal-room-card .intent-reviewing { color: var(--amber); font-size: 14px; }
.deal-room-card .intent-not-opened { color: var(--ink-3); font-size: 13px; }
.deal-room-subhead {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
.deal-room-subhead > span,
.deal-room-journey > summary {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.deal-room-subhead small { color: var(--ink-3); font-size: 9.5px; }
.deal-room-attention {
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
  padding-top: 12px;
}
.deal-room-attention-list { display: grid; gap: 11px; }
.deal-room-attention-row {
  display: grid;
  gap: 4px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  opacity: .48;
}
.deal-room-attention-row.has-data { opacity: 1; }
.deal-room-attention-copy {
  align-items: baseline;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: space-between;
}
.deal-room-attention-copy strong { color: var(--ink-2); font-size: 11px; font-weight: 680; }
.deal-room-attention-copy span { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.deal-room-attention-track {
  align-self: center;
  background: var(--line-2);
  height: 5px;
  overflow: hidden;
}
.deal-room-attention-track i { background: var(--teal); display: block; height: 100%; min-width: 0; }
.deal-room-attention-row > small { color: var(--ink-3); font-size: 9.5px; min-width: 48px; text-align: right; }
.deal-room-attention-row > p {
  color: var(--ink-3);
  font-size: 9.5px;
  grid-column: 1 / -1;
  line-height: 1.45;
  margin: 0;
}
.deal-room-empty { color: var(--ink-3); font-size: 11px; line-height: 1.45; margin: 0; }
.deal-room-journey {
  border-top: 1px solid var(--line-2);
  margin-top: 13px;
  padding-top: 11px;
}
.deal-room-journey > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
}
.deal-room-journey > summary::-webkit-details-marker { display: none; }
.deal-room-journey > summary span {
  background: var(--gray-soft);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 9px;
  padding: 2px 7px;
}
.deal-room-journey ol { display: grid; gap: 0; list-style: none; margin: 9px 0 2px; }
.deal-room-journey li {
  display: grid;
  gap: 8px;
  grid-template-columns: 9px minmax(0, 1fr);
  padding: 5px 0;
  position: relative;
}
.deal-room-journey li::before {
  background: var(--line);
  content: '';
  left: 3px;
  position: absolute;
  top: 13px;
  bottom: -8px;
  width: 1px;
}
.deal-room-journey li:last-child::before { display: none; }
.deal-room-journey li > i {
  background: var(--coral);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(239, 91, 76, .28);
  height: 7px;
  margin-top: 4px;
  position: relative;
  width: 7px;
  z-index: 1;
}
.deal-room-journey li div { display: grid; gap: 1px; }
.deal-room-journey li b { color: var(--ink-2); font-size: 10.5px; font-weight: 650; }
.deal-room-journey li small { color: var(--ink-3); font-size: 9px; }

@media (max-width: 1120px) {
  .deal-wrap .deal-workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .deal-room-card .deal-room-metrics { grid-template-columns: repeat(2, 1fr); }
  .deal-wrap .account-details-band { grid-template-columns: repeat(3, 1fr); }
  .account-status-control,
  .account-detail { border-bottom: 1px solid var(--line-2); }
  .account-detail:nth-child(3n) { border-right: 0; }
  .account-detail:nth-last-child(-n+3) { border-bottom: 0; }
  .account-edit .edit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-portfolio { align-items: start; grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .deal-wrap .deal-workspace { grid-template-columns: 1fr; }
  .deal-wrap .drecord-rail { max-height: none; order: 2; overflow: visible; padding-right: 0; position: static; }
}
@media (max-width: 600px) {
  .deal-wrap .drhead-cover { height: 64px; }
  .deal-wrap .drhead-body { padding: 0 16px 16px; }
  .deal-wrap .drhead-avatar { height: 68px; margin-top: -34px; width: 68px; }
  .deal-wrap .drhead-cover::after { display: none; }
  .deal-wrap .drhead-title h1 { font-size: 25px; }
  .deal-wrap .drhead-sub > span + span::before { display: none; }
  .deal-wrap .account-details-band { grid-template-columns: repeat(2, 1fr); }
  .account-status-control { border-bottom: 1px solid var(--line-2); grid-column: 1 / -1; }
  .account-status-control,
  .account-detail { min-height: 60px; padding: 10px 8px; }
  .account-detail:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .account-detail:nth-child(odd) { border-right: 0; }
  .account-detail:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .account-detail:last-child { border-bottom: 0; }
  .account-drop-control { align-items: stretch; flex-direction: column; }
  .account-drop-control select { max-width: none; width: 100%; }
  .account-edit .edit-grid { grid-template-columns: 1fr; }
  .account-portfolio-sites { grid-template-columns: 1fr; }
}

/* ══ Account workspace: account intelligence → buyers → strategy → activity ══ */
.sidebar {
  padding: 22px 16px 18px;
  width: 238px;
}
.sidebar .brand { margin-bottom: 26px; padding: 0 8px; }
.sidebar .mark { border-radius: 6px; height: 38px; width: 38px; }
.sidebar .brand-name { font-size: 16px; font-weight: 750; letter-spacing: -.15px; }
.sidebar .brand-sub { font-size: 11.5px; }
.sidenav { gap: 3px; }
.sidenav-group {
  font-size: 10.5px;
  letter-spacing: .09em;
  margin-top: 13px;
  padding: 8px 11px 6px;
}
.sidelink {
  border-radius: 6px;
  font-size: 14.5px;
  gap: 11px;
  min-height: 42px;
  padding: 10px 11px;
  position: relative;
}
.sidelink-ico { align-items: center; display: inline-flex; font-size: 15px; justify-content: center; opacity: .82; width: 20px; }
.sidelink.active {
  background: #252a27;
  box-shadow: inset 3px 0 0 #b9ef51;
  color: #f8faf7;
}
.sidelink.active .sidelink-ico { color: #b9ef51; opacity: 1; }
.side-count { border-radius: 5px; font-size: 10.5px; padding: 2px 6px; }

.section-eyebrow {
  color: var(--ink-3);
  display: block;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .08em;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.section-mark {
  align-items: center;
  background: #18211d;
  border-radius: 5px;
  color: #b9ef51;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.account-intelligence,
.buyers-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.account-intelligence-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
  min-height: 78px;
  padding: 16px 20px;
}
.account-intelligence-summary::-webkit-details-marker { display: none; }
.account-intelligence-copy { display: grid; gap: 1px; margin-right: auto; min-width: 0; }
.account-intelligence-copy b { font-size: 16px; font-weight: 730; }
.account-intelligence-copy small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-intelligence-signal {
  background: var(--amber-soft);
  border-radius: 999px;
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
}
.account-intelligence-signal.ready { background: var(--green-soft); color: var(--green); }
.account-intelligence-stat { display: grid; min-width: 76px; text-align: right; }
.account-intelligence-stat b { font-size: 18px; line-height: 1.1; }
.account-intelligence-stat small { color: var(--ink-3); font-size: 9.5px; }
.account-intelligence-chevron { color: var(--ink-3); font-size: 20px; font-weight: 300; transition: transform .18s; }
.account-intelligence[open] .account-intelligence-chevron { transform: rotate(45deg); }
.deal-wrap .account-intelligence .wi-panel {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line-2);
  box-shadow: none;
}

.buyers-panel { padding: 20px; }
.buyers-head { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; margin-bottom: 14px; }
.buyers-head::-webkit-details-marker,
.strategy-heading::-webkit-details-marker { display: none; }
.buyers-panel:not([open]) .buyers-head { margin-bottom: 0; }
.buyers-head h3 { font-size: 19px; font-weight: 740; line-height: 1.1; }
.buyers-count { color: var(--ink-3); font-size: 11.5px; }
.buyers-summary-meta,
.strategy-summary-meta { align-items: center; display: flex; gap: 11px; }
.panel-disclosure {
  align-items: center;
  color: var(--ink-3);
  display: inline-flex;
  font-size: 20px;
  font-weight: 300;
  height: 24px;
  justify-content: center;
  line-height: 1;
  transition: transform .18s ease;
  width: 24px;
}
.buyers-panel[open] > .buyers-head .panel-disclosure,
.cockpit[open] > .strategy-heading .panel-disclosure { transform: rotate(45deg); }
.buyer-tabs {
  display: flex;
  gap: 9px;
  margin: 0 -20px;
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.buyer-tab {
  align-items: center;
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  flex: 0 0 230px;
  gap: 9px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 66px;
  padding: 10px 11px;
  position: relative;
}
.buyer-tab:hover { background: #fff; border-color: #bbc1bd; }
.buyer-tab.selected { background: #18211d; border-color: #18211d; color: #fff; }
.buyer-avatar {
  align-items: center;
  background: #e4e8e5;
  border-radius: 50%;
  color: #27322d;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.buyer-tab.selected .buyer-avatar { background: #b9ef51; color: #18211d; }
.buyer-tab-copy { display: grid; min-width: 0; }
.buyer-tab-copy b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-tab-copy small { color: var(--ink-3); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-tab.selected .buyer-tab-copy small { color: #9da7a1; }
.buyer-primary,
.buyer-profile-mini {
  color: #728078;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .05em;
  position: absolute;
  right: 9px;
  text-transform: uppercase;
  top: 7px;
}
.buyer-tab.selected .buyer-primary,
.buyer-tab.selected .buyer-profile-mini { color: #b9ef51; }
.buyer-workspace { border-top: 1px solid var(--line-2); padding-top: 17px; }
.buyer-identity { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; }
.buyer-identity h4 { font-size: 18px; font-weight: 740; line-height: 1.2; }
.buyer-identity p { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.buyer-contact-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.buyer-contact-actions a,
.buyer-campaign-form button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 680;
  padding: 6px 10px;
}
.buyer-contact-actions a:hover { border-color: var(--teal); color: var(--teal); }
.buyer-profile-control { margin-top: 16px; }
.buyer-control-head { align-items: baseline; display: flex; gap: 8px; margin-bottom: 8px; }
.buyer-control-head b { font-size: 12px; }
.buyer-control-head span { color: var(--ink-3); font-size: 10.5px; }
.profile-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.prof-pick,
.prof-infer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 630;
  padding: 5px 10px;
}
.prof-pick.on { background: #eaf7cf; border-color: #99c945; color: #2e4c13; font-weight: 750; }
.prof-infer { border-style: dashed; }
.prof-msg { color: var(--ink-3); font-size: 11px; padding: 5px 2px; }
.buyer-profile-control .prof-approach { color: var(--ink-2); font-size: 11.5px; line-height: 1.5; margin: 8px 0 0; }
.buyer-channel-grid { border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; }
.buyer-channel { min-width: 0; padding: 14px 0 0; }
.buyer-channel + .buyer-channel { border-left: 1px solid var(--line-2); padding-left: 16px; }
.buyer-channel:first-child { padding-right: 16px; }
.buyer-channel > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; }
.buyer-channel > summary::-webkit-details-marker { display: none; }
.buyer-channel > summary > span:first-child { display: grid; gap: 1px; }
.buyer-channel > summary b { font-size: 12px; }
.buyer-channel > summary small { color: var(--ink-3); font-size: 10.5px; }
.channel-state { color: var(--ink-3); font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.buyer-campaign-form { display: flex; gap: 6px; margin-top: 12px; }
.buyer-campaign-form select { border: 1px solid var(--line); border-radius: 6px; flex: 1; font: inherit; font-size: 11.5px; min-width: 0; padding: 6px 8px; }
.buyer-campaign-form button { background: #18211d; border-color: #18211d; color: #fff; cursor: pointer; }
.buyers-empty { color: var(--ink-3); font-size: 13px; }

.strategy-heading { align-items: center; cursor: pointer; display: flex; gap: 12px; justify-content: space-between; list-style: none; margin: 0; padding: 18px 20px; }
.cockpit[open] > .strategy-heading { border-bottom: 1px solid var(--line-2); }
.strategy-heading h3 { font-size: 19px; font-weight: 740; line-height: 1.1; }
.strategy-buyer { background: #eef1ee; border-radius: 999px; color: var(--ink-2); font-size: 10.5px; font-weight: 650; padding: 5px 9px; }
.close-tools { border-top: 1px solid var(--line-2); margin-top: 15px; padding-top: 12px; }
.close-tools > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; }
.close-tools > summary::-webkit-details-marker { display: none; }
.close-tools > summary > span:first-child { display: grid; }
.close-tools > summary b { font-size: 12px; }
.close-tools > summary small { color: var(--ink-3); font-size: 10.5px; }
.close-tools > summary > span:last-child { background: #eaf7cf; border-radius: 999px; color: #476a21; font-size: 9.5px; font-weight: 750; padding: 3px 8px; }
.close-tools .handwrite { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 10px; }
.close-tools .handwrite > summary { font-size: 12px; }
.close-tools .handwrite .letter { font-size: 14px; line-height: 1.7; }

.activity-head { align-items: center; }
.activity-filter { align-items: center; color: var(--ink-3); display: flex; font-size: 10.5px; gap: 6px; }
.activity-filter select { border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 11px; padding: 5px 8px; }

.account-chat-launcher {
  align-items: center;
  background: #18211d;
  border: 1px solid #2e3833;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 10px 30px rgba(17, 26, 22, .22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 12.5px;
  font-weight: 720;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  position: fixed;
  right: 24px;
  z-index: 70;
}
.account-chat-launcher-mark { align-items: center; background: #b9ef51; border-radius: 50%; color: #18211d; display: flex; font-size: 11px; height: 28px; justify-content: center; width: 28px; }
.account-chat-backdrop { background: rgba(10, 14, 12, .24); inset: 0; position: fixed; z-index: 78; }
.account-chat-drawer {
  background: #fff;
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: -18px 0 50px rgba(20, 28, 24, .14);
  display: flex;
  flex-direction: column;
  max-width: calc(100vw - 20px);
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform .22s ease;
  width: 430px;
  z-index: 80;
}
.account-chat-drawer.open { transform: translateX(0); }
.account-chat-drawer-head { align-items: flex-start; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; padding-bottom: 14px; }
.account-chat-drawer-head h3 { font-size: 20px; line-height: 1.2; }
.account-chat-drawer-head p { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
.account-chat-close { background: #f1f3f1; border: 0; border-radius: 50%; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 20px; height: 32px; line-height: 1; width: 32px; }
.account-chat-drawer .chat-log { background: #f6f7f5; border: 0; flex: 1; margin: 14px 0; max-height: none; min-height: 240px; overflow-y: auto; padding: 12px; }
.account-chat-drawer .chat-form { border-top: 1px solid var(--line-2); padding: 14px 0 0; }
.account-chat-drawer .memory { margin-top: 10px; max-height: 34vh; overflow: auto; padding: 0; }
body.account-chat-open { overflow: hidden; }

/* Route transitions never leave the user staring at the previous page while a Neon-backed destination loads. */
.route-skeleton { animation: route-skeleton-in .12s ease-out; padding: 18px 0; }
.route-skeleton > span { background: var(--line-2); border-radius: 7px; display: block; height: 14px; margin: 0 0 12px; max-width: 520px; overflow: hidden; position: relative; }
.route-skeleton > span:first-child { height: 34px; max-width: 280px; }
.route-skeleton > span:nth-child(2) { max-width: 720px; }
.route-skeleton > span:nth-child(3) { max-width: 460px; }
.route-skeleton-table { border: 1px solid var(--line-2); border-radius: 10px; margin-top: 28px; overflow: hidden; }
.route-skeleton-table i { background: var(--line-2); display: block; height: 42px; margin: 1px 0; opacity: .72; }
@keyframes route-skeleton-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .sidebar { padding: 10px 14px; width: auto; }
  .sidebar .brand { margin-bottom: 0; }
  .sidelink { min-height: 38px; }
}
@media (max-width: 680px) {
  .account-intelligence-signal { display: none; }
  .account-intelligence-summary { padding: 14px; }
  .buyers-panel { padding: 16px; }
  .buyer-tabs { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .buyer-channel-grid { grid-template-columns: 1fr; }
  .buyer-channel + .buyer-channel { border-left: 0; border-top: 1px solid var(--line-2); margin-top: 13px; padding-left: 0; }
  .buyer-channel:first-child { padding-right: 0; }
  .buyer-identity { flex-direction: column; }
  .buyer-contact-actions { justify-content: flex-start; }
  .strategy-heading { align-items: center; flex-direction: row; }
  .strategy-summary-meta { min-width: 0; }
  .strategy-buyer { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-chat-launcher { bottom: 14px; right: 14px; }
  .account-chat-drawer { border-left: 0; border-radius: 12px 12px 0 0; height: 88vh; max-width: none; top: auto; width: 100%; }
}
