/* =======================================================
   Orchestrator — Cockpit page styles
   Leads grid · Opportunities board · Call Console · Deal Workspace
   ======================================================= */

/* ---------- shared toolbar above page content ---------- */
.ck-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ck-toolbar .spacer { flex: 1; }
.ck-views { display: flex; gap: 4px; }
.ck-view {
  height: 30px; padding: 0 12px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer;
  border: 1px solid transparent;
}
.ck-view:hover { background: var(--sunken); color: var(--fg); }
.ck-view.is-active { background: var(--surface); color: var(--fg-strong); font-weight: 600; border-color: var(--border); box-shadow: var(--card-shadow); }
.ck-view .cnt { font-size: 10.5px; font-weight: 700; font-family: var(--mono); padding: 0 5px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.ck-view.is-active .cnt { background: var(--brand-soft); color: var(--brand-strong); }
.ck-view.overdue.is-active .cnt { background: var(--alert-bg); color: var(--alert); }

/* =======================================================
   LEADS GRID (CRM-style table)
   ======================================================= */
.lead-grid { width: 100%; }
.lead-grid table { width: 100%; border-collapse: collapse; }
.lead-grid thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--surface);
  text-align: left; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
  padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.lead-grid thead th.num { text-align: right; }
.lead-grid tbody tr { border-bottom: 1px solid var(--hairline); cursor: pointer; }
.lead-grid tbody tr:hover { background: var(--sunken); }
.lead-grid tbody tr.is-open { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.lead-grid td { padding: 10px 14px; font-size: 12px; color: var(--fg); vertical-align: middle; }
.lead-grid td.num { text-align: right; font-family: var(--mono); }
.lead-grid .cell-name { display: flex; align-items: center; gap: 10px; }
.lead-grid .cell-name .nm { font-weight: 600; color: var(--fg-strong); }
.lead-grid .cell-name .co { font-size: 11px; color: var(--muted); }
.lead-grid .editable { border-radius: var(--r-xs); padding: 2px 5px; margin: -2px -5px; }
.lead-grid tr:hover .editable { box-shadow: inset 0 0 0 1px var(--border); background: var(--surface); }
.lead-grid .next-action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.lead-grid .next-action .ai-dot { color: var(--ai); font-size: 11px; }
.lead-grid .owner-av { width: 24px; height: 24px; font-size: 9px; }
.lead-density-compact td { padding: 6px 14px; font-size: 12px; }
.lead-density-airy td { padding: 15px 14px; }

/* ---------- expandable lead mini-dashboard ---------- */
.lead-grid tbody tr.is-expanded { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.lead-grid .exp-chev { display: inline-flex; transition: transform .18s; color: var(--dim); }
.lead-grid tr.is-expanded .exp-chev { transform: rotate(90deg); color: var(--brand); }
.lead-dash-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.lead-dash { padding: 18px 20px; background: var(--sunken); display: flex; flex-direction: column; gap: 14px; animation: ldFade .2s ease; }
/* lead-dash carries .layout-fusion so the shared .fz-* block styles resolve —
   but must NOT inherit the inbox host grid/height/background. */
.lead-dash.layout-fusion {
  display: flex !important;
  grid-template-columns: none !important;
  height: auto !important;
  padding: 18px 20px !important;
  gap: 14px !important;
  background: var(--sunken) !important;
}
.lead-dash-head { display: flex; align-items: center; gap: 14px; }
.lead-dash-head .big-av { width: 44px; height: 44px; font-size: 15px; flex-shrink: 0; border-radius: 11px; }
.lead-dash-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg-strong); }
.lead-dash-head .sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.lead-dash-head .sub .lk { color: var(--brand); font-weight: 600; }
.lead-dash-head .acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: nowrap; }
.lead-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.ld-card { background: var(--surface); border: var(--card-border); border-radius: var(--r-md); box-shadow: var(--card-shadow); padding: 15px 16px; display: flex; flex-direction: column; min-width: 0; }
.ld-card.span2 { grid-column: span 2; }
.ld-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.ld-h .act { color: var(--brand); font-weight: 600; }

/* ── Opportunity list expanded dashboard ── */
.opp-dash-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.opp-dash {
  padding: 18px 20px;
  background: var(--sunken);
  display: flex; flex-direction: column; gap: 14px;
  animation: ldFade .2s ease;
}
.opp-dash-head { display: flex; align-items: center; gap: 14px; }
.opp-dash-head .od-co { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg-strong); }
.opp-dash-head .od-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 7px; }
.opp-dash-head .acts { margin-left: auto; display: flex; gap: 6px; }
.opp-dash-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: stretch; }
.od-card { background: var(--surface); border: var(--card-border); border-radius: var(--r-md); box-shadow: var(--card-shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.od-card.ai-card { background: var(--ai-bg); border-color: color-mix(in oklch, var(--ai) 25%, white); }
.od-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.od-h.ai { color: var(--ai); }
.od-kv { display: grid; grid-template-columns: 80px 1fr; row-gap: 8px; column-gap: 10px; font-size: 12px; align-items: center; }
.od-kv .k { color: var(--muted); }
.od-kv .v { font-weight: 600; color: var(--fg-strong); }
.od-kv .v.mono { font-family: var(--mono); }
.od-pipe { display: flex; gap: 3px; margin-top: 2px; }
.od-pipe i { height: 5px; flex: 1; border-radius: 3px; background: var(--sunken); }
.od-pipe i.done { background: var(--brand); }
.od-contact-row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hairline); cursor: pointer; border-radius: var(--r-xs); }
.od-contact-row:last-child { border-bottom: none; }
.od-contact-row:hover .od-cn { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.od-cn { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); }
.od-ct { font-size: 11px; color: var(--muted); }
.od-note { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.od-note:last-child { border-bottom: none; }
.od-note .note-body { font-size: 12px; color: var(--fg); line-height: 1.5; }
.od-note .note-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; }
.od-risk-n { font-size: 22px; font-weight: 700; color: var(--ai); letter-spacing: -0.02em; line-height: 1; }
.od-risk-n small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.od-risk-d { font-size: 12px; color: var(--fg); line-height: 1.5; }
.od-move { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-sm); background: color-mix(in oklch, var(--ai) 16%, white); font-size: 11px; font-weight: 600; color: var(--ai); cursor: pointer; }

/* back button in top bar */
.orch-topbar .back-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.orch-topbar .back-btn:hover { background: var(--sunken); color: var(--fg); }
.opp-list tr.is-expanded td { background: var(--brand-soft); }
.ld-card-ai {
  background: var(--ai-bg) !important;
  border-color: color-mix(in oklch, var(--ai) 25%, white) !important;
}
.ld-card-ai .ld-h-ai {
  color: var(--ai);
  margin-bottom: 10px;
}
.ld-card-ai .fz-risk {
  background: transparent !important;
  border: none !important;
  padding: 0;
}
.ld-card-ai .fz-risk .h {
  color: var(--ai);
  font-weight: 700;
}
.ld-card-ai .fz-risk .n {
  color: oklch(0.22 0.06 185);
}
.ld-card-ai .fz-risk .n small {
  color: var(--ai);
}
.ld-card-ai .fz-risk .d {
  color: oklch(0.28 0.04 185);
}
.ld-card-ai .fz-risk .move {
  background: color-mix(in oklch, var(--ai) 18%, white);
  color: oklch(0.28 0.08 185);
  border: 1px solid color-mix(in oklch, var(--ai) 30%, white);
}
.ld-card-ai .fz-risk .move:hover {
  background: color-mix(in oklch, var(--ai) 28%, white);
}
.ld-linkedin { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; }
.ld-linkedin .ll-head { display: flex; align-items: flex-start; gap: 7px; }
.ld-linkedin .ll-hl { font-size: 12px; font-weight: 600; color: var(--fg-strong); line-height: 1.4; }
.ld-linkedin .ll-section { display: flex; flex-direction: column; gap: 4px; }
.ld-linkedin .ll-k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 2px; }
.ld-linkedin .ll-job { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; font-size: 12px; }
.ld-linkedin .ll-title { font-weight: 600; color: var(--fg-strong); }
.ld-linkedin .ll-sep { color: var(--dim); }
.ld-linkedin .ll-co { color: var(--fg); }
.ld-linkedin .ll-dur { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
.ld-linkedin .ll-edu { font-size: 11.5px; color: var(--fg); }
.ld-qual { display: flex; align-items: center; gap: 13px; }
.ld-qual .big { font-size: 28px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ld-qual .bd { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.ld-model { display: flex; flex-direction: column; gap: 9px; }
.ld-model .row { display: flex; align-items: center; gap: 8px; }
.ld-model .k { font-size: 10.5px; font-weight: 600; color: var(--muted); width: 70px; flex-shrink: 0; }
.ld-rt { display: flex; justify-content: space-between; font-size: 11.5px; padding-top: 4px; border-top: 1px solid var(--hairline); margin-top: 2px; }
.ld-rt .v { font-family: var(--mono); font-weight: 700; color: var(--fg-strong); }
.ld-kv { display: grid; grid-template-columns: 90px 1fr; row-gap: 8px; column-gap: 10px; font-size: 12px; align-items: center; }
.ld-kv .k { color: var(--muted); }
.ld-kv .v { color: var(--fg); }
.ld-kv .v.b { font-weight: 600; color: var(--fg-strong); }
.ld-pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.ld-pipe i { height: 6px; border-radius: 3px; background: var(--sunken); }
.ld-pipe i.done { background: var(--brand); }
.ld-pipe i.cur { background: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.ld-risk .n { font-size: 22px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.02em; }
.ld-risk .n small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.ld-risk .d { font-size: 11.5px; color: var(--fg); line-height: 1.45; margin-top: 6px; }
.ld-risk .moves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ld-risk .move { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--ai-bg); font-size: 11px; font-weight: 500; color: var(--ai); }
.ld-tl { display: flex; flex-direction: column; }
.ld-tl-i { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; padding: 6px 0; align-items: start; }
.ld-tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--faint); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; }
.ld-tl-dot.ai { border-color: var(--ai); color: var(--ai); background: var(--ai-bg); }
.ld-tl-dot.alert { border-color: var(--alert); color: var(--alert); }
.ld-tl-l1 { font-size: 11.5px; color: var(--fg); }
.ld-tl-l1 b { font-weight: 600; color: var(--fg-strong); }
.ld-tl-t { font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.lead-grid .cell-name .nm.clickable { cursor: pointer; }
.lead-grid .cell-name .nm.clickable:hover { color: var(--brand); }
@keyframes ldFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lead-dash { animation: ldFade .2s ease; }

/* ── Qualification card: gauge+bars left half, "why this score" right + below ── */
.ld-reroute { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--sunken); }
.ld-reroute-h { font-size: 11.5px; font-weight: 600; color: var(--fg); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ld-reroute-keep { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); background: color-mix(in oklch, var(--brand) 12%, transparent); padding: 1px 7px; border-radius: 999px; }
.ld-reroute-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.ld-qual-card .qual-split { display: flex; gap: 22px; align-items: flex-start; }
.ld-qual-card .qual-left { flex: 0 0 46%; max-width: 46%; min-width: 0; }
.ld-qual-card .qual-why { flex: 1; min-width: 0; border-left: 1px solid var(--hairline); padding-left: 20px; align-self: stretch; }
/* gauge stacks ring over bars in the squeezed left column */
.ld-qual-card .qual-left .qual-gauge { flex-direction: column; align-items: stretch; gap: 12px; }
.ld-qual-card .qual-left .qual-gauge .qg-ring { align-self: flex-start; }
.ld-qual-card .qual-left .qual-gauge .qg-bars { width: 100%; }

/* density compact info note */
.ck-foot-note { display: flex; align-items: center; gap: 8px; padding: 11px 2px 2px; font-size: 11.5px; color: var(--muted); }

/* =======================================================
   OPPORTUNITIES BOARD
   ======================================================= */
.opp-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; min-width: 0; }
.opp-card { transition: box-shadow .15s, border-color .15s; }
.opp-card:hover { border-color: color-mix(in oklch, var(--brand) 35%, var(--border)); box-shadow: 0 3px 12px color-mix(in oklch, var(--brand) 10%, transparent); }
.opp-focus-head { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 700; color: var(--fg-strong); }
.opp-focus-head button { margin-left: auto; }
.opp-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.opp-col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.opp-col-head .nm { font-size: 12.5px; font-weight: 700; color: var(--fg-strong); }
.opp-col-head .cnt { font-size: 11px; font-weight: 700; font-family: var(--mono); color: var(--muted); background: var(--sunken); padding: 0 7px; border-radius: 999px; }
.opp-col-head .sum { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); font-family: var(--mono); }
.opp-col-head .bar { height: 3px; border-radius: 2px; background: var(--brand); flex-basis: 100%; }
.opp-card {
  background: var(--surface); border-radius: var(--r-md);
  border: var(--card-border); box-shadow: var(--card-shadow);
  padding: 12px; display: flex; flex-direction: column; gap: 9px; cursor: pointer;
}
.opp-card:hover { border-color: color-mix(in oklch, var(--brand) 35%, var(--border)); }
.opp-card .oc-top { display: flex; align-items: flex-start; gap: 9px; }
.opp-card .oc-co { font-size: 13px; font-weight: 700; color: var(--fg-strong); line-height: 1.2; }
.opp-card .oc-name { font-size: 11px; color: var(--muted); margin-top: 1px; }
.opp-card .oc-val { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--fg-strong); text-align: right; }
.opp-card .oc-val .lbl { display: block; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.opp-card .oc-tasks { display: flex; flex-direction: column; gap: 5px; }
.opp-card .oc-task { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.opp-card .oc-task .box { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--faint); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-fg); }
.opp-card .oc-task .box.done { background: var(--brand); border-color: var(--brand); }
.opp-card .oc-task.done span { text-decoration: line-through; color: var(--dim); }
.opp-card .oc-foot { display: flex; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--hairline); }
.opp-card .oc-stagebar { display: flex; gap: 3px; flex: 1; }
.opp-card .oc-stagebar i { height: 4px; flex: 1; border-radius: 2px; background: var(--sunken); }
.opp-card .oc-stagebar i.done { background: var(--brand); }
.opp-card.at-risk { border-color: color-mix(in oklch, var(--alert) 40%, var(--border)); }

/* opportunities list (alt view) */
.opp-list table { width: 100%; border-collapse: collapse; }
.opp-list th { text-align: left; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.opp-list td { padding: 11px 14px; font-size: 12px; border-bottom: 1px solid var(--hairline); }
.opp-list tr:hover td { background: var(--sunken); }

/* =======================================================
   CALL CONSOLE
   ======================================================= */
.call-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: 100%; min-height: 0; }
.dialer { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.dialer .who { text-align: center; }
.dialer .who .nm { font-size: 13px; font-weight: 700; color: var(--fg-strong); margin-top: 10px; }
.dialer .who .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dialer .num { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--fg); letter-spacing: 0.02em; }
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dialpad button { height: 46px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--fg); }
.dialpad button:hover { background: var(--sunken); }
.call-actions { display: flex; gap: 10px; }
.call-actions .call-btn { flex: 1; height: 44px; border-radius: var(--r-sm); border: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.call-actions .call-btn.go { background: var(--brand); border: 1px solid var(--brand-border, transparent); color: var(--brand-fg); }
.call-actions .call-btn.end { background: var(--alert); }
.call-suggested { padding: 13px; border-radius: var(--r-md); background: var(--c-action-bg, var(--ai-bg)); border: 1px solid var(--c-action-border, var(--border)); }
.call-log { display: flex; flex-direction: column; min-height: 0; }
.call-log-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.call-log-row .ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.call-log-row .ic.connected { background: var(--c-info-bg, var(--info-bg)); color: var(--c-info-fg, var(--info)); }
.call-log-row .ic.noanswer { background: var(--sunken); color: var(--muted); }
.call-log-row .ic.booked { background: var(--brand-soft); color: var(--brand-strong); }
.ch.booked { background: var(--c-ok-bg, var(--ok-bg)); color: var(--c-ok-fg, var(--ok)); }
.ch.connected { background: var(--c-info-bg, var(--info-bg)); color: var(--c-info-fg, var(--info)); }
.ch.noanswer { color: var(--muted); }
.call-log-row .dur { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ── To-Do ── */
.td-add { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 16px; }
.td-add-ic { color: var(--dim); display: inline-flex; }
.td-add input { flex: 1; border: none; outline: none; font-size: 12.5px; color: var(--fg); background: transparent; font-family: inherit; }
.td-add input::placeholder { color: var(--dim); }
.td-groups { display: flex; flex-direction: column; gap: 18px; }
.td-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 10px 14px; }
.td-row .box { width: 18px; height: 18px; border-radius: var(--r-xs); border: 1.5px solid var(--faint); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; margin-top: 2px; color: transparent; }
.td-row .box.done { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.td-row .box.ai { border-color: var(--ai); }
.td-row .box.ai.done { background: var(--ai); border-color: var(--ai); color: var(--brand-fg); }
.td-body { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.td-body.done { color: var(--muted); text-decoration: line-through; }
.td-sub { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.td-lead { background: none; border: none; padding: 0; color: var(--brand); font-weight: 600; font-size: 11px; cursor: pointer; font-family: inherit; }
.td-co { color: var(--dim); font-size: 11px; }
.td-due { font-size: 11px; font-weight: 700; white-space: nowrap; margin-top: 2px; padding: 1px 8px; border-radius: 999px; }
.td-due.over { color: var(--alert); background: var(--alert-bg); }
.td-due.today { color: var(--info); background: var(--info-bg); }
.td-due.up { color: var(--muted); background: var(--sunken); }
.td-empty { text-align: center; padding: 48px 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }

/* =======================================================
   DEAL WORKSPACE
   ======================================================= */
.deal-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.deal-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.map-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 13px 16px; border-bottom: 1px solid var(--hairline); }
.map-step:last-child { border-bottom: none; }
.map-step .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--faint); margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.map-step .box.done { background: var(--brand); border-color: var(--brand); }
.map-step .t1 { font-size: 13px; font-weight: 600; color: var(--fg-strong); }
.map-step .t1.done { color: var(--muted); text-decoration: line-through; }
.map-step .t2 { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; }
.map-step .due { font-size: 11px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.map-step .due.over { color: var(--alert); }
.stake-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--hairline); }
.stake-row:last-child { border-bottom: none; }
.stake-row .nm { font-size: 12.5px; font-weight: 600; color: var(--fg-strong); }
.stake-row .tt { font-size: 11px; color: var(--muted); }
.deal-side { display: flex; flex-direction: column; gap: 14px; }
.sect-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 11px;
  display: flex; align-items: center; justify-content: space-between; }
.sect-h .act { color: var(--brand); font-weight: 600; }
.pad { padding: 16px; }
.kv2 { display: grid; grid-template-columns: 96px 1fr; row-gap: 9px; column-gap: 10px; font-size: 12.5px; align-items: center; }
.kv2 .k { color: var(--muted); }
.kv2 .v { color: var(--fg); }
.kv2 .v.b { font-weight: 600; color: var(--fg-strong); }

/* =======================================================
   INBOX — reuse fusion fz-* panes WITHOUT the nav rail.
   Wrapper carries layout-fusion + variant classes so the
   .layout-fusion .fz-* descendant rules resolve.
   ======================================================= */
.orch-inbox.layout-fusion {
  position: absolute; inset: 0;
  height: 100%;
  grid-template-columns: minmax(180px, min(22%, 320px)) minmax(0, 1fr) minmax(200px, min(30%, 360px));
  padding: 14px;
  gap: 14px;
}
.orch-inbox.layout-fusion.fz-ctx-hidden {
  grid-template-columns: minmax(180px, min(22%, 320px)) minmax(0, 1fr) 40px;
}
.orch-inbox.layout-fusion.fz-seams-divided { gap: 0; padding: 0; }
.orch-inbox.layout-fusion.fz-seams-divided .fz-list   { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.orch-inbox.layout-fusion.fz-seams-divided .fz-thread { border-radius: 0; }
.orch-inbox.layout-fusion.fz-seams-divided .fz-ctx    { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.orch-inbox .fz-list,
.orch-inbox .fz-thread,
.orch-inbox .fz-ctx { min-height: 0; }

