/* ============================================================
   WCW Product Hub — Design System
   A fresher evolution of the What Chefs Want brand:
   warm paper canvas, refined grotesque type, red as a
   confident sparing accent, harmonious oklch stage colors.
   ============================================================ */

:root {
  /* --- Surfaces (warm neutrals) --- */
  --paper:      oklch(0.984 0.006 70);   /* page background */
  --surface:    #ffffff;                  /* cards */
  --surface-2:  oklch(0.975 0.006 70);   /* subtle panels */
  --surface-3:  oklch(0.962 0.007 70);   /* deeper panels / table head */

  /* --- Ink (warm near-black) --- */
  --ink:    oklch(0.24 0.012 55);
  --ink-2:  oklch(0.46 0.010 55);
  --ink-3:  oklch(0.62 0.008 55);
  --ink-4:  oklch(0.74 0.006 55);

  /* --- Hairlines --- */
  --line:   oklch(0.925 0.006 70);
  --line-2: oklch(0.885 0.007 70);
  --line-3: oklch(0.84 0.008 70);

  /* --- WCW brand red (the action + identity color) --- */
  --red:        oklch(0.515 0.165 26);   /* ~#B9262C */
  --red-bright: oklch(0.575 0.205 27);
  --red-ink:    oklch(0.44 0.15 27);
  --red-soft:   oklch(0.955 0.028 26);
  --red-line:   oklch(0.88 0.06 26);

  /* --- Stage / role accents: same L & C, varied hue --- */
  --intake:      oklch(0.62 0.13 70);    /* amber  */
  --intake-soft: oklch(0.955 0.035 70);
  --mkt:         oklch(0.62 0.15 28);    /* coral  */
  --mkt-soft:    oklch(0.955 0.035 30);
  --setup:       oklch(0.58 0.13 258);   /* indigo */
  --setup-soft:  oklch(0.955 0.03 258);
  --live:        oklch(0.58 0.12 150);   /* green  */
  --live-soft:   oklch(0.955 0.035 150);
  --sales:       oklch(0.56 0.15 305);   /* violet */
  --sales-soft:  oklch(0.955 0.03 305);
  --whse:        oklch(0.58 0.10 220);   /* teal-blue */
  --whse-soft:   oklch(0.955 0.03 220);

  --warn:       oklch(0.66 0.14 65);
  --warn-soft:  oklch(0.96 0.04 70);
  --warn-line:  oklch(0.86 0.08 70);

  /* --- Type --- */
  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --ui: "Hanken Grotesque", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* --- Radius / shadow --- */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-sm: 0 1px 2px oklch(0.4 0.02 60 / 0.06);
  --sh:    0 2px 8px oklch(0.4 0.02 60 / 0.07), 0 1px 2px oklch(0.4 0.02 60 / 0.05);
  --sh-lg: 0 12px 32px oklch(0.35 0.02 60 / 0.12), 0 2px 8px oklch(0.4 0.02 60 / 0.06);
  --sh-pop: 0 18px 48px oklch(0.3 0.02 60 / 0.18);

  /* layout */
  --rail: 232px;
  --topbar: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { height: 100%; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; }

::selection { background: var(--red-soft); }

/* scrollbar */
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 8px; border: 3px solid var(--paper); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  grid-template-rows: var(--topbar) 1fr;
  height: 100vh;
  overflow: hidden;
}

/* --- Top bar --- */
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(var(--rail) - 20px);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img { width: 27px; height: 27px; object-fit: contain; display: block; }
.brand-name { line-height: 1.05; }
.brand-name b { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em; display: block; }
.brand-name span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.global-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.global-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink);
  transition: all .15s;
}
.global-search input::placeholder { color: var(--ink-3); }
.global-search input:focus { outline: none; background: #fff; border-color: var(--line-3); box-shadow: 0 0 0 3px var(--surface-3); }
.global-search .si {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}

.topbar-spacer { flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  display: grid; place-items: center;
  position: relative;
  transition: all .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--surface);
}

/* role switcher */
.role-switch {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  transition: all .12s;
}
.role-switch:hover { border-color: var(--line-3); box-shadow: var(--sh-sm); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 11.5px; color: #fff;
  flex-shrink: 0;
}
.role-switch .who { line-height: 1.1; text-align: left; padding-right: 2px; }
.role-switch .who b { font-size: 12.5px; font-weight: 700; display: block; }
.role-switch .who span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.role-switch .chev { color: var(--ink-3); margin-right: 2px; }

/* dropdown menu (roles, etc) */
.menu {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--sh-pop);
  padding: 6px;
  z-index: 100;
  min-width: 240px;
}
.menu-label { padding: 8px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border: none; background: transparent;
  border-radius: 7px;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
  transition: background .1s;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item.active { background: var(--red-soft); }
.menu-item .who { line-height: 1.15; flex: 1; }
.menu-item .who b { font-weight: 600; display: block; }
.menu-item .who span { font-size: 11px; color: var(--ink-3); }
.menu-item .tick { color: var(--red); }

/* --- Left rail --- */
.rail {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}
.rail-section { margin-top: 16px; }
.rail-section:first-child { margin-top: 0; }
.rail-head { padding: 6px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-4); }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border: none; background: transparent;
  border-radius: 9px;
  width: 100%;
  text-align: left;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .12s;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; }
.nav-item.active .nav-ico { color: #fff; }
.nav-ico { color: var(--ink-3); display: grid; place-items: center; width: 18px; flex-shrink: 0; }
.nav-item .count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--ink-2);
  padding: 1px 8px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.nav-item.active .count { background: rgba(255,255,255,.18); color: #fff; }
.nav-item .count.alert { background: var(--red-soft); color: var(--red-ink); }

.rail-foot { margin-top: auto; padding: 12px 8px 4px; }
.help-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px;
}
.help-card b { font-size: 12.5px; display: block; margin-bottom: 3px; white-space: nowrap; }
.help-card p { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

/* --- Main scroll area --- */
.main {
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.page { padding: 28px 34px 80px; max-width: 1320px; margin: 0 auto; }
.page-wide { max-width: 1480px; }

/* page header */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.025em; line-height: 1.05; }
.page-head .sub { color: var(--ink-3); font-size: 13.5px; margin-top: 5px; }
.page-head .greet { color: var(--ink-2); font-size: 13.5px; margin-top: 5px; }

/* ============================================================
   PRIMITIVES
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: 20px 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.005em;
  transition: all .14s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 4px 14px var(--red-line); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: oklch(0.32 0.012 55); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 14px; }

/* pills & badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill .pdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill.intake { background: var(--intake-soft); color: oklch(0.46 0.12 70); }
.pill.mkt    { background: var(--mkt-soft);    color: oklch(0.47 0.15 28); }
.pill.setup  { background: var(--setup-soft);  color: oklch(0.46 0.13 258); }
.pill.live   { background: var(--live-soft);   color: oklch(0.43 0.11 150); }
.pill.sales  { background: var(--sales-soft);  color: oklch(0.45 0.14 305); }
.pill.whse   { background: var(--whse-soft);   color: oklch(0.44 0.10 220); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--surface-3); color: var(--ink-2);
  letter-spacing: 0.02em;
}
.tag.code { font-family: var(--mono); color: var(--red-ink); background: var(--red-soft); font-size: 10.5px; letter-spacing: 0; padding: 2px 7px; }
.tag.warn { background: var(--warn-soft); color: oklch(0.5 0.13 65); }
.tag.live { background: var(--live-soft); color: oklch(0.43 0.11 150); }
.tag.req  { background: var(--red-soft); color: var(--red-ink); }

/* aging dot */
.aging { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.aging::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.aging.green  { color: oklch(0.55 0.12 150); }
.aging.yellow { color: oklch(0.58 0.14 70); }
.aging.red    { color: var(--red); }

/* segmented control */
.seg {
  display: inline-flex;
  background: var(--surface-3);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: none; background: transparent;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-3);
  transition: all .12s;
}
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.seg button:hover:not(.active) { color: var(--ink); }

/* avatar sizes */
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 38px; height: 38px; font-size: 13px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* progress bar (segmented) */
.steps { display: inline-flex; align-items: center; gap: 3px; }
.steps .seg-bar { width: 22px; height: 5px; border-radius: 2px; background: var(--line-2); }
.steps .seg-bar.done { background: oklch(0.58 0.12 150); }
.steps .seg-bar.active { background: var(--intake); }
.steps .pct { margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ============================================================
   HUB HOME
   ============================================================ */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1120px) { .hub-grid { grid-template-columns: 1fr; } }

/* pipeline flow strip */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.flow-stage {
  padding: 16px 18px 18px;
  border-right: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background .12s;
}
.flow-stage:last-child { border-right: none; }
.flow-stage:hover { background: var(--surface-2); }
.flow-stage .fs-top { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.flow-stage .fs-dot { width: 9px; height: 9px; border-radius: 50%; }
.flow-stage .fs-name { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.flow-stage .fs-count { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 0.9; letter-spacing: -0.02em; }
.flow-stage .fs-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }
.flow-stage .fs-alert { display: inline-block; margin-top: 8px; }
.flow-arrow { position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--line-3); background: var(--paper); border-radius: 50%; }

/* stalled banner */
.alert-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(100deg, var(--warn-soft), var(--surface) 90%);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-lg);
}
.alert-banner .ab-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--warn-soft); color: oklch(0.55 0.14 65);
  display: grid; place-items: center;
  border: 1px solid var(--warn-line);
}
.alert-banner .ab-body { flex: 1; }
.alert-banner .ab-body b { font-size: 14.5px; }
.alert-banner .ab-body p { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }

/* section heading */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 12px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.sec-head .sh-link { font-size: 12.5px; font-weight: 700; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.sec-head .sh-link:hover { color: var(--red); }

/* task card */
.task {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: all .13s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.task:hover { border-color: var(--line-3); box-shadow: var(--sh); transform: translateY(-1px); }
.task + .task { margin-top: 9px; }
.task .t-stage { width: 4px; align-self: stretch; border-radius: 3px; flex-shrink: 0; }
.task .t-main { flex: 1; min-width: 0; }
.task .t-name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.task .t-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task .t-ask { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.task .t-ask b { color: var(--ink); font-weight: 700; }
.task .t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }

/* activity feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 11px 0; position: relative; }
.feed-item:not(:last-child)::before {
  content: ""; position: absolute; left: 12px; top: 34px; bottom: -11px; width: 1.5px; background: var(--line-2);
}
.feed-item .fi-av { flex-shrink: 0; z-index: 1; }
.feed-item .fi-body { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; padding-top: 3px; }
.feed-item .fi-body b { color: var(--ink); font-weight: 700; }
.feed-item .fi-time { font-size: 11px; color: var(--ink-4); margin-top: 3px; }
.feed-item .fi-quote {
  margin-top: 6px; padding: 8px 11px;
  background: var(--surface-2); border-radius: 8px;
  border-left: 2px solid var(--line-3);
  font-size: 12px; color: var(--ink-2);
}

/* mini stat row */
.statline { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.stat {
  flex: 1; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px;
}
.stat .s-label { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.stat .s-val { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-top: 4px; }
.stat .s-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.stat .s-sub.up { color: oklch(0.55 0.12 150); }

/* ============================================================
   PIPELINE BOARD
   ============================================================ */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}
.board-col { display: flex; flex-direction: column; min-width: 0; }
.board-col-head {
  display: flex; align-items: center; gap: 9px;
  padding: 0 4px 12px;
}
.board-col-head .bc-dot { width: 10px; height: 10px; border-radius: 50%; }
.board-col-head .bc-name { font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.board-col-head .bc-count { font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: var(--surface-3); border-radius: 999px; padding: 1px 9px; }
.board-col-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 120px;
  transition: background .12s, border-color .12s;
}
.board-col-body.drop-target { background: var(--red-soft); border-color: var(--red-line); border-style: dashed; }

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 14px;
  box-shadow: var(--sh-sm);
  cursor: grab;
  transition: box-shadow .13s, transform .13s, border-color .13s;
}
.pcard:hover { box-shadow: var(--sh); border-color: var(--line-3); }
.pcard:active { cursor: grabbing; }
.pcard.dragging { opacity: 0.4; }
.pcard .pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pcard .pc-name { font-weight: 700; font-size: 13px; line-height: 1.25; }
.pcard .pc-vendor { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.pcard .pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; gap: 8px; }
.pcard .pc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }

/* ============================================================
   TABLE
   ============================================================ */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
table.tbl thead th {
  background: var(--surface-2);
  text-align: left;
  padding: 11px 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
table.tbl tbody tr { cursor: pointer; transition: background .1s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.prod-cell .pn { font-weight: 700; color: var(--ink); }
.prod-cell .pv { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* filter bar */
.filterbar { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: all .12s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--line-3); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.alert { border-color: var(--warn-line); color: oklch(0.52 0.13 65); }
.chip.alert.active { background: var(--warn); border-color: var(--warn); color: #fff; }
.chip .c-num { font-weight: 700; opacity: .7; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: 1fr 372px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-head {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.detail-head .dh-crumb { font-size: 11.5px; color: var(--ink-4); font-weight: 600; letter-spacing: 0.04em; }
.detail-head .dh-crumb b { color: oklch(0.8 0.01 60); }
.detail-head h1 { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.02em; margin: 7px 0 9px; }
.detail-head .dh-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-4); flex-wrap: wrap; }
.detail-head .dh-meta .who { color: oklch(0.85 0.01 60); font-weight: 600; }

/* stage tracker */
.tracker { display: flex; align-items: center; gap: 0; margin-top: 18px; }
.tracker .tk {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: oklch(0.6 0.01 60);
  padding: 6px 0;
}
.tracker .tk .tk-dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: oklch(0.7 0.01 60);
  font-size: 11px; border: 1.5px solid transparent;
}
.tracker .tk.done .tk-dot { background: oklch(0.58 0.12 150); color: #fff; }
.tracker .tk.current .tk-dot { background: #fff; color: var(--ink); border-color: #fff; }
.tracker .tk.current { color: #fff; }
.tracker .tk-line { flex: 1; height: 2px; background: rgba(255,255,255,.14); margin: 0 10px; min-width: 18px; }
.tracker .tk-line.done { background: oklch(0.58 0.12 150); }

/* field group */
.fgroup { margin-bottom: 14px; }
.fgroup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0;
  cursor: pointer;
}
.fgroup-head .fg-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.fgroup-head .fg-owner { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; }
.fgroup-body { border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r) var(--r); background: var(--surface); padding: 6px 18px; }
.frow {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 16px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.frow:last-child { border-bottom: none; }
.frow .fr-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.frow .fr-label .req { color: var(--red); }
.frow .fr-val { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.frow .fr-val.empty { color: var(--ink-4); font-weight: 500; font-style: italic; }
.frow .fr-val .mono { font-family: var(--mono); font-size: 12.5px; }
.frow .fr-flag { justify-self: end; }

/* ============================================================
   COMMENTS / COLLAB SIDEBAR
   ============================================================ */
.collab { position: sticky; top: 0; }
.collab .tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface-3); border-radius: 11px; margin-bottom: 16px; }
.collab .tabs button {
  flex: 1; border: none; background: transparent; padding: 8px;
  border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  transition: all .12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.collab .tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.collab .tabs .cb-num { font-size: 10.5px; background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 700; }

.thread { display: flex; flex-direction: column; gap: 16px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.cmt { display: flex; gap: 11px; }
.cmt .c-av { flex-shrink: 0; }
.cmt .c-body { flex: 1; min-width: 0; }
.cmt .c-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.cmt .c-name { font-weight: 700; font-size: 12.5px; }
.cmt .c-role { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 5px; }
.cmt .c-time { font-size: 10.5px; color: var(--ink-4); margin-left: auto; }
.cmt .c-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cmt .c-text .mention { color: var(--red-ink); font-weight: 700; background: var(--red-soft); padding: 0 4px; border-radius: 4px; }
.cmt.system .c-text { font-style: italic; color: var(--ink-3); }

.composer { margin-top: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 4px; transition: border-color .12s; }
.composer:focus-within { border-color: var(--line-3); box-shadow: 0 0 0 3px var(--surface-3); }
.composer textarea {
  width: 100%; border: none; background: transparent; resize: none;
  padding: 9px 11px; font-size: 13px; color: var(--ink); min-height: 38px; line-height: 1.45;
}
.composer textarea:focus { outline: none; }
.composer .comp-foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; }
.composer .comp-tools { display: flex; gap: 2px; }

/* mention popover */
.mention-pop { position: absolute; bottom: 100%; left: 8px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-pop); padding: 5px; min-width: 220px; z-index: 50; }

/* ============================================================
   INTAKE FORM (the field-guidance experience)
   ============================================================ */
.intake { display: grid; grid-template-columns: 228px 1fr; gap: 30px; align-items: start; }
@media (max-width: 980px) { .intake { grid-template-columns: 1fr; } }

.intake-rail { position: sticky; top: 8px; }
.intake-progress {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px;
}
.intake-progress .ip-ring { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.ring { width: 52px; height: 52px; flex-shrink: 0; }
.intake-progress .ip-label b { font-family: var(--display); font-size: 20px; font-weight: 800; white-space: nowrap; }
.intake-progress .ip-label span { font-size: 11.5px; color: var(--ink-3); display: block; }

.step-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.step-nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all .12s;
}
.step-nav li:hover { background: var(--surface-2); }
.step-nav li.active { background: var(--surface-2); color: var(--ink); font-weight: 700; box-shadow: inset 2.5px 0 0 var(--red); }
.step-nav li .sn-check {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--line-2); color: var(--surface);
}
.step-nav li.complete .sn-check { background: oklch(0.58 0.12 150); }
.step-nav li.partial .sn-check { background: var(--warn); }

.intake-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.intake-banner {
  margin: 0; padding: 15px 26px;
  background: linear-gradient(100deg, var(--red-soft), var(--surface) 92%);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; align-items: center; gap: 13px;
  font-size: 12.5px; color: var(--ink-2);
}
.intake-banner .ib-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--red-line); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.intake-banner b { color: var(--ink); }

.intake-body { padding: 24px 26px; }
.intake-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 11px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.intake-sec-head h2 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.intake-sec-head .ish-count { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.field-top label { font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.field-top label .req { color: var(--red); }
.field-top .owner-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }

.why-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-3); font-size: 10.5px; font-weight: 700;
  padding: 2px 9px 2px 7px; border-radius: 999px;
  letter-spacing: 0.03em; transition: all .12s;
}
.why-btn:hover { border-color: var(--red-line); color: var(--red); }
.why-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.why-btn .qd { width: 13px; height: 13px; border-radius: 50%; background: var(--line-2); color: var(--surface); display: grid; place-items: center; font-size: 8.5px; font-style: italic; font-family: Georgia, serif; font-weight: 700; }
.why-btn:hover .qd { background: var(--red); color: #fff; }
.why-btn.active .qd { background: #fff; color: var(--red); }

.inp {
  padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  font-size: 13.5px; background: var(--surface); color: var(--ink); width: 100%;
  transition: all .12s;
}
.inp::placeholder { color: var(--ink-4); }
.inp:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.inp.ok { border-color: oklch(0.7 0.1 150); }
.inp.bad { border-color: var(--red); }
textarea.inp { resize: vertical; min-height: 70px; line-height: 1.5; }

.field .hint { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.field .validate { margin-top: 6px; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field .validate.ok { color: oklch(0.5 0.11 150); }
.field .validate.bad { color: var(--red); }

/* guidance panel */
.guidance {
  margin-top: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 16px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
  animation: gslide .16s ease-out;
}
@keyframes gslide { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.guidance .g-what { color: var(--ink); font-weight: 700; margin-bottom: 5px; }
.guidance .g-why { margin-bottom: 10px; }
.guidance .g-ex { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 9px; }
.guidance .g-ex .g-ex-h { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.guidance .g-ex .ex { font-family: var(--mono); font-size: 11.5px; color: var(--ink); display: block; padding: 1px 0; }
.guidance .g-ask { font-size: 11.5px; padding-top: 9px; border-top: 1px dashed var(--line-3); }
.guidance .g-ask b { color: oklch(0.52 0.13 65); text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }

/* rich select */
.rselect { position: relative; }
.rselect-trigger {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); text-align: left; font-size: 13.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  transition: all .12s;
}
.rselect-trigger:hover { border-color: var(--line-3); }
.rselect-trigger.open { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.rselect-trigger .rs-placeholder { color: var(--ink-4); }
.rselect-trigger .rs-sel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rselect-trigger .chev { color: var(--ink-3); flex-shrink: 0; transition: transform .15s; }
.rselect-trigger.open .chev { transform: rotate(180deg); }
.rselect-menu {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--sh-pop); max-height: 300px; overflow-y: auto; padding: 5px;
}
.rselect-opt {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 11px; border-radius: 8px; transition: background .1s;
}
.rselect-opt:hover { background: var(--surface-2); }
.rselect-opt.sel { background: var(--red-soft); }
.rselect-opt .ro-code {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--red-ink);
  background: var(--surface-3); padding: 3px 7px; border-radius: 6px; flex-shrink: 0; min-width: 34px; text-align: center;
}
.rselect-opt.sel .ro-code { background: #fff; }
.rselect-opt .ro-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.rselect-opt .ro-desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }

/* option cards (yes/no) */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.opt-card {
  border: 1.5px solid var(--line-2); border-radius: 9px; padding: 11px 13px;
  background: var(--surface); transition: all .12s; text-align: left;
}
.opt-card:hover { border-color: var(--line-3); background: var(--surface-2); }
.opt-card.sel { border-color: var(--red); background: var(--red-soft); }
.opt-card .oc-label { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.opt-card .oc-label .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; }
.opt-card.sel .oc-label .radio { border-color: var(--red); }
.opt-card.sel .oc-label .radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.opt-card .oc-desc { font-size: 11px; color: var(--ink-3); margin-top: 5px; line-height: 1.4; }

/* nudge */
.nudge {
  margin-top: 9px; padding: 11px 13px; border-radius: 8px;
  font-size: 12px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start;
}
.nudge.info { background: var(--setup-soft); border-left: 3px solid var(--setup); color: var(--ink-2); }
.nudge.warn { background: var(--warn-soft); border-left: 3px solid var(--warn); color: var(--ink-2); }
.nudge.ok { background: var(--live-soft); border-left: 3px solid var(--live); color: var(--ink-2); }
.nudge b { color: var(--ink); }
.nudge .n-ico { flex-shrink: 0; margin-top: 1px; }

/* auto-derived chip */
.derived {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--setup-soft); color: oklch(0.45 0.12 258);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 7px;
}
.derived .mono { font-family: var(--mono); }

/* upload zone */
.dropzone {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--line-3); border-radius: var(--r);
  padding: 22px; text-align: center; background: var(--surface-2);
  transition: all .13s; cursor: pointer;
}
.dropzone:hover { border-color: var(--red); background: var(--red-soft); }
.dropzone .dz-ico { color: var(--ink-3); margin-bottom: 7px; }
.dropzone b { font-size: 13px; }
.dropzone p { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.intake-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-top: 1px solid var(--line); background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* multi-select chips (warehouses, companies, sell-as) */
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 9px;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: all .12s; text-align: left;
}
.mchip:hover { border-color: var(--line-3); }
.mchip.sel { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.mchip .mchk {
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--line-3); display: grid; place-items: center; color: #fff;
}
.mchip.sel .mchk { background: var(--red); border-color: var(--red); }
.mchip .mc-code { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.mchip.sel .mc-code { color: var(--red-ink); }
.mchip .mc-sub { font-size: 10.5px; color: var(--ink-4); font-weight: 500; }

/* purchase sources */
.src-list { display: flex; flex-direction: column; gap: 10px; }
.src-row {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2); padding: 12px 13px;
  position: relative;
}
.src-row.primary { border-color: var(--red-line); background: var(--red-soft); }
.src-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 0.9fr; gap: 10px; align-items: end; }
@media (max-width: 720px) { .src-grid { grid-template-columns: 1fr 1fr; } }
.src-grid .micro { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; display: block; }
.src-row .src-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.src-row .prim-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.src-row .prim-toggle .dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; }
.src-row.primary .prim-toggle .dot { border-color: var(--red); }
.src-row.primary .prim-toggle .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.src-row .src-rm { border: none; background: transparent; color: var(--ink-3); padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.src-row .src-rm:hover { background: var(--red-soft); color: var(--red); }
.src-cost { position: relative; }
.src-cost::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 12.5px; z-index: 1; }
.src-cost input { padding-left: 21px; }
.src-add {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  border: 1.5px dashed var(--line-3); background: transparent; color: var(--ink-2);
  padding: 9px 15px; border-radius: 9px; font-size: 12.5px; font-weight: 700; transition: all .12s;
}
.src-add:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* char counter */
.char-count { font-size: 11px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--red); }
.char-count.near { color: oklch(0.58 0.14 65); }

/* keyword & attribute chips (review) */
.kw { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.attr-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.attr-row:last-child { border-bottom: none; }
.attr-row .ak { color: var(--ink-3); font-weight: 600; }
.attr-row .av { font-weight: 700; }

/* image placeholder (striped) */
.imgph {
  background-image: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 9px, var(--surface-3) 9px, var(--surface-3) 18px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  display: grid; place-items: center; text-align: center;
}
.imgph .ph-label { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--surface); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 9px;
  animation: tpop .25s cubic-bezier(.2,.9,.3,1.4);
}
.toast .t-ico { color: oklch(0.7 0.13 150); }
@keyframes tpop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .e-ico { color: var(--ink-4); margin-bottom: 12px; }
.empty b { color: var(--ink-2); font-size: 14px; display: block; margin-bottom: 4px; }

/* spinner */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-target:hover { color: var(--red); text-decoration: underline; }

/* ---- Tweak: density ---- */
.app.density-compact { font-size: 13px; }
.app.density-compact .page { padding: 20px 26px 64px; }
.app.density-compact .card-pad { padding: 15px 17px; }
.app.density-compact .task { padding: 11px 13px; }
.app.density-compact .task + .task { margin-top: 7px; }
.app.density-compact .page-head { margin-bottom: 18px; }
.app.density-compact .page-head h1 { font-size: 26px; }
.app.density-compact .statline { margin-bottom: 16px; }
.app.density-compact .flow-stage { padding: 13px 15px 14px; }
.app.density-compact .flow-stage .fs-count { font-size: 34px; }

/* ---- Tweak: home layout = stream (single column) ---- */
.hub-grid.stream { grid-template-columns: 1fr; }
.hub-grid.stream .hub-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .hub-grid.stream .hub-aside { grid-template-columns: 1fr; } }

/* fade-in for view changes (never hides content if timeline is paused) */
.viewfade { animation: vf .24s ease-out both; }
@keyframes vf { from { opacity: 0.5; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .viewfade { animation: none; } }

/* sales context strip */
.sales-strip { display: flex; flex-direction: column; gap: 10px; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acct-row:last-child { border-bottom: none; }
.acct-row .ar-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink-2); flex-shrink: 0; }
.acct-row .ar-main { flex: 1; }
.acct-row .ar-name { font-weight: 700; font-size: 13px; }
.acct-row .ar-meta { font-size: 11.5px; color: var(--ink-3); }
.acct-row .ar-vol { text-align: right; }
.acct-row .ar-vol b { font-family: var(--display); font-weight: 800; font-size: 16px; }
.acct-row .ar-vol span { font-size: 10.5px; color: var(--ink-3); display: block; }
