/* Lead Desk - restyled 2026-09-29 around the Zentiti wordmark.

   THE PALETTE COMES FROM THE LOGO, not from a template. The wordmark is two
   colours - a navy (#004880) and an orange (#f06020) - so the interface uses
   exactly those two and nothing else loud:

     navy   structure and interaction: links, selection, focus, the score bar
     orange the brand and the ONE action that spends money (Run now), plus the
            marker on the active nav item. Never decoration.

   Everything else is a cool neutral. Status is carried by shape as well as
   colour (a filled dot, a half dot, a ring) so it survives colour blindness
   and a greyscale print. Company marks are muted tints rather than a rainbow,
   so no single row shouts louder than its score.

   Two rules still hold from every earlier pass of this app:
   - Every score opens to the evidence that produced it.
   - Nothing is hidden because it scored badly; it is ranked, and labelled. */

:root {
  --an-s1: #2a78d6; --an-s2: #eb6834; --an-s3: #1baf7a; --an-s4: #eda100; --an-s5: #e87ba4; --an-up: #0f7a4a; --an-down: #b3261e; --an-warn: #9a5600;   /* analytics charts: validated palette */
  /* Surfaces: a cool grey page, white cards, one step of sunk and raised. */
  --paper:        #f4f5f7;
  --surface:      #ffffff;
  --surface-sunk: #eff1f4;
  --surface-hi:   #e3e7ed;
  --line:         #e3e6eb;
  --line-strong:  #cdd3dc;

  --ink:          #0e1a2b;
  --ink-soft:     #44536a;
  /* Carries most secondary text. 5.5:1 on white, 5.1 on the page, 4.9 on
     sunk - clears AA on all three light surfaces. */
  --ink-faint:    #5b6a80;

  /* The two brand colours, named for what they are. */
  --brand-blue:   #004880;
  --brand-orange: #f06020;

  /* Sidebar: light, because the logo is navy and would vanish on a dark rail. */
  --side-bg:      #ffffff;
  --side-bg-hi:   #f2f4f7;
  --side-line:    #e3e6eb;
  --side-ink:     #0e1a2b;
  --side-ink-soft:#55647a;
  --side-active-bg: #e8f0f8;
  --side-active-ink: #00396a;

  --accent:       #004880;
  --accent-ink:   #00396a;
  --accent-soft:  #e8f0f8;
  /* Fill behind white text. Stays dark in both themes. */
  --accent-fill:  #004880;
  --navy:         #0a2540;
  --navy-hi:      #123a63;

  /* Orange as a fill carries DARK text (5.7:1); white on it is only 3.4:1. */
  --amber:        #f06020;
  --amber-ink:    #8a3407;
  --amber-soft:   #fdeee6;

  --good:         #0f7a4a;
  --good-soft:    #e5f4ec;
  --warn:         #9a5600;
  --warn-soft:    #fbf0dc;
  --neutral:      #5b6a80;
  --neutral-soft: #eef0f4;
  --bad:          #b3261e;
  --bad-soft:     #fbeae8;

  /* Company marks: six muted tints, each pair checked for text contrast. A
     company keeps its tint across runs because it is chosen by name. */
  --tint-1-bg: #e4edf7; --tint-1-fg: #0b3a66;
  --tint-2-bg: #fbe9df; --tint-2-fg: #8a3407;
  --tint-3-bg: #e0f0ec; --tint-3-fg: #14584c;
  --tint-4-bg: #ece8f6; --tint-4-fg: #45327a;
  --tint-5-bg: #f1eee2; --tint-5-fg: #5e5122;
  --tint-6-bg: #e7eaf0; --tint-6-fg: #3a475b;

  --shadow-sm: 0 1px 2px rgba(14,26,43,.05);
  --shadow: 0 1px 3px rgba(14,26,43,.06), 0 8px 24px -10px rgba(14,26,43,.14);
  --shadow-lg: 0 4px 12px rgba(14,26,43,.08), 0 24px 48px -16px rgba(14,26,43,.28);
  --shadow-focus: 0 0 0 3px var(--accent-soft);

  --logo-plate: transparent;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;

  --row: 64px;
  --topbar-h: 60px;
  /* Live screen chart colours (validated categorical slots 1-4) */
  --lv-1: #2a78d6; --lv-2: #eb6834; --lv-3: #1baf7a; --lv-4: #eda100; --lv-5: #7e57c9; --lv-6: #d1476b; --lv-7: #7b8494; --lv-grid: #e3e6eb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --an-s1: #3987e5; --an-s2: #d95926; --an-s3: #199e70; --an-s4: #c98500; --an-s5: #d55181; --an-up: #3fb985; --an-down: #ef7a72; --an-warn: #e0a64b;
    --paper:        #0a1019;
    --surface:      #111925;
    --surface-sunk: #172131;
    --surface-hi:   #1e2a3f;
    --line:         #202d43;
    --line-strong:  #30415d;

    --ink:          #edf1f7;
    --ink-soft:     #a9b6ca;
    --ink-faint:    #8794ab;

    --side-bg:      #0d1420;
    --side-bg-hi:   #152030;
    --side-line:    #1c2a3f;
    --side-ink:     #edf1f7;
    --side-ink-soft:#95a3ba;
    --side-active-bg: #15283f;
    --side-active-ink: #b3d6f6;

    --accent:       #6db0ee;
    --accent-ink:   #9cc9f3;
    --accent-soft:  #12263d;
    --accent-fill:  #0b62b0;
    --navy:         #1b3557;
    --navy-hi:      #26486f;

    --amber:        #f47a3c;
    --amber-ink:    #f8b38a;
    --amber-soft:   #2b1a10;

    --good:         #4cc38a;
    --good-soft:    #0f2a1f;
    --warn:         #e6a23c;
    --warn-soft:    #2b2110;
    --neutral:      #8794ab;
    --neutral-soft: #172131;
    --bad:          #f2857d;
    --bad-soft:     #2d1614;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 3px rgba(0,0,0,.35), 0 8px 24px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.45), 0 24px 48px -16px rgba(0,0,0,.8);

    /* The logo never changes. Its navy would vanish on a dark surface, so in
       dark mode it sits on a white plate instead of being recoloured. */
    --logo-plate: #ffffff;
    --lv-1: #3987e5; --lv-2: #d95926; --lv-3: #199e70; --lv-4: #c98500; --lv-5: #9a7ae0; --lv-6: #e0607f; --lv-7: #8a93a3; --lv-grid: #2a3547;
  }
}
:root[data-theme="dark"] {
  --an-s1: #3987e5; --an-s2: #d95926; --an-s3: #199e70; --an-s4: #c98500; --an-s5: #d55181; --an-up: #3fb985; --an-down: #ef7a72; --an-warn: #e0a64b;
  --paper:        #0a1019;
  --surface:      #111925;
  --surface-sunk: #172131;
  --surface-hi:   #1e2a3f;
  --line:         #202d43;
  --line-strong:  #30415d;

  --ink:          #edf1f7;
  --ink-soft:     #a9b6ca;
  --ink-faint:    #8794ab;

  --side-bg:      #0d1420;
  --side-bg-hi:   #152030;
  --side-line:    #1c2a3f;
  --side-ink:     #edf1f7;
  --side-ink-soft:#95a3ba;
  --side-active-bg: #15283f;
  --side-active-ink: #b3d6f6;

  --accent:       #6db0ee;
  --accent-ink:   #9cc9f3;
  --accent-soft:  #12263d;
  --accent-fill:  #0b62b0;
  --navy:         #1b3557;
  --navy-hi:      #26486f;

  --amber:        #f47a3c;
  --amber-ink:    #f8b38a;
  --amber-soft:   #2b1a10;

  --good:         #4cc38a;
  --good-soft:    #0f2a1f;
  --warn:         #e6a23c;
  --warn-soft:    #2b2110;
  --neutral:      #8794ab;
  --neutral-soft: #172131;
  --bad:          #f2857d;
  --bad-soft:     #2d1614;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 3px rgba(0,0,0,.35), 0 8px 24px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.45), 0 24px 48px -16px rgba(0,0,0,.8);

  /* The logo never changes. Its navy would vanish on a dark surface, so in
     dark mode it sits on a white plate instead of being recoloured. */
  --logo-plate: #ffffff;
  --lv-1: #3987e5; --lv-2: #d95926; --lv-3: #199e70; --lv-4: #c98500; --lv-5: #9a7ae0; --lv-6: #e0607f; --lv-7: #8a93a3; --lv-grid: #2a3547;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.022em; text-wrap: balance; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sub { margin: 0; color: var(--ink-faint); font-size: 13px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent-fill); color: #fff; text-decoration: none;
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  transition: top .18s cubic-bezier(.22,1,.36,1);
}
.skip-link:focus { top: 12px; }

/* ============================ app shell ============================ */

.app-shell { display: flex; align-items: stretch; min-height: 100vh; }

.sidebar {
  width: 236px; flex: none;
  display: flex; flex-direction: column;
  background: var(--side-bg); color: var(--side-ink);
  border-right: 1px solid var(--side-line);
  height: 100vh; position: sticky; top: 0; z-index: 40;
}

/* The logo is the first thing in the rail. The product name sits under it as
   a quiet label with a short orange rule - the only ornament in the rail. */
.sidebar-brand { padding: 16px 14px 18px; flex: none; }
.brand-logo {
  display: inline-block; line-height: 0; padding: 8px 12px; border-radius: 10px;
  background: var(--logo-plate);
}
.brand-logo img { width: 126px; height: auto; display: block; }
.brand-product {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 0 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.brand-product::before {
  content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--brand-orange);
}

.side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 12px 10px; display: flex; flex-direction: column; gap: 2px; }       /* long lists scroll inside the sidebar; the Classic toggle stays in view */
.side-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 9px 12px; border: none; border-radius: var(--radius-sm);
  background: none; color: var(--side-ink-soft); text-align: left; width: 100%;
  transition: background .12s ease, color .12s ease;
}
a.side-item { text-decoration: none; }
.side-item:hover { background: var(--side-bg-hi); color: var(--side-ink); }
.side-item[aria-pressed="true"] {
  background: var(--side-active-bg); color: var(--side-active-ink); font-weight: 600;
}
/* A short orange marker on the active item, flush with the rail's edge. */
.side-item[aria-pressed="true"]::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand-orange);
}
.side-icon { flex: none; display: flex; opacity: .85; }
.side-item[aria-pressed="true"] .side-icon { opacity: 1; }
.side-l { flex: 1 1 auto; overflow: hidden; min-width: 0; line-height: 1.25; }
.side-n {
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 8px; border-radius: 999px; flex: none;
  background: var(--side-bg-hi); color: var(--side-ink-soft);
}
.side-item[aria-pressed="true"] .side-n { background: var(--surface); color: var(--side-active-ink); }

/* Apollo credits: the one budget that runs out and silently stops the
   pipeline finding contacts, so it stays in view - pinned to the foot of the
   rail rather than floating under the nav. */
.side-credits {
  display: block; margin: auto 14px 16px; padding: 12px 14px;
  border: 1px solid var(--side-line); border-radius: var(--radius);
  background: var(--side-bg-hi); text-decoration: none; color: inherit;
  transition: border-color .14s ease;
}
.side-credits:hover { border-color: var(--line-strong); }
.side-credits-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.side-credits-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--side-ink-soft);
}
.side-credits-top b {
  font-size: 16px; font-weight: 600; color: var(--side-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.side-credits-bar {
  display: block; height: 4px; margin: 9px 0 7px; border-radius: 999px;
  background: var(--surface-hi); overflow: hidden;
}
/* A span needs display:block for height and a percentage width to apply. */
.side-credits-bar span {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
.side-credits-bar span.is-low  { background: var(--warn); }
.side-credits-bar span.is-out  { background: var(--bad); }
.side-credits-sub {
  display: block; font-size: 11px; color: var(--side-ink-soft);
  font-variant-numeric: tabular-nums;
}

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.btn-menu {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 45;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
  align-items: center; justify-content: center;
}

/* ============================ top bar ============================ */

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: var(--topbar-h); flex: none;
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}

.global-search {
  position: relative; display: flex; align-items: center;
  flex: 1 1 auto; max-width: 520px;
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 12px; height: 38px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.global-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-focus); background: var(--surface); }
.gs-icon { color: var(--ink-faint); flex: none; }
.global-search input {
  border: none; background: none; outline: none; font: inherit; color: var(--ink);
  flex: 1 1 auto; min-width: 0; padding: 0 10px; height: 100%;
}
.global-search input::placeholder { color: var(--ink-faint); }
.gs-kbd {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; flex: none;
}

.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }

.icon-btn {
  position: relative; width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: none; background: none; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease, color .12s ease;
}
.icon-btn:hover { background: var(--surface-sunk); color: var(--ink); }

/* Mode pill: green "Live" once TEST_MODE is off, red while it is on. The
   label always states the real mode — it is never dressed up as Live. */
.mode-pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 13px 6px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.mode-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.mode-live { background: var(--good-soft); color: var(--good); }
/* Amber, not red: TEST MODE is the SAFE state - nothing reaches a company.
   Red read as an alarm on a screen that is working exactly as intended. */
.mode-test { background: var(--amber-soft); color: var(--amber-ink); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

.topbar-date { display: flex; flex-direction: column; line-height: 1.3; flex: none; text-align: left; }
.topbar-date strong { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.topbar-date span { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.theme-switch {
  display: inline-flex; gap: 2px; padding: 3px; flex: none;
  background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 999px;
}
.theme-switch button {
  width: 30px; height: 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--ink-faint); display: grid; place-items: center;
  transition: background .12s ease, color .12s ease;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.is-on {
  background: var(--surface); color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  flex: none;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--navy);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  display: grid; place-items: center;
}
.avatar-lg {
  width: 52px; height: 52px; border-radius: 12px; font-size: 17px; font-weight: 800;
  background: var(--navy);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.user-meta strong { font-size: 13px; color: var(--ink); }
.user-meta span { font-size: 11px; color: var(--ink-faint); }

/* ============================ controls ============================ */

.btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .1s ease;
}
.btn:hover { background: var(--surface-sunk); border-color: var(--ink-faint); }
.btn:active { transform: translateY(1px); }
/* Run Now stays amber — it is the one "spend real credits" action, and the
   reference marks it the same way. Everything else interactive is blue. */
.btn-primary {
  background: var(--amber); border-color: var(--amber); color: #2a1a05;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-sunk); color: var(--ink); }
.btn-danger { color: var(--bad); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Detail-panel actions: the reference gives each verb its own weight —
   Approve solid navy, Reject a light red, the rest quiet. */
.btn-act { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-approve { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-approve:hover { background: var(--navy-hi); border-color: var(--navy-hi); }
.btn-contact { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-contact:hover { background: var(--surface-sunk); }
.btn-contact svg { color: var(--accent); }
.btn-reject { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn-reject:hover { background: var(--bad-soft); border-color: var(--bad); }
.input {
  font: inherit; font-size: 13px; color: var(--ink);
  padding: 7px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
}
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.select-input {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

/* ============================ run banner ============================ */

.run-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 24px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line);
}
.run-banner-done { background: var(--good-soft); color: var(--good); }
.run-banner-fail { background: var(--bad-soft); color: var(--bad); }
.run-banner-ask { background: var(--surface-sunk); color: var(--ink-soft); font-weight: 400; gap: 12px; flex-wrap: wrap; }
.run-banner-ask strong { color: var(--ink); font-weight: 700; }
.run-banner-ask #run-go { margin-left: auto; }
.run-banner .btn { margin-left: auto; }
.spinner {
  width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; opacity: .6; } }

/* ============================ page ============================ */

.page { padding: 24px 28px 40px; flex: 1 1 auto; min-width: 0; }

/* ============================ page header ============================ */

.greet-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 28px; flex-wrap: wrap; margin-bottom: 20px;
}
.greet-main h1 { font-size: 28px; line-height: 1.15; }
.greet-main .sub {
  margin-top: 6px; font-size: 14px; max-width: 74ch; line-height: 1.55;
  color: var(--ink-soft);
}
.greet-main .sub strong { color: var(--ink); font-weight: 600; }
.page-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ============================ tabs ============================ */

/* Which leads to show. Underlined text rather than a row of pills: these are
   views of one list, and pills gave a filter the visual weight of an action. */
.segments {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.seg-card {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit;
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 1px 11px; margin-bottom: -1px; color: var(--ink-soft);
  transition: color .14s ease, border-color .14s ease;
}
.seg-card:hover { color: var(--ink); }
.seg-card.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.seg-label { font-size: 14px; font-weight: 600; }
.seg-count {
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 1px 8px; border-radius: 999px;
  background: var(--surface-sunk); color: var(--ink-soft);
}
.seg-card.is-active .seg-count { background: var(--accent-soft); color: var(--accent-ink); }

/* ============================ toolbar ============================
   One row. The kind of work is always visible because it is the question
   asked on every visit; everything else folds behind Refine, and whatever is
   applied there is shown as a removable tag, so a filter is never invisible.
   The old bar was five open rows and 18 chips, ~240px tall - taller than the
   list it filtered. */

.toolbar {
  position: relative; display: flex; align-items: center;
  gap: 10px 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.fg-primary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.fchip {
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.fchip:hover { border-color: var(--ink-faint); color: var(--ink); }
.fchip.is-active { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
/* A chip that would show nothing is dimmed, never hidden: "this category is
   empty" is information the operator wants, and a chip that vanishes teaches
   them the bar is unreliable. */
.fchip.is-empty { opacity: .72; }
.fchip-n { margin-left: 6px; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .7; }

/* The primary control: a segmented switch, not four loose buttons. */
.seg-control {
  display: inline-flex; gap: 2px; padding: 3px; height: 38px;
  background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 10px;
}
.seg-control .fchip {
  border: 0; background: none; border-radius: 7px; padding: 0 12px; color: var(--ink-soft);
}
.seg-control .fchip:hover { color: var(--ink); background: none; }
.seg-control .fchip.is-active {
  background: var(--surface); color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.fg-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 38px;
  font: inherit; font-size: 13px; font-weight: 550; cursor: pointer;
  padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.fg-toggle:hover { border-color: var(--ink-faint); color: var(--ink); }
.fg-toggle[aria-expanded="true"], .fg-toggle.has-filters {
  border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft);
}
.fg-toggle-n {
  min-width: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-fill); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Applied refinements, shown where they cannot be missed. */
.applied { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag-x {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 550;
  padding: 4px 7px 4px 11px; border: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.tag-x:hover { background: var(--surface-hi); }
.tag-x svg { flex: none; opacity: .7; }
.fchip-clear {
  font: inherit; font-size: 12px; font-weight: 550; cursor: pointer;
  padding: 4px 2px; border: 0; background: none; color: var(--ink-faint);
  text-decoration: underline; text-underline-offset: 3px;
}
.fchip-clear:hover { color: var(--ink); }

/* Refine: its own row under the toolbar. It pushes the source buttons and the list down instead of floating over them. */
.fg-extra {
  flex: 1 0 100%; padding: 6px 18px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.fg-extra .fg {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center;
  gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.fg-extra .fg:last-child { border-bottom: 0; }
.fg-extra .fg > :not(.fg-label) { min-width: 0; }
.fg-extra .fg { flex-wrap: nowrap; }
.fg-label {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.fg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.select-sm { font-size: 13px; padding: 6px 10px; }

.mini-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 0 12px; height: 38px; width: 230px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.mini-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-focus); }
.mini-search svg { color: var(--ink-faint); flex: none; }
.mini-search input {
  border: none; background: none; outline: none; font: inherit; font-size: 13px;
  color: var(--ink); flex: 1 1 auto; min-width: 0; height: 100%;
}
.toolbar-right .select-input { height: 38px; border-radius: 10px; }
.view-toggle {
  display: flex; gap: 2px; padding: 3px; height: 38px;
  background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 10px;
}
.vt-btn {
  width: 30px; border: none; border-radius: 7px; cursor: pointer;
  background: none; color: var(--ink-faint); display: grid; place-items: center;
  transition: background .12s ease, color .12s ease;
}
.vt-btn:hover { color: var(--ink); }
.vt-btn.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }

.tab-explain { margin: 0 0 12px; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.tab-explain:empty { display: none; }

.bulk-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 9px 14px; background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--accent-ink); font-weight: 600;
}
#bulk-clear { margin-left: auto; }

.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---- find contact ----
   The one control that spends money. The price sits inside the button, so it
   is read as part of the click rather than found afterwards. */
.find-contact-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.find-contact-btn:disabled { opacity: .55; cursor: not-allowed; }
.cost-hint {
  font-size: 11px; font-weight: 500; opacity: .7;
  padding-left: 8px; border-left: 1px solid currentColor;
}
.find-contact-out { margin-top: 9px; font-size: 13px; color: var(--ink-soft); }
/* Whether that click cost anything. Quiet, but never absent: a lookup that
   silently spends is how an operator stops trusting the number. */
.cost-note { margin-top: 4px; font-size: 12px; opacity: .7; }

/* ============================ workspace / table ============================ */

.workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 27vw, 470px);
  gap: 20px; align-items: start;
}

/* overflow: clip, not hidden - hidden makes the pane a scroll container and
   stops the column header sticking to the top of the window. */
.table-pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: clip; box-shadow: var(--shadow-sm);
}

.ltable-head, .lrow2 {
  display: grid;
  grid-template-columns: 22px minmax(210px, 1.7fr) minmax(130px, 1fr) 136px 128px 96px;
  align-items: center; gap: 0 14px;
}
.ltable-head {
  position: sticky; top: var(--topbar-h); z-index: 4;
  height: 40px; padding: 0 18px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.ltable-head > span, .ltable-head > button {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.th-check { display: flex; }
.th-check input, .lchk { width: 15px; height: 15px; accent-color: var(--accent-fill); cursor: pointer; }
.th-score, .th-sortable {
  background: none; border: none; font: inherit; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 4px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.th-score:hover, .th-sortable:hover { color: var(--ink); }

.ltable-body { max-height: none; }
.lrow2 {
  padding: 0 18px; min-height: var(--row); border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .1s ease; position: relative;
}
.lrow2:last-child { border-bottom: none; }
.lrow2:hover { background: var(--surface-sunk); }
.lrow2.is-checked, .lrow2.is-active { background: var(--accent-soft); }
.lrow2.is-active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
}

/* Company mark: a muted tint keyed to the name, so the same company keeps the
   same mark across runs. The rainbow of saturated tiles it replaces competed
   with the score for attention on every single row. */
.l-company { display: flex; align-items: center; gap: 12px; min-width: 0; }
.l-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--tint-6-bg); color: var(--tint-6-fg);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  display: grid; place-items: center;
}
.l-company-text { min-width: 0; }
.l-company-name {
  font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.l-role {
  font-size: 13px; color: var(--ink-soft); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Two lines per cell, the first carrying the fact and the second its context.
   Employment type and source used to be a pill and a whole column, repeated
   identically down a list already filtered to one type. */
.l-where, .l-state-cell { min-width: 0; }
.l-where-main {
  font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.l-where-sub, .l-contact {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 12px; color: var(--ink-faint); white-space: nowrap; min-width: 0;
}
.l-where-sub span { overflow: hidden; text-overflow: ellipsis; }
.l-where-sub svg { flex: none; }
.src-linkedin { color: #0a66c2; }
.src-other { color: var(--ink-faint); }

/* Whether the posting is still open - the question that decides if a lead is
   worth an email at all. Shape carries it as well as colour:
     filled dot = confirmed open      half dot = probably open
     ring       = not checked         red dot  = closed                    */
.l-state { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: var(--ink); }
.st-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; border: 1.5px solid currentColor; }
.st-open { color: var(--good); }
.st-open .st-dot { background: currentColor; }
.st-probable { color: var(--good); }
.st-probable .st-dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st-unknown { color: var(--ink-faint); }
.st-unknown .st-dot { background: transparent; }
.st-closed { color: var(--bad); }
.st-closed .st-dot { background: currentColor; }
.l-state .st-label { color: var(--ink); }
.st-closed .st-label { color: var(--bad); }
.st-unknown .st-label { color: var(--ink-faint); font-weight: 500; }
.l-contact.has { color: var(--ink-soft); }
.l-contact.has svg { color: var(--good); }
.lrow2.is-closed .l-company-name, .lrow2.is-closed .l-role { opacity: .55; }

.l-score-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.l-score { font-weight: 600; font-size: 15px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1; }
.l-score.s-hot { color: var(--accent-ink); }
.l-score.s-warm { color: var(--ink); }
.l-score.s-cold { color: var(--ink-soft); }
/* A zero is a real verdict ("nothing scored"), not missing data. */
.l-score.s-dead, .l-score.s-none { color: var(--ink-faint); font-weight: 500; }
.l-score.s-neg { color: var(--bad); }
/* Spans need an explicit box - as inlines, height and a percentage width are
   silently ignored and the bar renders as a hairline. */
.l-score-track { display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--surface-hi); overflow: hidden; }
.l-score-fill { display: block; height: 100%; border-radius: 2px; background: var(--accent); opacity: .45; }
/* Length encodes magnitude; the send threshold gets the full colour. */
.l-score-fill.f-hot { opacity: 1; }
.l-score-fill.f-cold { background: var(--line-strong); opacity: 1; }

.l-posted { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.l-posted-none { color: var(--ink-faint); }

.pill {
  display: inline-block; max-width: 100%;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  background: var(--neutral-soft); color: var(--neutral);
}
.pill-client, .pill-contract { background: var(--good-soft); color: var(--good); }
.pill-competitor { background: var(--warn-soft); color: var(--warn); }
.pill-listicle, .pill-rejected, .pill-not_a_job { background: var(--bad-soft); color: var(--bad); }
.pill-auto_send, .pill-approved { background: var(--good-soft); color: var(--good); }
.pill-review { background: var(--warn-soft); color: var(--warn); }
.pill-pending_jd { background: var(--accent-soft); color: var(--accent-ink); }
.pill-unknown { background: transparent; border: 1px dashed var(--line-strong); }
.emp-unknown { color: var(--ink-faint); font-style: italic; font-size: 12px; }

.table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.table-foot-count { font-size: 12px; color: var(--ink-faint); }
.pager { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: 12px; cursor: pointer;
}
.page-btn:hover { background: var(--surface-sunk); }
/* Near-black ink left over from the amber accent: 3.59:1 once the accent
   became blue. White reads 5.17:1 on it. */
.page-btn.is-active { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- skeleton rows ---- */
.skel-row { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: var(--row); border-bottom: 1px solid var(--line); }
.skel { display: block; height: 9px; border-radius: var(--radius-xs); background: var(--surface-sunk); animation: pulse 1.4s ease-in-out infinite; }
.skel-sm { width: 60%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.empty { color: var(--ink-faint); font-size: 13px; }
.empty-state { padding: 56px 20px; text-align: center; }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }
.empty-state p { margin: 0 auto; max-width: 380px; color: var(--ink-faint); font-size: 13px; }
.empty-state .btn { margin-top: 16px; }

/* ============================ companies table ============================ */

.co-search { margin-left: 0; width: 260px; }
.cotable-head, .corow {
  display: grid;
  grid-template-columns: minmax(200px, 2.2fr) 150px 78px minmax(200px, 1.4fr) 110px;
  align-items: center; gap: 0 14px; padding: 0 16px;
}
.cotable-head {
  height: 44px; border-bottom: 1px solid var(--line); background: var(--surface);
  font-size: 11px; font-weight: 600; color: var(--ink-faint);
}
.corow {
  min-height: 62px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s ease;
}
.corow:last-child { border-bottom: none; }
.corow:hover { background: var(--surface-sunk); }

.co-roles { display: flex; align-items: baseline; gap: 7px; }
.roles-n { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
/* Three or more open roles is the signal this page exists to surface. */
.roles-n.is-hot { color: var(--good); }
.roles-new {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.co-cell { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ outreach ============================ */

.outreach-mode { flex: none; }

/* The one figure with no tab of its own: today's allowance, kept in view. */
.or-tabs { align-items: flex-end; }
.or-today { margin: 0 0 10px auto; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.or-today b { color: var(--ink); font-weight: 700; }

/* Section tabs share the underline style of the Leads tabs. */
.or-tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; background: none; border: 0;
  border-bottom: 2px solid transparent; padding: 9px 1px 11px; margin-bottom: -1px;
  color: var(--ink-soft); transition: color .14s ease, border-color .14s ease;
}
.or-tab:hover { color: var(--ink); }
.or-tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.or-tab.is-active .seg-count { background: var(--accent-soft); color: var(--accent-ink); }

.or-lede { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); max-width: 96ch; }
.or-lede strong { color: var(--ink); font-weight: 600; }

/* Segment chips: the tint follows the segment everywhere it appears. */
.seg-chip {
  display: inline-block; padding: 1px 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 600; background: var(--tint-6-bg); color: var(--tint-6-fg);
}
.seg-mulesoft { background: var(--tint-1-bg); color: var(--tint-1-fg); }
.seg-boomi    { background: var(--tint-3-bg); color: var(--tint-3-fg); }
.seg-ai       { background: var(--tint-4-bg); color: var(--tint-4-fg); }
.seg-default  { background: var(--tint-6-bg); color: var(--tint-6-fg); }

/* ---- the log: a grid, one square per email ---- */

.tk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tk-pane { --tk-days: 4; }
.tk-head, .tk-row {
  display: grid; align-items: center;
  grid-template-columns: minmax(210px, 1fr) repeat(var(--tk-days), 84px) 210px;
}
.tk-head {
  position: sticky; top: var(--topbar-h); z-index: 4; height: 38px; padding: 0 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tk-head span {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
}
.tk-h-day { text-align: center; }
.tk-h-end { padding-left: 12px; }
.tk-item { border-bottom: 1px solid var(--line); }
.tk-item:last-child { border-bottom: 0; }
.tk-row { padding: 0 16px; min-height: 58px; transition: background .1s ease; }
.tk-item:hover > .tk-row { background: var(--surface-sunk); }
.tk-mail { padding: 4px 18px 18px 64px; background: var(--surface-sunk); }
.tk-reply-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.tk-mail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-bottom: 8px; font-size: 12px; color: var(--ink-soft); }
.tk-mail-head b { margin-right: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tk-mail-kind { padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.tk-mail-kind.is-sent { background: var(--accent-soft); color: var(--accent-fill); }
.tk-mail-kind.is-replied { background: var(--good-soft); color: var(--good); }
.tk-mail-kind.is-plan { background: var(--neutral-soft); color: var(--ink-soft); }
/* A thin edge marks the rows that ended one way or the other. */
.tk-o-replied > .tk-row { box-shadow: inset 3px 0 0 var(--good); }
.tk-o-finished > .tk-row { box-shadow: inset 3px 0 0 var(--bad); }

.tk-co { display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 10px; }
.tk-co-text { min-width: 0; }
.tk-co-name { font-size: 14px; font-weight: 600; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-co-sub { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 12px; color: var(--ink-faint); min-width: 0; }
.tk-co-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* A square per email. Blue: sent. Green: they replied. Red: it all ran out
   with no reply. Outline only: still to come. Every state has a glyph too, so
   the grid reads in greyscale. Blue is the interactive navy family and green /
   red are the semantic pair, so nothing here is a new hue. */
.tk-slot { display: grid; place-items: center; align-self: stretch; border-left: 1px solid var(--line); }
.tk-c {
  width: 48px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  font: inherit; font-size: 13px; font-weight: 700; padding: 0; cursor: pointer;
  border: 1px solid transparent; transition: box-shadow .12s ease, transform .08s ease;
}
.tk-c:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--line-strong); }
.tk-c.is-open { box-shadow: 0 0 0 2px var(--accent); }
.tk-c:disabled { cursor: default; }
.tk-c svg { display: block; }

.tk-blue  { background: var(--accent-fill); color: #fff; }
/* The glyph takes the surface colour, not white: --good and --bad are brighter
   in dark mode, where a white tick on them nearly vanishes. */
.tk-green { background: var(--good); color: var(--surface); }
.tk-red   { background: var(--bad); color: var(--surface); }
.tk-todo  { background: transparent; border: 1.5px dashed var(--line-strong); }
.tk-due   { background: transparent; border: 1.5px solid var(--accent-fill); color: var(--accent-fill); }
.tk-pip   { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tk-fail  { background: var(--amber-soft); color: var(--amber-ink); border-color: var(--amber-ink); }
.tk-skip  { background: transparent; color: var(--ink-faint); opacity: .45; font-weight: 400; }

.tk-end { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 8px 0 8px 12px; border-left: 1px solid var(--line); align-self: stretch; justify-content: center; }
.tk-outcome { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tk-oc-active   { background: var(--accent-soft); color: var(--accent-fill); }
.tk-oc-replied  { background: var(--good-soft); color: var(--good); }
.tk-oc-finished { background: var(--bad-soft); color: var(--bad); }
.tk-oc-stopped  { background: var(--neutral-soft); color: var(--neutral); }
.tk-next { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.tk-actions { display: flex; align-items: center; gap: 4px; }
.tk-actions .btn-sm { padding-left: 9px; padding-right: 9px; }

.tk-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 12px 2px 0; padding: 0;
  font-size: 12px; color: var(--ink-faint);
}
.tk-legend li { display: flex; align-items: center; gap: 7px; }
.tk-legend .lg-tip { margin-left: auto; font-style: italic; }
.lg { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lg-blue  { background: var(--accent-fill); }
.lg-green { background: var(--good); }
.lg-red   { background: var(--bad); }
.lg-todo  { border: 1.5px dashed var(--line-strong); }

/* Below this the grid no longer fits beside the sidebar; it scrolls sideways
   with the company and the status column pinned. */
@media (max-width: 1130px) {
  .tk-pane { overflow-x: auto; }
  .tk-head, .tk-row { min-width: 820px; }
  /* An overflow container becomes the sticky header's scroll parent, so it
     would sit `--topbar-h` down the pane and cover the first row. */
  .tk-head { position: static; }
  .tk-co, .tk-end, .tk-h-co, .tk-h-end { position: sticky; z-index: 2; background: var(--surface); }
  .tk-co, .tk-h-co { left: 0; }
  .tk-end, .tk-h-end { right: 0; }
  .tk-item:hover .tk-co, .tk-item:hover .tk-end { background: var(--surface-sunk); }
  .tk-o-replied > .tk-row, .tk-o-finished > .tk-row { box-shadow: none; }
  .tk-o-replied .tk-co { box-shadow: inset 3px 0 0 var(--good); padding-left: 8px; }
  .tk-o-finished .tk-co { box-shadow: inset 3px 0 0 var(--bad); padding-left: 8px; }
}
@media (max-width: 760px) {
  .or-tabs { gap: 6px 18px; }
  .or-today { flex-basis: 100%; margin: 0 0 8px; }
}

/* ---- ready to start ---- */

.rd-head, .rd-row {
  display: grid; align-items: center; gap: 0 14px; padding: 0 18px;
  grid-template-columns: minmax(200px, 1.5fr) minmax(150px, 1fr) 104px 60px 124px 168px;
}
.rd-head { height: 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rd-head span {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}
.rd-item { border-bottom: 1px solid var(--line); }
.rd-item:last-child { border-bottom: 0; }
.rd-row { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.rd-item:hover { background: var(--surface-sunk); }
.rd-c-name { font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-c-sub { font-size: 12px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.rd-actions { display: flex; gap: 6px; justify-content: flex-end; }
.rd-mail { padding: 2px 18px 18px 66px; }
.rd-mail-head { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 8px; font-size: 12px; color: var(--ink-soft); }
.rd-mail-head b { margin-right: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.rd-mail-subject { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.rd-blocked {
  margin-top: 14px; padding: 12px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.rd-blocked summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--warn); }
.rd-blocked > p { margin: 8px 0 6px; }
.rd-blocked-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 13px;
}

/* ---- drafts: pick a segment, pick a day, edit with the result beside you ---- */

.dr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.dr-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.dr-tab:hover { border-color: var(--ink-faint); color: var(--ink); }
.dr-tab.is-on { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.dr-tab-n { font-style: normal; font-size: 11px; font-weight: 600; opacity: .8; }
.dr-sender { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.dr-warn { color: var(--warn); }
.dr-mailout { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.dr-mailout.is-ok { color: var(--good); }
.dr-mailout.is-bad { color: var(--bad); }
.dr-segnote { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }

.dr-editor {
  display: grid; grid-template-columns: 250px minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 26px; align-items: start;
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}

/* The days, as a vertical run down the left: the order they go out in. */
.dr-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.dr-steps::before {
  content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.dr-step {
  display: flex; gap: 12px; width: 100%; padding: 10px 10px 10px 0; text-align: left; font: inherit;
  color: var(--ink); cursor: pointer; background: transparent; border: 0; border-radius: 10px;
}
.dr-step-dot {
  position: relative; flex: none; width: 13px; height: 13px; margin-top: 3px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
}
.dr-step:hover .dr-step-dot { border-color: var(--ink-faint); }
.dr-step.is-on .dr-step-dot { border-color: var(--accent-fill); background: var(--accent-fill); }
.dr-step-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dr-step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dr-step-top b { font-size: 14px; }
.dr-step.is-on .dr-step-top b { color: var(--accent-ink); }
.dr-step-state { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.dr-step-state.is-edited { color: var(--accent-ink); }
.dr-step-state.is-edited::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px;
  border-radius: 50%; background: var(--accent); vertical-align: 1px;
}
.dr-step-note { font-size: 12px; line-height: 1.4; color: var(--ink-faint); }
.dr-step-subject {
  font-size: 12px; line-height: 1.35; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dr-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dr-title h3 { display: flex; align-items: center; gap: 9px; font-size: 17px; }
.dr-state { font-size: 12px; color: var(--ink-faint); }
.dr-field { display: block; margin-bottom: 12px; }
.dr-field > span {
  display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
}
.dr-field .input { width: 100%; }
.dr-field textarea.input { resize: vertical; }
.dr-body { font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.dr-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-msg { font-size: 12px; color: var(--ink-soft); }
.dr-side { min-width: 0; }
.dr-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 8px; }
.dr-preview-head .q-muted { font-size: 12px; }
.dr-preview-head h4 {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
}
.dr-out {
  margin: 0 0 14px; padding: 16px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--surface-sunk); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; line-height: 1.65; color: var(--ink);
  max-height: 460px; overflow-y: auto;
}
.dr-help summary { cursor: pointer; padding: 6px 0; font-size: 12px; color: var(--ink-faint); }
.dr-help code {
  font-size: 12px; padding: 1px 6px; border-radius: 5px;
  background: var(--surface-sunk); border: 1px solid var(--line);
}
.dr-ph { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 4px 0 0; align-items: baseline; }
.dr-ph dt { margin: 0; }
.dr-ph dd { margin: 0; font-size: 12px; color: var(--ink-faint); }

@media (max-width: 1240px) {
  .dr-editor { grid-template-columns: 220px minmax(0, 1fr); }
  .dr-side { grid-column: 1 / -1; margin-top: 18px; }
}
@media (max-width: 760px) {
  .dr-editor { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dr-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 16px; }
  .dr-steps::before { display: none; }
  .dr-step-note { display: none; }
}

/* ---- replies ---- */

.rp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.rp-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.rp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rp-subject { margin-top: 2px; font-size: 13px; font-weight: 600; }
.rp-snippet { margin: 6px 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }

/* Orange means "this spends real credits" and appears once per screen (Run
   now). The per-row Start / Send next buttons are ordinary actions, so they
   take the interactive colour - a column of orange buttons reads as alarms. */
.rd-start, .tk-send, .dr-actions .btn-primary, .d-actions .btn-primary {
  background: var(--accent-fill); border-color: var(--accent-fill); color: #fff;
}
.rd-start:hover, .tk-send:hover, .dr-actions .btn-primary:hover, .d-actions .btn-primary:hover {
  filter: brightness(1.12);
}

@media (max-width: 760px) {
  .rd-head { display: none; }
  .rd-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .rd-contact, .rd-row > .l-score, .rd-row > .l-state { display: none; }
  .rd-mail { padding-left: 18px; }
}

/* ============================ analytics panels ============================ */

.ocard-note { margin: -8px 0 14px; font-size: 12px; color: var(--ink-faint); line-height: 1.5; max-width: 76ch; }

.srcq { display: flex; flex-direction: column; gap: 16px; }
.srcq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.srcq-head strong { font-size: 13px; }
.srcq-total { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.srcq-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-sunk); }
.srcq-seg { height: 100%; }
.seg-client { background: var(--good); }
.seg-agency { background: var(--warn); }
.seg-junk { background: var(--bad); }
.srcq-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px;
  font-size: 12px; color: var(--ink-faint);
}
.srcq-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.srcq-warn { color: var(--bad); font-weight: 700; }

.runtable { display: flex; flex-direction: column; min-width: 0; overflow-x: auto; }
.runtable-head, .runtable-row {
  display: grid; grid-template-columns: 54px minmax(130px, 1.3fr) 82px 82px 64px 76px 96px 92px;
  align-items: center; gap: 0 10px; text-align: left;
}
.runtable-head {
  padding: 0 10px 9px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line);
}
.runtable-row {
  padding: 11px 10px; border: none; border-bottom: 1px solid var(--line);
  background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer;
  border-radius: 7px;
}
.runtable-row:last-child { border-bottom: none; }
.runtable-row:hover { background: var(--surface-sunk); }
.runtable-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runtable-row b { font-variant-numeric: tabular-nums; }
.run-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; justify-self: start; }
.run-ok { background: var(--good-soft); color: var(--good); }
.run-run { background: var(--accent-soft); color: var(--accent); }
.run-bad { background: var(--bad-soft); color: var(--bad); }

.blocked { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.blocked-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 8px;
}
.blocked-row:hover { background: var(--surface-sunk); }
.blocked-logo { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
.blocked-main { min-width: 0; }
.blocked-main strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blocked-main span { font-size: 11px; color: var(--ink-faint); overflow-wrap: anywhere; }
.blocked-n { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================ case pane (detail) ============================ */

.case-pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px);
  max-height: calc(100vh - var(--topbar-h) - 32px); display: flex; flex-direction: column;
}
/* The empty pane describes the list on screen - a snapshot, not a placeholder.
   Left-aligned and top-weighted: centred text reads as "nothing here" however
   much is in it. */
.case-empty {
  flex: 1; display: flex; flex-direction: column;
  gap: 22px; padding: 26px 26px 22px; color: var(--ink-faint); font-size: 13px;
  min-height: 320px;
}
.ce-kicker {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint);
}
.ce-total { display: flex; align-items: baseline; gap: 10px; margin: -12px 0 0; }
.ce-total b {
  font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.ce-total span { font-size: 14px; color: var(--ink-soft); }
.tk-blocked { color: var(--bad, #c2410c); font-size: 12px; max-width: 240px; line-height: 1.25; }
.or-results { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; background: var(--surface, transparent); font-size: 13px; }
.or-res-top { color: var(--ink); }
.or-res-cols { display: flex; gap: 32px; margin-top: 8px; color: var(--ink-faint); }
.or-res-cols ul { list-style: none; margin: 0; padding: 0; }
.or-res-cols b { color: var(--ink); margin-right: 6px; font-weight: 600; }
.ce-bars { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ce-bar-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-soft);
}
.ce-bar-top b { color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ce-bar-top i { font-style: normal; margin-left: 8px; font-size: 12px; color: var(--ink-faint); }
.ce-track { height: 6px; border-radius: 3px; background: var(--surface-hi); margin-top: 8px; overflow: hidden; }
.ce-track span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.ce-note {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-sunk); font-size: 13px; line-height: 1.55; color: var(--ink-soft);
}
.ce-note strong { color: var(--ink); font-weight: 600; }
.case-empty .hint { margin-top: auto; justify-content: flex-start; }
.case-body { display: flex; flex-direction: column; min-height: 0; }

.case-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.case-badge { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.drawer-nav { display: flex; gap: 2px; }
#mobile-case-close { display: none; }

.case-title-row { display: flex; align-items: flex-start; gap: 13px; padding: 10px 18px 14px; }
.case-title-main { min-width: 0; flex: 1; }
.case-title-main h2 {
  font-size: 20px; letter-spacing: -.02em; overflow-wrap: break-word; word-break: normal;
  display: flex; align-items: center; gap: 8px;
}
.case-title-main .sub { margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.title-link { color: var(--ink-faint); display: inline-flex; flex: none; }
.title-link:hover { color: var(--accent); }

.score-card {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 9px 14px; border-radius: 12px;
  background: var(--good-soft); border: 1px solid transparent;
}
.score-card-ico { color: var(--good); display: flex; flex: none; }
.score-card-meta { display: flex; flex-direction: column; line-height: 1.15; }
.score-card-l { font-size: 11px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.score-card-v { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score-card-v.score-card-none { font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.score-card.s-warm { background: var(--warn-soft); }
.score-card.s-warm .score-card-ico { color: var(--warn); }
.score-card.s-cold, .score-card.s-none, .score-card.s-dead { background: var(--surface-sunk); }
.score-card.s-cold .score-card-ico, .score-card.s-none .score-card-ico, .score-card.s-dead .score-card-ico { color: var(--ink-faint); }
.score-card.s-neg { background: var(--bad-soft); }
.score-card.s-neg .score-card-ico { color: var(--bad); }
.score-card.s-neg .score-card-v { color: var(--bad); }

.case-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 18px 14px; font-size: 12px; color: var(--ink-soft); }
.case-meta-row .meta-item { display: flex; align-items: center; gap: 5px; }
.case-meta-row svg { color: var(--ink-faint); flex: none; }

/* Wrap rather than truncate. These read "Appro...", "Rejec...", "Still ope..."
   on a narrow pane, and a button whose label is cut in half is a button the
   operator has to guess at. A second row costs 40 pixels; guessing costs a
   wrong click on Reject. */
.case-pane .drawer-actions {
  padding: 0 18px 16px; display: flex; gap: 7px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); min-width: 0;
}
.case-pane .drawer-actions .btn-act { flex: none; white-space: nowrap; }
.case-pane .drawer-actions .btn-act svg { flex: none; }

.case-tabs {
  display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; flex: none;
}
.case-tab {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 11px 12px; border: none; background: none; color: var(--ink-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.case-tab:hover { color: var(--ink); }
.case-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ---- Key Highlights: derived from the verified evidence rows, so each
   tick is something the pipeline actually confirmed, never filler. ---- */
.highlights { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.hl-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.hl-row svg { flex: none; color: var(--good); margin-top: 1px; }
.pullquote {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-sunk); border: 1px solid var(--line); position: relative;
}
.pullquote-mark { color: var(--ink-faint); opacity: .5; display: block; margin-bottom: 4px; }
.pullquote p {
  margin: 0; font-family: var(--display); font-style: italic; font-size: 13px;
  line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere;
}
.highlight-grid { display: grid; grid-template-columns: 1fr minmax(0, 200px); gap: 16px; align-items: start; }

.case-pane .drawer-body { padding: 18px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }

.dsec-title {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 10px;
}
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; align-items: start; }
.info-card a, .info-card dd { overflow-wrap: anywhere; }
.info-card {
  background: var(--surface-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; min-width: 0;
}
.info-card-company { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 11px; }
.co-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
}
.co-text { min-width: 0; }
.co-text strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.co-text a {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  font-size: 12px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere;
}
.co-text a:hover { text-decoration: underline; }
.info-card-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.co-empty { font-style: italic; color: var(--ink-faint); }

.co-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 12px;
  margin: 9px 0 0; font-size: 12px;
}
.co-facts dt { color: var(--ink-faint); white-space: nowrap; }
.co-facts dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.contact-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  padding: 6px 11px; border-radius: 999px; background: var(--warn-soft); color: var(--warn);
  font-size: 12px; font-weight: 600; max-width: 100%;
}
.contact-chip svg { flex: none; }
.contact-chip.chip-ok { background: var(--good-soft); color: var(--good); }
.contact-sub { margin-top: 6px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; overflow-wrap: anywhere; }

.kv { display: grid; grid-template-columns: minmax(78px, auto) 1fr; gap: 9px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-faint); }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; font-weight: 600; }
/* The score in Quick Info is the same number as the Lead Score card, so it
   carries the same weight rather than reading as an afterthought. */
.kv dd.kv-score { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kv dd .status-new { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.kv dd .status-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.about-block { font-size: 13px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 6px; }
.show-more-btn { background: none; border: none; color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 4px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--surface-hi); color: var(--ink-soft); font-size: 12px; font-weight: 600; }
/* --------- rubric --------- */
.rubric { display: flex; flex-direction: column; gap: 9px; }
.rubric-item { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--surface); }
.rubric-item.r-pos { border-left-color: var(--good); }
.rubric-item.r-neg { border-left-color: var(--bad); }
.rubric-item.r-zero { border-left-color: var(--line-strong); }
.rubric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rubric-name { font-weight: 600; font-size: 13px; }
.rubric-pts { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; flex: none; }
.pts-pos { color: var(--good); }
.pts-neg { color: var(--bad); }
.pts-zero { color: var(--ink-faint); }
.rubric-quote { margin: 9px 0 0; padding-left: 11px; border-left: 2px solid var(--line); font-size: 13px; color: var(--ink-soft); font-style: italic; overflow-wrap: anywhere; }
.rubric-meta { margin-top: 8px; font-size: 11px; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); }
.verified-yes { color: var(--good); font-weight: 600; }
.verified-no { color: var(--bad); font-weight: 600; }

.verdict {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-sunk); border: 1px solid var(--line); margin-bottom: 18px;
}
.verdict-score { font-family: var(--mono); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.verdict-score.s-hot { color: var(--good); }
.verdict-score.s-warm { color: var(--warn); }
.verdict-score.s-cold { color: var(--ink-faint); }
.verdict-of { font-size: 12px; color: var(--ink-faint); font-family: var(--mono); }
.verdict-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.verdict-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.verdict-reason { font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; }

.jd-box {
  font-size: 13px; line-height: 1.65; color: var(--ink-soft); background: var(--surface-sunk);
  padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.show-more-btn { margin-top: 10px; }
.show-more-btn svg { transition: transform .15s ease; }
.show-more-btn.is-open svg { transform: rotate(180deg); }
textarea.draft {
  width: 100%; min-height: 260px; font: 13px/1.65 var(--body); color: var(--ink);
  padding: 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); resize: vertical;
}
.d-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; z-index: 80;
  box-shadow: var(--shadow-lg); max-width: min(440px, calc(100vw - 32px));
}

.q-muted { color: var(--ink-faint); font-size: 12px; }
.tick { color: var(--good); font-weight: 700; }

/* ---- settings drawer ---- */
.scrim { position: fixed; inset: 0; background: rgba(6,10,20,.5); z-index: 42; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); z-index: 50; display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: flex-start; gap: 14px; padding: 17px 22px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-head h2 { font-size: 20px; }
.drawer-body { padding: 20px 22px 64px; overflow-y: auto; overscroll-behavior: contain; }
.kw-group { margin-bottom: 15px; }
.kw-group label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.kw-group .input { width: 100%; }
.field-note { margin: 6px 0 0; font-size: 11px; color: var(--ink-faint); line-height: 1.5; }
.kw-group textarea { width: 100%; min-height: 110px; font: 12px/1.7 var(--mono); color: var(--ink); padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); resize: vertical; }

kbd { font: 11px var(--mono); background: var(--surface-sunk); color: var(--ink-soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.hint { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 11px; color: var(--ink-faint); }
.hint span { display: flex; align-items: center; gap: 5px; }

/* ============================ overview / analytics page ============================ */

.overview { padding: 24px 28px 50px; max-width: 1200px; }
.overview-head { margin-bottom: 18px; }
.overview-head h2 { font-size: 22px; }
.overview-head .sub { margin-top: 4px; }

.strip {
  display: flex; align-items: stretch; gap: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 0 20px; overflow-x: auto; margin-bottom: 20px;
}
.metric { display: flex; flex-direction: column; justify-content: center; padding: 14px 22px 14px 0; margin-right: 22px; border-right: 1px solid var(--line); flex: none; min-width: 0; }
.metric:last-of-type { border-right: none; margin-right: 0; }
.metric-v { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-l { font-size: 11px; color: var(--ink-faint); white-space: nowrap; margin-top: 3px; }
.metric-act .metric-v { color: var(--good); }
.strip-spark { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 10px 0 10px 22px; flex: none; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; }
.spark-bar { width: 7px; border-radius: 2px 2px 0 0; background: var(--neutral); min-height: 2px; }
.spark-cap { font-size: 11px; color: var(--ink-faint); white-space: nowrap; font-family: var(--mono); }

.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.ocard-wide { grid-column: 1 / -1; }
.ocard > h3 { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }

.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; }
.funnel-label { font-size: 12px; color: var(--ink-soft); }
.funnel-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; font-family: var(--mono); }
.funnel-track { grid-column: 1 / -1; height: 6px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; }
.funnel-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.barlist { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 104px 1fr 32px; gap: 10px; align-items: center; font-size: 12px; }
.bar-track { height: 6px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--neutral); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; font-family: var(--mono); }
.bar-label { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.usage { display: flex; flex-direction: column; gap: 10px; }
.usage-bar { height: 6px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--good); border-radius: 3px; }
.usage-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.usage-row b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--mono); }

.runs { display: flex; flex-direction: column; gap: 2px; }
.run-id { font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--mono); }
/* ============================ responsive ============================ */

/* Laptop widths. At 1366px the list had ~670px and its columns wanted 750, so
   the Posted column was cut off. The pane and the columns give ground together. */
@media (max-width: 1520px) {
  .workspace { grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 400px); gap: 16px; }
  .ltable-head, .lrow2 {
    grid-template-columns: 22px minmax(160px, 1.5fr) minmax(110px, 1fr) 122px 118px 88px;
    gap: 0 12px;
  }
  .ltable-head, .lrow2 { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 1fr; }
  /* A drawer from the right, not a block under the list: at this width the
     list fills the screen and the pane used to land ~1,100px down the page. */
  .case-pane {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(560px, 92vw);
    z-index: 45; max-height: none; border-radius: 0; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .22s cubic-bezier(.22,1,.36,1);
  }
  .case-pane.is-open { transform: translateX(0); }
  #mobile-case-close { display: flex; }
  /* The sidebar is still docked at this width, so the topbar has ~240px
     less to work with and the name/role stack pushed it past the viewport.
     The avatar still identifies the account. */
  .user-meta { display: none; }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; inset: 0; right: auto; width: min(280px, 84vw);
    z-index: 50; transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.22,1,.36,1); box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open { transform: translateX(0); }
  .btn-menu { display: flex; }
  /* The 58px gutter for the menu button is added here, but nothing gave
     width back until 760px, so 768-980px overflowed the viewport by ~90px
     and the page scrolled sideways. The name/role stack and the date are
     the two widest things that carry no unique information. */
  .topbar { padding-left: 58px; }
  .user-meta { display: none; }
  .topbar-date { display: none; }

  .case-pane {
    position: fixed; inset: 0; top: 0; z-index: 45; width: auto;
    transform: translateX(100%); transition: transform .22s cubic-bezier(.22,1,.36,1);
    border-radius: 0; max-height: none;
  }
  .case-pane.is-open { transform: translateX(0); }
  #mobile-case-close { display: flex; }
}

@media (max-width: 760px) {
  /* Search, mode badge, icons and avatar all competing for one row is what
     clipped the TEST MODE pill at phone width — the search field shrinks
     and the mode badge's label compresses to fit everything without loss. */
  .topbar { padding: 0 10px 0 58px; gap: 6px; }
  .global-search { flex: 1 1 60px; min-width: 0; }
  .global-search .gs-kbd { display: none; }
  .mode-pill { padding: 5px 9px; font-size: 11px; }
  .topbar-date { display: none; }
  .user-meta { display: none; }
  .user-chip { padding: 5px; }

  .page { padding: 16px 14px 40px; }
  .overview { padding: 16px 14px 40px; }
  .greet-head { flex-direction: column; align-items: stretch; }
  .filter-bar { flex-wrap: wrap; }
  .toolbar-right { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .seg-control { overflow-x: auto; max-width: 100%; }
  .mini-search { margin-left: 0; width: 100%; order: -1; }

  .ltable-head { display: none; }
  .lrow2 {
    grid-template-columns: 20px 1fr 92px; padding: 12px 14px; min-height: auto;
    row-gap: 6px;
  }
  .l-where, .l-state-cell, .l-posted { display: none; }

  .case-title-row { flex-wrap: wrap; }
  .drawer-actions { gap: 6px; }
  .btn-act { padding: 8px 11px; font-size: 12px; }
  .highlight-grid { grid-template-columns: 1fr; }

  .strip { padding: 0 14px; }
  .strip-spark { display: none; }
  .metric { padding: 10px 14px 10px 0; margin-right: 14px; }
  .metric-v { font-size: 20px; }
}

/* The narrowest phones still in use (iPhone SE 1st gen, 320px). The topbar
   keeps a fixed 58px gutter for the menu button, and with the search field,
   mode pill, bell and avatar beside it the row ran ~10px past the viewport
   and scrolled the whole page sideways. */
@media (max-width: 340px) {
  .topbar { padding: 0 6px 0 50px; gap: 4px; }
  .mode-pill { padding: 4px 7px; font-size: 11px; }
  .avatar { width: 28px; height: 28px; font-size: 11px; }
  .user-chip { padding: 3px; }
}



/* ---- closed postings ----
   LinkedIn serves a dead advert with a 200 and its full description, so
   nothing else on the row distinguishes it from a live one. */
.closed-badge {
  display: inline-block; margin-left: 7px; padding: 1px 7px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  background: var(--bad-soft); color: var(--bad);       /* the theme's pair: readable in light and dark (review U7) */
}
.check-open-out { margin-top: 9px; font-size: 13px; color: var(--ink-soft); }
.check-open-out.is-closed { color: var(--bad); font-weight: 600; }
.check-open-out.is-open { color: var(--good); font-weight: 600; }

/* Laptop widths: the avatar in the detail header costs 65px the title needs. */
@media (max-width: 1520px) {
  .case-title-row .avatar-lg { display: none; }
}

@media (max-width: 760px) {
  .seg-control { height: auto; flex-wrap: wrap; }
}

/* Shown when the server stops answering; clears itself when it comes back. */
.net-banner {
  position: sticky; top: 0; z-index: 70; padding: 9px 20px; text-align: center;
  font-size: 13px; font-weight: 600; background: var(--bad-soft); color: var(--bad);
  border-bottom: 1px solid var(--bad);
}
.net-banner[hidden] { display: none; }

/* On a phone the pinned company and status columns took the whole width and
   hid the squares - the point of the grid. Let the whole row scroll instead. */
@media (max-width: 760px) {
  .tk-co, .tk-end, .tk-h-co, .tk-h-end { position: static; }
  .tk-o-replied .tk-co, .tk-o-finished .tk-co { box-shadow: none; padding-left: 0; }
  .tk-o-replied > .tk-row { box-shadow: inset 3px 0 0 var(--good); }
  .tk-o-finished > .tk-row { box-shadow: inset 3px 0 0 var(--bad); }
}

/* Keyboard focus must be visible on the things that are not native controls. */
.lrow2:focus-visible, .case-tab:focus-visible, .or-tab:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px;
}

.toast { display: flex; align-items: center; gap: 14px; }
.toast-undo {
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 3px 10px;
  border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit;
}
.toast-undo:hover { background: rgba(255,255,255,.14); }
.l-approved {
  margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap;
}

/* ============================ one app: Today, the Admin group, the scope switch ============================ */

/* A quiet heading above the admin-ish items. */
.side-group {
  margin: 14px 0 3px; padding: 0 12px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--side-ink-soft);
}

/* "All technologies": off by default; the lead list is MuleSoft-only until it is switched on. */
.scope-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-soft); user-select: none; padding: 4px 2px; position: relative; }
.scope-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scope-track { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); transition: background .14s ease; flex: none; }
.scope-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .14s ease; }
.scope-switch input:checked + .scope-track { background: var(--accent-fill); }
.scope-switch input:checked + .scope-track::after { transform: translateX(14px); }
.scope-switch input:focus-visible + .scope-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.scope-switch input:checked ~ .scope-text { color: var(--ink); font-weight: 600; }
/* With the MuleSoft scope on, the other technologies' chips would only ever read 0. */
.scope-mulesoft .fchip-tech { display: none; }

/* The opportunity verdict beside a score. Words as well as colour. */
.l-score-line { display: inline-flex; align-items: center; gap: 8px; }
.q-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); white-space: nowrap; }
.q-tag.q-qualified { background: var(--good-soft); color: var(--good); }
.q-tag.q-review { background: var(--warn-soft); color: var(--warn); }
.q-tag.q-blocked { background: var(--bad-soft); color: var(--bad); }
.verdict-why { font-size: 13px; font-weight: 600; }

/* Today */
.today { max-width: 1100px; }
#today-body { display: grid; gap: 16px; }
.td-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.td-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.td-head h2 { font-size: 15px; letter-spacing: -.01em; }
.td-sub, .td-more { font-size: 13px; color: var(--ink-faint); }
.td-more { text-decoration: none; font-weight: 600; color: var(--accent-ink); }
.td-more:hover { text-decoration: underline; }
.td-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.td-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunk); padding: 12px 14px; display: grid; gap: 2px; }
.td-tile b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.td-tile span { font-size: 13px; color: var(--ink-soft); }
.td-empty { margin: 0; color: var(--ink-soft); font-size: 14px; }
.td-needs { display: grid; gap: 8px; }
.td-need { display: grid; grid-template-columns: 56px minmax(0, 1fr) 16px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .12s ease, background .12s ease; }
.td-need:hover { background: var(--surface-sunk); border-color: var(--line-strong); }
.td-need-n { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; color: var(--ink-faint); letter-spacing: -.02em; }
.td-need.has-good .td-need-n { color: var(--good); }
.td-need.has-warn .td-need-n { color: var(--warn); }
.td-need-t { display: grid; gap: 1px; min-width: 0; }
.td-need-t strong { font-size: 14px; }
.td-need-t span { font-size: 13px; color: var(--ink-soft); }
.td-need svg { color: var(--ink-faint); }
.td-alert { border: 1px solid var(--line-strong); border-left: 4px solid var(--bad); background: var(--bad-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.td-meter-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.td-meter-top b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.td-meter-top span { font-size: 13px; color: var(--ink-soft); }
.td-meter-bar { height: 8px; border-radius: 999px; background: var(--surface-hi); overflow: hidden; }
.td-meter-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 0; }
.td-foot { margin: 0; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 640px) { .td-need { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 10px; } .td-tile b { font-size: 24px; } }
.dk-page { max-width: 1400px; }

a.btn, a.btn:hover { text-decoration: none; }

@media (max-width: 1180px) { .l-score-line { flex-direction: column; align-items: flex-start; gap: 3px; } }

/* ===================== Analytics page (analytics2.js) =====================
   Categorical colours are the validated default palette (light and dark are each their own selected steps, checked with the palette validator:
   adjacent colour-blind separation >= 8, normal-vision >= 19). Three light-mode colours sit under 3:1 against the surface, so every chart ships
   visible labels, a legend, hover details and a table view. */
.an {
  padding: 24px 28px 56px; max-width: 1240px;
}
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.an-head h2 { font-size: 22px; margin: 0; }
.an-head .sub { margin-top: 4px; max-width: 78ch; line-height: 1.5; }
.an-range { display: flex; gap: 4px; }
.an-switch { font: inherit; font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 7px; cursor: pointer; }
.an-switch[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.an-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 1100px) { .an-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.an-kpi-label { font-size: 12px; color: var(--ink-faint); }
.an-kpi-value { font-size: 34px; font-weight: 650; letter-spacing: -.02em; line-height: 1.05; color: var(--ink); }
.an-delta { font-size: 12px; display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; color: var(--ink-soft); }
.an-delta small { color: var(--ink-faint); font-size: 11px; }
.an-delta.an-good { color: var(--an-up); } .an-delta.an-bad { color: var(--an-down); } .an-delta.an-flat { color: var(--ink-soft); }
.an-spark-svg { width: 126px; height: 24px; margin-top: 4px; }
.an-spark { fill: var(--surface-hi); } .an-spark-now { fill: var(--an-s1); }
.an-kpi-sub { font-size: 11px; color: var(--ink-faint); }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.an-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px 18px; min-width: 0; }
.an-wide { grid-column: 1 / -1; }
.an-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.an-card-head h3 { font-size: 15px; margin: 0; color: var(--ink); }
.an-info { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-faint);
  font: italic 600 11px/1 Georgia, serif; cursor: help; vertical-align: middle; padding: 0; }
.an-info:hover, .an-info:focus-visible { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.an-insights { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.an-ins { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; background: var(--surface); font-size: 13px; line-height: 1.45; color: var(--ink); }
.an-ins a { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }
.an-ins-icon { flex: none; font-size: 11px; margin-top: 2px; }
.an-ins-warn { border-left-color: var(--an-warn); } .an-ins-warn .an-ins-icon { color: var(--an-warn); }
.an-ins-act { border-left-color: var(--an-s1); } .an-ins-act .an-ins-icon { color: var(--an-s1); }
.an-ins-ok { border-left-color: var(--an-up); } .an-ins-ok .an-ins-icon { color: var(--an-up); }
.an-src td:first-child, .an-src th:first-child { white-space: nowrap; min-width: 150px; }
.an-callout a { color: var(--accent-ink); font-weight: 600; }
.an-note { margin: 3px 0 0; font-size: 12px; color: var(--ink-faint); line-height: 1.5; max-width: 80ch; }
.an-svg { width: 100%; height: auto; display: block; }
.an-svg .an-grid { stroke: var(--line); stroke-width: 1; }
.an-axis { fill: var(--ink-faint); font-size: 11px; font-family: inherit; }
.an-axis-strong { fill: var(--ink); font-weight: 600; }
.an-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; flex: none; }
.an-legend { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; padding: 0; font-size: 12px; color: var(--ink-soft); }
.an-legend li { display: flex; align-items: center; }
.an-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.an-bars li { display: grid; grid-template-columns: minmax(130px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.an-bar-label { color: var(--ink); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.an-bar-label small { color: var(--ink-faint); font-size: 11px; line-height: 1.35; }
.an-bar-track { height: 18px; background: var(--surface-sunk); border-radius: 4px; overflow: hidden; display: block; }
.an-bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.an-bar-value { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 5.5em; text-align: right; font-weight: 600; }
.an-callout { margin: 12px 0 0; padding: 9px 12px; background: var(--surface-sunk); border-radius: 8px; font-size: 13px; color: var(--ink-soft); }
.an-svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 12px; }
.an-svc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px; min-width: 0; }
.an-svc header { display: flex; align-items: center; margin-bottom: 4px; } .an-svc h4 { font-size: 13px; margin: 0; font-weight: 600; color: var(--ink); }
.an-svc-now { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.an-svc-now b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; } .an-svc-now span { font-size: 12px; color: var(--ink-faint); }
.an-svc-now .an-fail { color: var(--an-down); font-weight: 600; } .an-svc-now .an-sub { margin-left: auto; }
.an-meter { height: 8px; background: var(--surface-sunk); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.an-meter-fill { display: block; height: 100%; background: var(--an-s1); border-radius: 4px; } .an-meter-fill.an-warn { background: var(--an-warn); } .an-meter-fill.an-bad { background: var(--an-down); }
.an-meter-text { display: block; margin-top: 5px; font-size: 11px; color: var(--ink-faint); line-height: 1.4; }
.an-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-tbl th { text-align: left; font-weight: 600; color: var(--ink-faint); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.an-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.an-tbl .num { text-align: right; font-variant-numeric: tabular-nums; } .an-tbl td small { color: var(--ink-faint); margin-left: 4px; }
.an-tbl .bar { width: 38%; } .an-tbl td.bar { display: flex; align-items: center; gap: 10px; } .an-tbl td.bar .an-bar-track { flex: 1; } .an-tbl td.bar b { min-width: 3.5em; text-align: right; }
.an-table { max-height: 360px; overflow: auto; }
.an-out { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; } .an-out div { display: flex; flex-direction: column; } .an-out b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; } .an-out span { font-size: 12px; color: var(--ink-faint); }
.an-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.16); padding: 8px 10px; font-size: 12px; max-width: 280px; white-space: pre-line; }
.an-tip-day { font-weight: 600; margin-bottom: 4px; } .an-tip-row { display: flex; align-items: center; gap: 4px; } .an-tip-row b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.an-tip-total { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
@media (max-width: 900px) { .an { padding: 16px 16px 40px; } .an-grid { grid-template-columns: 1fr; } .an-bars li { grid-template-columns: 1fr; gap: 3px; } .an-bar-value { text-align: left; } }

/* Reduce Motion, everywhere: transitions and animations become instant; nothing on this page carries meaning through motion alone. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
/* An inline action inside a sentence ("Show all 72"): it reads as a link and keeps the sentence's type, not a browser-default button. */
.link-btn { font: inherit; color: var(--accent-ink); background: none; border: 0; padding: 0 2px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* Why a qualified lead has no contact yet, one plain sentence each (Today and the lead panel). */
.td-stuck { list-style: none; margin: -2px 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-sunk);
  display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.td-stuck li { display: flex; gap: 8px; flex-wrap: wrap; line-height: 1.45; }
.td-stuck b { color: var(--ink); font-weight: 600; min-width: 9em; }
.stuck-line { margin: 6px 0 8px; padding: 8px 10px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 6px; font-size: 13px; color: var(--ink); line-height: 1.45; }

/* A posting with no score says why instead of a bare dash (operator, 2026-10-28). */
.l-noscore { font-size: 12px; color: var(--ink-faint); cursor: help; border-bottom: 1px dotted var(--line-strong); }

/* ===================== Outreach, four tabs (redesign 2026-10-28) ===================== */
.or-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.or-item { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.or-item:first-child { border-top: 0; }
.or-item-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.or-item-title { font-size: 14px; color: var(--ink); }
.or-what { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.or-item-actions { display: flex; gap: 6px; flex: none; }
.or-preview { margin-top: 8px; }
.or-foot { margin: 10px 2px 0; font-size: 12px; color: var(--ink-faint); }
.or-foot a { color: var(--accent-ink); font-weight: 600; }
.or-list .empty-state { border: 0; }
.tk-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tk-when { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.tk-outcome { white-space: normal; line-height: 1.35; }
.tk-test { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.tk-test-tag { margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--neutral-soft); color: var(--ink-faint); font-size: 11px; font-weight: 600; }
.tk-test-row { opacity: .75; }
@media (max-width: 640px) { .or-item { flex-direction: column; } .or-item-actions { width: 100%; } }

/* ===================== Analytics > Monitor (monitor.js) =====================
   Dense, quiet, monochrome: hairline panels, monospace figures. Zentiti blue (--accent) marks good, the brand orange (--amber, with dark ink)
   marks what needs a person; nothing else carries colour. */
.an-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.mon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mon-panel { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); padding: 10px 12px 12px; min-width: 0; }
.mon-panel.mon-wide { grid-column: span 2; }
.mon-panel.mon-full { grid-column: 1 / -1; }
.mon-tbl td.mon-status { white-space: normal; max-width: none; }
.mon-panel.mon-attn { border-color: var(--amber); box-shadow: inset 3px 0 0 var(--amber); }
.mon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mon-head h3 { margin: 0; font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.mon-note { font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-faint); }
.mon-body { font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.mon-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.mon-big div { display: flex; flex-direction: column; }
.mon-big b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.mon-big span { font-size: 11px; color: var(--ink-faint); }
.mon-tbl { width: 100%; border-collapse: collapse; }
.mon-tbl th { text-align: left; font-weight: 500; font-size: 11px; color: var(--ink-faint); padding: 2px 4px; border-bottom: 1px solid var(--line); }
.mon-tbl td { padding: 3px 4px; border-bottom: 1px dotted var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14em; }
.mon-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.mon-status { white-space: normal; color: var(--ink-soft); font-size: 11px; }
.mon-spark { color: var(--accent); display: block; }
.mon-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mon-steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) 70px 3.5em; gap: 6px; align-items: center; }
.mon-k { color: var(--ink-faint); }
.mon-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-steps b { text-align: right; font-variant-numeric: tabular-nums; }
.mon-bar { display: inline-block; width: 70px; height: 6px; background: var(--surface-sunk); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.mon-bar span { display: block; height: 100%; background: var(--ink-soft); }
.mon-bar.mon-bar-attn span { background: var(--amber); }
.mon-pct { font-variant-numeric: tabular-nums; }
.mon-attn-text { color: var(--amber-ink); font-weight: 600; }
.mon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.mon-list li { line-height: 1.4; }
.mon-list b { font-weight: 600; margin-right: 4px; }
.mon-list span { color: var(--ink-soft); font-family: var(--body, inherit); }
.mon-foot { margin: 6px 0 0; font-size: 11px; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mon-empty { margin: 0; color: var(--ink-faint); }
.mon-heat { display: grid; grid-template-columns: 9em repeat(var(--mon-cols), minmax(6px, 1fr)); gap: 2px; align-items: center; }
.mon-heat-label { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-heat-x { font-size: 11px; color: var(--ink-faint); white-space: nowrap; overflow: visible; }
.mon-cell { height: 14px; border-radius: 2px; background: var(--surface-sunk); }
.mon-cell.mon-l1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.mon-cell.mon-l2 { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); }
.mon-cell.mon-l3 { background: color-mix(in srgb, var(--accent) 75%, var(--surface)); }
.mon-cell.mon-l4 { background: var(--accent); }
.mon-sq { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; vertical-align: middle; }
.mon-sq-sent { background: var(--accent); border-color: var(--accent); }
.mon-sq-replied { background: var(--good); border-color: var(--good); }
.mon-sq-due { border-color: var(--amber); background: var(--amber-soft); }
.mon-sq-stopped { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--line-strong) 3px 4px); }
.mon-sq-failed, .mon-sq-unknown { border-color: var(--bad); }
.mon-scatter { width: 100%; height: auto; display: block; }
.mon-rule { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.mon-axis { stroke: var(--line-strong); }
.mon-tick { fill: var(--ink-faint); font: 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mon-dot { fill: var(--ink-faint); }
.mon-dot-good { fill: var(--accent); }
.mon-dot-agency { fill: var(--amber); }
.mon-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px 0 6px; }
.mon-key.mon-dot { background: var(--ink-faint); } .mon-key.mon-dot-good { background: var(--accent); } .mon-key.mon-dot-agency { background: var(--amber); }
@media (max-width: 1100px) { .mon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mon-panel.mon-wide { grid-column: 1 / -1; } }
@media (max-width: 700px) { .mon-grid { grid-template-columns: 1fr; } .mon-panel.mon-wide, .mon-panel.mon-full { grid-column: auto; } .mon-heat { grid-template-columns: 6em repeat(var(--mon-cols), minmax(4px, 1fr)); } }

/* Full-time view: no Score column (full-time roles are never scored or emailed). */
.table-pane[data-view="watch"] .th-score, .table-pane[data-view="watch"] .l-score-wrap { display: none; }
.table-pane[data-view="watch"] .ltable-head, .table-pane[data-view="watch"] .lrow2 { grid-template-columns: 22px minmax(210px, 1.7fr) minmax(130px, 1fr) 136px 96px; }
@media (max-width: 1520px) {
  .table-pane[data-view="watch"] .ltable-head, .table-pane[data-view="watch"] .lrow2 { grid-template-columns: 22px minmax(160px, 1.5fr) minmax(110px, 1fr) 122px 88px; }
}
@media (max-width: 760px) {
  .table-pane[data-view="watch"] .lrow2 { grid-template-columns: 20px 1fr; }
}

/* Outreach > Replies: a reply nobody has read yet (Today counts these). */
.rp-row.is-new { box-shadow: inset 3px 0 0 var(--amber); }
.rp-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.rp-seen { margin-top: 6px; }

/* Companies: roles split by kind, and one plain "where it stands" per company. */
.co-roles { flex-direction: column; align-items: flex-start; gap: 2px; }
.co-n { font-size: 12px; color: var(--ink-soft); }
.co-n b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 3px; }
.co-n-contract b { color: var(--accent); }
.co-stage { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; }
.co-stage .st-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-faint); }
.co-stage.co-system .st-dot { background: var(--accent); }
.co-stage.co-person { font-weight: 600; color: var(--amber-ink); }
.co-stage.co-person .st-dot { background: var(--amber); }
.co-stage.co-quiet { color: var(--ink-faint); }
.corow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.page-gap { padding: 0 4px; color: var(--ink-faint); }
#page-companies .table-pane { overflow-x: auto; }
@media (max-width: 760px) {
  .cotable-head, .corow { grid-template-columns: minmax(180px, 1fr) 110px minmax(160px, 1fr); }
  .cotable-head span:nth-child(3), .cotable-head span:nth-child(5), .corow .l-score-wrap, .corow > .co-cell { display: none; }
}

/* ===================== Sign-in, the header menu, viewers ===================== */
.signin {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: var(--paper);
}
.signin[hidden] { display: none; }
.signin-card {
  width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-lg); padding: 28px 28px 24px;
}
.signin-logo { display: block; height: 44px; width: auto; }
.signin-product { margin: 6px 0 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.signin-product::before { content: ""; display: block; width: 36px; border-top: 3px solid var(--amber); margin-bottom: 6px; }
.si-pane h1 { margin: 0 0 4px; font-size: 22px; color: var(--ink); }
.si-note { margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-sm, 8px); background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.si-field { display: grid; gap: 5px; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.si-field input { font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 8px); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.si-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.si-pw { position: relative; display: block; }
.si-pw input { padding-right: 62px; }
.si-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 8px; cursor: pointer; }
.si-error { margin: 12px 0 0; padding: 8px 10px; border-radius: var(--radius-sm, 8px); background: var(--bad-soft); color: var(--bad); font-size: 13px; }
.si-submit { width: 100%; margin-top: 16px; justify-content: center; }
.si-actions { display: flex; gap: 10px; margin-top: 16px; }
.si-actions .si-submit { margin-top: 0; }
.si-help { margin: 14px 0 0; font-size: 12px; color: var(--ink-faint); line-height: 1.45; }
.si-rules { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink-faint); display: grid; gap: 2px; }
.si-rules li.ok { color: var(--good); }
body.is-signing-in { overflow: hidden; }

.user-wrap { position: relative; }
button.user-chip { font: inherit; background: transparent; cursor: pointer; }
button.user-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 8px); box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.user-menu[hidden] { display: none; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover, .user-menu a:focus-visible, .user-menu button:focus-visible { background: var(--surface-sunk); outline: none; }

/* A viewer sees everything and changes nothing: the server refuses every change, and the buttons that would make one are dimmed. */
body.is-viewer .btn-act, body.is-viewer #btn-run, body.is-viewer .or-act { opacity: .5; }

/* Team and Activity screens (desk_team.js) */
.tm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.tm-form select, .tm-actions { min-width: 0; }
.tm-form select, td select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.tm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-issued { border: 1px solid var(--amber); border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; }
.tm-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.tm-temp { font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; user-select: all; }
.ac-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; margin-bottom: 8px; }
.ac-filters select, .ac-filters input { font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }

.tm-check { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-soft); margin: 4px 0 8px; }
.tm-mail { margin: 8px 0; }

/* A lead found through Dice: the disclosure Dice asks for, the two Dice links, and the on-demand full description. */
.dice-note { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; }
.dice-note p { margin: 0 0 6px; }

/* Today: which campaign is running and what is switched off. */
.td-campaign { margin: 0 0 12px; padding: 9px 14px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 13px; }
.td-campaign b { color: var(--amber-ink); }

/* Apply-first list (emails off): pay up front, an Apply button, no score or contact columns. */
.th-apply { display: none; }
.table-pane.apply .l-contact { display: none; }
.table-pane.apply .th-score { display: none; }
.table-pane.apply .th-apply { display: block; }
@media (min-width: 981px) {
  .table-pane.apply .ltable-head, .table-pane.apply .lrow2 { grid-template-columns: 22px minmax(190px, 1.6fr) minmax(120px, 1fr) minmax(150px, 1.1fr) 96px 84px; }
}
.l-pay {
  display: inline-block; max-width: 100%; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top;
}
.l-apply-wrap { display: flex; align-items: center; min-width: 0; }
.l-apply {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--accent-fill); border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.l-apply:hover { filter: brightness(1.08); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.l-apply:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.l-apply.is-off { background: transparent; color: var(--ink-faint); border-color: var(--line); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .l-apply { transition: none; } .l-apply:hover { transform: none; } }
@media (max-width: 760px) { .table-pane.apply .lrow2 { grid-template-columns: 20px 1fr auto; } }

/* Emails off: the lead panel drops what only matters for emailing (score box, Draft tab, contact lookup note). */
.apply-mode #d-score-card, .apply-mode .case-tab[data-sec="draft"], .apply-mode .contact-chip { display: none; }

/* ===== Lead Desk v2: Jobs and Sources ===== */
body.collector-mode:not(.show-classic) .side-item.classic { display: none; }
body.collector-mode:not(.show-classic) .side-credits { display: none; }
.side-item.v2[hidden] { display: none; }
.jb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.jb-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.jb-head .sub { margin: 0; color: var(--ink-soft); }
.jb-head .sub b { color: var(--ink); font-size: 15px; }
.jb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.jb-filters .input[type="search"] { flex: 1 1 260px; min-width: 200px; }
.jb-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.jb-seg button { border: 0; background: transparent; padding: 7px 14px; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; min-height: 36px; }
.jb-seg button + button { border-left: 1px solid var(--line); }
.jb-seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.jb-toggle { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.jb-toggle[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.jb-seg button:focus-visible, .jb-toggle:focus-visible, .jb-more:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.jb-list { display: grid; gap: 10px; }
.jb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.jb-row:hover { border-color: var(--line-strong, var(--line)); box-shadow: 0 2px 10px rgba(10, 37, 64, .08); }
.jb-row.is-closed { opacity: .6; }
.jb-row .l-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.jb-title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.jb-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jb-sub b { color: var(--ink); font-weight: 600; }
.jb-dot { margin: 0 6px; color: var(--ink-faint); }
.jb-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.jb-pay { padding: 2px 9px; border-radius: 999px; font-weight: 650; color: var(--good); background: var(--good-soft); }
.jb-chip { padding: 2px 9px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); }
.jb-chip.jb-src { background: var(--accent-soft); color: var(--accent-ink); }
.jb-when { color: var(--ink-faint); }
.jb-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.jb-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jb-state.st-unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.jb-state.st-closed { color: var(--bad); }
.jb-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 96px; }
.jb-actions .l-apply { justify-content: center; min-height: 38px; }
.jb-more { border: 0; background: transparent; color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; min-height: 30px; }
.jb-more:hover { text-decoration: underline; }
.jb-detail { grid-column: 2 / -1; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.jb-jd { margin: 0; max-height: 360px; overflow: auto; white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.55; color: var(--ink); }
.jb-loading { margin: 0; color: var(--ink-soft); font-size: 14px; }
.jb-empty { padding: 48px 16px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.jb-foot { display: flex; justify-content: center; margin: 18px 0 8px; }
.src-list { display: grid; gap: 10px; }
.src-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) auto repeat(3, minmax(90px, .7fr)); gap: 6px 18px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.src-name { display: flex; flex-direction: column; }
.src-every { color: var(--ink-faint); font-size: 12px; }
.src-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.src-ok { background: var(--good-soft); color: var(--good); }
.src-warn { background: var(--warn-soft); color: var(--warn); }
.src-bad { background: var(--bad-soft); color: var(--bad); }
.src-idle { background: var(--neutral-soft); color: var(--neutral); }
.src-fig { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-faint); }
.src-fig b { font-size: 15px; color: var(--ink); }
.src-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) {
  .jb-row { grid-template-columns: 40px minmax(0, 1fr); }
  .jb-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .jb-actions .l-apply { flex: 1; }
  .jb-detail { grid-column: 1 / -1; }
  .src-row { grid-template-columns: 1fr auto; }
  .src-fig { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .jb-row { transition: none; } }

.jb-pay.is-exp { background: var(--neutral-soft); color: var(--neutral); font-weight: 600; }
.src-sec { margin: 26px 0 10px; font-size: 15px; font-weight: 650; }
.src-sec span { margin-left: 8px; font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.por-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) auto 70px minmax(0, 2.4fr); gap: 4px 16px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.por-row b { font-weight: 600; }
.por-n { text-align: right; font-weight: 650; }
.por-note { color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .por-row { grid-template-columns: 1fr auto; } .por-n { text-align: left; } .por-note { grid-column: 1 / -1; white-space: normal; } }

.log-list { display: grid; gap: 4px; }
.log-row { display: grid; grid-template-columns: 90px minmax(150px, 1.1fr) 150px minmax(0, 2.4fr); gap: 4px 14px; align-items: center; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.log-row.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.log-when { color: var(--ink-faint); }
.log-n { color: var(--ink-soft); }
.log-d { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .log-row { grid-template-columns: 80px 1fr; } .log-n, .log-d { grid-column: 1 / -1; white-space: normal; } }

/* ===== Lead Desk v2: Live ===== */
.lv-pulse { display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; background: var(--good); vertical-align: middle; animation: lv-ping 1.8s ease-out infinite; }
@keyframes lv-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.lv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.lv-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.lv-label { font-size: 13px; color: var(--ink-soft); }
.lv-big { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lv-of { font-size: 12px; color: var(--ink-faint); }
.lv-delta { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 650; color: var(--ink-faint); }
.lv-delta.up { color: var(--good); } .lv-delta.down { color: var(--bad); }
.lv-grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.lv-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lv-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.lv-card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.lv-card h2 span { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.lv-chart svg { width: 100%; height: auto; display: block; }
.lv-grid { stroke: var(--lv-grid); stroke-width: 1; }
.lv-axis { fill: var(--ink-faint); font-size: 11px; }
.lv-bar { transition: y .6s cubic-bezier(.2, .8, .2, 1), height .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; animation: lv-grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: bottom; }
@keyframes lv-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.lv-bar:hover { opacity: .8; }
.lv-s-linkedin { fill: var(--lv-1); background: var(--lv-1); } .lv-s-jooble { fill: var(--lv-2); background: var(--lv-2); }
.lv-s-dice { fill: var(--lv-3); background: var(--lv-3); } .lv-s-other { fill: var(--lv-4); background: var(--lv-4); }
.lv-legend, .lv-splitkey { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.lv-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lv-latest { display: grid; gap: 4px; max-height: 330px; overflow: auto; }
.lv-item { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.lv-item:hover { background: var(--surface-sunk); border-color: var(--line); }
.lv-item.is-new { animation: lv-in .8s ease-out both; }
@keyframes lv-in { from { opacity: 0; transform: translateY(-14px); background: var(--accent-soft); } to { opacity: 1; transform: none; } }
.lv-item-t { font-size: 14px; font-weight: 600; } .lv-item-s { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-item-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; font-size: 12px; }
.lv-ranked { position: relative; }
.lv-row { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: minmax(64px, 36%) minmax(0, 1fr) 40px; gap: 10px; align-items: center; height: 30px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lv-name { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-track { height: 10px; background: var(--neutral-soft); border-radius: 5px; overflow: hidden; }
.lv-fill { display: block; height: 100%; background: var(--lv-1); border-radius: 5px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.lv-n { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.lv-splitbar { display: flex; height: 26px; gap: 2px; border-radius: 8px; overflow: hidden; }
.lv-seg { display: block; height: 100%; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.lv-seg-a { background: var(--lv-1); } .lv-seg-b { background: var(--lv-2); }
.lv-splitkey b { color: var(--ink); } .lv-splitkey em { font-style: normal; color: var(--ink-faint); }
body.collector-mode .fg[aria-label="Practice"], body.collector-mode .fg[aria-label="Signal strength"], body.collector-mode .fchip[data-chip="uae"] { display: none; }
.lv-asof { margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-faint); }
.src-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.src-chips .fchip-n { margin-left: 6px; opacity: .7; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lg-running { display: grid; gap: 6px; margin: 0 0 12px; }
.lg-now { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--good-soft, var(--surface)); border: 1px solid var(--good, var(--line)); border-radius: var(--radius); font-size: 14px; }
.lg-now .lv-pulse { margin: 0; flex: none; }
.lv-card h2 span { font-weight: 400; }
/* "Classic Lead Desk" stays out of the way: a small quiet link at the foot of the list, and the earlier screens it reveals are shown compact. */
#side-classic { position: sticky; bottom: 0; margin-top: 10px; padding-top: 8px; padding-bottom: 8px; font-size: 12px; opacity: .8; background: var(--side-bg); border-top: 1px solid var(--side-line); border-radius: 0; }
#side-classic:hover, #side-classic[aria-pressed="true"] { opacity: 1; }
#side-classic .side-icon svg { width: 14px; height: 14px; }
body.collector-mode.show-classic .side-item.classic { padding-top: 5px; padding-bottom: 5px; font-size: 13px; opacity: .8; }
.lv-atlas-card { background: #070b14; border-color: #1b2540; color: #e8ecf5; }
.lv-atlas-card h2 span { color: #8e99b3; }
.lv-stage-pipe { height: 400px; border-radius: 10px; overflow: hidden; }
.st-list { display: grid; gap: 2px; max-height: 220px; overflow: auto; margin-top: 12px; font-size: 13px; }
.st-row { display: grid; grid-template-columns: 76px 150px minmax(0, 1fr); gap: 10px; padding: 4px 8px; border-radius: 6px; color: #c7cfe0; animation: lv-in .6s ease-out both; }
.st-row b { color: #e8ecf5; font-weight: 600; }
.st-row.st-stored { background: rgba(47, 224, 160, .1); } .st-row.st-found b { color: #8cc4ff; }
.st-t { color: #6b7690; font-variant-numeric: tabular-nums; }
.st-empty { margin: 10px 0 0; font-size: 13px; color: #8e99b3; }
.lv-stage-atlas { height: 540px; border-radius: 10px; overflow: hidden; }
.lv-wide { margin-bottom: 12px; }
.lv-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lv-stage { position: relative; height: 340px; }
.lv-stage-net { height: 280px; }
.lv-stage canvas { display: block; width: 100%; height: 100%; }
.lv-line { fill: none; stroke: var(--lv-1); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lv-draw 1.6s cubic-bezier(.2, .8, .2, 1) forwards; }
.lv-line.is-still { animation: none; stroke-dashoffset: 0; }
.lv-area { fill: var(--lv-1); opacity: .12; }
.lv-trav { fill: var(--lv-1); stroke: var(--surface); stroke-width: 2; }
#page-live > .jb-head { fill: var(--lv-1); stroke: var(--surface); stroke-width: 2; }
.lv-head-ring { fill: none; stroke: var(--lv-1); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: lv-head 1.8s ease-out infinite; }
@keyframes lv-draw { to { stroke-dashoffset: 0; } }
@keyframes lv-head { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
@media (max-width: 1000px) { .lv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-grid2, .lv-grid3, .lv-even { grid-template-columns: 1fr; } .lv-stage { height: 300px; } .lv-stage-atlas { height: 420px; } .lv-stage-pipe { height: 440px; } .st-row { grid-template-columns: 64px 1fr; } .st-row span:last-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .st-row { animation: none; } .lv-bar, .lv-row, .lv-fill, .lv-seg, .lv-item.is-new, .lv-pulse, .lv-head-ring { animation: none; transition: none; } .lv-line { animation: none; stroke-dashoffset: 0; } }

/* While emails are off the lead table is the Jobs screen: it comes first, and the tabs and chips that only mattered for emailing go. */
body.collector-mode #tabs .side-item[data-nav="progress"] { order: -1; }
body.collector-mode .seg-card[data-view="watch"], body.collector-mode .seg-card[data-view="mailed"],
body.collector-mode .fchip[data-chip="outsourcing"], body.collector-mode #scope-switch { display: none; }

/* The job collector's filter row: always in view, one line, no panel to open. */
.fg-v2 { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 2px 0 0; }
.fg-v2[hidden] { display: none; }
.fg-v2-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fg-v2-group .fg-label { margin-right: 4px; }

/* uPlot 1.6.30, MIT licence, Leon Sorokin (https://github.com/leeoniya/uPlot): its stylesheet, kept inline because the page's content policy allows styles only from this site. */
.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: min-content;}.u-title {text-align: center;font-size: 18px;font-weight: bold;}.u-wrap {position: relative;user-select: none;}.u-over, .u-under {position: absolute;}.u-under {overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.u-axis {position: absolute;}.u-legend {font-size: 14px;margin: auto;text-align: center;}.u-inline {display: block;}.u-inline * {display: inline-block;}.u-inline tr {margin-right: 16px;}.u-legend th {font-weight: 600;}.u-legend th > * {vertical-align: middle;display: inline-block;}.u-legend .u-marker {width: 1em;height: 1em;margin-right: 4px;background-clip: padding-box !important;}.u-inline.u-live th::after {content: ":";vertical-align: middle;}.u-inline:not(.u-live) .u-value {display: none;}.u-series > * {padding: 4px;}.u-series th {cursor: pointer;}.u-legend .u-off > * {opacity: 0.3;}.u-select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.u-cursor-x, .u-cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;}.u-hz .u-cursor-x, .u-vt .u-cursor-y {height: 100%;border-right: 1px dashed #607D8B;}.u-hz .u-cursor-y, .u-vt .u-cursor-x {width: 100%;border-bottom: 1px dashed #607D8B;}.u-cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;border: 0 solid;pointer-events: none;will-change: transform;/*this has to be !important since we set inline "background" shorthand */background-clip: padding-box !important;}.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {display: none;}
.lv-chart .uplot { width: 100%; }
.lv-chart .u-legend { font-size: 13px; color: var(--ink-soft); text-align: left; margin: 6px 0 0; }
.lv-chart .u-legend .u-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.lv-chart .u-cursor-x, .lv-chart .u-cursor-y { border-color: var(--ink-faint); }
.lv-stage-graph { height: 560px; border-radius: 10px; overflow: hidden; }
.lv-stage-graph canvas { width: auto; height: auto; }
.lv-stack { display: grid; gap: 16px; align-content: start; }
.lv-note { margin: 14px 0; color: var(--ink-soft); font-size: 13px; }
.lv-tip { display: grid; gap: 2px; padding: 2px 4px; font: 12px system-ui, sans-serif; }
.lv-tip b { font-size: 13px; } .lv-tip em { color: #8fa3c7; font-style: normal; }
@media (max-width: 1000px) { .lv-stage-graph { height: 460px; } }
.lv-more { margin: 10px 0 0; }
.lv-grid2 { align-items: start; }
.src-logs-hint { margin: 18px 0 0; color: var(--ink-soft); font-size: 13px; }
#por-host .src-chips { margin: 0 0 12px; }
#por-host .por-row { margin-bottom: 8px; }
#por-host .por-row a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* The collector's Jobs screen: one list of open jobs, no tabs, no selection column (nothing is emailed or marked here). */
.collector-mode #page-leads .segments, .collector-mode #page-leads .seg-control, .collector-mode #page-leads .scope-switch { display: none; }
.collector-mode #page-leads .th-check, .collector-mode #page-leads .lchk, .collector-mode #page-leads .bulk-bar { display: none !important; }
.collector-mode #page-leads .table-pane.apply .ltable-head, .collector-mode #page-leads .table-pane.apply .lrow2 { grid-template-columns: minmax(190px, 1.6fr) minmax(120px, 1fr) minmax(150px, 1.1fr) 96px 84px; }
@media (max-width: 760px) { .collector-mode #page-leads .table-pane.apply .lrow2 { grid-template-columns: 1fr auto; } }
#leads-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The collector's job panel: nothing is scored, emailed or marked contacted here, so those controls are gone. */
body.collector-mode .drawer-actions [data-act], body.collector-mode #d-why, body.collector-mode .score-card, body.collector-mode .case-tab[data-sec="evidence"], body.collector-mode .case-tab[data-sec="draft"] { display: none !important; }
.fv-field { display: inline-flex; align-items: center; gap: 8px; }
.fv-field .fg-label { margin: 0; }
.fg-v2 .select-sm { min-width: 150px; }
.lv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lv-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Trends */
.tr-table { display: grid; gap: 4px; }
.tr-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) minmax(120px, 2fr) 70px 80px 90px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.tr-row.tr-head { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.tr-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-found { position: relative; display: flex; align-items: center; height: 22px; }
.tr-bar { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 3px; opacity: .28; }
.tr-found b { position: relative; padding-left: 6px; }
.jobs-new { margin-top: 6px; font-weight: 600; }
@media (max-width: 760px) { .tr-row { grid-template-columns: 1fr 1fr; } .tr-row span:nth-child(n+3) { display: none; } }
.lv-nowline { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.lv-nowline.is-busy { color: var(--lv-3); font-weight: 600; }
.lv-nowline.is-busy::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; animation: lv-blink 1.2s ease-in-out infinite; }
@keyframes lv-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .lv-nowline.is-busy::before { animation: none; } }

/* The job panel for someone applying */
body.collector-mode .case-tab[data-sec="jd"] { display: none !important; }
body.collector-mode .drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.collector-mode .drawer-actions #d-open-posting { order: -1; }
.ap-status { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); margin: 4px 0 14px; font-size: 13px; }
.ap-status b { font-size: 14px; }
.ap-status span { color: var(--ink-soft); }
.ap-ok { background: color-mix(in srgb, var(--lv-3) 12%, transparent); border-color: color-mix(in srgb, var(--lv-3) 40%, transparent); }
.ap-soft { background: color-mix(in srgb, var(--lv-4) 12%, transparent); border-color: color-mix(in srgb, var(--lv-4) 40%, transparent); }
.ap-warn { background: color-mix(in srgb, var(--lv-4) 12%, transparent); border-color: color-mix(in srgb, var(--lv-4) 40%, transparent); }
.ap-bad { background: color-mix(in srgb, var(--lv-2) 12%, transparent); border-color: color-mix(in srgb, var(--lv-2) 40%, transparent); }
.ap-facts { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; }
.ap-facts dt { color: var(--ink-soft); }
.ap-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ap-desc { font-size: 14px; line-height: 1.55; }
.ap-desc p { margin: 0 0 10px; }
.ap-note { font-size: 13px; color: var(--ink-soft); }
.ap-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ap-list span { color: var(--ink-soft); margin-left: 6px; }

/* My marks on jobs */
.my-mark { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--lv-3) 16%, transparent); color: var(--ink); }
.my-mark.my-hidden { background: color-mix(in srgb, var(--lv-7) 22%, transparent); }
.lrow2.is-applied { opacity: .78; }
.mark-btn.is-on { background: color-mix(in srgb, var(--lv-3) 16%, transparent); border-color: color-mix(in srgb, var(--lv-3) 45%, transparent); }

.tm-src { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; max-width: 360px; }
.welcome { margin: 0; padding: 16px 28px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.welcome[hidden] { display: none; }
@media (max-width: 760px) { .welcome { padding: 12px 16px 0; } }

body.collector-mode #btn-run, body.collector-mode #btn-run-empty, body.collector-mode #run-confirm { display: none !important; }
body.is-viewer .mark-btn { display: none !important; }                       /* a Viewer cannot change anything, so the buttons are not offered */
.alert-banner { margin: 12px 28px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: color-mix(in srgb, var(--lv-4) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lv-4) 45%, transparent); }
.alert-banner[hidden] { display: none; }
.tm-saved { padding: 10px 14px; border-radius: 8px; font-weight: 600; background: color-mix(in srgb, var(--lv-3) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lv-3) 40%, transparent); }
.tm-saved[hidden] { display: none; }

body:not(.collector-mode) .hint-v2, body.collector-mode .hint-old { display: none; }

/* On a phone the row keeps the facts an applicant needs, on a second line under the title, and the tap targets are big enough */
.l-phone-meta { display: none; }
@media (max-width: 760px) {
  .collector-mode .l-phone-meta { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-soft); white-space: normal; overflow-wrap: anywhere; }
  .collector-mode .l-apply { min-height: 44px; min-width: 76px; display: inline-flex; align-items: center; justify-content: center; }
  .collector-mode .lrow2 { min-height: 64px; }
  .collector-mode .fchip, .collector-mode #filter-v2 select { min-height: 40px; }
  .collector-mode .l-role { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}


/* Profile at the foot of the sidebar: who is signed in, with change-password and sign-out beside it. */
.side-user { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid var(--side-line); }
.side-user .user-wrap { flex: 1 1 auto; min-width: 0; }
.side-user .user-chip { width: 100%; border: 0; background: transparent; padding: 2px; border-radius: 10px; }
.side-user .user-chip:hover { background: rgba(255,255,255,.06); }
.side-user .avatar { background: var(--brand-orange); }
.side-user .user-meta { min-width: 0; }
.side-user .user-meta strong { color: var(--side-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.side-user .user-meta span { color: var(--ink-faint); }
.side-user .user-menu { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); }
.side-icon-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--side-line); background: transparent; color: var(--side-ink); cursor: pointer; }
.side-icon-btn:hover { background: rgba(255,255,255,.08); }
.side-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Export: a small dialog that asks for the two dates before the Word file is made. */
.page-actions { position: relative; }
.export-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 300px; padding: 16px; display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); }
.export-pop[hidden] { display: none; }
.export-note { margin: 0; font-size: 12px; color: var(--ink-faint); }
.export-error { margin: 0; font-size: 12px; color: #b3261e; }
.export-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Export dialog: labels share one width so the two date boxes line up; no orange bar under the logo. */
.export-pop .fv-field { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.export-pop .fv-field .input { width: 100%; min-width: 0; }
.toolbar-right[hidden] { display: none; }

/* No applied / not-interested marks and no job count on the Jobs tab. */
.mark-btn { display: none !important; }
.side-nav .side-n { display: none; }

/* Overview: first in the sidebar, with a short list of the newest jobs and a short list of what is wrong with the sources. */
body.collector-mode #tabs .side-item[data-nav="home"] { order: -2; }
.hm-list { display: grid; gap: 2px; }
.hm-job { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.hm-job:first-child { border-top: 0; }
.hm-job-main { min-width: 0; display: grid; gap: 2px; }
.hm-src { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.hm-src:first-child { border-top: 0; }
.hm-src span { color: var(--ink-soft); }
.hm-more { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }

/* Sources: one square per source or portal, coloured by how it is doing (deeper green = more open jobs). */
.sq-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: 13px; color: var(--ink-soft); }
.sq-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sq-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sq-sec { margin: 0 0 28px; }
.sq-grid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 6px; margin: 12px 0; }
.sq { width: 44px; height: 44px; padding: 0; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em; cursor: pointer; transition: transform .1s; }
.sq:hover { transform: scale(1.12); }
.sq:focus-visible, .sq.is-open { outline: 2px solid var(--accent); outline-offset: 2px; }
.sq-ok { color: #fff; }
.sq-ok.lv1, .sq-key.sq-ok { background: #7ccf8e; color: #12351b; }
.sq-ok.lv2 { background: #40c463; color: #0f3a1c; }
.sq-ok.lv3 { background: #30a14e; }
.sq-ok.lv4 { background: #216e39; }
.sq-warn { background: #f0b429; color: #4a3200; }
.sq-bad { background: #e5484d; color: #fff; }
.sq-idle { background: var(--surface-sunk); border-color: var(--line-strong); color: var(--ink-faint); }
.sq-detail-host { min-height: 0; }
.sq-hint { margin: 0; font-size: 13px; color: var(--ink-faint); }
.sq-detail { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sq-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sq-detail-figs { display: flex; flex-wrap: wrap; gap: 8px 32px; }


/* The square's name box: placed by script so it never runs off the window. */
.sq-tip { position: fixed; z-index: 90; display: grid; gap: 1px; max-width: 260px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }
.sq-tip[hidden] { display: none; }
.sq-tip b { font-size: 13px; }

/* Dashboard: tight cards, big bold numbers, charts; every card names the page it leads to. */
#page-home .jb-head { margin-bottom: 12px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.dk { min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.dk h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.dk h2 a { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--accent); text-decoration: none; }
.dk h2 a::after { content: " \2192"; }
.dk h2 a:hover { text-decoration: underline; }
.dk-kpi { grid-column: span 3; display: flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.dk-kpi:hover { border-color: var(--accent); transform: translateY(-1px); }
.dk-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.dk-num { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.dk-foot { font-size: 13px; color: var(--ink-soft); }
.dk-bars-card { grid-column: span 6; } .dk-ring-card { grid-column: span 3; }
.dk-list-card { grid-column: span 8; } .dk-co-card { grid-column: span 4; }
.dk-bars { display: block; width: 100%; height: 190px; }
.dk-bar-n { font-size: 11px; font-weight: 700; fill: var(--ink); } .dk-bar-d { font-size: 11px; fill: var(--ink-faint); }
.dk-donut { display: grid; gap: 8px; justify-items: center; }
.dk-ring { width: 150px; height: 150px; }
.dk-ring-n { font-size: 26px; font-weight: 800; fill: var(--ink); } .dk-ring-s { font-size: 11px; fill: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.dk-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 3px; font-size: 13px; }
.dk-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; }
.dk-legend i { width: 10px; height: 10px; border-radius: 3px; } .dk-legend b { font-variant-numeric: tabular-nums; }
.dk-rows { display: grid; gap: 7px; }
.dk-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 13px; overflow: hidden; }
.dk-row i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lv-1); opacity: .16; z-index: 0; }
.dk-row span, .dk-row b { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk .hm-job { padding: 7px 0; }
@media (max-width: 1100px) { .dk-kpi { grid-column: span 6; } .dk-bars-card { grid-column: span 12; } .dk-ring-card { grid-column: span 6; } .dk-list-card, .dk-co-card { grid-column: span 12; } }
@media (max-width: 560px) { .dk-kpi, .dk-ring-card { grid-column: span 12; } .dk-num { font-size: 34px; } }

.dk h2 a { white-space: nowrap; }

/* The busiest-employers card fills its height, so no blank strip is left under the last row. */
.dk-co-card { display: flex; flex-direction: column; }
.dk-co-card .dk-rows { flex: 1; grid-auto-rows: 1fr; align-content: stretch; }
.si-signup { margin: 18px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.si-signup .link-btn { font-size: 16px; }
body.is-viewer [data-nav="logs"] { display: none !important; }                    /* the collector log is for admins; a Viewer is not offered the screen */
