  /* ---- RealPact console tokens: brand navy (#031d8c, sampled from the logo)
         + white, with surveyor's blaze orange as the single accent (the mark
         on the next stake = the next action). ---- */
  :root {
    --background: 0 0% 100%;
    --foreground: 229 45% 16%;
    --card: 0 0% 100%;
    --muted: 228 30% 96%;
    --muted-foreground: 229 15% 42%;
    --border: 228 25% 90%;
    --input: 228 25% 86%;
    --primary: 229 96% 28%;
    --primary-foreground: 0 0% 100%;
    --accent: 228 40% 95%;
    --ring: 18 85% 55%;
    --radius: 0.375rem;
    --blaze: 18 85% 52%;        /* blaze orange — "do this now" */
    --brand: 229 96% 28%;       /* RealPact navy #031d8c */
    --brand-deep: 230 85% 21%;
    --glass: 0 0% 100% / 0.72;
    --glass-strong: 0 0% 100% / 0.88;
    --glass-border: 228 25% 100% / 0.58;
    --shadow-soft: 0 18px 60px -32px rgba(3, 29, 140, .36);
    --shadow-tight: 0 12px 28px -22px rgba(17, 24, 39, .42);
    --vp-density: 1;
    --vp-shell-max: min(1560px, calc(100vw - 24px));
    --font-display: "Barlow Semi Condensed", ui-sans-serif, system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    /* node colors: distinct hue per degree (closer = greener, farther = redder) */
    --deg0: #09090b;   /* center (ego) — black */
    --deg1: #16a34a;   /* 1st degree — green */
    --deg2: #eab308;   /* 2nd degree — yellow */
    --deg3: #dc2626;   /* 3rd degree — red */
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; -webkit-font-smoothing: antialiased;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 14px; }
  #app { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; height: 100vh; }

  /* ---- header ---- */
  header { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px 10px;
    padding: 12px 16px; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border));
    position: relative; z-index: 70; }   /* sit above the full-screen overlays so the search dropdown is never hidden */
  .logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; flex: none; white-space: nowrap; }
  .logo .mark { width: 24px; height: 24px; object-fit: contain; display: block; }
  .logo .sub { color: hsl(var(--muted-foreground)); font-weight: 400; }
  /* compact header buttons so everything fits on one row */
  .logo .btn, .search .btn { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
  .spacer { flex: 1; min-width: 0; }

  /* control group label */
  .field { display: flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
  .field > .lbl { font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); }

  /* ---- Input ---- */
  .search { position: relative; display: flex; align-items: center; gap: 6px; flex: 2 1 300px; min-width: 240px; max-width: 600px; }
  .search .input { flex: 1; min-width: 0; }
  .menu.mention { top: calc(100% + 6px); min-width: 260px; }
  .menu .mrow.sel { background: hsl(var(--accent)); }
  .menu .mrow .mtag { margin-left: auto; font-size: 11px; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); border-radius: 9999px; padding: 1px 7px; white-space: nowrap; }
  .input { height: 36px; width: 100%; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--input));
    background: transparent; padding: 0 12px; font-size: 14px; color: hsl(var(--foreground)); }
  .input::placeholder { color: hsl(var(--muted-foreground)); }
  .input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25); }

  /* ---- Button ---- */
  .btn { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border-radius: calc(var(--radius) - 2px); padding: 0 14px; font-size: 14px; font-weight: 500; cursor: pointer;
    border: 1px solid transparent; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
  .btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
  .btn-primary:hover { background: hsl(var(--primary) / 0.9); }
  .btn-outline { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--input)); }
  .btn-outline:hover { background: hsl(var(--accent)); }
  .btn-outline.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

  /* ---- Tabs (degree) ---- */
  .tabs { display: inline-flex; align-items: center; height: 36px; padding: 3px; gap: 2px;
    background: hsl(var(--muted)); border-radius: calc(var(--radius) - 2px); }
  .tabs button { height: 30px; border: none; background: transparent; color: hsl(var(--muted-foreground));
    padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: calc(var(--radius) - 4px); cursor: pointer; }
  .tabs button.on { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px hsl(var(--foreground) / 0.08); }

  /* ---- Select (year) ---- */
  .select { height: 36px; appearance: none; -webkit-appearance: none; border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input)); background: transparent; color: hsl(var(--foreground));
    padding: 0 30px 0 10px; font-size: 13px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat; background-position: right 8px center; }
  .select:focus { outline: none; border-color: hsl(var(--ring)); }

  /* ---- Popover (county checkboxes) ---- */
  .dropdown { position: relative; display: inline-block; }
  .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 85; background: hsl(var(--card));
    border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 6px; min-width: 210px;
    box-shadow: 0 10px 30px hsl(var(--foreground) / 0.12); max-height: 64vh; overflow-y: auto; }
  .menu .mrow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: calc(var(--radius) - 4px);
    font-size: 13px; cursor: pointer; color: hsl(var(--foreground)); }
  .menu .mrow:hover { background: hsl(var(--accent)); }
  .menu .mrow input { accent-color: hsl(var(--primary)); width: 15px; height: 15px; cursor: pointer; }
  .menu .msep { height: 1px; background: hsl(var(--border)); margin: 5px 4px; }
  .menu .mrow.all { font-weight: 600; }

  /* ---- Canvas ---- */
  #canvas { position: relative; overflow: hidden; background: hsl(var(--background));
    background-image: radial-gradient(hsl(var(--foreground) / 0.05) 1px, transparent 1px); background-size: 22px 22px; }
  svg { width: 100%; height: 100%; display: block; }
  .link { stroke: hsl(var(--border)); }
  .node circle { cursor: pointer; stroke: #fff; stroke-width: 1.5px; }
  .node text { font-size: 12px; font-weight: 500; fill: hsl(var(--foreground)); pointer-events: none;
    paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }

  /* ---- Sidebar card ---- */
  aside { background: hsl(var(--card)); border-left: 1px solid hsl(var(--border)); padding: 20px; overflow-y: auto; }
  aside h2 { margin: 0 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
  aside .office { color: hsl(var(--muted-foreground)); font-size: 13px; margin-bottom: 16px; }
  .row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 13px; }
  .row .k { color: hsl(var(--muted-foreground)); }
  .row .v { text-align: right; word-break: break-word; font-weight: 500; }
  .stat { display: flex; gap: 10px; margin: 16px 0; }
  .stat .box { flex: 1; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 12px; }
  .stat .box .n { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
  .stat .box .l { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
  .badge { display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid hsl(var(--border));
    padding: 2px 9px; font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground)); }
  .hint { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.55; }
  .rel-rank { margin-top: 18px; border-top: 1px solid hsl(var(--border)); padding-top: 12px; }
  .rel-rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
  .rel-rank-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--foreground)); }
  .rel-rank-meta { font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
  .rel-rank-list { display: flex; flex-direction: column; gap: 2px; }
  .rel-rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid hsl(var(--border)); cursor: pointer; }
  .rel-rank-row:hover .rel-rank-name { text-decoration: underline; }
  .rel-rank-num { color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 700; }
  .rel-rank-name { font-size: 13px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rel-rank-sub { grid-column: 2 / 4; color: hsl(var(--muted-foreground)); font-size: 11.5px; margin-top: -3px; }
  .rel-rank-score { font-size: 12px; font-weight: 750; color: hsl(var(--foreground)); white-space: nowrap; }
  .recenter { margin-top: 16px; width: 100%; }

  /* ---- ask-a-question example chips ---- */
  .ask-examples { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
  .ask-chip { text-align: left; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) - 3px); padding: 7px 10px; font-size: 12.5px; color: hsl(var(--foreground));
    cursor: pointer; transition: background .12s, border-color .12s; }
  .ask-chip:hover { background: hsl(var(--accent)); border-color: hsl(var(--ring, var(--border))); }
  /* question rows in the typeahead menu */
  .menu .mrow.qrow { color: hsl(var(--foreground)); }
  .menu .mrow.qrow .qicon { color: hsl(var(--muted-foreground)); font-size: 12px; }

  /* ---- GTM pipeline tagging ---- */
  .badge.hb { background: #fff7ed; color: #9a3412; border-color: #fed7aa; font-weight: 600; }
  /* VP (internal) gating: hidden for clients, shown only in VP mode */
  .vp-only { display: none; }
  body.vp .vp-only { display: inline-block; }
  .vp-only-field { display: none !important; }
  body.vp .vp-only-field { display: flex !important; }
  #vpBtn.active { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }
  .gtm-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90;
    display: flex; align-items: center; gap: 14px; background: hsl(var(--foreground)); color: hsl(var(--background));
    padding: 10px 12px 10px 16px; border-radius: 9999px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); font-size: 13px; }
  .gtm-toast[hidden] { display: none; }
  .gtm-toast .gtm-undo { background: hsl(var(--background)); color: hsl(var(--foreground)); border: none; border-radius: 9999px;
    padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .office-link { color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  .office-link:hover { color: hsl(var(--deg1)); }
  .office-tcv { font-size: 12px; color: hsl(var(--muted-foreground)); margin: -2px 0 4px; }
  .gtm-tags { margin: 4px 0 14px; }
  .gtm-status { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-bottom: 7px; }
  .gtm-cur { font-weight: 700; color: hsl(var(--foreground)); }
  .gtm-cur.won { color: #b45309; } .gtm-cur.demo { color: #1d4ed8; }
  .gtm-cur.sequenced { color: #6d28d9; } .gtm-cur.pass { color: #6b7280; }
  .gtm-edit-hint { font-size: 11px; color: hsl(var(--muted-foreground)); }
  .gtm-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .gtm-btn { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 9999px; cursor: pointer;
    border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--muted-foreground)); transition: all .12s; }
  .gtm-btn:hover { background: hsl(var(--accent)); }
  .gtm-btn.on.sequenced { background: #7c3aed; border-color: #7c3aed; color: #fff; }
  .gtm-btn.on.demo { background: #2563eb; border-color: #2563eb; color: #fff; }
  .gtm-btn.on.won { background: #f59e0b; border-color: #f59e0b; color: #fff; }
  .gtm-btn.on.pass { background: #6b7280; border-color: #6b7280; color: #fff; }
  .gtm-btn.clear.on { opacity: .5; }
  .gtm-actionbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .gtm-actionbar .gtm-mini.on { background: hsl(var(--foreground)); border-color: hsl(var(--foreground)); color: hsl(var(--background)); }
  .gtm-actionbar .gtm-mini.called.on,
  .gtm-actionbar .gtm-mini.interested.on,
  .gtm-actionbar .gtm-mini.booked.on { background: #2563eb; border-color: #2563eb; color: #fff; }
  .gtm-actionbar .gtm-mini.voicemail.on { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
  .gtm-actionbar .gtm-mini.won.on { background: #f59e0b; border-color: #f59e0b; color: #fff; }
  .gtm-actionbar .gtm-mini.pass.on { background: #6b7280; border-color: #6b7280; color: #fff; }
  .gtm-note { width: 100%; font-size: 12.5px; padding: 7px 9px; }

  /* ---- GTM target-list panel ---- */
  .gtm-panel { position: absolute; top: 64px; right: 16px; z-index: 60; width: 360px; max-height: calc(100vh - 96px);
    display: flex; flex-direction: column; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
    border-radius: var(--radius); box-shadow: 0 18px 50px -12px rgba(0,0,0,.4); overflow: hidden; }
  .gtm-panel[hidden] { display: none; }   /* the display:flex above would otherwise override the hidden attribute */
  .gtm-phead { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .gtm-hactions { display: flex; align-items: center; gap: 8px; }
  .gtm-export { font-size: 12px; padding: 4px 10px; }
  .gtm-title { font-weight: 600; font-size: 15px; }
  .gtm-x { border: none; background: none; cursor: pointer; font-size: 15px; color: hsl(var(--muted-foreground)); }
  .gtm-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .gtm-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 9999px; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
  .gtm-chip.won { border-color: #f59e0b; color: #b45309; }
  .gtm-chip.demo { border-color: #2563eb; color: #1d4ed8; }
  .gtm-chip.sequenced { border-color: #7c3aed; color: #6d28d9; }
  .gtm-scroll { overflow-y: auto; padding: 8px 6px 12px; }
  .gtm-sec { margin: 6px 0; }
  .gtm-sec-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; color: hsl(var(--muted-foreground)); }
  .gtm-sec-h.won { color: #b45309; }
  .gtm-prow { padding: 7px 10px; border-radius: calc(var(--radius) - 4px); }
  .gtm-prow:hover { background: hsl(var(--accent)); }
  .gtm-pmain { display: flex; flex-direction: column; gap: 2px; }
  .gtm-pname { font-weight: 600; font-size: 13px; cursor: pointer; }
  .gtm-pname:hover { text-decoration: underline; }
  .gtm-pmeta { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
  .gtm-pcontact { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
  .gtm-pacts { display: flex; gap: 5px; margin-top: 5px; }
  .gtm-mini { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; cursor: pointer;
    border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--muted-foreground)); }
  .gtm-mini:hover { background: hsl(var(--accent)); }
  .gtm-mini.won:hover { background: #f59e0b; border-color: #f59e0b; color: #fff; }
  .gtm-mini.on.sequenced { background: #7c3aed; border-color: #7c3aed; color: #fff; }
  .gtm-mini.on.demo { background: #2563eb; border-color: #2563eb; color: #fff; }
  .gtm-mini.on.won { background: #eab308; border-color: #eab308; color: #422006; }
  .gtm-mini.on.pass { background: #6b7280; border-color: #6b7280; color: #fff; }
  /* tier chips */
  .tier { display: inline-block; font-size: 10px; font-weight: 700; width: 16px; height: 16px; line-height: 16px;
    text-align: center; border-radius: 4px; vertical-align: middle; }
  .tier.tA { background: #16a34a; color: #fff; }
  .tier.tB { background: #eab308; color: #422006; }
  .tier.tC { background: #e5e7eb; color: #4b5563; }
  /* firm-size badge: tier-colored dot + agent count */
  .sizeb { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
    color: hsl(var(--muted-foreground)); vertical-align: middle; white-space: nowrap; }
  .sizeb .sizedot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
  .sizeb.tA .sizedot { background: #16a34a; }
  .sizeb.tB .sizedot { background: #eab308; }
  .sizeb.tC .sizedot { background: #9ca3af; }
  .legend .lr-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid hsl(var(--border)); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); }

  /* ---- Pipeline Board (full second view) ---- */
  .logo #boardBtn { font-size: 12px; padding: 5px 11px; margin-left: 12px; vertical-align: middle; }
  .board-view { position: absolute; top: 57px; left: 0; right: 0; bottom: 0; z-index: 55; background: hsl(var(--background)); display: flex; flex-direction: column; }
  .board-view[hidden] { display: none; }
  .board-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid hsl(var(--border)); }
  .board-title { font-weight: 600; font-size: 16px; }
  .board-scroll { overflow-y: auto; padding: 16px 20px 48px; }
  .board-sec { margin-bottom: 22px; }
  .board-sec-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; color: hsl(var(--muted-foreground)); }
  .board-sec-h.won { color: #b45309; }
  .board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
  .board-card { border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--border)); border-radius: var(--radius); padding: 12px 14px; background: hsl(var(--card)); }
  .board-sec.won .board-card { border-left-color: #eab308; }
  .board-sec.demo .board-card { border-left-color: #2563eb; }
  .board-sec.sequenced .board-card { border-left-color: #7c3aed; }
  .board-sec.pass .board-card { border-left-color: #9ca3af; }
  .board-cardh { display: flex; flex-direction: column; gap: 2px; }
  .board-name { font-weight: 600; font-size: 14px; cursor: pointer; }
  .board-name:hover { text-decoration: underline; }
  .board-cmeta { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
  .board-conns-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin: 8px 0 4px; border-top: 1px solid hsl(var(--border)); padding-top: 8px; }
  .board-more { font-size: 12px; color: hsl(var(--foreground)); cursor: pointer; padding: 6px 4px 0; font-weight: 600; }
  .board-more:hover { text-decoration: underline; }
  /* who-to-target-next: seed bar + ranked match rows */
  .board-seedbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid hsl(var(--border)); flex-wrap: wrap; }
  .board-seedlbl { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); }
  .board-seedbar .select { min-width: 200px; }
  .board-count { font-size: 12px; color: hsl(var(--muted-foreground)); margin-left: auto; }
  .board-empty { max-width: 560px; padding: 28px 4px; }
  .match-list { max-width: 760px; }
  .match-row { display: flex; gap: 16px; padding: 14px 8px; border-bottom: 1px solid hsl(var(--border)); }
  .match-row:hover { background: hsl(var(--accent)); border-radius: var(--radius); }
  .match-pct { width: 84px; flex: none; text-align: center; }
  .match-num { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  .match-num span { font-size: 13px; font-weight: 600; color: hsl(var(--muted-foreground)); }
  .match-bar { height: 6px; border-radius: 9999px; background: hsl(var(--border)); margin-top: 6px; overflow: hidden; }
  .match-bar span { display: block; height: 100%; background: #16a34a; border-radius: 9999px; }
  .match-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .match-name { font-weight: 600; font-size: 14px; cursor: pointer; }
  .match-name:hover { text-decoration: underline; }
  .match-why { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
  .match-why b { color: hsl(var(--foreground)); font-weight: 700; }
  .match-contact { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .match-main .gtm-pacts { margin-top: 5px; }
  .match-top { border: 1px solid #16a34a; background: #f0fdf4; border-radius: var(--radius); padding: 4px 12px 8px; margin-bottom: 14px; }
  .match-top-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #15803d; padding: 8px 0 2px; }
  .match-top .match-row { border-bottom: none; }
  /* Path to $1M tracker */
  .goal-summary { padding: 18px 20px; border-bottom: 1px solid hsl(var(--border)); }
  .goal-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
  .goal-num span { font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground)); }
  .goal-bar { height: 12px; border-radius: 9999px; background: hsl(var(--border)); margin: 12px 0 8px; overflow: hidden; max-width: 640px; }
  .goal-bar span { display: block; height: 100%; background: #16a34a; border-radius: 9999px; transition: width .3s; }
  .goal-sub { font-size: 13px; color: hsl(var(--muted-foreground)); }
  .goal-hint { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin: 4px 0 12px; max-width: 640px; }
  .goal-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid hsl(var(--border)); max-width: 760px; cursor: pointer; }
  .goal-row:hover { background: hsl(var(--accent)); }
  .goal-row.won { background: #f0fdf4; }
  .goal-row input { width: 17px; height: 17px; accent-color: #16a34a; flex: none; cursor: pointer; }
  .goal-firm { font-weight: 600; font-size: 14px; cursor: pointer; }
  .goal-firm:hover { text-decoration: underline; }
  .goal-meta { font-size: 12px; color: hsl(var(--muted-foreground)); margin-left: auto; white-space: nowrap; }
  /* stage badges reused in lists */
  .badge.won { background: #fef3c7; color: #b45309; border-color: #fde68a; }
  .badge.demo { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
  .badge.sequenced { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
  .badge.pass { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }

  /* ---- shared deals ---- */
  .deals-head { margin: 18px 0 8px; font-size: 11px; font-weight: 600; color: hsl(var(--muted-foreground));
    text-transform: uppercase; letter-spacing: .06em; }
  .deals { display: flex; flex-direction: column; gap: 8px; }
  .deal { border: 1px solid hsl(var(--border)); border-left: 3px solid var(--deg1); border-radius: calc(var(--radius) - 2px); padding: 9px 11px; }
  .deal-addr { font-size: 13px; font-weight: 500; }
  .deal-meta { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 3px; }

  /* ---- overlays ---- */
  .tooltip { position: absolute; pointer-events: none; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
    padding: 6px 9px; border-radius: calc(var(--radius) - 2px); font-size: 12px; opacity: 0; transition: opacity .1s;
    white-space: nowrap; box-shadow: 0 4px 12px hsl(var(--foreground) / 0.18); z-index: 40; }
  .legend { position: absolute; bottom: 14px; left: 14px; background: hsl(var(--card) / 0.92); backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 11px 13px; font-size: 12px;
    color: hsl(var(--muted-foreground)); box-shadow: 0 4px 12px hsl(var(--foreground) / 0.06); }
  .legend .lr { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
  .legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px hsl(var(--border)); }
  .banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: hsl(var(--card) / 0.92);
    backdrop-filter: blur(4px); border: 1px solid hsl(var(--border)); border-radius: 9999px; padding: 6px 14px;
    font-size: 12px; color: hsl(var(--muted-foreground)); box-shadow: 0 4px 12px hsl(var(--foreground) / 0.06); }
  .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); font-size: 14px; }

  /* ---- login gate ---- */
  .gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: hsl(var(--background)); }
  .gate-card { width: 360px; max-width: calc(100vw - 32px); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px hsl(var(--foreground) / 0.08); }
  .gate-card .mark { width: 32px; height: 32px; object-fit: contain; display: block; margin-bottom: 18px; }
  .gate-card h1 { font-size: 19px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
  .gate-card p { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.5; margin: 0 0 20px; }
  .gate-card .input { margin-bottom: 12px; }
  .gate-card .btn { width: 100%; }
  .auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: hsl(var(--muted-foreground)); font-size: 12px; }
  .auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: hsl(var(--border)); }
  .auth-google { margin-bottom: 10px; }
  .auth-fallback { margin-top: 8px; padding-top: 10px; border-top: 1px solid hsl(var(--border)); }
  .gate-err { color: #dc2626; font-size: 13px; margin-top: 12px; min-height: 16px; }
  .team-setup[hidden], .password-setup[hidden] { display: none; }
  .setup-label { display: block; margin: 10px 0 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .operator-toggle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .operator-choice { height: 36px; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 13px; font-weight: 700; cursor: pointer; }
  .operator-choice.active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
  .operator-choice:focus-visible { outline: none; box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25); }
  .setup-advanced { margin: 12px 0; border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 10px 12px; background: hsl(var(--muted) / .35); }
  .setup-advanced summary { cursor: pointer; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 700; }
  .setup-note { margin-top: 10px; font-size: 12px; line-height: 1.45; color: hsl(var(--muted-foreground)); }
  .setup-note b { color: hsl(var(--foreground)); }
  .setup-secondary { margin-top: 8px; background: transparent; border: none; color: hsl(var(--muted-foreground)); font-size: 12px; cursor: pointer; text-decoration: underline; width: 100%; }

  /* ---- VP unlock modal ---- */
  .vp-modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
    background: hsl(var(--foreground) / 0.18); backdrop-filter: blur(3px); padding: 18px; }
  .vp-modal[hidden] { display: none; }
  .vp-card { width: 360px; max-width: 100%; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    background: hsl(var(--card)); padding: 22px; box-shadow: 0 24px 70px hsl(var(--foreground) / 0.22); }
  .vp-card h2 { margin: 0 0 4px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
  .vp-card p { margin: 0 0 16px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.45; }
  .vp-actions { display: flex; gap: 8px; margin-top: 12px; }
  .vp-actions .btn { flex: 1; }

  /* ---- GTM Command Center (VP home) ---- */
  .home-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; justify-content: space-between;
    max-width: 760px; padding: 2px 4px 18px; margin-bottom: 8px; border-bottom: 1px solid hsl(var(--border)); }
  .home-arr { flex: 1 1 320px; }
  .home-pipe { display: flex; gap: 6px; flex-wrap: wrap; }
  .home-link { color: hsl(var(--foreground)); font-weight: 600; cursor: pointer; }
  .home-link:hover { text-decoration: underline; }
  /* click-to-call / click-to-email contact links */
  .c-link { color: hsl(var(--foreground)); text-decoration: none; }
  .c-link:hover { text-decoration: underline; color: hsl(var(--deg1)); }

  /* ---- Brain cockpit ---- */
  .ck-segbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 760px;
    padding: 12px 4px; border-bottom: 1px solid hsl(var(--border)); margin-bottom: 6px; }
  .ck-segsel { min-width: 280px; max-width: 360px; }
  .ck-segstats { font-size: 12.5px; color: hsl(var(--muted-foreground)); font-weight: 500; }
  .ck-newseg { margin-left: auto; font-size: 12px; padding: 0 12px; }
  .ck-builder { max-width: 760px; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    background: hsl(var(--muted) / 0.4); padding: 12px; margin: 4px 0 10px; }
  .ck-builder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .ck-builder-row + .ck-builder-row { margin-top: 10px; }
  .ck-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
  .ck-chk input { width: 15px; height: 15px; accent-color: hsl(var(--primary)); }
  .ck-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
  .ck-num { height: 32px; width: 90px; padding: 0 8px; }
  .ck-field .select { height: 32px; }
  .ck-name-in { flex: 1 1 240px; min-width: 200px; height: 34px; }

  .ck-row { display: flex; align-items: flex-start; gap: 14px; max-width: 760px;
    padding: 13px 8px; border-bottom: 1px solid hsl(var(--border)); }
  /* priority score column */
  .ck-pri { width: 64px; flex: none; text-align: center; cursor: default; }
  .ck-prinum { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
  .ck-pribar { height: 5px; border-radius: 9999px; background: hsl(var(--border)); margin: 5px 0 3px; overflow: hidden; }
  .ck-pribar span { display: block; height: 100%; background: #16a34a; border-radius: 9999px; }
  .ck-prilbl { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); }
  .ck-row:hover { background: hsl(var(--accent)); border-radius: var(--radius); }
  .ck-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .ck-name { font-weight: 600; font-size: 14px; cursor: pointer; }
  .ck-name:hover { text-decoration: underline; }
  .ck-why { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
  .ck-warm { font-size: 12.5px; color: #15803d; }
  .ck-warm b { color: #166534; }
  .ck-price { font-size: 12.5px; color: hsl(var(--foreground)); }
  .ck-contact { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
  .contact-edit { margin-left: 8px; }
  .ck-acts { display: flex; flex-direction: column; gap: 5px; flex: none; align-items: stretch; }
  .ck-acts .gtm-mini { text-align: center; }
  /* "Start here" hero around the single top recommendation */
  .ck-hero { border: 1px solid #16a34a; background: #f0fdf4; border-radius: var(--radius); padding: 2px 12px 6px; margin: 4px 0 14px; max-width: 760px; }
  .ck-hero-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #15803d; padding: 9px 0 2px; }
  .ck-hero .ck-row { border-bottom: none; padding-bottom: 4px; }
  .ck-hero .ck-row:hover { background: transparent; }
  /* market map — whole-TAM overview */
  .ck-segbtns { margin-left: auto; display: flex; gap: 8px; }
  .ck-mapbtn.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
  .ck-map { max-width: 760px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--muted) / 0.4); padding: 14px; margin: 4px 0 12px; }
  .ck-map-head { font-size: 13px; margin-bottom: 12px; }
  .ck-map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ck-map-card { border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--card)); padding: 10px 12px; }
  .ck-map-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin-bottom: 7px; }
  .ck-map-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; border-top: 1px solid hsl(var(--border)); }
  .ck-map-row:first-of-type { border-top: none; }
  .ck-map-lbl { color: hsl(var(--muted-foreground)); }
  .ck-map-val { text-align: right; color: hsl(var(--foreground)); white-space: nowrap; }
  /* today's command queue */
  .today-wrap { max-width: 760px; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    background: hsl(var(--card)); margin: 8px 0 16px; overflow: hidden; }
  .today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.35); }
  .today-title { font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
  .today-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
  .today-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .today-start { border-bottom: 1px solid hsl(var(--border)); background: #f0fdf4; padding: 12px 14px; }
  .today-start-lbl { font-size: 11px; font-weight: 800; color: #15803d; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
  .task-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 160px; gap: 12px; padding: 12px 14px; border-top: 1px solid hsl(var(--border)); }
  .task-row:first-child { border-top: none; }
  .task-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .task-num { font-size: 22px; font-weight: 800; line-height: 1; }
  .task-action { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); text-align: center; }
  .task-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .task-name { font-weight: 700; font-size: 14px; cursor: pointer; }
  .task-name:hover { text-decoration: underline; }
  .task-meta, .task-why, .task-next { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
  .task-next { color: hsl(var(--foreground)); }
  .task-tag { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 9999px; padding: 2px 7px; font-size: 11px; font-weight: 700; background: hsl(var(--background)); }
  .task-tag.call { border-color: #16a34a; color: #166534; background: #f0fdf4; }
  .task-tag.sms { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; }
  .task-tag.email { border-color: #7c3aed; color: #6d28d9; background: #f5f3ff; }
  .task-tag.follow { border-color: #ca8a04; color: #854d0e; background: #fefce8; }
  .task-tag.form { border-color: #dc2626; color: #991b1b; background: #fef2f2; }
  .task-controls { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; align-content: flex-start; }
  .task-empty { padding: 14px; font-size: 13px; color: hsl(var(--muted-foreground)); }
  @media (max-width: 760px) { .task-row { grid-template-columns: 58px minmax(0, 1fr); } .task-controls { grid-column: 1 / -1; justify-content: flex-start; } .today-head { align-items: flex-start; flex-direction: column; } }
  /* ---- Central VP dashboard polish (minimal workspace-inspired) ---- */
  .brain-rail { display: none; position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 120; pointer-events: auto; }
  body.vp-rail .brain-rail { display: flex; }
  body.vp-rail.vp-dashboard header { display: none; }
  body.vp-rail.vp-graph header { display: flex; grid-column: 2 / 4; grid-row: 1; }
  body.vp-rail #app { grid-template-columns: 248px minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; }
  body.vp-rail.vp-dashboard #app { grid-template-rows: 1fr; }
  body.vp-rail .brain-rail { grid-column: 1; grid-row: 1; }
  body.vp-rail #canvas { grid-column: 2; grid-row: 2; margin-left: 0; min-width: 0; min-height: 0; height: auto; }
  body.vp-rail #side { grid-column: 3; grid-row: 2; min-height: 0; }
  body.vp-rail.vp-dashboard #canvas { grid-row: 1; min-height: 100vh; height: 100vh; }
  body.vp-rail.vp-dashboard #side { grid-row: 1; min-height: 100vh; }
  body.vp-rail .board-view { top: 0; left: 248px; }
  body.vp-rail.vp-graph .board-view { display: none; }
  body.vp-rail .gtm-panel { left: 264px; right: auto; top: 16px; }
  body.vp-rail .brain-shell { grid-template-columns: 1fr; }
  body.vp-rail .brain-shell > .brain-sidebar { display: none; }
  body.vp-rail .brain-main { padding-top: 58px; }
  body.vp-rail .brain-navitem.active { background: #f4f4f5; color: hsl(var(--foreground)); }
  body.vp-dashboard header { display: none; }
  body.vp-dashboard .board-view { top: 0; }
  .brain-shell { min-height: 100%; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: hsl(var(--background)); }
  .brain-sidebar { border-right: 1px solid hsl(var(--border)); padding: 16px 12px; display: flex; flex-direction: column; gap: 18px; background: #fbfbfb; }
  .brain-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 8px; font-weight: 700; font-size: 15px; }
  .brain-avatar { width: 26px; height: 26px; border-radius: 50%; background: #f3e8ff; color: #7c3aed; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
  .brain-navsec { display: flex; flex-direction: column; gap: 3px; }
  .brain-navlbl { padding: 8px 8px 4px; font-size: 11px; font-weight: 700; color: hsl(var(--muted-foreground)); }
  .brain-navitem { width: 100%; border: none; background: transparent; color: hsl(var(--foreground)); border-radius: 6px; min-height: 34px; padding: 7px 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
  .brain-navitem:hover { background: hsl(var(--accent)); }
  .brain-navitem.active { background: #f4f4f5; }
  .brain-navitem.muted { color: hsl(var(--muted-foreground)); font-weight: 500; }
  .brain-tools > summary { list-style: none; }
  .brain-tools > summary::-webkit-details-marker { display: none; }
  .brain-tools > summary::after { content: "▾"; margin-left: auto; font-size: 10px; opacity: .75; }
  .brain-tools[open] > summary::after { content: "▴"; }
  .brain-tools-menu { display: grid; gap: 4px; margin-top: 6px; }
  .brain-tools-divider { height: 1px; background: hsl(var(--border)); margin: 5px 8px; }
  .brain-tools-mini { margin-top: 2px; }
  .brain-tools-mini summary { min-height: 30px; font-size: 12px; padding-left: 8px; color: hsl(var(--muted-foreground)); cursor: pointer; }
  .brain-tools-mini-menu { display: grid; gap: 3px; margin: 3px 0 0 10px; padding-left: 8px; border-left: 1px solid hsl(var(--border)); }
  .brain-navitem svg, .icon-sm { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .brain-spacer { flex: 1; }
  .brain-main { min-width: 0; overflow-y: auto; padding: 58px clamp(28px, 6vw, 86px) 70px; }
  .brain-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
  .brain-kicker { color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
  .brain-h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
  .brain-desc { margin-top: 6px; color: hsl(var(--muted-foreground)); font-size: 13px; max-width: 660px; }
  .brain-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .icon-btn { width: 36px; padding: 0; }
  .brain-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
  .metric-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); padding: 13px 14px; min-height: 92px; text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
  .metric-card:hover { border-color: #d4d4d8; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
  .metric-card.active { border-color: hsl(var(--foreground)); background: #fafafa; box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
  .metric-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 650; }
  .metric-value { margin-top: 10px; font-size: 24px; line-height: 1; font-weight: 760; letter-spacing: -0.02em; }
  .metric-sub { margin-top: 7px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .brain-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; margin-bottom: 16px; background: hsl(var(--card)); }
  .brain-toolbar .select { height: 34px; }
  .brain-toolbar .ck-segsel { flex: 1 1 260px; min-width: 220px; max-width: none; }
  .brain-toolbar .ck-statesel { width: 126px; }
  .brain-toolbar .ck-countysel { width: 170px; }
  .brain-toolbar .ck-segstats { margin-left: auto; font-size: 12px; }
  .brain-section { margin-top: 22px; }
  .section-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
  .section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 760; }
  .section-meta { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .today-wrap { max-width: none; border-radius: 8px; margin: 0 0 18px; }
  .today-head { background: hsl(var(--card)); padding: 12px 14px; }
  .today-title { display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-size: 14px; }
  .today-start { background: hsl(var(--background)); padding: 0; }
  .today-start-lbl { padding: 11px 14px 0; color: hsl(var(--muted-foreground)); }
  .task-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(250px, auto); gap: 12px; align-items: center; padding: 12px 14px; }
  .dash-panel { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); margin: 0 0 18px; overflow: hidden; }
  .dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .dash-panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 760; }
  .dash-panel-sub { margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .dash-stat { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px; background: hsl(var(--background)); }
  .dash-stat-label { font-size: 11px; color: hsl(var(--muted-foreground)); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .dash-stat-value { margin-top: 7px; font-size: 18px; font-weight: 760; }
  .pipeline-audit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 14px 14px; }
  .pipeline-bucket { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); overflow: hidden; min-width: 0; }
  .pipeline-bucket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); }
  .pipeline-bucket-title { font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); }
  .pipeline-bucket-count { font-size: 12px; font-weight: 700; color: hsl(var(--foreground)); }
  .pipeline-list { max-height: 420px; overflow-y: auto; }
  .pipeline-person { display: flex; flex-direction: column; gap: 9px; align-items: stretch; padding: 11px 12px; border-top: 1px solid hsl(var(--border)); }
  .pipeline-person:first-child { border-top: none; }
  .pipeline-person:hover { background: #fafafa; }
  .pipeline-name { font-size: 13px; font-weight: 720; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pipeline-name:hover { text-decoration: underline; }
  .pipeline-meta, .pipeline-note { margin-top: 3px; font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pipeline-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
  .pipeline-empty { padding: 16px 12px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .task-score { width: 34px; height: 34px; border: 1px solid hsl(var(--border)); border-radius: 7px; display: flex; align-items: center; justify-content: center; background: hsl(var(--background)); }
  .task-score .task-num { display: none; }
  .task-score .task-tag { border: none; background: transparent; padding: 0; font-size: 0; color: hsl(var(--muted-foreground)); }
  .task-score .task-tag::before { content: attr(data-icon); font-size: 14px; }
  .task-action { display: none; }
  .task-main { gap: 2px; }
  .task-name { font-size: 13.5px; }
  .task-meta, .task-why, .task-next { font-size: 12px; }
  .task-controls { justify-content: flex-end; gap: 4px; }
  .task-controls .gtm-mini { border-radius: 6px; padding: 4px 7px; }
  .task-result { height: 30px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--card)); color: hsl(var(--foreground)); font-size: 12px; padding: 0 8px; max-width: 138px; }
  .task-controls .gtm-mini { height: 30px; }
  .target-table { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); overflow: hidden; }
  .target-row { display: grid; grid-template-columns: 50px minmax(220px, 1.25fr) minmax(170px, .8fr) minmax(140px, .7fr) 150px; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid hsl(var(--border)); }
  .target-row:first-child { border-top: none; }
  .target-row:hover { background: #fafafa; }
  .target-priority { font-weight: 760; font-size: 15px; }
  .target-name { font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .target-name:hover { text-decoration: underline; }
  .target-muted { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
  .target-warm { color: #166534; }
  .target-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
  .target-empty { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 18px; color: hsl(var(--muted-foreground)); }
  .pricing-panel { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); padding: 12px; margin-top: 12px; }
  .pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 10px; align-items: end; }
  .pricing-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: hsl(var(--muted-foreground)); font-weight: 600; }
  .pricing-field input { height: 34px; border: 1px solid hsl(var(--border)); border-radius: 6px; padding: 0 9px; font-size: 13px; color: hsl(var(--foreground)); background: hsl(var(--background)); }
  .pricing-check { display: inline-flex; align-items: center; gap: 7px; height: 34px; font-size: 12px; font-weight: 650; color: hsl(var(--foreground)); }
  .pricing-result { border-top: 1px solid hsl(var(--border)); margin-top: 12px; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
  .pricing-monthly { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
  .pricing-detail { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .command-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, .85fr); gap: 16px; align-items: start; }
  .command-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .focus-card, .firm-card, .operating-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); overflow: hidden; }
  .focus-head, .firm-head, .operating-head { padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .focus-kicker, .firm-kicker, .operating-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .focus-name { margin-top: 3px; font-size: 20px; line-height: 1.15; font-weight: 780; letter-spacing: -0.02em; }
  .focus-firm { margin-top: 4px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
  .focus-body, .firm-body, .operating-body { padding: 14px; }
  .focus-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .focus-stat { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; background: hsl(var(--background)); }
  .focus-stat-label { font-size: 10.5px; color: hsl(var(--muted-foreground)); font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
  .focus-stat-value { margin-top: 5px; font-size: 16px; font-weight: 780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .focus-note { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px 11px; margin-top: 10px; font-size: 12.5px; line-height: 1.45; background: #fafafa; }
  .focus-script { border-left: 3px solid #16a34a; background: #f0fdf4; padding: 10px 11px; border-radius: 6px; color: #14532d; font-size: 12.5px; line-height: 1.45; margin-top: 10px; }
  .demo-pipeline { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; overflow-x: auto; padding-bottom: 2px; }
  .demo-stage { flex: 0 0 auto; border: 1px solid hsl(var(--border)); border-radius: 9999px; padding: 4px 8px; font-size: 10.5px; font-weight: 750; color: hsl(var(--muted-foreground)); background: hsl(var(--background)); white-space: nowrap; }
  .demo-stage.done { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
  .demo-stage.active { border-color: hsl(var(--foreground)); color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
  .demo-stage-arrow { color: hsl(var(--muted-foreground)); font-size: 11px; flex: none; }
  .demo-prep { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; margin-top: 10px; background: hsl(var(--background)); }
  .demo-prep-title { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: 8px; }
  .demo-prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .demo-prep-item { font-size: 12px; line-height: 1.4; color: hsl(var(--muted-foreground)); }
  .demo-prep-item b { color: hsl(var(--foreground)); }
  .unlock-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); overflow: hidden; }
  .unlock-head { padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .unlock-title { font-size: 14px; font-weight: 760; }
  .unlock-sub { margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.4; }
  .unlock-body { padding: 10px 14px 14px; }
  .unlock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid hsl(var(--border)); }
  .unlock-row:first-child { border-top: none; }
  .unlock-name { font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .unlock-name:hover { text-decoration: underline; }
  .unlock-meta { margin-top: 2px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
  .firm-title { margin-top: 3px; font-size: 15px; font-weight: 760; }
  .firm-sub { margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .firm-progress { height: 8px; border-radius: 9999px; background: hsl(var(--border)); overflow: hidden; margin: 8px 0 12px; }
  .firm-progress span { display: block; height: 100%; background: #16a34a; border-radius: inherit; }
  .firm-list { display: flex; flex-direction: column; gap: 2px; }
  .firm-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-top: 1px solid hsl(var(--border)); padding: 9px 0; }
  .firm-person:first-child { border-top: none; }
  .firm-person-name { font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .firm-person-name:hover { text-decoration: underline; }
  .firm-person-meta { font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
  .firm-empty { font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.45; }
  .operating-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .operating-step { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; background: hsl(var(--background)); }
  .operating-step-num { font-size: 11px; font-weight: 800; color: hsl(var(--muted-foreground)); }
  .operating-step-title { margin-top: 5px; font-size: 13px; font-weight: 760; }
  .operating-step-sub { margin-top: 4px; font-size: 11.5px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
  .task-row.selected { background: #fafafa; box-shadow: inset 3px 0 0 hsl(var(--foreground)); }
  .task-open { border-radius: 6px; }
  @media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .ck-map, .ck-builder { max-width: none; border-radius: 8px; }
  .home-strip, .ck-segbar, .ck-row, .ck-hero, .match-list { max-width: none; }
  @media (max-width: 1180px) { .command-layout { grid-template-columns: 1fr; } .operating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 1040px) { .brain-shell { grid-template-columns: 1fr; } .brain-sidebar { display: none; } .brain-main { padding: 28px 18px 56px; } .brain-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .target-row { grid-template-columns: 44px minmax(0, 1fr); } .target-row > :nth-child(n+3) { grid-column: 2; } .target-actions { justify-content: flex-start; } }
  @media (max-width: 1000px) { .pipeline-audit { grid-template-columns: 1fr; } }
  @media (max-width: 760px) { .brain-metrics { grid-template-columns: 1fr; } .task-row { grid-template-columns: 34px minmax(0, 1fr); } .task-controls { grid-column: 2; justify-content: flex-start; } .brain-top { flex-direction: column; } .brain-actions { justify-content: flex-start; } .focus-grid, .operating-grid { grid-template-columns: 1fr; } }
  @media (max-width: 680px) { .ck-map-grid { grid-template-columns: 1fr; } }


  /* ---- VP v2: sequence-first GTM brain ---- */
  .brain-main.vp2 { padding-top: 44px; }
  .brain-quickbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 12px; margin-bottom: 14px; }
  .vp2-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); overflow: hidden; }
  .vp2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .vp2-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 780; }
  .vp2-sub { margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
  .vp2-body { padding: 12px 14px; }
  .vp2-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; background: hsl(var(--card)); margin-bottom: 14px; }
  .vp2-toolbar .select { height: 34px; }
  .vp2-toolbar .grow { flex: 1 1 260px; min-width: 220px; }
  .vp2-toolbar .meta { margin-left: auto; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .vp2-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .85fr); gap: 14px; align-items: start; }
  .queue-group { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card)); overflow: hidden; margin-bottom: 12px; }
  .queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid hsl(var(--border)); background: #fafafa; }
  .queue-title { font-size: 12px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--foreground)); }
  .queue-meta { font-size: 12px; color: hsl(var(--muted-foreground)); }
  .queue-empty { padding: 14px; color: hsl(var(--muted-foreground)); font-size: 12.5px; }
  .vp2-lead-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(210px, auto); gap: 12px; align-items: start; padding: 12px 13px; border-top: 1px solid hsl(var(--border)); }
  .vp2-lead-row:first-child { border-top: none; }
  .vp2-lead-row:hover, .vp2-lead-row.selected { background: #fafafa; }
  .vp2-lead-row.selected { box-shadow: inset 3px 0 0 hsl(var(--foreground)); }
  .vp2-score { width: 34px; height: 34px; border-radius: 8px; border: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: center; font-weight: 780; font-size: 13px; background: hsl(var(--background)); }
  .vp2-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 780; cursor: pointer; }
  .vp2-name:hover { text-decoration: underline; }
  .vp2-meta { margin-top: 3px; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.35; }
  .vp2-next { margin-top: 6px; font-size: 13px; color: hsl(var(--foreground)); line-height: 1.35; }
  .vp2-reason { margin-top: 4px; color: #166534; font-size: 12px; line-height: 1.35; }
  .vp2-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
  .vp2-copy-row { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
  .vp2-chip { border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: hsl(var(--muted-foreground)); background: hsl(var(--background)); }
  .vp2-chip.black { color: hsl(var(--foreground)); }
  .vp2-detail { position: sticky; top: 18px; }
  .lead-hero { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .lead-name { font-size: 22px; line-height: 1.12; font-weight: 820; letter-spacing: -0.02em; }
  .lead-firm { margin-top: 4px; color: hsl(var(--muted-foreground)); font-size: 12.5px; line-height: 1.35; }
  .lead-stage { display: inline-flex; align-items: center; gap: 6px; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 5px 9px; font-size: 11.5px; font-weight: 760; color: hsl(var(--foreground)); background: #fafafa; white-space: nowrap; }
  .lead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
  .lead-stat { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 9px; background: hsl(var(--background)); min-width: 0; }
  .lead-stat-label { font-size: 10.5px; font-weight: 800; color: hsl(var(--muted-foreground)); letter-spacing: .05em; text-transform: uppercase; }
  .lead-stat-value { margin-top: 5px; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lead-block { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; background: #fafafa; margin-top: 10px; font-size: 12.5px; line-height: 1.45; }
  .lead-block b { color: hsl(var(--foreground)); }
  .draft-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .draft-box { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); overflow: hidden; }
  .draft-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid hsl(var(--border)); }
  .draft-title { font-size: 12px; font-weight: 800; }
  .draft-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
  .draft-text { width: 100%; min-height: 112px; resize: vertical; border: none; background: hsl(var(--background)); padding: 10px; font-size: 12px; line-height: 1.42; color: hsl(var(--foreground)); font-family: inherit; }
  .draft-text.sms { min-height: 74px; }
  .timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
  .timeline-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .timeline-row b { color: hsl(var(--foreground)); }
  .sequence-line { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
  .sequence-pill { border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 4px 8px; font-size: 10.5px; font-weight: 760; color: hsl(var(--muted-foreground)); background: hsl(var(--background)); }
  .sequence-pill.done { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
  .sequence-pill.active { border-color: hsl(var(--foreground)); color: hsl(var(--foreground)); box-shadow: inset 0 0 0 1px hsl(var(--foreground)); }
  .pipeline-board-v2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .pipeline-stage { border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--background)); overflow: hidden; min-width: 0; }
  .pipeline-stage-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); background: #fafafa; }
  .pipeline-stage-title { font-size: 12px; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .pipeline-stage-count { font-size: 12px; font-weight: 800; }
  .pipeline-stage-list { max-height: 420px; overflow-y: auto; }
  .data-health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding: 14px; }
  .data-health-note { margin: 0 14px 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 11px; font-size: 12.5px; color: hsl(var(--muted-foreground)); background: #fafafa; }
  .gtm-mini.email_sent.on, .gtm-mini.sms_sent.on, .gtm-mini.outreach_sent.on, .gtm-mini.replied.on, .gtm-mini.qualified.on, .gtm-mini.demo_scheduled.on { background: #2563eb; border-color: #2563eb; color: #fff; }
  .gtm-mini.nurture.on { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
  @media (max-width: 1220px) { .vp2-layout, .brain-quickbar { grid-template-columns: 1fr; } .vp2-detail { position: static; } }
  @media (max-width: 900px) { .pipeline-board-v2, .data-health-grid, .lead-grid { grid-template-columns: 1fr; } .vp2-lead-row { grid-template-columns: 34px minmax(0, 1fr); } .vp2-actions { grid-column: 2; align-items: flex-start; } .vp2-copy-row { justify-content: flex-start; } }



  /* ---- VP v3: minimal operating desk ---- */
  body.vp-dashboard #homeView { background: #fff; }
  .vp3-main { min-width: 0; overflow-y: auto; padding: 34px clamp(24px, 5vw, 72px) 56px; background: #fff; }
  .vp3-shell { max-width: 1440px; margin: 0 auto; }
  .vp3-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 18px; }
  .vp3-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .vp3-title { margin: 4px 0 0; font-size: 30px; line-height: 1.08; font-weight: 840; letter-spacing: -0.03em; }
  .vp3-sub { margin-top: 7px; max-width: 680px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.45; }
  .vp3-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .vp3-filter { display: grid; grid-template-columns: auto 132px auto 190px auto minmax(260px, 1fr) auto; gap: 8px; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; margin-bottom: 14px; background: #fafafa; }
  .vp3-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); }
  .vp3-filter .select { height: 34px; background-color: #fff; }
  .vp3-mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .vp3-stat { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 0; }
  .vp3-stat-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); }
  .vp3-stat-v { margin-top: 5px; font-size: 19px; font-weight: 820; letter-spacing: -0.02em; }
  .vp3-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) minmax(380px, .86fr); gap: 14px; align-items: start; }
  .vp3-panel { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; overflow: hidden; }
  .vp3-panel-head { padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); background: #fafafa; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .vp3-panel-title { font-size: 13px; font-weight: 820; display: flex; gap: 8px; align-items: center; }
  .vp3-panel-sub { margin-top: 2px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .vp3-now { padding: 14px; }
  .vp3-now-name { font-size: 22px; font-weight: 840; letter-spacing: -0.02em; line-height: 1.1; cursor: pointer; }
  .vp3-now-name:hover { text-decoration: underline; }
  .vp3-now-meta { margin-top: 5px; color: hsl(var(--muted-foreground)); font-size: 12.5px; line-height: 1.4; }
  .vp3-callout { border-left: 3px solid hsl(var(--foreground)); background: #fafafa; border-radius: 6px; padding: 10px 11px; margin-top: 12px; font-size: 13px; line-height: 1.45; }
  .vp3-now-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .vp3-queue { max-height: calc(100vh - 290px); overflow-y: auto; }
  .vp3-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-top: 1px solid hsl(var(--border)); cursor: pointer; }
  .vp3-row:first-child { border-top: none; }
  .vp3-row:hover, .vp3-row.selected { background: #fafafa; }
  .vp3-rank { width: 30px; height: 30px; border: 1px solid hsl(var(--border)); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 820; color: hsl(var(--muted-foreground)); background: #fff; }
  .vp3-row-name { font-size: 13.5px; font-weight: 780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp3-row-meta { margin-top: 2px; color: hsl(var(--muted-foreground)); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp3-row-next { margin-top: 5px; font-size: 12.5px; line-height: 1.35; }
  .vp3-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); background: #fff; }
  .vp3-tab { border: 1px solid hsl(var(--border)); background: #fff; border-radius: 999px; padding: 5px 9px; font-size: 11.5px; font-weight: 760; color: hsl(var(--muted-foreground)); cursor: pointer; }
  .vp3-tab.active { background: hsl(var(--foreground)); border-color: hsl(var(--foreground)); color: hsl(var(--background)); }
  .vp3-detail-wrap { position: sticky; top: 18px; }
  .vp3-detail-wrap .vp2-card { border-radius: 8px; box-shadow: none; }
  .vp3-detail-wrap .lead-name { font-size: 20px; }
  .vp3-empty { padding: 14px; font-size: 12.5px; color: hsl(var(--muted-foreground)); line-height: 1.45; }
  .vp3-rail-note { margin-top: 14px; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 11px; font-size: 12px; line-height: 1.4; color: hsl(var(--muted-foreground)); background: #fafafa; }
  @media (max-width: 1280px) { .vp3-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); } .vp3-left { grid-column: 1 / -1; } }
  @media (max-width: 900px) { .vp3-grid, .vp3-top, .vp3-filter, .vp3-mini-stats { grid-template-columns: 1fr; } .vp3-actions { justify-content: flex-start; } .vp3-detail-wrap { position: static; } }


  /* ---- VP v4: focus queue + sales Kanban ---- */
  .vp4-main { min-width: 0; overflow-y: auto; padding: 30px clamp(22px, 4vw, 56px) 54px; background: #fff; }
  .vp4-shell { max-width: 1500px; margin: 0 auto; }
  .vp4-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 14px; }
  .vp4-kicker { font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .vp4-title { margin: 3px 0 0; font-size: 30px; line-height: 1.08; font-weight: 850; }
  .vp4-desc { margin-top: 7px; max-width: 760px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.45; }
  .vp4-actions, .vp4-card-actions, .vp4-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .vp4-filter { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; margin: 0 0 14px; background: #fafafa; }
  .vp4-filter label { font-size: 11px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .vp4-filter .select { height: 34px; background: #fff; min-width: 150px; }
  .vp4-work { display: grid; grid-template-columns: minmax(520px, 1.12fr) minmax(360px, .88fr); gap: 14px; align-items: start; }
  .vp4-panel { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; overflow: hidden; }
  .vp4-panel-head { padding: 13px 15px; border-bottom: 1px solid hsl(var(--border)); background: #fafafa; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .vp4-panel-title { font-size: 14px; font-weight: 850; display: flex; gap: 8px; align-items: center; }
  .vp4-panel-sub { margin-top: 3px; font-size: 12px; color: hsl(var(--muted-foreground)); }
  .vp4-search { position: relative; flex-shrink: 0; display: flex; align-items: center; }
  .vp4-search-ico { position: absolute; left: 9px; display: inline-flex; color: hsl(var(--muted-foreground)); pointer-events: none; }
  .vp4-search-ico .icon-sm { width: 15px; height: 15px; }
  .vp4-search-input { height: 34px; width: 190px; max-width: 44vw; border-radius: 999px; border: 1px solid hsl(var(--input)); background: #fff; padding: 0 30px 0 30px; font-size: 12.5px; color: hsl(var(--foreground)); }
  .vp4-search-input::placeholder { color: hsl(var(--muted-foreground)); }
  .vp4-search-input:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.22); }
  .vp4-search-clear { position: absolute; right: 6px; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1; cursor: pointer; border-radius: 999px; }
  .vp4-search-clear:hover { background: hsl(var(--border)); color: hsl(var(--foreground)); }
  @media (max-width: 760px) { .vp4-panel-head { flex-wrap: wrap; } .vp4-search-input { width: 100%; max-width: none; } .vp4-search { width: 100%; } }
  /* Metrics + morning briefing */
  .mx-funnel { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
  .mx-row { display: flex; align-items: center; gap: 10px; }
  .mx-row-label { width: 88px; font-size: 12.5px; font-weight: 700; color: hsl(var(--foreground)); flex: none; }
  .mx-bar-wrap { flex: 1; background: #f1f1f3; border-radius: 6px; height: 20px; overflow: hidden; }
  .mx-bar { height: 100%; background: #2563eb; border-radius: 6px; min-width: 2px; }
  .mx-row-num { width: 96px; text-align: right; font-size: 12.5px; font-weight: 700; flex: none; }
  .mx-conv { color: hsl(var(--muted-foreground)); font-weight: 600; }
  .mx-table-wrap { margin-top: 12px; min-width: 0; overflow-x: auto; }
  .mx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .mx-table th, .mx-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid hsl(var(--border)); }
  .mx-table th { color: hsl(var(--muted-foreground)); font-weight: 700; }
  .mx-empty { color: hsl(var(--muted-foreground)); text-align: center; }
  .mx-brief { margin-bottom: 14px; }
  .mx-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .mx-chip { min-width: 74px; padding: 8px 12px; border: 1px solid hsl(var(--border)); border-radius: 10px; background: #fff; text-align: center; }
  .mx-chip-val { font-size: 20px; font-weight: 850; line-height: 1.1; }
  .mx-chip-lbl { font-size: 11px; color: hsl(var(--muted-foreground)); font-weight: 600; }
  .mx-brief-line { font-size: 13px; margin-top: 4px; }
  .mx-muted { color: hsl(var(--muted-foreground)); }
  .today-command { display: flex; flex-direction: column; gap: 14px; }
  .today-command-head { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; overflow: hidden; }
  .today-command-title { padding: 13px 15px; border-bottom: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fafafa; }
  .today-command-title-main { font-size: 14px; font-weight: 850; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }
  .today-command-sub { margin-top: 3px; color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
  .today-command-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .today-secondary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
  .today-secondary .console-card { min-height: 220px; }
  .today-secondary .console-list { max-height: 190px; overflow: auto; padding-right: 2px; }
  .today-secondary .console-card-sub { min-height: 34px; }
  .today-backup-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 1px 2px -4px; color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .ceo-side-stack { display: grid; gap: 12px; align-content: start; }
  .ceo-side-stack .console-card { min-height: 0; }
  .ceo-workspace .vp4-pipeline-summary { padding: 14px; border-bottom: 1px solid hsl(var(--border)); }
  .ceo-tabs { display: flex; gap: 6px; padding: 0 14px 14px; border-bottom: 1px solid hsl(var(--border)); flex-wrap: wrap; }
  .ceo-tab { min-height: 34px; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 12px; font-weight: 820; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  .ceo-tab span { min-width: 22px; height: 22px; border-radius: 999px; background: #f4f4f5; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: hsl(var(--muted-foreground)); }
  .ceo-tab.active { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: hsl(var(--foreground)); }
  .ceo-tab.active span { background: rgba(255,255,255,.18); color: inherit; }
  .ceo-call-list { display: flex; flex-direction: column; }
  .ceo-call-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(200px, 320px) auto; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid hsl(var(--border)); }
  .ceo-call-note { display: flex; flex-direction: column; gap: 3px; align-self: stretch; justify-content: center; }
  .lead-note-text { width: 100%; min-height: 58px; resize: vertical; border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 12.5px; line-height: 1.4; background: #fffdf6; color: hsl(var(--foreground)); }
  .lead-note-text::placeholder { color: hsl(var(--muted-foreground)); opacity: 0.7; }
  .lead-note-text:focus { outline: none; border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / 0.18); background: #fff; }
  .lead-note-hint { font-size: 10.5px; color: hsl(var(--muted-foreground)); text-align: right; min-height: 13px; }
  .vp4-focus .ceo-call-note { margin-top: 12px; }
  .vp4-touch-lock { flex: 1; border: 1px dashed hsl(var(--border)); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: hsl(var(--muted-foreground)); background: #fafafa; }
  .ceo-call-row:last-child { border-bottom: 0; }
  .ceo-call-row:hover { background: #fafafa; }
  .ceo-call-rank { width: 30px; height: 30px; border: 1px solid hsl(var(--border)); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 850; color: hsl(var(--muted-foreground)); background: #fff; }
  .ceo-call-main { min-width: 0; }
  .ceo-call-name { font-size: 13.5px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ceo-call-meta, .ceo-call-contact, .ceo-call-why, .ceo-call-proof { margin-top: 3px; color: hsl(var(--muted-foreground)); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ceo-call-contact { color: hsl(var(--foreground)); }
  .ceo-call-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
  .ceo-single-list { padding: 10px 14px 14px; }
  .ceo-list-title { margin: 6px 0 8px; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  @media (max-width: 760px) { .ceo-call-row { grid-template-columns: 30px minmax(0, 1fr); align-items: start; } .ceo-call-note { grid-column: 2; } .ceo-call-actions { grid-column: 2; justify-content: flex-start; } }
  @media (max-width: 1180px) { .today-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 760px) { .today-command-title { flex-direction: column; align-items: flex-start; } .today-command-actions { justify-content: flex-start; } .today-secondary { grid-template-columns: 1fr; } }
  /* Metrics page — data in mono, labels condensed-uppercase, blaze = "winning" only */
  .mx-body { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
  .mx-hero { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .mx-stat { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px; background: hsl(var(--background)); min-width: 0; }
  .mx-stat-value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; line-height: 1.05; margin-top: 6px; letter-spacing: -0.02em; }
  .mx-stat-sub { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
  .mx-stat.accent { border-color: hsl(var(--blaze)); box-shadow: inset 0 2px 0 hsl(var(--blaze)); }
  .mx-stat.accent .mx-stat-value { color: hsl(var(--blaze)); }
  .mx-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); margin-bottom: 2px; }
  .mx-section-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin-bottom: 8px; }
  .mx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .mx-channel { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px; min-width: 0; }
  .mx-channel.mx-lead { border-color: hsl(var(--blaze)); }
  .mx-channel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .mx-channel-name { font-size: 12.5px; font-weight: 800; }
  .mx-channel-rate { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .mx-channel-meta { font-size: 11.5px; color: hsl(var(--muted-foreground)); margin: 4px 0 8px; }
  .mx-table tr.mx-winner td { background: hsl(var(--accent)); }
  .mx-table tr.mx-underpowered td { color: hsl(var(--muted-foreground)); }
  .mx-winner-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--blaze)); border: 1px solid hsl(var(--blaze)); border-radius: 999px; padding: 1px 8px; margin-left: 8px; white-space: nowrap; }
  .mx-status-pill { display: inline-flex; align-items: center; min-height: 20px; border-radius: 999px; border: 1px solid hsl(var(--border)); padding: 1px 8px; font-size: 10.5px; font-weight: 800; white-space: nowrap; color: hsl(var(--muted-foreground)); background: #fff; }
  .mx-status-pill.lead { border-color: hsl(var(--blaze)); color: hsl(var(--blaze)); }
  .mx-hint { font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-top: 6px; }
  .mx-num { font-family: var(--font-mono); }
  .mx-link { cursor: pointer; font-weight: 700; }
  .mx-link:hover { color: hsl(var(--blaze)); text-decoration: underline; }
  .mx-engagement-list { display: grid; gap: 8px; margin-top: 10px; min-width: 720px; }
  .mx-engagement-row { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; overflow: hidden; }
  .mx-engagement-row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(190px, 1.1fr) 118px 90px 90px 90px minmax(160px, .8fr) 104px; gap: 10px; align-items: center; padding: 10px 12px; }
  .mx-engagement-row summary::-webkit-details-marker { display: none; }
  .mx-engagement-row[open] summary { border-bottom: 1px solid hsl(var(--border)); background: #fafafa; }
  .mx-engagement-name { min-width: 0; }
  .mx-engagement-firm, .mx-engagement-latest { color: hsl(var(--muted-foreground)); font-size: 11.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mx-engagement-stat { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
  .mx-engagement-links { color: hsl(var(--muted-foreground)); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mx-engagement-action { justify-self: end; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 850; white-space: nowrap; background: #fff; }
  .mx-engagement-action.hot { border-color: hsl(var(--blaze)); color: hsl(var(--blaze)); }
  .mx-engagement-events { display: grid; gap: 1px; background: hsl(var(--border)); }
  .mx-engagement-event { display: grid; grid-template-columns: 128px 126px minmax(0, 1fr) 150px; gap: 10px; padding: 8px 12px; background: #fff; font-size: 12px; align-items: start; }
  .mx-engagement-head { display: grid; grid-template-columns: minmax(190px, 1.1fr) 118px 90px 90px 90px minmax(160px, .8fr) 104px; gap: 10px; padding: 0 12px 6px; color: hsl(var(--muted-foreground)); font-size: 10.5px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; min-width: 720px; }
  .mx-empty-state { padding: 38px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .mx-empty-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
  .mx-empty-sub { color: hsl(var(--muted-foreground)); font-size: 13px; max-width: 460px; }
  @media (max-width: 1100px) { .mx-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-cols { grid-template-columns: 1fr; } }
  @media (max-width: 760px) { .mx-hero { grid-template-columns: 1fr 1fr; } .mx-stat-value { font-size: 22px; } .mx-engagement-list, .mx-engagement-head { min-width: 0; } .mx-engagement-row summary, .mx-engagement-head, .mx-engagement-event { grid-template-columns: 1fr; } .mx-engagement-action { justify-self: start; } }
  .vp4-focus { padding: 18px; }
  .vp4-stage { display: inline-flex; align-items: center; min-height: 24px; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 780; background: #fff; color: hsl(var(--muted-foreground)); }
  .vp4-name { margin-top: 10px; font-size: 28px; line-height: 1.08; font-weight: 850; cursor: pointer; }
  .vp4-name:hover { text-decoration: underline; }
  .vp4-meta { margin-top: 6px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.45; }
  .vp4-step { margin-top: 14px; border-left: 3px solid hsl(var(--foreground)); background: #fafafa; border-radius: 6px; padding: 12px; font-size: 14px; line-height: 1.45; }
  .vp4-lead-eyebrow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .vp4-lead-main { display: grid; gap: 4px; }
  .vp4-next-card { margin-top: 13px; border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--foreground)); border-radius: 8px; background: #fff; padding: 11px; display: grid; gap: 10px; }
  .vp4-next-label { color: hsl(var(--muted-foreground)); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
  .vp4-next-text { margin-top: 3px; font-size: 14px; font-weight: 760; line-height: 1.35; }
  .vp4-log-row.compact { margin-top: 0; }
  .vp4-reason { margin-top: 10px; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.45; }
  .vp4-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; align-items: stretch; }
  .vp4-copy-box { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px; background: #fff; min-width: 0; display: flex; flex-direction: column; }
  .vp4-copy-title { font-size: 12px; font-weight: 820; margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .vp4-copy-preview { color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.35; min-height: 50px; white-space: pre-wrap; }
  .vp4-preview-toggle { margin-bottom: 8px; border: 1px solid hsl(var(--border)); border-radius: 7px; background: #fafafa; overflow: hidden; }
  .vp4-preview-toggle summary { min-height: 30px; padding: 0 9px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 850; color: hsl(var(--muted-foreground)); }
  .vp4-preview-toggle summary::-webkit-details-marker { display: none; }
  .vp4-preview-toggle summary::after { content: "Show"; margin-left: auto; font-size: 10px; font-weight: 850; color: hsl(var(--foreground)); }
  .vp4-preview-toggle[open] summary::after { content: "Hide"; }
  .vp4-preview-body { border-top: 1px solid hsl(var(--border)); padding: 9px; background: #fff; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.4; white-space: pre-wrap; }
  .vp4-reason-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fafafa; padding: 8px 10px; margin-bottom: 8px; }
  .vp4-reason-card select { width: 100%; min-height: 24px; border: 0; background: transparent; padding: 0 20px 0 0; font-size: 12px; font-weight: 800; color: hsl(var(--foreground)); outline: 0; cursor: pointer; }
  .vp4-reason-help { margin-top: 2px; font-size: 11px; line-height: 1.25; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lead-brief { margin-top: 12px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fafafa; overflow: hidden; }
  .lead-brief-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid hsl(var(--border)); background: #fff; }
  .lead-brief-title { font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .lead-brief-sub { color: hsl(var(--muted-foreground)); font-size: 11.5px; }
  .lead-brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: hsl(var(--border)); }
  .lead-brief-cell { padding: 10px 12px; background: #fafafa; min-width: 0; }
  .lead-brief-label { font-size: 10.5px; font-weight: 850; color: hsl(var(--muted-foreground)); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
  .lead-brief-text { font-size: 12.5px; line-height: 1.42; color: hsl(var(--foreground)); }
  .lead-brief-text ul { margin: 0; padding-left: 17px; }
  .lead-brief-text li + li { margin-top: 3px; }
  .lead-guard { color: #7c2d12; }
  .demo-prep-card { margin-top: 12px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; padding: 11px 12px; }
  .demo-prep-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .demo-prep-bit { font-size: 12.5px; line-height: 1.42; color: hsl(var(--muted-foreground)); }
  .demo-prep-bit b { color: hsl(var(--foreground)); }
  .vp4-sms-col { display: flex; flex-direction: column; min-width: 0; }
  .vp4-sms-col .vp4-copy-box { flex: 1; }
  .vp4-subject-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fafafa; padding: 8px 10px; margin-bottom: 8px; }
  .vp4-subject-lbl { font-size: 11px; font-weight: 800; color: hsl(var(--muted-foreground)); margin-bottom: 4px; }
  .vp4-subject-input { width: 100%; min-height: 24px; border: 1px solid hsl(var(--border)); border-radius: 6px; background: #fff; padding: 5px 8px; font-size: 12px; font-weight: 700; color: hsl(var(--foreground)); outline: 0; }
  .vp4-draft-text { width: 100%; min-height: 250px; flex: 1; resize: vertical; border: 1px solid hsl(var(--border)); border-radius: 7px; padding: 10px; font: 12px/1.45 var(--font-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); color: hsl(var(--foreground)); background: #fff; }
  .vp4-draft-text.sms { min-height: 118px; }
  .vp4-copy-box .vp4-card-actions { margin-top: 9px; }
  .vp4-log-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .vp4-primary-actions { display: flex; flex-wrap: wrap; gap: 7px; }
  .vp4-detail-menu { margin-top: 12px; border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; overflow: hidden; }
  .vp4-detail-menu summary { min-height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--foreground)); background: #fafafa; }
  .vp4-detail-menu summary::-webkit-details-marker { display: none; }
  .vp4-detail-menu summary::after { content: "▾"; margin-left: auto; font-size: 10px; opacity: .7; }
  .vp4-detail-menu[open] summary::after { content: "▴"; }
  .vp4-detail-body { padding: 12px; }
  .vp4-detail-body .lead-brief:first-child,
  .vp4-detail-body .vp4-copy-grid:first-child { margin-top: 0; }
  .vp4-ghost { border: 1px solid hsl(var(--border)); background: #fff; border-radius: 7px; min-height: 34px; padding: 0 11px; font-weight: 760; cursor: pointer; }
  .vp4-ghost:hover { background: #fafafa; }
  .vp4-ghost.vp4-sent { border-color: hsl(var(--blaze)); color: hsl(var(--blaze)); opacity: .8; cursor: default; }
  .vp4-ghost.vp4-sent:hover { background: #fff; }
  .vp4-sent-flag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--blaze)); font-weight: 800; }
  .vp4-primary { border-color: hsl(var(--foreground)); background: hsl(var(--foreground)); color: hsl(var(--background)); }
  .vp4-danger { border-color: #9ca3af; color: #4b5563; }
  .vp4-upnext { max-height: calc(100vh - 260px); overflow-y: auto; }
  .vp4-next-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 13px; border-top: 1px solid hsl(var(--border)); cursor: pointer; }
  .vp4-next-row.no-action { grid-template-columns: 34px minmax(0, 1fr); }
  .vp4-next-row:first-child { border-top: 0; }
  .vp4-next-row:hover, .vp4-next-row.selected { background: #fafafa; }
  .vp4-num { width: 30px; height: 30px; border: 1px solid hsl(var(--border)); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 820; background: #fff; }
  .vp4-row-score { display: grid; gap: 3px; justify-items: center; align-self: start; }
  .vp4-score-label { color: hsl(var(--muted-foreground)); font-size: 9px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
  .vp4-row-name { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp4-row-meta, .vp4-row-why { margin-top: 3px; color: hsl(var(--muted-foreground)); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp4-row-action { font-size: 12px; font-weight: 800; white-space: nowrap; }
  .vp4-pipeline-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 12px; overflow-x: auto; padding: 14px; min-height: calc(100vh - 240px); }
  .vp4-pipe-col { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fafafa; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 250px); }
  .vp4-pipe-head { padding: 11px 12px; border-bottom: 1px solid hsl(var(--border)); background: #fff; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .vp4-pipe-title { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
  .vp4-pipe-count { color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 800; }
  .vp4-pipe-list { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
  .vp4-pipe-card { border: 1px solid hsl(var(--border)); border-radius: 8px; background: #fff; padding: 10px; cursor: grab; }
  .ceo-target-card { cursor: default; }
  .vp4-pipe-card:active { cursor: grabbing; }
  .ceo-target-card:active { cursor: default; }
  .vp4-pipe-card.dragging { opacity: .55; border-style: dashed; }
  .vp4-pipe-card:hover { border-color: #c7c7c7; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
  .vp4-pipe-col.drop-ready { border-color: hsl(var(--foreground)); background: #f5f5f5; }
  .vp4-pipe-name { font-size: 13px; font-weight: 820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vp4-pipe-meta, .vp4-pipe-contact, .vp4-pipe-next { margin-top: 4px; color: hsl(var(--muted-foreground)); font-size: 11.5px; line-height: 1.35; }
  .vp4-pipe-next b { color: hsl(var(--foreground)); }
  .vp4-pipe-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .vp4-action-menu,
  .vp4-more {
    position: relative;
    display: inline-flex;
  }
  .vp4-action-menu summary,
  .vp4-more > summary {
    list-style: none;
  }
  .vp4-action-menu summary::-webkit-details-marker,
  .vp4-more > summary::-webkit-details-marker {
    display: none;
  }
  .vp4-action-menu summary::after,
  .vp4-more > summary::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
    color: currentColor;
    opacity: .7;
  }
  .vp4-action-menu[open] summary::after,
  .vp4-more[open] > summary::after {
    content: "▴";
  }
  .vp4-action-menu-panel,
  .vp4-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 35;
    min-width: 188px;
    padding: 7px;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px -28px rgba(15,23,42,.45);
    display: grid;
    gap: 5px;
  }
  .vp4-action-menu-panel .gtm-mini,
  .vp4-more-menu .btn {
    width: 100%;
    justify-content: flex-start;
  }
  .vp4-more-menu {
    min-width: 210px;
  }
  .vp4-more-admin summary {
    list-style: none;
    cursor: pointer;
  }
  .vp4-more-admin summary::-webkit-details-marker {
    display: none;
  }
  .vp4-more-admin summary::after {
    content: "▾";
    margin-left: auto;
    font-size: 10px;
    opacity: .7;
  }
  .vp4-more-admin[open] summary::after {
    content: "▴";
  }
  .vp4-more-admin-menu {
    display: grid;
    gap: 5px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid hsl(var(--border));
  }
  .vp4-pipe-actions .vp4-action-menu[open] {
    display: grid;
    flex-basis: 100%;
  }
  .vp4-pipe-actions .vp4-action-menu-panel {
    position: static;
    min-width: 100%;
    margin-top: 5px;
    box-shadow: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #f8fafc;
  }
  .vp4-pipe-actions .vp4-action-menu-panel .gtm-mini {
    min-height: 29px;
    justify-content: center;
    background: #fff;
  }
  .vp4-empty { padding: 14px; color: hsl(var(--muted-foreground)); font-size: 12.5px; line-height: 1.45; }
  @media (max-width: 1100px) { .vp4-work, .vp4-top { grid-template-columns: 1fr; } .vp4-actions { justify-content: flex-start; } .vp4-copy-grid, .lead-brief-grid, .demo-prep-row { grid-template-columns: 1fr; } }


  /* ============================================================
     Surveyor console — VP cockpit theme layer.
     Appended last so it overrides the base rules at equal
     specificity without editing them. One accent (blaze) marks
     only next-action things: focus panel, active row, send buttons.
     ============================================================ */
  /* Type: condensed signage display for titles, mono for every figure */
  .vp4-title { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: .015em; text-transform: uppercase; }
  .vp4-kicker { font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--blaze)); }
  .vp4-panel-title, .dash-panel-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; text-transform: uppercase; letter-spacing: .04em; }
  .metric-value, .dash-stat-value, .mx-chip-val, .mx-row-num, .lead-stat-value, .vp4-num,
  .vp4-pipe-count, .pipeline-bucket-count, .brain-navitem .nav-num { font-family: var(--font-mono); }
  .vp4-stage, .lead-stage { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
  .mx-brief .dash-panel-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

  /* Command rail: RealPact navy sidebar, white logo tile top-left */
  .brain-sidebar { background: hsl(var(--brand)); border-right: none; color: #dde3fb; }
  .brain-sidebar .brain-brand { color: #ffffff; font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .brain-sidebar .brain-mark { width: 30px; height: 30px; border-radius: 7px; background: #fff; object-fit: contain; padding: 2px; display: block; }
  .brain-sidebar .brain-navitem { color: #c3ccf4; }
  .brain-sidebar .brain-navitem:hover { background: rgba(255,255,255,.09); color: #ffffff; }
  .brain-sidebar .brain-navitem.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 2px 0 0 hsl(var(--blaze)); }
  .brain-sidebar .brain-navitem.muted { color: #97a3e0; }
  .brain-sidebar .brain-navlbl { color: #8290d6; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }

  /* Blaze marks: the focus panel and the active queue row */
  .vp4-work > .vp4-panel:first-child { border-left: 4px solid hsl(var(--blaze)); }
  .vp4-next-row.selected { box-shadow: inset 3px 0 0 hsl(var(--blaze)); background: hsl(var(--accent)); }

  /* The two buttons you live on: Send Email / Send SMS in blaze */
  .vp4-ghost.vp4-primary { background: hsl(var(--blaze)); border-color: hsl(var(--blaze)); color: #fff; font-weight: 750; }
  .vp4-ghost.vp4-primary:hover { background: hsl(18 85% 46%); }

  /* Quiet supporting recolors */
  .btn-primary { background: hsl(var(--brand)); border-color: hsl(var(--brand)); }
  .btn-primary:hover { background: hsl(var(--brand-deep)); }
  .vp3-tab.active { background: hsl(var(--brand)); border-color: hsl(var(--brand)); color: #fff; }
  .mx-bar { background: hsl(var(--blaze)); }
  .sequence-pill.active { border-color: hsl(var(--blaze)); color: hsl(var(--blaze)); box-shadow: inset 0 0 0 1px hsl(var(--blaze)); }
  .helper-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; }
  .helper-dot.on { background: #4ade80; }
  .helper-dot.off { background: hsl(var(--blaze)); animation: helperPulse 1.6s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) { .helper-dot.off { animation: none; } }
  @keyframes helperPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

  /* ---- Minimal Glass Operator Console: final product direction ---- */
  body.vp-dashboard .board-view,
  body.vp-dashboard .vp4-main {
    background:
      linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.98)),
      radial-gradient(circle at 18% 12%, rgba(3,29,140,.08), transparent 34%);
  }
  body.vp-dashboard #homeView { background: transparent; }
  body.vp-dashboard .brain-shell { background: transparent; }
  body.vp-dashboard .vp4-main {
    padding-top: calc(28px * var(--vp-density));
  }
  .vp4-shell {
    max-width: var(--vp-shell-max);
    width: 100%;
  }
  .vp4-top {
    align-items: start;
    margin-bottom: calc(16px * var(--vp-density));
    padding: calc(18px * var(--vp-density));
    border: 1px solid hsl(var(--glass-border));
    border-radius: 12px;
    background: hsl(var(--glass));
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--shadow-soft);
  }
  .vp4-title { font-size: calc(28px * var(--vp-density)); letter-spacing: .02em; }
  .vp4-desc { max-width: 820px; color: hsl(229 16% 37%); }
  .vp4-statusbar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
  }
  .vp4-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: rgba(255,255,255,.66);
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    font-weight: 720;
    white-space: nowrap;
  }
  .vp4-status-pill strong { color: hsl(var(--foreground)); font-weight: 820; }
  .vp4-top .vp4-actions {
    justify-content: flex-end;
    max-width: 680px;
  }
  .vp4-top .btn {
    height: 32px;
    border-radius: 999px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 1px 0 rgba(255,255,255,.5) inset;
  }
  .vp4-top .btn-primary {
    background: hsl(var(--brand));
    border-color: hsl(var(--brand));
    color: #fff;
  }
  .vp4-filter {
    position: sticky;
    top: 12px;
    z-index: 12;
    border-color: hsl(var(--glass-border));
    border-radius: 12px;
    background: hsl(var(--glass-strong));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--shadow-tight);
  }
  .vp4-filter .select,
  .vp4-search-input,
  .vp4-subject-input,
  .vp4-draft-text,
  .pricing-field input,
  .ck-builder .input,
  .ck-builder .select,
  .gate-card .input,
  .vp-card .input {
    background: rgba(255,255,255,.86);
  }
  .vp4-filter {
    row-gap: calc(9px * var(--vp-density));
  }
  .vp4-filter label {
    color: hsl(var(--brand));
  }
  .vp4-work { grid-template-columns: minmax(560px, 1.18fr) minmax(380px, .82fr); gap: calc(16px * var(--vp-density)); }
  .vp4-panel,
  .dash-panel,
  .focus-card,
  .firm-card,
  .operating-card,
  .target-table,
  .pricing-panel,
  .lead-brief,
  .vp4-copy-box,
  .vp4-pipe-col,
  .vp4-pipe-card,
  .ck-builder,
  .ck-map,
  .ck-map-card,
  .gtm-panel,
  .gate-card,
  .vp-card,
  .board-view .goal-summary,
  .board-view .goal-row {
    border-color: hsl(var(--glass-border));
    border-radius: 12px;
    background: hsl(var(--glass-strong));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: var(--shadow-tight);
  }
  .vp4-panel-head,
  .dash-panel-head,
  .lead-brief-head,
  .vp4-pipe-head,
  .today-head,
  .gtm-phead,
  .board-head {
    background: rgba(255,255,255,.58);
  }
  .dash-panel {
    margin-bottom: 16px;
  }
  .dash-panel-title,
  .vp4-panel-title,
  .vp4-pipe-title,
  .ck-map-t,
  .gtm-title,
  .board-title {
    color: hsl(var(--brand));
  }
  .dash-panel-sub,
  .vp4-panel-sub {
    color: hsl(229 15% 39%);
  }
  .vp4-work > .vp4-panel:first-child {
    position: sticky;
    top: 86px;
    border-left: 0;
    box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-soft);
  }
  .vp4-focus { padding: 18px 18px 20px; }
  .vp4-focus .lead-block {
    margin-top: 14px;
  }
  .vp4-lead-main {
    padding-bottom: 12px;
    border-bottom: 1px solid hsl(var(--border));
  }
  .vp4-stage {
    background: rgba(255,255,255,.78);
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
  }
  .vp4-name { max-width: 880px; }
  .vp4-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
  }
  .vp4-signal {
    min-width: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255,255,255,.7);
  }
  .vp4-signal-label {
    color: hsl(var(--muted-foreground));
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .vp4-signal-value {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 820;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp4-signal.accent {
    border-color: hsl(var(--blaze) / .5);
    background: hsl(var(--blaze) / .08);
  }
  .vp4-signal.accent .vp4-signal-value { color: hsl(var(--blaze)); }
  .vp4-step {
    border-left-color: hsl(var(--blaze));
    background: rgba(255,247,237,.74);
  }
  .vp4-next-card {
    border-left-color: hsl(var(--blaze));
    background: rgba(255,247,237,.62);
  }
  .vp4-reason {
    padding: 10px 11px;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: rgba(255,255,255,.58);
  }
  .vp4-copy-title {
    color: hsl(var(--brand));
  }
  .vp4-copy-box .vp4-card-actions {
    align-items: stretch;
  }
  .vp4-copy-box .vp4-card-actions .vp4-ghost {
    flex: 1 1 auto;
  }
  .mx-brief {
    border-left: 0;
    box-shadow: inset 0 3px 0 hsl(var(--brand)), var(--shadow-tight);
  }
  .mx-brief .dash-panel-head {
    align-items: flex-start;
  }
  .mx-brief > .dash-stat-label,
  .mx-brief .mx-chips,
  .mx-brief .mx-brief-line {
    margin-left: 14px;
    margin-right: 14px;
  }
  .mx-brief .mx-chips {
    display: grid;
    grid-template-columns: repeat(6, minmax(92px, 1fr));
    gap: 8px;
  }
  .mx-brief .mx-chip {
    min-width: 0;
    text-align: left;
    border-radius: 10px;
    padding: 9px 10px;
  }
  .mx-brief .mx-chip-val {
    font-family: var(--font-mono);
    font-size: 21px;
  }
  .mx-brief-line:last-child {
    margin-bottom: 14px;
  }
  .vp4-next-row:hover,
  .vp4-next-row.selected,
  .target-row:hover,
  .pipeline-person:hover {
    background: rgba(255,255,255,.68);
  }
  .vp4-next-row.selected {
    box-shadow: inset 3px 0 0 hsl(var(--blaze));
  }
  .vp4-num {
    border-radius: 10px;
    background: rgba(255,255,255,.8);
  }
  .vp4-next-row {
    min-height: 72px;
  }
  .vp4-row-name {
    color: hsl(var(--foreground));
  }
  .vp4-row-action {
    display: flex;
    justify-content: flex-end;
    min-width: 118px;
  }
  .vp4-row-action .vp4-stage {
    max-width: 140px;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp4-upnext {
    scrollbar-color: hsl(var(--brand) / .32) transparent;
  }
  .console-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid hsl(var(--border));
    background: rgba(255,255,255,.36);
  }
  .console-summary.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .console-stat {
    min-width: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255,255,255,.68);
  }
  .console-stat.accent {
    border-color: hsl(var(--blaze) / .46);
    background: hsl(var(--blaze) / .08);
  }
  .console-stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .console-stat-value {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console-stat-sub {
    margin-top: 5px;
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console-stat.accent .console-stat-value { color: hsl(var(--blaze)); }
  .console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 14px;
    padding: 14px;
  }
  .console-card {
    min-width: 0;
    border: 1px solid hsl(var(--glass-border));
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,.68);
  }
  .console-card-title {
    color: hsl(var(--brand));
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 780;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .console-card-sub {
    margin-top: 4px;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    line-height: 1.4;
  }
  .operator-panel {
    border-color: hsl(var(--brand) / .28);
  }
  .operator-panel .console-card:first-child {
    border-left: 3px solid hsl(var(--brand));
  }
  .operator-panel .vp4-pipeline-stat:first-child .vp4-pipeline-value {
    color: hsl(var(--brand));
  }
  .vp4-panel .console-card:nth-child(1),
  .vp4-panel .console-card:nth-child(2) {
    border-left: 3px solid hsl(var(--blaze));
  }
  .console-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }
  .console-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(255,255,255,.7);
  }
  .console-row-name {
    min-width: 0;
    color: hsl(var(--foreground));
    font-size: 13px;
    font-weight: 780;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console-row-meta {
    margin-top: 3px;
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    line-height: 1.35;
  }
  .console-row-value {
    color: hsl(var(--brand));
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .arr-progress-card {
    box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-tight);
  }
  .arr-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(203,213,225,.75);
    overflow: hidden;
    margin: 11px 0 7px;
  }
  .arr-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: hsl(var(--blaze));
  }
  .arr-goal-line {
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    line-height: 1.45;
  }
  .market-panel {
    box-shadow: inset 0 3px 0 hsl(var(--brand)), var(--shadow-tight);
  }
  .ck-map {
    margin: 0;
    background: rgba(255,255,255,.52);
  }
  .ck-map-head {
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255,255,255,.68);
    color: hsl(229 15% 39%);
  }
  .ck-map-card {
    background: rgba(255,255,255,.68);
  }
  .ck-map-row {
    align-items: flex-start;
  }
  .ck-map-val {
    white-space: normal;
  }
  .segment-builder-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .segment-builder-title {
    color: hsl(var(--brand));
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 780;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .segment-builder-sub {
    margin-top: 3px;
    color: hsl(var(--muted-foreground));
    font-size: 12px;
    line-height: 1.4;
  }
  .ck-builder {
    padding: 14px;
    margin-bottom: 14px;
  }
  .ck-builder-row {
    align-items: flex-end;
  }
  .ck-field,
  .ck-chk,
  .pricing-field,
  .pricing-check {
    color: hsl(229 15% 39%);
  }
  .pricing-panel {
    margin: 0;
    padding: 14px;
  }
  .pricing-result {
    border-top-color: hsl(var(--border));
    border-radius: 10px;
    padding: 12px;
    background: rgba(248,250,252,.78);
  }
  .pricing-monthly {
    color: hsl(var(--brand));
    font-family: var(--font-mono);
  }
  .pricing-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .pricing-note {
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(255,255,255,.68);
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    line-height: 1.35;
  }
  .pricing-note b { color: hsl(var(--foreground)); }
  .data-health-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(255,255,255,.36);
    border-bottom: 1px solid hsl(var(--border));
  }
  .data-health-note {
    background: rgba(255,255,255,.68);
    border-color: hsl(var(--glass-border));
    border-radius: 12px;
  }
  .gtm-panel {
    background: hsl(var(--glass-strong));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
  .gtm-summary {
    background: rgba(255,255,255,.34);
  }
  .gtm-prow {
    margin: 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255,255,255,.54);
  }
  .gtm-prow:hover {
    border-color: hsl(var(--glass-border));
    background: rgba(255,255,255,.78);
  }
  .gtm-sec-h,
  .deals-head {
    color: hsl(var(--brand));
  }
  .gtm-toast {
    border: 1px solid hsl(var(--glass-border));
    background: hsl(var(--brand));
    box-shadow: var(--shadow-soft);
  }
  .gate {
    background:
      linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.98)),
      radial-gradient(circle at 18% 12%, rgba(3,29,140,.08), transparent 34%);
  }
  .gate-card,
  .vp-card {
    border-radius: 14px;
  }
  .gate-card h1,
  .vp-card h2 {
    color: hsl(var(--brand));
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  body.vp-goal .board-view {
    background:
      linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.98)),
      radial-gradient(circle at 18% 12%, rgba(3,29,140,.08), transparent 34%);
  }
  .goal-summary {
    margin: 14px;
    border: 1px solid hsl(var(--glass-border));
  }
  .goal-num {
    color: hsl(var(--brand));
    font-family: var(--font-mono);
  }
  .goal-bar span {
    background: hsl(var(--blaze));
  }
  .goal-row {
    margin-bottom: 8px;
    max-width: none;
  }
  .goal-row.won {
    background: hsl(var(--blaze) / .08);
  }
  .goal-firm {
    color: hsl(var(--foreground));
  }
  .vp4-pipeline-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid hsl(var(--border));
    background: rgba(255,255,255,.36);
  }
  .vp4-pipeline-stat {
    min-width: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255,255,255,.68);
  }
  .vp4-pipeline-label {
    color: hsl(var(--muted-foreground));
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .vp4-pipeline-value {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
  }
  .vp4-pipeline-sub {
    margin-top: 5px;
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp4-pipe-col {
    border-radius: 12px;
    background: rgba(255,255,255,.54);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-tight);
  }
  .vp4-pipeline-board {
    min-height: calc(100vh - 285px);
    padding: 14px 14px 18px;
    scrollbar-color: hsl(var(--brand) / .35) transparent;
  }
  .vp4-pipe-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 54px;
  }
  .vp4-pipe-count {
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(255,255,255,.72);
  }
  .vp4-pipe-card {
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
  }
  .vp4-pipe-col.needs { box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-tight); }
  .vp4-pipe-col.waiting { box-shadow: inset 0 3px 0 #2563eb, var(--shadow-tight); }
  .vp4-pipe-col.qual,
  .vp4-pipe-col.ready,
  .vp4-pipe-col.held { box-shadow: inset 0 3px 0 #7c3aed, var(--shadow-tight); }
  .vp4-pipe-col.won { box-shadow: inset 0 3px 0 #16a34a, var(--shadow-tight); }
  .vp4-pipe-col.dead { box-shadow: inset 0 3px 0 #94a3b8, var(--shadow-tight); }
  .vp4-pipe-card:hover {
    border-color: hsl(var(--blaze) / .45);
    box-shadow: 0 14px 32px -26px rgba(3,29,140,.44);
    transform: translateY(-1px);
  }
  .vp4-pipe-name {
    color: hsl(var(--foreground));
  }
  .vp4-pipe-next {
    padding: 8px 9px;
    border-radius: 9px;
    background: rgba(248,250,252,.82);
  }
  .vp4-pipe-actions {
    align-items: stretch;
  }
  .vp4-pipe-actions .gtm-mini,
  .vp4-card-actions .gtm-mini {
    background: rgba(255,255,255,.72);
  }
  .live-panel {
    box-shadow: inset 0 3px 0 hsl(var(--brand)), var(--shadow-tight);
  }
  .live-panel.is-confirmed {
    box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-soft);
  }
  .live-age { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: hsl(var(--muted-foreground)); background: #fff; white-space: nowrap; }
  .live-age.stale { border-color: hsl(var(--blaze)); color: hsl(var(--blaze)); background: hsl(var(--blaze) / 0.06); }
  #offlineBanner { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: hsl(var(--blaze)); color: #fff; font-size: 12.5px; font-weight: 750; line-height: 1.4; padding: 8px 16px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
  /* ===== Growth OS (gos-) — accounts, seats, activation, revenue ===== */
  .gos-mission { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 14px; align-items: stretch; margin-bottom: 14px; }
  .gos-big { border: 1px solid hsl(var(--blaze)); border-radius: 10px; padding: 16px; background: #fff; box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-tight); display: grid; gap: 4px; align-content: start; }
  .gos-big-value { font-family: var(--font-mono); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: hsl(var(--blaze)); line-height: 1; }
  .gos-big-label { font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .gos-progress { height: 10px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; margin-top: 8px; }
  .gos-progress > div { height: 100%; background: hsl(var(--blaze)); border-radius: 999px; min-width: 2px; }
  .gos-big-sub { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
  .gos-ledger { border: 1px solid hsl(var(--border)); border-radius: 10px; background: #fff; padding: 12px 14px; }
  .gos-ledger-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
  .gos-ledger-cell { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 8px; text-align: center; }
  .gos-ledger-cell b { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
  .gos-ledger-cell span { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
  .gos-ledger-cell.hot { border-color: hsl(var(--blaze)); }
  .gos-ledger-cell.hot b { color: hsl(var(--blaze)); }
  .gos-sprint-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--blaze)); border-radius: 10px; background: #fff; padding: 10px 13px; margin-bottom: 8px; }
  .gos-seat-name { font-weight: 850; font-size: 14px; }
  .gos-seat-meta { color: hsl(var(--muted-foreground)); font-size: 11.5px; margin-top: 2px; }
  .gos-seat-meta a { color: hsl(var(--blaze)); font-family: var(--font-mono); font-weight: 600; text-decoration: none; }
  .gos-chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .gos-chip { border: 1px solid hsl(var(--border)); border-radius: 999px; background: #fff; font-size: 10.5px; font-weight: 750; padding: 3px 9px; cursor: pointer; color: hsl(var(--muted-foreground)); }
  .gos-chip.on { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
  .gos-chip.conv.on { border-color: hsl(var(--brand)); background: hsl(var(--brand) / 0.06); color: hsl(var(--brand)); }
  .gos-account { border: 1px solid hsl(var(--border)); border-radius: 12px; background: #fff; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow-tight); }
  .gos-account-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .gos-account-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
  .gos-account-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); }
  .gos-billing { font-weight: 700; }
  .gos-billing.soon { color: hsl(var(--blaze)); }
  .gos-seat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 10px; align-items: center; border-top: 1px solid hsl(var(--border)); padding: 9px 0; }
  .gos-seat-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .gos-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
  .gos-form .input { height: 32px; max-width: 210px; font-size: 12.5px; }
  .gos-paid { color: #15803d; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
  .gos-trial { color: hsl(var(--muted-foreground)); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
  .gos-session { border: 1px solid hsl(var(--blaze)); border-radius: 12px; background: #fff; padding: 16px; margin-bottom: 14px; box-shadow: inset 0 3px 0 hsl(var(--blaze)), var(--shadow-soft); }
  .gos-session ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 5px; font-size: 13px; line-height: 1.4; }
  .gos-referral { border: 1px dashed hsl(var(--border)); border-radius: 8px; background: #fafbfe; padding: 9px 12px; font-size: 12.5px; margin-top: 8px; }
  @media (max-width: 1000px) { .gos-mission { grid-template-columns: 1fr; } .gos-ledger-grid { grid-template-columns: repeat(3, 1fr); } .gos-sprint-row, .gos-seat { grid-template-columns: 1fr; } .gos-seat-actions { justify-content: flex-start; } }
  .live-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid hsl(var(--border));
    background: rgba(255,255,255,.38);
  }
  .live-stat {
    min-width: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    padding: 10px 11px;
    background: rgba(255,255,255,.68);
  }
  .live-stat-label {
    color: hsl(var(--muted-foreground));
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .live-stat-value {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
  }
  .live-stat-sub {
    margin-top: 5px;
    color: hsl(var(--muted-foreground));
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .live-list {
    max-height: none;
  }
  .live-row {
    grid-template-columns: 42px minmax(0, 1fr) minmax(190px, auto);
  }
  .live-row .vp4-num {
    color: hsl(var(--brand));
  }
  .live-row.is-confirmed .vp4-num {
    color: hsl(var(--blaze));
    border-color: hsl(var(--blaze) / .35);
    background: hsl(var(--blaze) / .08);
  }
  .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(255,255,255,.74);
    color: hsl(var(--muted-foreground));
    font-size: 10.5px;
    font-weight: 850;
    white-space: nowrap;
  }
  .live-badge.confirmed {
    border-color: hsl(var(--blaze) / .42);
    background: hsl(var(--blaze) / .1);
    color: hsl(var(--blaze));
  }
  .live-badge.verify {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
  }
  .live-listing-line {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
  }
  .live-address {
    color: hsl(var(--foreground));
    font-weight: 780;
  }
  .lead-brief-grid {
    background: rgba(203,213,225,.72);
  }
  .lead-brief-cell,
  .demo-prep-card,
  .lead-block {
    border-color: hsl(var(--glass-border));
  }
  .mx-chip,
  .mx-stat,
  .dash-stat,
  .lead-brief-cell,
  .lead-block,
  .demo-prep-card,
  .vp4-subject-card,
  .vp4-reason-card {
    background: rgba(255,255,255,.68);
  }
  .demo-prep-card,
  .lead-block {
    background: rgba(255,255,255,.72);
  }
  .lead-brief-sub {
    min-width: 0;
    text-align: right;
  }
  .vp4-draft-text {
    min-height: 220px;
  }
  .vp4-draft-text.sms {
    min-height: 112px;
  }
  aside#side {
    background: hsl(var(--glass-strong));
    border-left-color: hsl(var(--glass-border));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: -18px 0 50px -42px rgba(3,29,140,.55);
  }
  body.vp #side h2 {
    color: hsl(var(--brand));
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.08;
  }
  body.vp #side .office {
    margin: 8px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid hsl(var(--border));
    color: hsl(229 15% 39%);
  }
  body.vp .office-tcv {
    margin: -4px 0 12px;
    padding: 9px 10px;
    border: 1px solid hsl(var(--glass-border));
    border-radius: 10px;
    background: rgba(255,255,255,.66);
    line-height: 1.4;
  }
  body.vp .stat .box,
  body.vp .deal,
  body.vp .row,
  body.vp .rel-rank-row {
    border-color: hsl(var(--glass-border));
  }
  body.vp .stat .box,
  body.vp .deal {
    border-radius: 10px;
    background: rgba(255,255,255,.66);
  }
  body.vp .stat {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.vp .stat .box .n {
    color: hsl(var(--brand));
    font-family: var(--font-mono);
    font-weight: 700;
  }
  body.vp .row {
    margin-bottom: 8px;
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(255,255,255,.58);
  }
  body.vp .row .k {
    font-weight: 720;
  }
  body.vp .rel-rank {
    border-top: 0;
    border: 1px solid hsl(var(--glass-border));
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,.62);
  }
  body.vp .rel-rank-row {
    border-radius: 9px;
    padding: 8px;
  }
  body.vp .rel-rank-row:hover {
    background: rgba(255,255,255,.72);
  }
  body.vp .gtm-tags {
    border: 1px solid hsl(var(--glass-border));
    border-radius: 12px;
    padding: 10px;
    background: rgba(255,255,255,.7);
  }
  body.vp .lead-stage,
  body.vp .gtm-mini,
  body.vp .gtm-btn,
  body.vp .badge {
    box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
  }
  body.vp .gtm-actionbar .gtm-mini,
  body.vp .gtm-row .gtm-btn {
    min-height: 28px;
  }
  body.vp .deals-head {
    color: hsl(var(--brand));
    font-family: var(--font-mono);
    letter-spacing: .1em;
  }
  .brain-sidebar {
    background:
      linear-gradient(180deg, hsl(var(--brand)), hsl(var(--brand-deep)));
    box-shadow: 18px 0 60px -44px rgba(3,29,140,.75);
  }
  .brain-sidebar .brain-navitem {
    border: 1px solid transparent;
    border-radius: 9px;
  }
  .brain-sidebar .brain-navitem.active {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.14);
    box-shadow: inset 2px 0 0 hsl(var(--blaze)), 0 10px 26px -22px rgba(0,0,0,.65);
  }
  @media (max-width: 1180px) {
    .vp4-work > .vp4-panel:first-child { position: static; }
    .vp4-statusbar { margin-bottom: 2px; }
    .mx-brief .mx-chips,
    .vp4-pipeline-summary,
    .live-summary,
    .console-summary,
    .console-summary.compact,
    .data-health-grid,
    .pricing-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .console-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 760px) {
    body.vp-rail .brain-rail { display: none; }
    body.vp-rail #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
    body.vp-rail.vp-dashboard #app { grid-template-rows: minmax(0, 1fr); }
    body.vp-rail .board-view { left: 0; }
    body.vp-rail.vp-graph header { grid-column: 1; }
    body.vp-rail #canvas { grid-column: 1; grid-row: 2; min-height: 52vh; }
    body.vp-rail #side { grid-column: 1; grid-row: 3; min-height: 0; max-height: none; }
    body.vp-dashboard .vp4-main { padding: 14px 12px 44px; }
    .vp4-top { padding: 14px; }
    .vp4-top .vp4-actions { max-width: none; justify-content: flex-start; }
    .vp4-work { grid-template-columns: minmax(0, 1fr); }
    .vp4-panel,
    .dash-panel,
    .vp4-top,
    .vp4-filter { min-width: 0; }
    .vp4-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vp4-filter { position: static; }
    .vp4-filter .select,
    .vp4-filter .grow,
    .vp4-filter .btn { flex: 1 1 100%; width: 100%; }
    .mx-brief .mx-chips,
    .vp4-pipeline-summary,
    .live-summary,
    .console-summary,
    .console-summary.compact,
    .data-health-grid,
    .pricing-notes { grid-template-columns: 1fr 1fr; }
    .live-row,
    .vp4-next-row { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
    .live-row .vp4-row-action,
    .vp4-next-row .vp4-row-action { grid-column: 2; justify-content: flex-start; min-width: 0; }
    .vp4-pipeline-board { grid-auto-columns: minmax(278px, 86vw); min-height: 58vh; }
    .vp4-pipe-col { max-height: none; }
    .vp4-name { font-size: 23px; }
    .vp4-status-pill { max-width: 100%; }
    .vp4-copy-grid { grid-template-columns: 1fr; }
    .ck-builder-row { align-items: stretch; }
    .ck-field,
    .ck-chk,
    .ck-name-in,
    .ck-builder .btn {
      width: 100%;
      flex: 1 1 100%;
    }
  }
  @media (max-width: 520px) {
    .mx-brief .mx-chips,
    .vp4-pipeline-summary,
    .live-summary,
    .vp4-signal-grid,
    .console-summary,
    .console-summary.compact,
    .data-health-grid,
    .pricing-notes { grid-template-columns: 1fr; }
    .vp4-top .btn { flex: 1 1 calc(50% - 8px); }
    .vp4-row-meta,
    .vp4-row-why { white-space: normal; }
  }

  /* ---- Workflow redesign pass: quieter, denser daily operating surface ---- */
  body.vp-dashboard .board-view,
  body.vp-dashboard .vp4-main,
  body.vp-goal .board-view,
  .gate {
    background: #f6f7f9;
  }
  body.vp-dashboard .vp4-main {
    padding: 24px clamp(18px, 3.6vw, 48px) 48px;
  }
  .vp4-shell {
    max-width: 1640px;
  }
  .vp-modal {
    align-items: flex-start;
    overflow-y: auto;
  }
  .vp-modal .vp-card {
    width: min(360px, 100%);
    margin: min(8vh, 64px) auto 24px;
  }
  .vp4-top {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, auto);
    align-items: start;
    gap: 16px 28px;
    padding: 0 0 16px;
    margin-bottom: 12px;
    border: 0;
    border-bottom: 1px solid #d8dde8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .vp4-kicker {
    color: hsl(var(--brand));
  }
  .vp4-title {
    max-width: 880px;
    font-size: 29px;
    line-height: 1.05;
    letter-spacing: .01em;
  }
  .vp4-desc {
    max-width: 760px;
    color: #485267;
  }
  .vp4-statusbar {
    gap: 6px;
    margin-top: 10px;
  }
  .vp4-status-pill {
    min-height: 26px;
    border-color: #d8dde8;
    background: #fff;
    color: #5b6578;
  }
  .vp4-top .vp4-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(74px, 1fr));
    gap: 6px;
    max-width: 560px;
    justify-self: end;
  }
  .vp4-top .btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp4-top .btn.btn-primary {
    background: hsl(var(--brand));
    border-color: hsl(var(--brand));
    color: #fff;
  }
  .vp4-top .btn svg {
    flex: none;
  }
  .vp4-filter {
    top: 8px;
    margin-bottom: 12px;
    padding: 8px;
    border-color: #d8dde8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px -22px rgba(15,23,42,.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .vp4-filter label {
    color: #5b6578;
  }
  .vp4-filter .select {
    min-width: 132px;
    height: 32px;
    border-radius: 7px;
  }
  .vp4-work {
    grid-template-columns: minmax(620px, 1.28fr) minmax(360px, .72fr);
    gap: 12px;
  }
  .vp4-panel,
  .dash-panel,
  .vp4-copy-box,
  .lead-brief,
  .demo-prep-card,
  .lead-block,
  .vp4-subject-card,
  .vp4-reason-card,
  .vp4-pipe-col,
  .vp4-pipe-card,
  .console-card,
  .console-stat,
  .mx-chip,
  .mx-stat,
  .dash-stat,
  .live-stat,
  .vp4-pipeline-stat {
    border-color: #d8dde8;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .vp4-panel {
    border-radius: 8px;
  }
  .vp4-panel-head,
  .dash-panel-head,
  .lead-brief-head,
  .vp4-pipe-head,
  .today-head,
  .gtm-phead,
  .board-head {
    background: #f9fafb;
  }
  .vp4-work > .vp4-panel:first-child {
    top: 68px;
    border-left: 1px solid #d8dde8;
    box-shadow: inset 0 3px 0 hsl(var(--blaze));
  }
  .vp4-panel-title,
  .dash-panel-title {
    font-size: 14px;
    letter-spacing: .035em;
  }
  .vp4-panel-sub,
  .dash-panel-sub {
    color: #5b6578;
  }
  .vp4-focus {
    padding: 16px;
  }
  .vp4-name {
    margin-top: 8px;
    font-size: 27px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .vp4-meta {
    color: #485267;
  }
  .vp4-signal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .vp4-signal {
    min-height: 72px;
    border-radius: 8px;
    background: #f9fafb;
  }
  .vp4-step {
    margin-top: 12px;
    border-radius: 8px;
    background: #fff7ed;
  }
  .vp4-reason {
    border-radius: 8px;
    background: #f9fafb;
  }
  .lead-brief {
    margin-top: 10px;
    border-radius: 8px;
  }
  .lead-brief-grid {
    background: #d8dde8;
  }
  .lead-brief-cell {
    background: #fff;
  }
  .vp4-copy-grid {
    grid-template-columns: minmax(360px, 1.2fr) minmax(300px, .8fr);
    gap: 10px;
  }
  .vp4-copy-box,
  .vp4-subject-card,
  .vp4-reason-card {
    border-radius: 8px;
  }
  .vp4-draft-text {
    min-height: 240px;
    border-color: #ccd3df;
    background: #fff;
  }
  .vp4-draft-text.sms {
    min-height: 132px;
  }
  .vp4-copy-box .vp4-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .vp4-ghost {
    min-height: 34px;
    border-radius: 7px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vp4-log-row {
    gap: 6px;
    padding-top: 2px;
  }
  .vp4-log-row .vp4-ghost {
    flex: 0 1 auto;
  }
  .vp4-upnext {
    max-height: calc(100vh - 266px);
  }
  .vp4-next-row {
    grid-template-columns: 38px minmax(0, 1fr) minmax(118px, auto);
    min-height: 70px;
    padding: 10px 12px;
  }
  .vp4-next-row:hover,
  .vp4-next-row.selected {
    background: #f9fafb;
  }
  .vp4-row-meta,
  .vp4-row-why {
    color: #667085;
  }
  .vp4-row-action .vp4-stage {
    width: 100%;
    max-width: 132px;
  }
  .vp4-stage {
    border-color: #d8dde8;
    background: #fff;
  }
  .vp4-num {
    border-color: #d8dde8;
    background: #fff;
  }
  .mx-brief .mx-chips {
    grid-template-columns: repeat(6, minmax(80px, 1fr));
  }
  .brain-sidebar {
    background: #101936;
    box-shadow: none;
  }
  @media (max-width: 1240px) {
    .vp4-top {
      grid-template-columns: 1fr;
    }
    .vp4-top .vp4-actions {
      justify-self: stretch;
      max-width: none;
      grid-template-columns: repeat(5, minmax(86px, 1fr));
    }
    .vp4-work {
      grid-template-columns: 1fr;
    }
    .vp4-work > .vp4-panel:first-child {
      position: static;
    }
    .vp4-upnext {
      max-height: none;
    }
  }
  @media (max-width: 760px) {
    body.vp-dashboard .vp4-main {
      padding: 14px 12px 40px;
    }
    .vp-modal {
      align-items: flex-start;
      overflow-y: auto;
      padding: 24px 14px;
    }
    .vp-modal .vp-card {
      width: min(360px, 100%);
      margin: 8vh auto 24px;
    }
    .vp-actions {
      flex-wrap: wrap;
    }
    .vp-actions .btn {
      min-width: 132px;
    }
    .vp4-top {
      padding-bottom: 12px;
    }
    .vp4-top .vp4-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vp4-filter {
      position: static;
    }
    .vp4-signal-grid,
    .vp4-copy-grid {
      grid-template-columns: 1fr;
    }
    .vp4-copy-box .vp4-card-actions {
      grid-template-columns: 1fr;
    }
    .vp4-next-row {
      grid-template-columns: 34px minmax(0, 1fr);
    }
    .vp4-next-row .vp4-row-action {
      grid-column: 2;
      justify-content: flex-start;
    }
    .vp4-row-action .vp4-stage {
      width: auto;
      max-width: 100%;
    }
    .mx-brief .mx-chips {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 420px) {
    .vp4-top .vp4-actions,
    .mx-brief .mx-chips {
      grid-template-columns: 1fr;
    }
  }

  /* ---- Simple operator mode: reduce visual weight and click-time paint cost ---- */
  body.vp-dashboard .board-view,
  body.vp-dashboard .vp4-main {
    background: #f7f8fb;
  }
  body.vp-dashboard .vp4-top,
  body.vp-dashboard .vp4-filter,
  body.vp-dashboard .vp4-panel,
  body.vp-dashboard .dash-panel,
  body.vp-dashboard .console-card,
  body.vp-dashboard .vp4-pipe-card,
  body.vp-dashboard .vp4-pipe-col,
  body.vp-dashboard .lead-brief,
  body.vp-dashboard .vp4-copy-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background: #fff;
  }
  body.vp-dashboard .vp4-main {
    padding: 22px clamp(18px, 2vw, 34px) 44px;
  }
  body.vp-dashboard .vp4-shell {
    width: 100%;
    max-width: none;
  }
  body.vp-dashboard .vp4-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  body.vp-dashboard .vp4-title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0;
  }
  body.vp-dashboard .vp4-desc,
  body.vp-dashboard .vp4-statusbar {
    display: none;
  }
  body.vp-dashboard .vp4-top .vp4-actions {
    display: flex;
    gap: 6px;
    max-width: none;
  }
  body.vp-dashboard .vp4-top .btn {
    height: 32px;
    border-radius: 7px;
    box-shadow: none;
  }
  body.vp-dashboard button,
  body.vp-dashboard .btn,
  body.vp-dashboard .gtm-mini,
  body.vp-dashboard .vp4-ghost,
  body.vp-dashboard .vp3-tab,
  body.vp-dashboard .vp4-next-row,
  body.vp-dashboard .console-row {
    transition: none;
    touch-action: manipulation;
  }
  body.vp-dashboard button:active,
  body.vp-dashboard .btn:active,
  body.vp-dashboard .gtm-mini:active,
  body.vp-dashboard .vp4-ghost:active,
  body.vp-dashboard .vp3-tab:active {
    transform: translateY(1px);
  }
  body.vp-dashboard .vp4-filter {
    position: static;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  body.vp-dashboard .vp4-filter label {
    display: none;
  }
  body.vp-dashboard .vp4-filter .select {
    min-width: 128px;
  }
  body.vp-dashboard .vp4-work {
    grid-template-columns: minmax(500px, .86fr) minmax(520px, 1.14fr);
    gap: 16px;
    align-items: stretch;
  }
  body.vp-dashboard .vp4-work > .vp4-panel:first-child {
    position: static;
    box-shadow: none;
    border-left: 3px solid hsl(var(--brand));
  }
  body.vp-dashboard .vp4-work > .vp4-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  body.vp-dashboard .vp4-panel,
  body.vp-dashboard .today-command-head {
    border-radius: 8px;
  }
  body.vp-dashboard .vp4-panel-head,
  body.vp-dashboard .today-command-title {
    padding: 11px 13px;
    background: #fff;
  }
  body.vp-dashboard .vp4-focus {
    padding: 14px;
  }
  body.vp-dashboard .vp4-name {
    font-size: 23px;
    letter-spacing: 0;
  }
  body.vp-dashboard .vp4-lead-main {
    padding-bottom: 10px;
  }
  body.vp-dashboard .vp4-next-card {
    margin-top: 10px;
    padding: 10px;
    border-radius: 7px;
    background: #fff7ed;
  }
  body.vp-dashboard .vp4-next-text {
    font-size: 13.5px;
  }
  body.vp-dashboard .vp4-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  body.vp-dashboard .vp4-signal {
    padding: 8px 9px;
    border-radius: 7px;
    background: #fafafa;
  }
  body.vp-dashboard .vp4-step {
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border-left-color: hsl(var(--brand));
  }
  body.vp-dashboard .vp4-log-row {
    margin-top: 10px;
  }
  body.vp-dashboard .vp4-detail-menu {
    margin-top: 10px;
  }
  body.vp-dashboard .vp4-detail-menu:not([open]) {
    border-color: transparent;
    background: transparent;
  }
  body.vp-dashboard .vp4-detail-menu:not([open]) summary {
    display: inline-flex;
    min-height: 30px;
    border: 1px solid hsl(var(--border));
    border-radius: 7px;
    background: #fff;
  }
  body.vp-dashboard .vp4-upnext {
    max-height: calc(100vh - 230px);
    flex: 1;
  }
  body.vp-dashboard .vp4-next-row {
    min-height: 62px;
    padding: 9px 10px;
  }
  body.vp-dashboard .vp4-row-score {
    gap: 2px;
  }
  body.vp-dashboard .vp4-score-label {
    display: none;
  }
  body.vp-dashboard .vp4-next-row.no-action {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  body.vp-dashboard .today-command {
    gap: 10px;
  }
  body.vp-dashboard .today-command-head.compact .today-command-title {
    border-bottom: 0;
  }
  body.vp-dashboard .today-command-sub {
    font-size: 12px;
  }
  body.vp-dashboard .today-command-actions .btn {
    height: 31px;
  }
  body.vp-dashboard .today-secondary .console-card {
    min-height: 0;
  }
  body.vp-dashboard .today-secondary .console-list {
    max-height: 160px;
  }
  body.vp-dashboard .vp3-tabs {
    padding: 8px 10px;
    gap: 5px;
  }
  body.vp-dashboard .vp3-tab {
    border-radius: 7px;
  }
  body.vp-dashboard .vp4-copy-grid {
    grid-template-columns: 1fr;
  }
  body.vp-dashboard .vp4-draft-text {
    min-height: 160px;
  }
  body.vp-dashboard .vp4-draft-text.sms {
    min-height: 90px;
  }
  @media (min-width: 1500px) {
    body.vp-dashboard .vp4-work {
      grid-template-columns: minmax(560px, 700px) minmax(620px, 1fr);
    }
    body.vp-dashboard .vp4-upnext {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      align-content: start;
      gap: 0 10px;
    }
    body.vp-dashboard .vp4-next-row {
      min-width: 0;
    }
    body.vp-dashboard .vp4-next-row:nth-child(-n + 3) {
      border-top: 0;
    }
    body.vp-dashboard .console-grid {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    body.vp-dashboard .vp4-pipeline-board {
      grid-auto-columns: minmax(300px, 330px);
    }
  }
  @media (min-width: 1900px) {
    body.vp-dashboard .vp4-work {
      grid-template-columns: minmax(580px, 720px) minmax(720px, 1fr);
    }
  }
  @media (max-width: 1100px) {
    body.vp-dashboard .vp4-top,
    body.vp-dashboard .vp4-work {
      grid-template-columns: 1fr;
    }
    body.vp-dashboard .vp4-top {
      display: grid;
    }
    body.vp-dashboard .vp4-upnext,
    body.vp-dashboard .console-grid {
      display: block;
    }
    body.vp-dashboard .vp4-upnext {
      max-height: none;
    }
  }
