/* ==========================================================================
   BugHex SalesHub — v2 design layer
   Solid surfaces, no gradients, one accent. Loaded after app.css; the new
   components use a `v-` namespace so no legacy rule can leak into them.
   ========================================================================== */

:root {
  --v-bg: #f3f3f0;
  --v-surface: #ffffff;
  --v-surface-2: #f8f8f6;
  --v-surface-3: #efefeb;
  --v-line: #e5e4df;
  --v-line-2: #d6d4ce;
  --v-ink: #121316;
  --v-ink-2: #4a4d55;
  --v-ink-3: #82858d;
  --v-ink-4: #a9abb1;

  --v-accent: #19E6E3;
  --v-accent-hover: #12cbc8;
  --v-accent-soft: #e6fcfb;
  --v-accent-line: #9eedeb;
  --v-accent-text: #06706e;

  --v-good: #0d7a52;
  --v-good-soft: #e6f4ed;
  --v-good-line: #bfe3d0;
  --v-warn: #9a5b00;
  --v-warn-soft: #fcf2e0;
  --v-warn-line: #f0d9ad;
  --v-bad: #b3261e;
  --v-bad-soft: #fcebe9;
  --v-bad-line: #f3c6c1;
  --v-info: #2447b8;
  --v-info-soft: #ebf0fd;
  --v-info-line: #c9d5f7;

  --v-r-sm: 8px;
  --v-r-md: 11px;
  --v-r-lg: 14px;
  --v-r-xl: 18px;

  --v-sh-1: 0 1px 2px rgba(18, 19, 22, .05);
  --v-sh-2: 0 1px 2px rgba(18, 19, 22, .04), 0 6px 18px rgba(18, 19, 22, .06);
  --v-sh-pop: 0 14px 40px rgba(18, 19, 22, .16), 0 2px 6px rgba(18, 19, 22, .06);

  --v-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --v-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 80px;
}

/* ---- Global overrides: flat canvas, no decorative background ------------- */
body.app-mode { background: var(--v-bg) !important; }
/* The animated sign-in background (drifting grid, soft glows, cursor spotlight) now runs
   behind every page; its canvas colour is matched to the app's. */
body.app-mode:not(.how-mode) .clean-pattern-bg { background-color: var(--v-bg); }
body.app-mode .app-main { max-width: none; padding: 0; margin: 0; }

.v-tabnum, .v-num { font-variant-numeric: tabular-nums; }

/* Accent buttons: matched to BugHex #19E6E3 palette with crisp dark ink contrast */
.btn-accent, .btn-primary-glow {
  background: var(--v-accent) !important;
  background-image: none !important;
  color: #061e1d !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 18px rgba(25, 230, 227, 0.35) !important;
}
.btn-accent:hover, .btn-primary-glow:hover {
  background: var(--v-accent-hover) !important;
  color: #031212 !important;
  box-shadow: 0 6px 24px rgba(25, 230, 227, 0.5) !important;
}
.btn-primary-glow svg, .btn-primary-glow .btn-arrow {
  stroke: #061e1d !important;
}

/* ==========================================================================
   Primitives
   ========================================================================== */
.v-page { max-width: 1240px; margin: 0 auto; padding: 22px 24px 56px; }
@media (max-width: 720px) { .v-page { padding: 16px 16px 44px; } }

.v-eyebrow {
  font: 700 11px/1 var(--v-font); letter-spacing: .09em; text-transform: uppercase;
  color: var(--v-ink-3);
}
.v-h1 { font: 750 28px/1.15 var(--v-font); letter-spacing: -.02em; color: var(--v-ink); margin: 0; }
.v-h2 { font: 700 15px/1.3 var(--v-font); color: var(--v-ink); margin: 0; letter-spacing: -.005em; }
.v-sub { font-size: 14px; color: var(--v-ink-2); line-height: 1.55; margin: 6px 0 0; }
.v-muted { color: var(--v-ink-3); }
.v-mono { font-family: var(--v-mono); font-size: 12px; }

.v-card {
  background: var(--v-surface);
  border: 1px solid var(--v-line);
  border-radius: var(--v-r-lg);
  box-shadow: var(--v-sh-1);
  min-width: 0;
}
.v-card-pad { padding: 18px; }
.v-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--v-line);
}
.v-card-head .v-h2 { display: flex; align-items: center; gap: 8px; }
.v-card-link {
  font-size: 12.5px; font-weight: 600; color: var(--v-ink-2); background: none; border: 0;
  cursor: pointer; padding: 4px 0; font-family: inherit;
}
.v-card-link:hover { color: var(--v-accent); }

/* Buttons */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  font: 650 13.5px/1 var(--v-font); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--v-line-2); background: var(--v-surface); color: var(--v-ink);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.v-btn:hover { background: var(--v-surface-2); border-color: #c8c6bf; }
.v-btn:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.v-btn[disabled] { opacity: .55; cursor: not-allowed; }
.v-btn-primary { background: var(--v-ink); border-color: var(--v-ink); color: #fff; }
.v-btn-primary:hover { background: #2a2c31; border-color: #2a2c31; }
.v-btn-accent { background: var(--v-accent); border-color: var(--v-accent); color: #121316; font-weight: 700; }
.v-btn-accent:hover { background: var(--v-accent-hover); border-color: var(--v-accent-hover); color: #121316; }
.v-btn-quiet { background: transparent; border-color: transparent; color: var(--v-ink-2); }
.v-btn-quiet:hover { background: var(--v-surface-3); border-color: transparent; color: var(--v-ink); }
.v-btn-danger { color: var(--v-bad); }
.v-btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.v-btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }
.v-btn-block { width: 100%; }
.v-btn svg { flex: none; }
@media (pointer: coarse) { .v-btn { min-height: 44px; } .v-btn-sm { min-height: 40px; } }

.v-spin {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: v-spin .7s linear infinite;
}
@keyframes v-spin { to { transform: rotate(360deg); } }

/* Badges */
.v-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font: 650 11.5px/1 var(--v-font); white-space: nowrap;
  border: 1px solid var(--v-line); background: var(--v-surface-2); color: var(--v-ink-2);
}
.v-badge-good { background: var(--v-good-soft); border-color: var(--v-good-line); color: var(--v-good); }
.v-badge-neutral { background: var(--v-warn-soft); border-color: var(--v-warn-line); color: var(--v-warn); }
.v-badge-bad { background: var(--v-bad-soft); border-color: var(--v-bad-line); color: var(--v-bad); }
.v-badge-info { background: var(--v-info-soft); border-color: var(--v-info-line); color: var(--v-info); }
.v-badge-accent { background: var(--v-accent-soft); border-color: var(--v-accent-line); color: var(--v-accent-text); font-weight: 700; }
.v-badge-dark { background: var(--v-ink); border-color: var(--v-ink); color: #fff; }
.v-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Avatar: solid tint, hue picked from the company name. */
.v-av {
  --h: 20;
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font: 750 13px/1 var(--v-font); letter-spacing: .02em;
  background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 32%);
}
.v-av-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 17px; }

/* Score ring: a single SVG stroke, never a gradient. */
.v-ring { position: relative; width: 58px; height: 58px; flex: none; }
.v-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v-ring circle { fill: none; stroke-width: 6; }
.v-ring .track { stroke: var(--v-surface-3); }
.v-ring .val { stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.v-ring.good .val { stroke: var(--v-good); }
.v-ring.neutral .val { stroke: #d08a1a; }
.v-ring.bad .val { stroke: var(--v-bad); }
.v-ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 750 17px/1 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums;
}
.v-ring-lg { width: 84px; height: 84px; }
.v-ring-lg .v-ring-num { font-size: 24px; }
.v-ring-sm { width: 40px; height: 40px; }
.v-ring-sm circle { stroke-width: 5; }
.v-ring-sm .v-ring-num { font-size: 12.5px; }

/* Segmented control */
.v-seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px;
  background: var(--v-surface-3); border: 1px solid var(--v-line);
}
.v-seg button {
  height: 28px; padding: 0 12px; border: 0; border-radius: 7px; cursor: pointer;
  font: 650 12.5px/1 var(--v-font); color: var(--v-ink-2); background: transparent; white-space: nowrap;
}
.v-seg button[aria-pressed="true"] { background: var(--v-surface); color: var(--v-ink); box-shadow: var(--v-sh-1); }
.v-seg button:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 1px; }

/* Empty / error / loading */
.v-empty { padding: 40px 20px; text-align: center; }
.v-empty-t { font-weight: 700; color: var(--v-ink); }
.v-empty-d { font-size: 13.5px; color: var(--v-ink-3); margin: 6px auto 14px; max-width: 42ch; line-height: 1.55; }
.v-sk { background: var(--v-surface-3); border-radius: 8px; animation: v-pulse 1.3s ease-in-out infinite; }
@keyframes v-pulse { 50% { opacity: .55; } }
.v-inline-err { color: var(--v-bad); font-size: 13px; line-height: 1.45; }
.v-inline-err:empty { display: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.v-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.v-home-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.v-next-run {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px;
  border-radius: 10px; background: var(--v-surface); border: 1px solid var(--v-line);
  font-size: 12.5px; color: var(--v-ink-2); white-space: nowrap;
}
.v-next-run strong { color: var(--v-ink); font-weight: 650; }
.v-live { width: 7px; height: 7px; border-radius: 50%; background: var(--v-good); box-shadow: 0 0 0 3px var(--v-good-soft); }

.v-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 980px) { .v-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v-kpi {
  text-align: left; padding: 16px 18px; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .12s ease;
}
.v-kpi:hover { border-color: var(--v-line-2); }
.v-kpi:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.v-kpi-l { font-size: 12.5px; font-weight: 600; color: var(--v-ink-3); display: flex; align-items: center; gap: 6px; }
.v-kpi-v { font: 760 32px/1 var(--v-font); letter-spacing: -.02em; color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-kpi-s { font-size: 12.5px; color: var(--v-ink-3); }
.v-kpi.alert .v-kpi-v { color: var(--v-bad); }
.v-kpi.alert { border-color: var(--v-bad-line); }

/* Pipeline bar */
.v-pipe { margin-top: 12px; padding: 16px 18px; }
.v-pipe-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.v-pipe-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--v-surface-3); gap: 2px; }
.v-pipe-seg { min-width: 3px; height: 100%; }
.v-pipe-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.v-pipe-key {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--v-ink-2);
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.v-pipe-key strong { color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-pipe-key i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.c-new { background: #9aa0aa; } .c-sent { background: var(--v-info); }
.c-due { background: var(--v-bad); } .c-done { background: var(--v-good); }

.v-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 980px) { .v-home-grid { grid-template-columns: minmax(0, 1fr); } }
.v-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.v-mini-list { display: flex; flex-direction: column; }
.v-mini {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--v-line); text-align: left;
  cursor: pointer; font-family: inherit; color: inherit; min-width: 0;
}
.v-mini:last-child { border-bottom: 0; }
.v-mini:hover { background: var(--v-surface-2); }
.v-mini:focus-visible { outline: 2px solid var(--v-accent); outline-offset: -2px; }
.v-mini-main { flex: 1; min-width: 0; }
.v-mini-t { font-weight: 650; font-size: 13.5px; color: var(--v-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-mini-s { font-size: 12.5px; color: var(--v-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.v-mini-r { display: flex; align-items: center; gap: 8px; flex: none; }

.v-quota { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.v-quota-v { font: 760 26px/1 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   LEADS WORKSPACE
   A fixed-height two-pane layout: the list and the detail each scroll on
   their own, so reaching the next lead never means scrolling the whole page.
   ========================================================================== */
.v-ws {
  max-width: 1440px; margin: 0 auto; padding: 16px 20px 0;
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 960px) {
  .v-ws { height: calc(100dvh - var(--nav-h)); }
}

.v-ws-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v-ws-title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.v-ws-count { font-size: 13px; color: var(--v-ink-3); font-variant-numeric: tabular-nums; }

.v-search {
  position: relative; display: flex; align-items: center; width: min(420px, 100%);
}
.v-search svg { position: absolute; left: 12px; color: var(--v-ink-3); pointer-events: none; }
.v-search input {
  width: 100%; height: 38px; padding: 0 40px 0 36px; border-radius: 10px;
  border: 1px solid var(--v-line-2); background: var(--v-surface); color: var(--v-ink);
  font: 500 14px/1 var(--v-font); outline: none;
}
.v-search input:focus { border-color: var(--v-ink-3); box-shadow: 0 0 0 3px rgba(18, 19, 22, .06); }
.v-kbd {
  position: absolute; right: 10px; height: 20px; min-width: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 5px;
  font: 600 11px/1 var(--v-mono); color: var(--v-ink-3);
  background: var(--v-surface-2); border: 1px solid var(--v-line);
}
@media (max-width: 720px) { .v-search { width: 100%; order: 3; } .v-kbd { display: none; } }
@media (max-width: 720px) { .v-search input { font-size: 16px; } }

/* Filter bar: compact buttons that open small menus */
.v-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.v-fbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 11px;
  border-radius: 9px; border: 1px solid var(--v-line-2); background: var(--v-surface);
  font: 600 12.5px/1 var(--v-font); color: var(--v-ink-2); cursor: pointer; white-space: nowrap;
}
.v-fbtn:hover { border-color: #c8c6bf; }
.v-fbtn b { color: var(--v-ink); font-weight: 700; }
.v-fbtn.on { background: var(--v-ink); border-color: var(--v-ink); color: rgba(255, 255, 255, .72); }
.v-fbtn.on b { color: #fff; }
.v-fbtn svg { opacity: .6; }
.v-fbtn:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
@media (pointer: coarse) { .v-fbtn { min-height: 40px; } }
.v-fclear {
  height: 32px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--v-font); color: var(--v-ink-3);
}
.v-fclear:hover { color: var(--v-bad); }

.v-pop {
  position: fixed; z-index: 1200; min-width: 230px; max-width: min(320px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 120px)); overflow: auto;
  background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 12px;
  box-shadow: var(--v-sh-pop); padding: 6px;
}
.v-pop-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 7px 10px;
  border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left;
  font: 550 13px/1.3 var(--v-font); color: var(--v-ink);
}
.v-pop-opt:hover, .v-pop-opt:focus-visible { background: var(--v-surface-2); outline: none; }
.v-pop-opt .n { margin-left: auto; font-size: 12px; color: var(--v-ink-3); font-variant-numeric: tabular-nums; }
.v-pop-opt .ck { width: 16px; flex: none; color: var(--v-accent); display: inline-flex; }
.v-pop-opt[aria-checked="true"] { font-weight: 700; }
.v-pop-sep { height: 1px; background: var(--v-line); margin: 5px 4px; }
.v-pop-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 6px 4px; }
.v-pop-range label { font-size: 11px; font-weight: 700; color: var(--v-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.v-pop-range input {
  width: 100%; height: 34px; border-radius: 8px; border: 1px solid var(--v-line-2);
  padding: 0 8px; font: 500 13px var(--v-font); color: var(--v-ink); background: var(--v-surface);
}
.v-pop-range .v-btn { grid-column: 1 / -1; }
@media (max-width: 720px) { .v-pop-range input { font-size: 16px; } }

/* The two panes */
.v-ws-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 16px;
}
@media (min-width: 960px) {
  .v-ws-body { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); }
}
.v-pane {
  min-height: 0; display: flex; flex-direction: column;
  background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-r-lg);
  box-shadow: var(--v-sh-1); overflow: hidden;
}
.v-pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.v-pane-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-top: 1px solid var(--v-line); background: var(--v-surface-2);
  font-size: 12.5px; color: var(--v-ink-3); font-variant-numeric: tabular-nums;
}
.v-pane-foot .v-btn-sm { height: 28px; }
@media (max-width: 959px) {
  .v-pane-scroll { overflow: visible; }
  .v-pane-detail { display: none; }
}

/* Lead row */
.v-row {
  position: relative; display: flex; gap: 11px; width: 100%; padding: 12px 14px;
  border: 0; border-bottom: 1px solid var(--v-line); background: var(--v-surface);
  text-align: left; cursor: pointer; font-family: inherit; color: inherit;
}
.v-row:hover { background: var(--v-surface-2); }
.v-row:focus-visible { outline: 2px solid var(--v-accent); outline-offset: -2px; }
.v-row.sel { background: var(--v-accent-soft); }
.v-row.sel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--v-accent);
}
.v-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v-row-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v-row-name {
  font-weight: 700; font-size: 14px; color: var(--v-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.v-row-dom { font: 500 11.5px/1 var(--v-mono); color: var(--v-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row-l2, .v-row-l3 {
  font-size: 12.5px; color: var(--v-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.v-row-l3 { color: var(--v-ink-3); }
.v-row-l3 b { color: var(--v-ink-2); font-weight: 650; }
.v-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.v-row-when { font-size: 11.5px; color: var(--v-ink-4); white-space: nowrap; }
.v-row-status { font-size: 11px; font-weight: 700; white-space: nowrap; }
.v-row-status.sent { color: var(--v-info); }
.v-row-status.due { color: var(--v-bad); }
.v-row-status.done { color: var(--v-good); }

/* Detail (shared by the side pane and the full lead page) */
.v-d-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--v-line); }
.v-d-top { display: flex; align-items: flex-start; gap: 13px; }
.v-d-titles { flex: 1; min-width: 0; }
.v-d-name { font: 750 19px/1.2 var(--v-font); letter-spacing: -.015em; color: var(--v-ink); margin: 0; word-break: break-word; }
.v-d-site {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font: 500 12.5px/1 var(--v-mono); color: var(--v-ink-3); text-decoration: none;
}
.v-d-site:hover { color: var(--v-accent); }
.v-d-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.v-d-tools { display: flex; gap: 6px; flex: none; }

.v-sec { padding: 16px 20px; border-bottom: 1px solid var(--v-line); }
.v-sec:last-child { border-bottom: 0; }
.v-sec-t {
  font: 700 11px/1 var(--v-font); letter-spacing: .08em; text-transform: uppercase;
  color: var(--v-ink-3); margin: 0 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.v-verdict { display: flex; gap: 14px; align-items: center; }
.v-verdict-t { font: 750 16px/1.2 var(--v-font); color: var(--v-ink); }
.v-verdict-s { font-size: 13px; color: var(--v-ink-2); line-height: 1.5; margin-top: 3px; }
.v-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
@media (max-width: 1180px) { .v-why { grid-template-columns: minmax(0, 1fr); } }
.v-why ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.v-why li { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--v-ink-2); }
.v-why li svg { flex: none; margin-top: 2px; }
.v-why .pos svg { color: var(--v-good); }
.v-why .neg svg { color: var(--v-warn); }
.v-why-h { font-size: 12px; font-weight: 700; color: var(--v-ink); margin-bottom: 8px; }

.v-progress {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--v-line); background: var(--v-surface-2);
}
.v-progress.sent { background: var(--v-info-soft); border-color: var(--v-info-line); }
.v-progress.due { background: var(--v-bad-soft); border-color: var(--v-bad-line); }
.v-progress.done { background: var(--v-good-soft); border-color: var(--v-good-line); }
.v-progress-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--v-surface); color: var(--v-ink-2);
}
.v-progress.sent .v-progress-ic { color: var(--v-info); }
.v-progress.due .v-progress-ic { color: var(--v-bad); }
.v-progress.done .v-progress-ic { color: var(--v-good); }
.v-progress-t { font-weight: 700; font-size: 13.5px; color: var(--v-ink); }
.v-progress-s { font-size: 12.5px; color: var(--v-ink-2); margin-top: 3px; line-height: 1.5; }
.v-note {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--v-surface);
  border: 1px solid var(--v-line); font-size: 12.5px; color: var(--v-ink-2); line-height: 1.5;
}
.v-note b { color: var(--v-ink); }

.v-contact { display: flex; gap: 11px; align-items: center; }
.v-contact-n { font-weight: 700; font-size: 14px; color: var(--v-ink); }
.v-contact-r { font-size: 12.5px; color: var(--v-ink-3); margin-top: 2px; }
.v-contact-e {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 5px;
  font: 500 12.5px/1 var(--v-mono); color: var(--v-accent-text); word-break: break-all;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.v-contact-e:hover { text-decoration: underline; }

.v-msg-subj {
  font-weight: 700; font-size: 14px; color: var(--v-ink); padding: 11px 13px;
  border: 1px solid var(--v-line); border-bottom: 0; border-radius: 11px 11px 0 0; background: var(--v-surface-2);
}
.v-msg-body {
  margin: 0; padding: 13px; border: 1px solid var(--v-line); border-radius: 0 0 11px 11px;
  font: 450 13.5px/1.65 var(--v-font); color: var(--v-ink-2); white-space: pre-wrap; word-break: break-word;
  background: var(--v-surface);
}
.v-msg-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.v-msg-none {
  padding: 16px; border: 1px dashed var(--v-line-2); border-radius: 12px; text-align: center;
  font-size: 13px; color: var(--v-ink-3); line-height: 1.55;
}
.v-msg-none .v-btn { margin-top: 10px; }

.v-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.v-tl {
  position: relative; padding: 0 0 14px 22px; font-size: 13px; color: var(--v-ink-2); line-height: 1.45;
}
.v-tl::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: -2px; width: 1px; background: var(--v-line-2);
}
.v-tl:last-child { padding-bottom: 0; }
.v-tl:last-child::before { display: none; }
.v-tl::after {
  content: ""; position: absolute; left: 1px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--v-surface); border: 2px solid var(--v-ink-3);
}
.v-tl.sent::after { border-color: var(--v-info); }
.v-tl.done::after { border-color: var(--v-good); }
.v-tl.draft::after { border-color: var(--v-accent); }
.v-tl-t { font-weight: 700; color: var(--v-ink); }
.v-tl-w { font-size: 12px; color: var(--v-ink-4); margin-left: 6px; }
.v-tl-d { font-size: 12.5px; color: var(--v-ink-3); margin-top: 2px; }
.v-tl-n { margin-top: 5px; padding: 6px 9px; border-radius: 7px; background: var(--v-surface-2); border: 1px solid var(--v-line); font-size: 12.5px; }

.v-d-actions {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid var(--v-line); background: var(--v-surface);
}
.v-d-actions .grow { flex: 1; }
@media (max-width: 720px) { .v-d-actions .v-btn { flex: 1; } }

/* ==========================================================================
   LEAD PAGE
   ========================================================================== */
.v-back {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; margin-bottom: 12px;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 650 13px/1 var(--v-font); color: var(--v-ink-2);
}
.v-back:hover { background: var(--v-surface-3); color: var(--v-ink); }
.v-lp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
@media (max-width: 1000px) { .v-lp-grid { grid-template-columns: minmax(0, 1fr); } }
.v-lp-hero { padding: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.v-lp-hero .v-d-titles { min-width: 220px; }
.v-lp-hero-score { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (max-width: 720px) { .v-lp-hero-score { margin-left: 0; width: 100%; } }

.v-bars { display: flex; flex-direction: column; gap: 11px; }
.v-bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: 12.5px; }
.v-bar-l { color: var(--v-ink-2); font-weight: 600; }
.v-bar-l small { display: block; color: var(--v-ink-4); font-weight: 500; font-size: 11px; margin-top: 1px; }
.v-bar { height: 8px; border-radius: 4px; background: var(--v-surface-3); overflow: hidden; }
.v-bar i { display: block; height: 100%; border-radius: 4px; background: var(--v-ink); }
.v-bar-v { text-align: right; font-weight: 700; color: var(--v-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .v-bar-row { grid-template-columns: 96px minmax(0, 1fr) 30px; } }

.v-list-plain { display: flex; flex-direction: column; }
.v-li {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--v-line);
}
.v-li:first-child { padding-top: 0; }
.v-li:last-child { border-bottom: 0; padding-bottom: 0; }
.v-li-t { font-weight: 650; font-size: 13.5px; color: var(--v-ink); line-height: 1.4; }
.v-li-s { font-size: 12.5px; color: var(--v-ink-3); margin-top: 3px; line-height: 1.45; }
.v-li-q { font-size: 12.5px; color: var(--v-ink-2); margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--v-line-2); line-height: 1.5; }

/* ==========================================================================
   REGENERATION
   ========================================================================== */
.v-rg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.v-rg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; margin-top: 18px; align-items: start; }
@media (max-width: 1040px) { .v-rg-grid { grid-template-columns: minmax(0, 1fr); } }
.v-rg-aside { position: sticky; top: calc(var(--nav-h) + 12px); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1040px) { .v-rg-aside { position: static; } }

.v-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.v-mk {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 58px;
  border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-surface);
  cursor: pointer; text-align: left; font-family: inherit; color: inherit;
  transition: border-color .12s ease, background .12s ease;
}
.v-mk:hover { border-color: var(--v-line-2); background: var(--v-surface-2); }
.v-mk:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }
.v-mk[aria-pressed="true"] { border-color: var(--v-ink); background: var(--v-surface); box-shadow: 0 0 0 1px var(--v-ink) inset; }
.v-mk[disabled] { opacity: .5; cursor: not-allowed; }
.v-mk-ic {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font: 750 12px/1 var(--v-font); background: var(--v-surface-3); color: var(--v-ink-2);
}
.v-mk[aria-pressed="true"] .v-mk-ic { background: var(--v-ink); color: #fff; }
.v-mk-main { min-width: 0; }
.v-mk-n { font-weight: 700; font-size: 13.5px; color: var(--v-ink); line-height: 1.25; }
.v-mk-m { font-size: 12px; color: var(--v-ink-3); margin-top: 3px; }
.v-mk-m.out { color: var(--v-bad); }

.v-custom { margin-top: 14px; display: flex; gap: 8px; }
.v-custom input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--v-line-2); background: var(--v-surface); font: 500 14px var(--v-font); color: var(--v-ink);
}
.v-custom input:focus { outline: none; border-color: var(--v-ink-3); box-shadow: 0 0 0 3px rgba(18,19,22,.06); }
@media (max-width: 720px) { .v-custom input { font-size: 16px; } }

.v-sel-name { font: 750 18px/1.25 var(--v-font); color: var(--v-ink); letter-spacing: -.01em; }
.v-sel-left { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.v-sel-left b { font: 760 26px/1 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-q-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.v-q-list li { font: 500 12px/1.4 var(--v-mono); color: var(--v-ink-2); padding: 6px 9px; background: var(--v-surface-2); border-radius: 7px; border: 1px solid var(--v-line); }

/* Stage stepper for a live run */
.v-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.v-step { height: 6px; border-radius: 3px; background: var(--v-surface-3); }
.v-step.done { background: var(--v-ink); }
.v-step.active { background: var(--v-accent); animation: v-pulse 1.1s ease-in-out infinite; }
.v-step-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--v-ink-4); }

.v-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.v-stat { padding: 10px 11px; border-radius: 10px; background: var(--v-surface-2); border: 1px solid var(--v-line); min-width: 0; }
.v-stat-v { font: 760 18px/1 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-stat-l { font-size: 11.5px; color: var(--v-ink-3); margin-top: 5px; }

/* Run history table */
.v-table { width: 100%; border-collapse: collapse; }
.v-table th {
  text-align: left; font: 700 11px/1 var(--v-font); letter-spacing: .07em; text-transform: uppercase;
  color: var(--v-ink-3); padding: 11px 14px; border-bottom: 1px solid var(--v-line); background: var(--v-surface-2);
  white-space: nowrap;
}
.v-table td { padding: 13px 14px; border-bottom: 1px solid var(--v-line); font-size: 13px; color: var(--v-ink-2); vertical-align: middle; }
.v-table tr:last-child td { border-bottom: 0; }
.v-table tbody tr { cursor: pointer; }
.v-table tbody tr:hover td { background: var(--v-surface-2); }
.v-table tbody tr:focus-visible { outline: 2px solid var(--v-accent); outline-offset: -2px; }
.v-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--v-ink); }
.v-table .t-main { font-weight: 700; color: var(--v-ink); }
.v-table .t-sub { font-size: 12px; color: var(--v-ink-3); margin-top: 2px; }
.v-table-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .v-table thead { display: none; }
  .v-table, .v-table tbody, .v-table tr, .v-table td { display: block; width: 100%; }
  .v-table tr { padding: 12px 14px; border-bottom: 1px solid var(--v-line); }
  .v-table td { padding: 2px 0; border: 0; }
  .v-table .num { text-align: left; }
  .v-table td[data-k]::before { content: attr(data-k) " · "; color: var(--v-ink-3); font-weight: 500; }
}

/* ==========================================================================
   RUN PAGE
   ========================================================================== */
.v-run-hero { padding: 20px; }
.v-run-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.v-run-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (max-width: 900px) { .v-run-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v-run-sum { margin-top: 14px; font-size: 13.5px; color: var(--v-ink-2); line-height: 1.6; padding: 12px 14px; background: var(--v-surface-2); border-radius: 11px; border: 1px solid var(--v-line); }

.v-funnel { display: flex; flex-direction: column; gap: 9px; }
.v-fun-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: 12.5px; }
.v-fun-l { font-weight: 650; color: var(--v-ink); }
.v-fun-l small { display: block; font-weight: 500; color: var(--v-ink-4); font-size: 11px; margin-top: 1px; }
.v-fun-bar { height: 22px; border-radius: 6px; background: var(--v-surface-3); overflow: hidden; }
.v-fun-bar i { display: block; height: 100%; background: var(--v-ink); border-radius: 6px; min-width: 2px; }
.v-fun-bar i.kept { background: var(--v-good); }
.v-fun-v { text-align: right; font-weight: 750; color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-fun-v small { display: block; font-weight: 500; font-size: 11px; color: var(--v-bad); }
@media (max-width: 560px) { .v-fun-row { grid-template-columns: 88px minmax(0, 1fr) 54px; } }

.v-drop-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 36px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--v-line); font-size: 13px; }
.v-drop-row:last-child { border-bottom: 0; }
.v-drop-t { color: var(--v-ink-2); }
.v-drop-bar { height: 6px; border-radius: 3px; background: var(--v-surface-3); overflow: hidden; }
.v-drop-bar i { display: block; height: 100%; background: var(--v-warn); }
.v-drop-n { text-align: right; font-weight: 700; color: var(--v-ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   HOW IT WORKS — the whole page is dark, edge to edge
   ========================================================================== */
body.route-how.app-mode { background: #0b0c0f !important; }
body.route-how .app-footer { background: transparent; color: rgba(255, 255, 255, .45); border-top-color: rgba(255, 255, 255, .08); }
body.route-how .app-page.hiw-dark {
  background: transparent !important; background-image: none !important;
  border-radius: 0; margin: 0 auto; max-width: 1240px; padding: 28px 24px 40px;
  box-shadow: none; border: 0;
}
@media (max-width: 720px) { body.route-how .app-page.hiw-dark { padding: 18px 16px 32px; } }
body.route-how .hiw-hero-side img { opacity: .5; }
body.route-how .hiw-node, body.route-how .hiw-card, body.route-how .hiw-stat {
  background: #131418; border-color: #22242a;
}

/* ==========================================================================
   MODAL: prior-state banner
   ========================================================================== */
.v-modal-prior {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; margin-bottom: 14px;
  border-radius: 10px; background: var(--v-info-soft); border: 1px solid var(--v-info-line);
  font-size: 13px; color: var(--v-ink-2); line-height: 1.5;
}
.v-modal-prior:empty { display: none; }
.v-modal-prior b { color: var(--v-ink); }
.v-modal-prior svg { color: var(--v-info); flex: none; margin-top: 2px; }

/* ==========================================================================
   Route-level tweaks
   ========================================================================== */
/* The legacy accent variable was a gradient; every consumer now gets the flat colour. */
:root { --orange-gradient: linear-gradient(135deg, #19E6E3 0%, #0bb5b2 100%); }

/* The Leads workspace fills the viewport under the header; a footer below it would bring
   back the page-level scroll the two panes exist to remove. */
@media (min-width: 960px) {
  body.route-leads .app-footer { display: none; }
  body.app-mode.route-leads { overflow: hidden; }
}
body.app-mode .app-page { padding: 0; }

/* On the dark How It Works canvas the phone header's dark wordmark would disappear. */
body.route-how .app-brand-name { color: #fff; }
body.route-how .app-brand-sub { color: rgba(255, 255, 255, .55); }

@media (max-width: 520px) {
  .v-card-head { flex-wrap: wrap; }
  .v-ws-top .v-seg { margin-left: auto; }
}


/* ==========================================================================
   FLOATING GLASS HEADER
   Stays put while the page scrolls; once content starts to pass beneath it the bar turns
   to frosted glass, tightens, and a thin line tracks how far down the page you are.
   ========================================================================== */
.app-header { transition: padding .35s cubic-bezier(.2,.7,.2,1); }
.app-header-inner {
  position: relative;
  transition: max-width .45s cubic-bezier(.2,.7,.2,1), padding .35s cubic-bezier(.2,.7,.2,1),
              background-color .35s ease, box-shadow .35s ease, border-color .35s ease, border-radius .35s ease,
              margin .35s ease;
}
.app-header-inner::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--v-accent); transform-origin: left center; transform: scaleX(var(--scroll-p, 0));
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
body.is-scrolled .app-header-inner::after { opacity: .9; }
body.is-scrolled .app-header { padding-top: 8px; }

@media (min-width: 900px) {
  body.is-scrolled .app-header-inner {
    max-width: 1160px;
    padding-top: 6px; padding-bottom: 6px;
    background-color: rgba(22, 23, 28, .68);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 18px 50px rgba(12, 13, 18, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}
@media (max-width: 899px) {
  .app-header-inner { border: 1px solid transparent; border-radius: 18px; margin: 0 8px; }
  body.is-scrolled .app-header-inner {
    background-color: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-color: rgba(20, 21, 26, .08);
    box-shadow: 0 10px 30px rgba(12, 13, 18, .12);
  }
  body.route-how.is-scrolled .app-header-inner {
    background-color: rgba(18, 19, 24, .7);
    border-color: rgba(255, 255, 255, .1);
  }
}

/* Cards read as frosted panels over the moving background. */
body.app-mode:not(.how-mode) .v-card,
body.app-mode:not(.how-mode) .v-pane {
  background-color: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .v-reveal { opacity: 0; transform: translateY(18px) scale(.985); }
  /* Doubled class: the entrance transition must beat each component's own transition
     list until it has played; after that (.v-done) the component's own hover transitions
     apply again, without the stagger delay. */
  .v-reveal.v-reveal:not(.v-done) {
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--d, 0) * 55ms);
    will-change: opacity, transform;
  }
  .v-reveal.v-in { opacity: 1; transform: none; }

  /* Bars grow and score rings fill as their card arrives. */
  .v-pipe-seg, .v-bar i, .v-fun-bar i, .v-drop-bar i {
    transform-origin: left center;
    transition: transform 1s cubic-bezier(.2,.7,.2,1) .18s;
  }
  .v-reveal:not(.v-in) .v-pipe-seg,
  .v-reveal:not(.v-in) .v-bar i,
  .v-reveal:not(.v-in) .v-fun-bar i,
  .v-reveal:not(.v-in) .v-drop-bar i { transform: scaleX(0); }
  .v-ring .val { transition: stroke-dasharray 1.1s cubic-bezier(.2,.7,.2,1) .15s; }
  .v-reveal:not(.v-in) .v-ring .val { stroke-dasharray: 0 999 !important; }

  /* The lead panel slides its sections in when a new lead is picked. */
  .v-swap > * { animation: v-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .v-swap > *:nth-child(2) { animation-delay: .04s; }
  .v-swap > *:nth-child(3) { animation-delay: .08s; }
  .v-swap > *:nth-child(4) { animation-delay: .12s; }
  .v-swap > *:nth-child(5) { animation-delay: .16s; }
  .v-swap > *:nth-child(n+6) { animation-delay: .2s; }

  /* Hover lift on everything you can open. */
  .v-kpi, .v-mini, .v-mk, .v-card.v-kpi, .v-table tbody tr {
    transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .15s ease, background-color .15s ease;
  }
  .v-kpi.v-in:hover, .v-mk:not([disabled]):hover { transform: translateY(-3px); box-shadow: var(--v-sh-2); }
  .v-mini:hover { transform: translateX(3px); }
  .v-row { transition: background-color .15s ease; }

  .v-live { animation: v-breathe 2.4s ease-in-out infinite; }
  .hiw-hero-side img { transition: transform .1s linear; will-change: transform; }
}
@keyframes v-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes v-breathe { 50% { box-shadow: 0 0 0 6px rgba(13, 122, 82, .08); } }

@media (prefers-reduced-motion: reduce) {
  .pattern-grid-flow, .pattern-glow-orb { animation: none !important; }
}

/* Own-scroll panes: a soft edge once rows pass under the top. */
.v-pane-scroll { transition: box-shadow .2s ease; }
.v-pane-scroll.is-scrolled { box-shadow: inset 0 10px 12px -12px rgba(18, 19, 22, .28); }

/* Phone numbers */
.v-row-phone { display: inline-flex; align-items: center; gap: 5px; color: var(--v-ink); font-weight: 600; }
.v-row-phone svg { color: var(--v-good); }
.v-contact-p {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; margin-right: 10px;
  padding: 5px 10px; border-radius: 999px; background: var(--v-good-soft); border: 1px solid var(--v-good-line);
  font: 650 12.5px/1 var(--v-font); color: var(--v-good); text-decoration: none; white-space: nowrap;
}
.v-contact-p:hover { background: #d9efe4; }
@media (pointer: coarse) { .v-contact-p { min-height: 40px; } }

/* overflow-x:hidden on the shell made it a scroll container, so the sticky header stuck to
   a box that never scrolls and left with the page. clip hides sideways overflow without that. */
body.app-mode, body.app-mode #appView { overflow: visible; overflow-x: clip; }

/* Sign-in aside: a headline fills the space the stretched card used to leave empty. */
.dispatch-intro { margin: 4px 0 24px; }
.dispatch-title { font: 750 26px/1.2 var(--v-font); letter-spacing: -.02em; color: var(--v-ink); margin: 0; max-width: 20ch; }
.dispatch-sub { font-size: 14px; line-height: 1.6; color: var(--v-ink-2); margin: 10px 0 0; max-width: 42ch; }
@media (max-width: 720px) { .dispatch-title { font-size: 22px; } }

/* .app-shell sets display:flex after .view-screen hides inactive screens, so on the
   sign-in page the app shell stayed in the layout: invisible (opacity 0) but a full
   screen tall, leaving a blank page to scroll through below the sign-in card. */
.view-screen:not(.active) { display: none !important; }

/* ==========================================================================
   TEAM, JOURNEYS AND THE ADMIN-PANEL HAND-OFF
   ========================================================================== */
/* `hidden` must win over the display these components set for themselves. */
.sso-entry[hidden], .sso-entry-or[hidden], .gateway-form[hidden], #ssoWorking[hidden], #ssoError[hidden],
.v-modal-team[hidden], .dropdown-item[hidden] { display: none !important; }

/* Sign-in screen: the way in from the admin panel. */
.sso-entry { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.sso-entry-btn { text-decoration: none; justify-content: center; }
.sso-entry-note { font-size: 12.5px; color: var(--v-ink-3); margin: 0; line-height: 1.5; text-align: center; }
.sso-entry-or { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; color: var(--v-ink-4); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sso-entry-or::before, .sso-entry-or::after { content: ""; flex: 1; height: 1px; background: var(--v-line); }

/* The hand-off screen itself (/sso). */
.sso-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--v-bg); }
.sso-card { width: 100%; max-width: 420px; text-align: center; background: var(--v-surface); border: 1px solid var(--v-line); border-radius: var(--v-r-xl); padding: 32px 26px; box-shadow: var(--v-sh-2); }
.sso-logo { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 15px; overflow: hidden; }
.sso-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sso-title { font: 750 21px/1.25 var(--v-font); color: var(--v-ink); margin: 0; letter-spacing: -.01em; }
.sso-sub { font-size: 14px; color: var(--v-ink-2); line-height: 1.55; margin: 8px 0 0; }
.sso-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.sso-actions .v-btn { text-decoration: none; }
.sso-spinner { display: inline-block; width: 26px; height: 26px; margin-bottom: 14px; border-radius: 50%; border: 3px solid var(--v-line); border-top-color: var(--v-accent); animation: sso-spin .8s linear infinite; }
@keyframes sso-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sso-spinner { animation-duration: 2.4s; } }

/* Header avatar: a photo, or the person's initials. */
.user-avatar-slot { display: block; width: 100%; height: 100%; }
.user-avatar-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.v-av.v-av-head { width: 100%; height: 100%; border-radius: 50%; font-size: 12px; }

/* A teammate is already working this lead. */
.v-row-status.team { color: var(--v-warn); }
.c-team { background: var(--v-warn); }

/* Your week, on Home. */
.v-journey { margin-top: 12px; }
.v-journey-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px 18px; }
.v-journey-stat { padding: 12px; border-radius: 10px; background: var(--v-surface-2); border: 1px solid var(--v-line); min-width: 0; }
.v-journey-v { font: 760 22px/1 var(--v-font); color: var(--v-ink); font-variant-numeric: tabular-nums; }
.v-journey-l { font-size: 12px; color: var(--v-ink-3); margin-top: 6px; }
@media (max-width: 640px) { .v-journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; } }

/* Team activity feed. */
.v-feed { display: flex; flex-direction: column; }
.v-feed-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid var(--v-line); }
.v-feed-item:last-child { border-bottom: 0; }
.v-feed-item .v-av { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.v-feed-main { min-width: 0; flex: 1; }
.v-feed-t { font-size: 13.5px; color: var(--v-ink-2); line-height: 1.45; }
.v-feed-t b { color: var(--v-ink); font-weight: 700; }
.v-feed-lead { font: inherit; font-weight: 650; color: var(--v-ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button.v-feed-lead:hover { color: var(--v-accent-text); text-decoration: underline; text-underline-offset: 2px; }
button.v-feed-lead:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; border-radius: 3px; }
.v-feed-s { font-size: 12px; color: var(--v-ink-3); margin-top: 2px; }
.v-feed-n { margin-top: 6px; padding: 6px 9px; border-radius: 7px; background: var(--v-surface-2); border: 1px solid var(--v-line); font-size: 12.5px; color: var(--v-ink-2); overflow-wrap: anywhere; }
.v-feed-compact .v-feed-item { padding: 10px 16px; }

/* The team on one lead. */
.v-team-touch { display: flex; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--v-info-line); background: var(--v-info-soft); }
.v-team-touch.due { border-color: var(--v-bad-line); background: var(--v-bad-soft); }
.v-team-touch.done { border-color: var(--v-good-line); background: var(--v-good-soft); }

/* Who did it, on the lead's history. */
.v-tl-who { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--v-surface-3); color: var(--v-ink-2); vertical-align: 1px; }
.v-tl-who.other { background: var(--v-warn-soft); color: var(--v-warn); }

/* Mark-sent dialog: a teammate already emailed them. */
.v-modal-team { background: var(--v-warn-soft); border-color: var(--v-warn-line); }
.v-modal-team svg { color: var(--v-warn); }

/* Team page. */
.v-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .v-kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .v-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v-kpi-static { cursor: default; }
.v-kpi-static:hover { border-color: var(--v-line); }
.v-team-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
@media (max-width: 1100px) { .v-team-grid { grid-template-columns: minmax(0, 1fr); } }
.v-team-person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.v-team-person .v-av { width: 32px; height: 32px; border-radius: 9px; font-size: 11.5px; }
.v-team-table tbody tr.sel td { background: var(--v-accent-soft); }
.v-team-table .t-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.v-team-table td.v-due-num { color: var(--v-bad); }
.v-team-feed .v-card-head { gap: 8px; }
@media (max-width: 760px) { .v-team-table .t-sub { max-width: none; } }
/* Seven columns in a card two-thirds wide: the long headers wrap instead of pushing
   "Last active" out of view. */
.v-team-table th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.v-team-table th, .v-team-table td { padding-left: 10px; padding-right: 10px; }
.v-team-table th.num { max-width: 11ch; }
.v-team-table td:last-child { white-space: nowrap; }
