/* Inter Variable — self-hosted, no external requests (2026-07-28 rebrand).
   font-weight: 100 900 covers the whole variable axis, so every existing
   font-weight rule (400/600/700 etc.) already used across the app "just
   works" against this one file — no other CSS needed to change. */
@font-face {
  font-family: 'Inter Variable';
  src: url('/static/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Variable';
  src: url('/static/fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   ZED CRM — design system
   --------------------------------------------------------------------------
   Same family as Zed Payroll / Chat / Leads (warm near-black + ZED orange) so
   all in-house tools read as one product. Two deliberate departures, both
   because this is an operational screen people stare at for a full shift:

   1. The canvas is lifted off pure black (#0f1115) with layered surfaces.
      Pure black + bright text at 8h/day is genuinely fatiguing.
   2. Orange is reserved for BRAND and PRIMARY ACTIONS only — never for status.
      In the old CRM everything was blue-on-navy, so nothing stood out. Here
      status has its own unambiguous palette, because reading status at a
      glance IS the job.
   ========================================================================== */

:root {
  --bg:        #0b0f17;
  --surface:   #111827;
  --surface-2: #172136;
  --border:    #243146;
  --border-lit:#35476b;

  --text:      #e6ebf4;
  --text-dim:  #93a1b8;
  --text-mute: #6b7a94;

  --accent:      #2f7df6;   /* Azure Pulse — brand + primary actions (2026-07-28 rebrand) */
  --accent-soft: rgba(47,125,246,.14);
  /* Renders native widget internals (select arrow + popup list, date picker)
     dark — CSS can style the control box but not those parts. */
  color-scheme: dark;
  --accent-hover:#4da2ff;

  /* Status palette — each one distinct at a glance, even side by side */
  --st-new:      #8b95a7;   /* SALE_MADE  — unclaimed, neutral */
  --st-progress: #38bdf8;   /* IN_PROCESS — someone is on it (sky, kept distinct from the azure accent) */
  --st-review:   #f5b13d;   /* REVIEW     — needs agent action (the money lever) */
  --st-done:     #35c9a5;   /* PROCESSED  — awaiting supplier verification */
  --st-good:     #3ecf7a;   /* CONFIRMED  — revenue */
  --st-warn:     #ff8f5a;   /* PIN_WRONG  */
  --st-bad:      #f2545b;   /* CANCELED   */
  --st-call:     #a97bff;   /* CALL_BACK  */

  --team-zeds: #4d9fff;
  --team-zedx: #3ecf7a;

  --radius:   10px;
  --radius-lg:14px;
  --shadow:   0 4px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px; height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
/* The ZED mark is a transparent PNG (same asset as Payroll and Chat), so it
   sits on the bar directly — no gradient tile behind it. */
.brand-mark {
  width: 28px; height: 28px; flex: none;
  object-fit: contain; display: block;
}
/* Wordmark sized to sit level with the 28px mark beside it (was 15px, tiny
   next to the logo, from when a subtitle line shared the space — Raymond,
   2026-07-28: drop the subtitle, size the name to the mark). Grey-into-azure
   gradient text, echoing the re-tinted logo and the payslip's net-pay band,
   instead of flat white. */
.brand-name {
  font-size: 19px;
  background: linear-gradient(120deg, var(--text) 25%, var(--accent-hover) 100%);
  -webkit-background-clip: text; background-clip: text; color: var(--text); /* fallback if clip unsupported */
  -webkit-text-fill-color: transparent;
}

.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.nav a {
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  padding: 7px 13px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.nav a .count {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px;
  font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}

/* team badge — instant "whose data am I looking at" */
.team-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  padding: 5px 11px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--bg); white-space: nowrap;
}
.team-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--team-zeds); }
.team-dot.green { background: var(--team-zedx); }
.team-dot.grey  { background: var(--text-mute); }

.who { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.who .role { text-transform: uppercase; letter-spacing: .05em; font-size: 10px; color: var(--text-mute); }

/* ---------- layout ---------- */
.wrap { max-width: 1500px; margin: 0 auto; padding: 22px 20px 90px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.page-head p { margin: 3px 0 0; color: var(--text-dim); font-size: 13px; }

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 15px 16px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--st-new); }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat .l { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; }
.stat .sub { font-size: 11px; color: var(--text-mute); margin-top: 3px; }
.stat.new::before      { background: var(--st-new); }
.stat.progress::before { background: var(--st-progress); }
.stat.review::before   { background: var(--st-review); }
.stat.done::before     { background: var(--st-done); }
.stat.good::before     { background: var(--st-good); }
.stat.warn::before     { background: var(--st-warn); }
.stat.bad::before      { background: var(--st-bad); }
/* Roll-up totals sit visually apart from the per-status cards — they're the
   yardstick you check the individual statuses against, not another status. */
.stat.rollup { background: var(--surface-2); border-color: var(--border-lit); }
.stat.rollup::before { background: var(--accent); }
.stat.rollup .n { color: var(--text); }
.stat.rollup.done::before { background: var(--st-done); }
.stat.rollup.done .n { color: var(--st-done); }
.stat.good .n { color: var(--st-good); }
.stat.review .n { color: var(--st-review); }
.stat.bad .n  { color: var(--st-bad); }

/* Grey→azure gradient for neutral headings and figures, matching the wordmark
   (Raymond, 2026-07-28: flat bright white read as dull next to the rebrand).
   Deliberately NOT applied where colour already carries meaning — the good /
   review / bad / rollup-done figures keep their status colour, since a
   gradient there would destroy the signal. `-webkit-text-fill-color` beats
   `color`, so those must be excluded rather than overridden. */
.page-head h1,
.panel-head h2,
.stat:not(.good):not(.review):not(.bad):not(.rollup) .n,
.stat.rollup:not(.done) .n {
  background: linear-gradient(120deg, var(--text) 25%, var(--accent-hover) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: var(--text); /* fallback where background-clip:text is unsupported */
  -webkit-text-fill-color: transparent;
  width: fit-content; /* keep the gradient ramp tight to the glyphs */
}

/* ---------- panels & tables ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 650; }
.panel-body { padding: 16px; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
/* NOTE: .tablewrap sets overflow-x:auto, which per spec forces overflow-y to
   `auto` as well — making it a scroll container. A sticky `th` therefore
   positions relative to THAT container, not the viewport, so `top: 56px`
   (the topbar height) pushed the header 56px down and it sat on top of the
   first row, hiding it. `top: 0` keeps the header where it belongs. */
th {
  text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-mute); padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 5;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover td { background: rgba(255,255,255,.022); }
tbody tr:last-child td { border-bottom: none; }
.t-strong { font-weight: 600; }
.t-dim { color: var(--text-dim); }
.t-mute { color: var(--text-mute); font-size: 12px; }
.t-mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 12px; }
.t-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 650;
  white-space: nowrap; letter-spacing: .01em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.new      { color: var(--st-new);      background: rgba(139,149,167,.14); }
.pill.progress { color: var(--st-progress); background: rgba(77,159,255,.14); }
.pill.review   { color: var(--st-review);   background: rgba(245,177,61,.15); }
.pill.done     { color: var(--st-done);     background: rgba(53,201,165,.14); }
.pill.good     { color: var(--st-good);     background: rgba(62,207,122,.15); }
.pill.warn     { color: var(--st-warn);     background: rgba(255,143,90,.15); }
.pill.bad      { color: var(--st-bad);      background: rgba(242,84,91,.15); }
.pill.call     { color: var(--st-call);     background: rgba(169,123,255,.15); }

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border-radius: 8px; padding: 8px 15px; border: 1px solid transparent;
  background: var(--accent); color: #14161a; transition: background .12s, border-color .12s;
}
button:hover, .btn:hover { background: var(--accent-hover); color: #14161a; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-lit); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-mute); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-good { background: var(--st-good); color: #08130d; }
.btn-good:hover { background: #5ddb92; color: #08130d; }
.btn-warn { background: var(--st-warn); color: #1a0d06; }
.btn-warn:hover { background: #ffa473; color: #1a0d06; }
.btn-bad  { background: var(--st-bad); color: #fff; }
.btn-bad:hover { background: #ff6b71; color: #fff; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
input, select, textarea {
  font: inherit; font-size: 14px; width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-lit); border-radius: 8px; padding: 9px 11px;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
/* Two panels side by side (Processing: New sales | Working on now). Collapses
   earlier than grid-2 because these hold tables, not label/value pairs. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
@media (max-width: 1180px) { .pair { grid-template-columns: 1fr; } }
.hint { font-size: 11px; color: var(--text-mute); margin-top: -8px; margin-bottom: 12px; }

.toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 7px 10px; font-size: 13px; }

/* ---------- empty state ---------- */
.empty { padding: 52px 20px; text-align: center; color: var(--text-mute); }
.empty .icon { font-size: 30px; opacity: .35; margin-bottom: 10px; }
.empty h3 { margin: 0 0 5px; font-size: 14px; color: var(--text-dim); font-weight: 600; }
.empty p { margin: 0; font-size: 13px; }

/* ---------- sticky notes: always one keystroke away ---------- */
.notes-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: var(--accent); color: #14161a; font-size: 21px;
  box-shadow: var(--shadow); display: grid; place-items: center; padding: 0;
}
.notes-fab:hover { background: var(--accent-hover); transform: translateY(-1px); }
.notes-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 92vw; z-index: 70;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -8px 0 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .18s ease;
}
.notes-panel.open { transform: translateX(0); }
.notes-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.notes-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.notes-head .close { background: none; border: none; color: var(--text-mute); font-size: 22px; cursor: pointer; padding: 0 4px; }
.notes-head .close:hover { color: var(--text); background: none; }
.notes-panel textarea {
  flex: 1; border: none; border-radius: 0; background: transparent;
  padding: 16px; font-size: 14px; line-height: 1.65; resize: none;
}
.notes-panel textarea:focus { box-shadow: none; border-color: transparent; }
.notes-foot { padding: 9px 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-mute); display: flex; justify-content: space-between; }
.notes-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .18s; }
.notes-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-lit); color: var(--text);
  padding: 10px 17px; border-radius: 99px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); animation: rise .2s ease;
}
.toast.good { border-color: var(--st-good); color: var(--st-good); }
.toast.bad  { border-color: var(--st-bad);  color: var(--st-bad); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 370px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 6px; font-size: 17px; }
.login-card .tag { text-align: center; color: var(--text-mute); font-size: 12px; margin-bottom: 24px; }
.login-card button { width: 100%; padding: 10px; margin-top: 6px; }
.err { background: rgba(242,84,91,.12); border: 1px solid rgba(242,84,91,.4); color: #ff9096; padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }

/* ---------- misc ---------- */
.sale-detail dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-top: 12px; }
.sale-detail dd { margin: 3px 0 0; font-size: 14px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.claimed-by { font-size: 11px; color: var(--st-progress); }
.age { font-size: 11px; color: var(--text-mute); }
.age.stale { color: var(--st-review); font-weight: 600; }

@media (max-width: 820px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  th { position: static; }
  .wrap { padding: 16px 12px 90px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- follow-ups: rows whose call timer has fired ---------- */
tr.due td { background: rgba(245,177,61,.055); }
tr.due td:first-child { box-shadow: inset 3px 0 0 var(--st-review); }
tr.due .age { color: var(--st-review); font-weight: 600; }

/* ---------- per-user watermark (security) ---------- */
.watermark {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  overflow: hidden; display: flex; flex-wrap: wrap; gap: 46px 60px;
  transform: rotate(-24deg) scale(1.5); transform-origin: center;
  opacity: .05; user-select: none;
}
.watermark span { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text); letter-spacing: .04em; }
@media print { .watermark { opacity: .16; } }

/* Clickable stat cards (Follow-ups: RTC / Done switch the Completed list).
   The selected one gets the same azure ring the active nav tab uses, so
   "which list am I looking at" reads the same way everywhere. */
a.stat { display: block; color: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
a.stat:hover { border-color: var(--border-lit); transform: translateY(-1px); }
a.stat.is-active { box-shadow: inset 0 0 0 1px var(--accent); border-color: var(--accent); }

/* ==========================================================================
   POLISH PASS — 2026-08-06
   One appended, fully-revertible block (delete it to roll back). Three parts:
     A · data-first legibility   B · quiet-craft layer   C · status-at-a-glance
   Sourced from the ui-ux-pro-max, ui-ux-design-pro and better-* skills.
   ========================================================================== */

/* ---- A · DATA-FIRST LEGIBILITY ------------------------------------------
   Tabular figures: numbers, IDs, dates, counts and money line up digit-for-
   digit down every column. Inter's tnum only touches digits, so mixed
   name+number cells are unaffected — safe to apply broadly. */
td, .stat .n, .stat .sub, .nav a .count, .age, .t-mono, .t-num,
.pill, input, .toolbar input, .toolbar select {
  font-variant-numeric: tabular-nums;
}
.t-num { font-variant-numeric: tabular-nums; }
/* Long tracking numbers in the mono column shouldn't crush together. */
.t-mono { letter-spacing: .01em; }

/* ---- B · QUIET-CRAFT LAYER ----------------------------------------------
   Tactile press (better-ui: 0.96–0.97, exact properties, never transition:all). */
button, .btn {
  transition: background .12s ease, border-color .12s ease,
              transform .08s ease, box-shadow .12s ease, color .12s ease;
}
button:active:not(:disabled), .btn:active { transform: scale(.97); }
.notes-fab:active { transform: translateY(-1px) scale(.96); }
/* Keyboard focus was only styled on inputs; every interactive element now gets
   a visible ring for keyboard nav. :focus-visible keeps it off for mouse use. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav a:focus-visible, a.stat:focus-visible, .team-badge:focus-visible,
.notes-fab:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 7px;
}
/* Row hover: a touch more presence, and it settles instead of flipping. */
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: rgba(255,255,255,.035); }
/* Loading-skeleton utility — for "Scan now", table loads, any pending data. */
.skeleton { position: relative; overflow: hidden; border-radius: 6px;
  background: var(--surface-2); color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: skeleton-sweep 1.15s ease-in-out infinite; }
.skel-line { height: 12px; margin: 7px 0; border-radius: 6px; }
@keyframes skeleton-sweep { 100% { transform: translateX(100%); } }
/* Respect reduced-motion everywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  button:active, .btn:active, .notes-fab:active { transform: none; }
}

/* ---- C · STATUS-AT-A-GLANCE ---------------------------------------------
   OKLCH-normalised: every chromatic status now sits at the same lightness
   (~0.755) so none shouts — REVIEW was 8.6:1 and CANCELED 4.7:1, now a tight
   6.1–7.9 band — while hue keeps each one distinct. `new` stays deliberately
   dim (it should recede). All still pass WCAG AA on the surface. */
:root {
  --st-progress: #39bdf9;   /* IN_PROCESS */
  --st-review:   #e4a126;   /* REVIEW (money lever) — eased down from shouting */
  --st-done:     #37caa6;   /* PROCESSED */
  --st-good:     #3cce79;   /* CONFIRMED */
  --st-warn:     #fd8d58;   /* PIN_WRONG */
  --st-bad:      #ff7377;   /* CANCELED — lifted out of the dim outlier */
  --st-call:     #be91ff;   /* CALL_BACK */
}
/* Pill background now derives from the status colour itself (one source of
   truth) rather than hand-written rgba() that drifts as colours change. */
.pill.new      { color: var(--st-new);      background: color-mix(in oklab, var(--st-new)      15%, transparent); }
.pill.progress { color: var(--st-progress); background: color-mix(in oklab, var(--st-progress) 15%, transparent); }
.pill.review   { color: var(--st-review);   background: color-mix(in oklab, var(--st-review)   16%, transparent); }
.pill.done     { color: var(--st-done);     background: color-mix(in oklab, var(--st-done)     15%, transparent); }
.pill.good     { color: var(--st-good);     background: color-mix(in oklab, var(--st-good)     15%, transparent); }
.pill.warn     { color: var(--st-warn);     background: color-mix(in oklab, var(--st-warn)     15%, transparent); }
.pill.bad      { color: var(--st-bad);      background: color-mix(in oklab, var(--st-bad)      15%, transparent); }
.pill.call     { color: var(--st-call);     background: color-mix(in oklab, var(--st-call)     15%, transparent); }
/* REVIEW is the money lever — any REVIEW-status row gets the same left-edge
   flag the follow-up "due" rows use, so it catches the eye in a long queue.
   (Add class="status-review" on the <tr> where the queue renders REVIEW rows.) */
tr.status-review td { background: color-mix(in oklab, var(--st-review) 6%, transparent); }
tr.status-review td:first-child { box-shadow: inset 3px 0 0 var(--st-review); }
/* Slim REVIEW callout on the single-record page — same gold left-flag language
   as the rows, so a monitor landing on a sale in revision sees the action-item
   state at a glance (agents already get the full "Needs correcting" panel). */
.review-callout {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; margin: -2px 0 16px; border-radius: 9px;
  background: color-mix(in oklab, var(--st-review) 9%, transparent);
  box-shadow: inset 3px 0 0 var(--st-review);
  font-size: 13px; color: var(--text-dim); line-height: 1.45;
}
.review-callout strong { color: var(--st-review); font-weight: 650; }
