/* Event Sales engine — /dept/sales?tab=eventsales
   Companion to templates/partials/event_sales_panel.html + static/js/event_sales.js.
   Leans on departments.css for .dept-section / .dept-table; everything
   panel-specific carries the es- prefix. */

/* ── Compact above-the-fold sections ──────────────────────────────────── */
#panel-eventsales.es-panel-ready .es-section-compact .dept-section-body,
#panel-eventsales .es-section-compact .dept-section-body {
  padding-top: 10px;
  padding-bottom: 10px;
}
.es-section-compact .dept-section-header { padding-bottom: 4px; }

/* ── Answer strip ─────────────────────────────────────────────────────── */
.es-headline {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 8px;
}
.es-headline b { color: var(--accent, #3b82f6); }

/* Touch-ledger honesty banner. Amber, not red: the page is still usable and
   the DataOS half of the ledger is intact — one input is incomplete. */
.es-ledger-warn {
  display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
  margin: -2px 0 8px; padding: 8px 10px; border-radius: 8px;
  font-size: 12px; line-height: 1.5;
  color: var(--text-primary);
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
}
.es-ledger-warn-tag {
  flex: none; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  color: #7c2d12; background: color-mix(in srgb, #f59e0b 45%, #fff);
}
.es-ledger-warn span:last-child { flex: 1 1 320px; min-width: 0; }

.es-quarter-toggle { display: inline-flex; gap: 6px; }
.es-quarter-toggle .nav-rep-chip-btn.active {
  background: var(--accent, #3b82f6); color: #fff; border-color: var(--accent, #3b82f6);
}

.es-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.es-card {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 8px 10px; border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; background: var(--bg-card, #fff);
  cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
.es-card:hover { border-color: var(--accent, #3b82f6); }
.es-card.active {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .18);
}
.es-card-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); }
.es-card-value { font-size: 18px; font-weight: 800; color: var(--text-primary);
  font-variant-numeric: tabular-nums; }
/* Card notes live in the title tooltip so the strip stays one short row.
   .es-muted stays available for inline secondary text (event dates, etc.). */
.es-card-note { display: none; }
.es-muted { font-size: 11px; line-height: 1.35; color: var(--text-muted); }

/* ── Plan lanes ───────────────────────────────────────────────────────── */
.es-lanes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.es-lane {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 8px 10px; border: 1px solid var(--border, #e5e7eb);
  border-left-width: 4px; border-radius: 10px; background: var(--bg-card, #fff);
  cursor: pointer; transition: transform .1s ease, box-shadow .12s ease;
}
.es-lane:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.es-lane.active { box-shadow: 0 0 0 2px rgba(59, 130, 246, .2); }
.es-lane-danger { border-left-color: #ef4444; }
.es-lane-warn   { border-left-color: #f59e0b; }
.es-lane-ok     { border-left-color: #10b981; }
.es-lane-muted  { border-left-color: #9ca3af; }
.es-lane-title { font-size: 11.5px; font-weight: 700; color: var(--text-primary);
  line-height: 1.25; }
.es-lane-stats { display: flex; align-items: baseline; gap: 6px; }
.es-lane-count { font-size: 17px; font-weight: 800; color: var(--text-primary);
  font-variant-numeric: tabular-nums; }
.es-lane-amount { font-size: 11px; font-weight: 600; color: var(--text-muted); }
/* Why/action copy is available via title tooltip — keep the fold short. */
.es-lane-why,
.es-lane-action { display: none; }

/* ── Toolbar / filters (mirrors the seats tab) ────────────────────────── */
.es-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  margin-bottom: 10px;
}
.es-ctl { display: flex; flex-direction: column; gap: 4px; }
.es-ctl label { font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .03em; }
.es-ctl-actions { flex-direction: row; align-items: flex-end; gap: 6px; margin-left: auto; }

.es-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding-top: 10px; border-top: 1px dashed var(--border, #e5e7eb);
}
.es-filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .03em; }
.es-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.es-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: rgba(59, 130, 246, .1); color: var(--text-primary);
  border: 1px solid rgba(59, 130, 246, .25);
}
.es-chip b { font-weight: 700; }
.es-chip-x {
  border: 0; background: none; cursor: pointer; font-size: 13px;
  line-height: 1; color: var(--text-muted); padding: 0 2px;
}
.es-chip-x:hover { color: #ef4444; }
.es-chip-empty { font-size: 12px; color: var(--text-muted); }

.es-break-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  min-height: 1.2em; margin: 10px 0 6px; font-size: 12px;
  color: var(--text-muted);
}
.es-drill-hint { font-size: 11.5px; color: var(--text-muted); }

/* ── Rollup grid ──────────────────────────────────────────────────────── */
/* Bounded with a pinned header so the list below stays on screen — a
   40-owner grid otherwise pushes the opps a full page down, which is the
   scroll this layout exists to remove. */
.es-grid-wrap { max-height: 46vh; overflow: auto; }
.es-grid-wrap #es-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-card, #fff);
  box-shadow: inset 0 -1px 0 var(--border, #e5e7eb);
}

/* ── Tables ───────────────────────────────────────────────────────────── */
#es-table tbody tr.es-pick { cursor: pointer; }
#es-table tbody tr.es-pick:hover td { background: rgba(59, 130, 246, .06); }
#es-table tbody tr.es-selected td {
  background: color-mix(in srgb, var(--accent, #3b82f6) 12%, transparent);
  font-weight: 600;
}
/* Only cells with opps behind them are live; a zero cell stays inert. */
#es-table tbody td.es-cell-pick:hover {
  outline: 1px solid var(--accent, #3b82f6); outline-offset: -1px;
}
#es-table tbody td.es-cell-selected,
#es-table tbody tr.es-selected td.es-cell-selected {
  background: var(--accent, #3b82f6); color: #fff; font-weight: 700;
}
.es-row-other td { color: var(--text-muted); font-style: italic; }
.es-zero { opacity: .35; }
.mono { font-variant-numeric: tabular-nums; }

#es-table thead th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
#es-table thead th.sortable:hover { color: var(--text-primary); }

.es-risk-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.es-risk-danger { background: rgba(239, 68, 68, .12); color: #dc2626; }
.es-risk-warn   { background: rgba(245, 158, 11, .14); color: #b45309; }
.es-risk-ok     { background: rgba(16, 185, 129, .12); color: #047857; }
.es-risk-muted  { background: rgba(156, 163, 175, .18); color: #6b7280; }

.es-touch-split { white-space: nowrap; font-variant-numeric: tabular-nums; }
.es-touch-split b { color: var(--text-primary); }
.es-touch-zero { color: #dc2626; font-weight: 700; }

.es-act { display: inline-flex; gap: 6px; }
.es-act a,
.es-act button {
  font-size: 11px; font-weight: 700; text-decoration: none;
  color: var(--accent, #3b82f6); border: 1px solid rgba(59, 130, 246, .3);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
  background: transparent; cursor: pointer; font-family: inherit; line-height: inherit;
}
.es-act a:hover,
.es-act button:hover { background: rgba(59, 130, 246, .08); }

/* ── The list, in the same section as the grid that scopes it ─────────── */
.es-drill { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--border, #e5e7eb); }
.es-drill-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: space-between; margin-bottom: 8px;
}
.es-drill-scope {
  font-size: 13px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.es-drill-scope b { color: var(--text-primary); font-weight: 700; }

.es-roster-controls { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-pager {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  margin-top: 10px; font-size: 12px; color: var(--text-muted);
}

/* ── Enrollment engine ───────────────────────────────────────────────── */
.es-mode-toggle { display: inline-flex; gap: 6px; margin-left: auto; }
.es-mode-toggle .nav-rep-chip-btn.active {
  background: var(--accent, #3b82f6); color: #fff; border-color: transparent;
}
.es-engine { padding: 12px 16px 20px; }
.es-engine-toolbar {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px;
  justify-content: space-between; margin-bottom: 12px;
}
.es-engine-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 1; }
.es-engine-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.es-engine-switch input { width: 16px; height: 16px; accent-color: var(--accent, #3b82f6); }
.es-engine-auto-note {
  font-size: 12px; line-height: 1.45; color: var(--text-muted); max-width: 640px;
}
.es-engine-auto-note.is-on { color: #9a3412; }
.es-engine-kpis {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.es-engine-kpi {
  min-width: 110px; padding: 8px 12px; border-radius: 8px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
}
.es-engine-kpi b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.es-engine-kpi span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.es-engine-block { margin-top: 16px; }
.es-engine-block-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: space-between; margin-bottom: 8px;
}
.es-engine-block-title { font-size: 13.5px; font-weight: 700; }
.es-engine-buckets { display: inline-flex; gap: 6px; }
.es-engine-seq { min-width: 180px; max-width: 260px; }
.es-tree-team, .es-tree-owner, .es-tree-acct { margin: 0 0 4px; }
.es-tree-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.es-tree-row:hover { background: color-mix(in srgb, var(--accent, #3b82f6) 8%, transparent); }
.es-tree-row.is-blocked { opacity: .55; }
.es-tree-toggle { font-size: 11px; color: var(--text-muted); width: 12px; }
.es-tree-name { font-weight: 600; font-size: 13px; }
.es-tree-meta { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.es-tree-children { margin-left: 18px; border-left: 1px solid var(--border, #e5e7eb); padding-left: 8px; }
.es-tree-opp { cursor: default; }
.es-tree-contacts { margin: 4px 0 10px 18px; }
.es-tree-contact {
  padding: 8px 10px; margin-bottom: 6px; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface-2, #f8fafc);
}
.es-tree-contact-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.es-tree-role {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted);
}
.es-tree-sched {
  margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px;
  color: var(--text-secondary);
}
.es-tree-sched li { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.es-tree-sched .es-when { font-variant-numeric: tabular-nums; color: var(--text-muted); min-width: 88px; }
.es-sched-step {
  display: flex; gap: 10px; align-items: baseline;
  border: 0; background: none; cursor: pointer; font: inherit;
  text-align: left; padding: 0; color: inherit;
}
.es-sched-step:hover { color: var(--accent, #2563eb); }
.es-prospect-opp {
  display: block; width: 100%; border: 0; background: none;
  cursor: pointer; font: inherit; text-align: left; padding: 0;
}
.es-tree-contact.is-open { border-color: var(--accent, #3b82f6); }
.es-tree-contact.is-enrolling { border-color: color-mix(in srgb, var(--accent, #3b82f6) 35%, var(--border, #e5e7eb)); }
.es-block-btn {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px;
  border: 1px solid rgba(185, 28, 28, .35); color: #b91c1c;
  background: transparent; cursor: pointer; font-family: inherit;
}
.es-block-btn.is-blocked {
  border-color: rgba(22, 163, 74, .4); color: #15803d;
}
.es-engine-seq-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.es-engine-cov { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.es-cal-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px; align-items: start;
}
.es-cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.es-cal-label { font-size: 16px; font-weight: 700; margin-left: 4px; }
.es-cal-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); cursor: pointer; margin-left: 8px;
}
.es-cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden;
}
.es-cal-dow {
  padding: 6px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--surface-2, #f8fafc); border-bottom: 1px solid var(--border, #e5e7eb);
}
.es-cal-cell {
  min-height: 92px; padding: 6px; border-right: 1px solid var(--border, #e5e7eb);
  border-bottom: 1px solid var(--border, #e5e7eb); background: var(--bg-primary, #fff);
}
.es-cal-cell:nth-child(7n) { border-right: 0; }
.es-cal-cell.out { opacity: .42; }
.es-cal-cell.weekend { background: var(--surface-2, #f8fafc); }
.es-cal-cell.today {
  background: color-mix(in srgb, var(--accent, #3b82f6) 16%, var(--bg-primary, #fff));
  box-shadow: inset 0 0 0 2px var(--accent, #3b82f6);
}
.es-cal-cell.today .es-cal-date { color: var(--accent, #3b82f6); }
.es-cal-cell.send { box-shadow: inset 0 0 0 2px rgba(59, 130, 246, .35); }
.es-cal-cell.blackout { background: repeating-linear-gradient(
  -45deg, transparent, transparent 6px, rgba(185, 28, 28, .06) 6px, rgba(185, 28, 28, .06) 12px
); }
.es-cal-date { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.es-cal-chip {
  display: block; width: 100%; text-align: left; margin: 0 0 4px; padding: 3px 6px;
  border: 0; border-radius: 5px; cursor: pointer; font: inherit; font-size: 11px;
  font-weight: 600; color: #1e3a5f; background: #dbeafe; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.es-cal-chip.kind-mid { background: #fef3c7; color: #78350f; }
.es-cal-chip.kind-transactional { background: #fee2e2; color: #7f1d1d; }
.es-cal-chip.is-on { outline: 2px solid var(--accent, #3b82f6); }
.es-cal-chip.mkt { background: #ede9fe; color: #5b21b6; font-weight: 600; }
.es-cal-layout.is-focus .es-cal-chip:not(.is-on):not(.is-seq) { opacity: .22; }
.es-cal-layout.is-focus .es-cal-event:not(.is-on) { opacity: .35; }
.es-cal-layout.is-focus .es-cal-cell:not(.send):not(.has-on) { opacity: .55; }
.es-cal-layout.is-focus .es-cal-chip.is-on,
.es-cal-layout.is-focus .es-cal-chip.is-seq,
.es-cal-layout.is-focus .es-cal-event.is-on { opacity: 1; }
.es-cal-layout.is-focus .es-cal-chip.is-on,
.es-cal-layout.is-focus .es-cal-chip.is-seq {
  outline: 2px solid var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #3b82f6) 28%, transparent);
}
.es-cal-side {
  display: flex; flex-direction: column; min-height: 0;
  max-height: 620px; border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 12px;
}
.es-cal-side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; flex-shrink: 0;
}
.es-cal-side-actions { display: flex; align-items: center; gap: 8px; }
#es-cal-archive:disabled { opacity: .45; cursor: not-allowed; }
#es-prospects-tree { max-height: 520px; overflow-y: auto; }
#es-cal-events { overflow-y: auto; min-height: 0; flex: 1; max-height: 560px; }
.es-cal-event {
  display: flex; align-items: flex-start; gap: 8px;
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  padding: 8px 4px; border-bottom: 1px solid var(--border, #e5e7eb); font: inherit;
}
.es-cal-event:last-child { border-bottom: 0; }
.es-cal-event:hover, .es-cal-event.is-on { background: color-mix(in srgb, var(--accent, #3b82f6) 8%, transparent); }
.es-cal-event b { display: block; font-size: 13px; }
.es-cal-event span { font-size: 11px; color: var(--text-muted); }
.es-cal-event input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.es-enrollees {
  margin-top: 16px; border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; padding: 12px 14px 16px;
}
#es-enrollees-tree { max-height: 420px; overflow-y: auto; }
.es-enr-event { margin-bottom: 10px; }
.es-enr-event > b { display: block; font-size: 13px; margin-bottom: 4px; }
.es-enr-acct { margin: 4px 0 4px 12px; }
.es-enr-acct > span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.es-cov {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 1px 6px; margin-left: 4px;
}
.es-cov.missing { background: #fee2e2; color: #991b1b; }
.es-cov.ready { background: #dcfce7; color: #166534; }
.es-cov.spam { background: #ffedd5; color: #9a3412; }
.es-drawer {
  margin-top: 18px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  padding: 14px 16px 18px; background: var(--bg-primary, #fff);
}
.es-drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.es-drawer-title { font-size: 18px; font-weight: 700; }
.es-drawer-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.es-cadence {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 0 0 14px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface-2, #f8fafc);
  font-size: 12px;
}
.es-cadence-node { font-weight: 700; }
.es-cadence-gap { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.es-funnel { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.es-funnel-step {
  flex: 1 1 140px; max-width: 180px; text-align: left; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface-2, #f8fafc);
  padding: 8px 10px; cursor: pointer; font: inherit;
}
.es-funnel-step.is-on { border-color: var(--accent, #3b82f6); background: #eff6ff; }
.es-funnel-step.blackout { opacity: .55; cursor: default; }
.es-funnel-step b { display: block; font-size: 12px; }
.es-funnel-step span { font-size: 11px; color: var(--text-muted); }
.es-preview {
  margin: 0 0 16px; padding: 12px; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); background: var(--surface-2, #f8fafc);
}
.es-preview-recip {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border, #e5e7eb);
}
.es-preview-recip h4 { margin: 0 0 4px; font-size: 13px; }
.es-preview-body {
  font-size: 13px; line-height: 1.45; max-height: 220px; overflow: auto;
  padding: 8px; background: #fff; border-radius: 6px;
}
#es-opp-list .es-opp-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 4px; border-bottom: 1px solid var(--border, #e5e7eb);
}
#es-opp-list .es-opp-row button[data-expand] {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-weight: 600; text-align: left;
}
#es-roster-table { width: 100%; table-layout: auto; }
#es-roster-table th, #es-roster-table td { vertical-align: middle; }
/* Send-roster (Enrollment → Roster inner view) — distinct ids from the
   Opp-Velocity dissect roster above. */
#es-sr-table { width: 100%; table-layout: auto; }
#es-sr-table th, #es-sr-table td { vertical-align: middle; }
#es-sr-table tr.es-sr-day td {
  background: var(--surface-2, rgba(127, 127, 127, 0.08));
  font-size: 12px; letter-spacing: 0.02em; padding-top: 8px; padding-bottom: 6px;
}
@media (max-width: 960px) {
  .es-cal-layout { grid-template-columns: 1fr; }
}

/* ── Primary subtabs (Opp Velocity / Anchor Resigns) ──────────────────── */
.es-subtabs {
  display: inline-flex; gap: 4px; margin: 0 0 14px;
  padding: 3px; border-radius: 10px;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border, #e5e7eb);
}
.es-subtab {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 6px 14px; border-radius: 8px; transition: background .12s ease, color .12s ease;
}
.es-subtab:hover { color: var(--text-primary); }
.es-subtab.active {
  background: var(--bg-card, #fff); color: var(--accent, #3b82f6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ── Anchor Resigns strip ─────────────────────────────────────────────── */
.ar-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px;
}
.ar-card {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 8px 10px; border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; background: var(--bg-card, #fff);
  cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
.ar-card:hover { border-color: var(--accent, #3b82f6); }
.ar-card.active {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .18);
}
.ar-card-label { font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); }
.ar-card-value { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Event rollup ─────────────────────────────────────────────────────── */
.ar-events-wrap { max-height: 300px; overflow-y: auto; }
#ar-events-table .ar-evt-row { cursor: pointer; }
#ar-events-table .ar-evt-row:hover { background: var(--surface-2, #f8fafc); }
#ar-events-table .ar-evt-row.ar-selected {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 var(--accent, #3b82f6);
}
.ar-split { color: var(--text-muted); }

/* ── Roster ───────────────────────────────────────────────────────────── */
.ar-filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px;
}
.ar-status-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
#ar-roster-table { width: 100%; table-layout: auto; }
#ar-roster-table th, #ar-roster-table td { vertical-align: middle; }
.ar-multi-badge {
  display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #3730a3; background: #e0e7ff;
}
.ar-status {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.ar-status-ok { background: #dcfce7; color: #166534; }
.ar-status-danger { background: #fee2e2; color: #991b1b; }
.ar-status-muted { background: var(--surface-2, #f1f5f9); color: var(--text-muted); }
.ar-lookback { border-color: #c7d2fe; }
.ar-level { border-color: #c7d2fe; font-weight: 600; }
.ar-lb-badge {
  display: inline-block; padding: 0 6px; border-radius: 999px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  color: #9a3412; background: #ffedd5;
}
.ar-lvl-tag {
  display: inline-block; padding: 0 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; white-space: nowrap;
  color: #3730a3; background: #e0e7ff;
}
/* Roll Call "Sent" cell — the sponsor's own headcount at the prior instance */
.ar-sent {
  display: inline-block; min-width: 26px; text-align: center; padding: 1px 7px;
  border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ar-sent-0 { color: #fff; background: #dc2626; }
.ar-sent-1 { color: #92400e; background: #fef3c7; }
.ar-sent-3 { color: #166534; background: #dcfce7; }

/* ── Enrollment inner views (Engine / Performance) ────────────────────── */
.es-enroll-views {
  display: inline-flex; gap: 4px; margin: 0 0 14px;
  padding: 3px; border-radius: 10px;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border, #e5e7eb);
}
.es-enroll-view {
  border: 0; background: none; cursor: pointer; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  padding: 5px 14px; border-radius: 8px; transition: background .12s ease, color .12s ease;
}
.es-enroll-view:hover { color: var(--text-primary); }
.es-enroll-view.active {
  background: var(--bg-card, #fff); color: var(--accent, #3b82f6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ── Performance dashboard ────────────────────────────────────────────── */
.es-perf-headline {
  font-size: 14px; line-height: 1.5; color: var(--text-primary);
  margin-bottom: 10px;
}
.es-perf-headline b { color: var(--accent, #3b82f6); }
#es-perf-status.es-perf-armed { color: #166534; }
.es-perf-events-wrap { max-height: 320px; overflow-y: auto; }
.es-perf-scroll { max-height: 460px; overflow-y: auto; }
.es-perf-ready-legend {
  font-size: 11.5px; line-height: 1.5; color: var(--text-muted); margin-bottom: 8px;
}
.es-kpi-active b { color: #2563eb; }
.es-kpi-responded b { color: #166534; }
.es-kpi-completed b { color: #6b7280; }
.es-kpi-attention b { color: #b45309; }
.es-kpi-eligible b { color: #7c3aed; }

.es-perf-pill {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em;
}
.es-perf-active { background: #dbeafe; color: #1e40af; }
.es-perf-responded { background: #dcfce7; color: #166534; }
.es-perf-completed { background: var(--surface-2, #f1f5f9); color: var(--text-muted); }
.es-perf-attention { background: #fee2e2; color: #991b1b; }
.es-perf-auto { background: #fef3c7; color: #92400e; margin-left: 4px; }

.es-perf-fin-note {
  font-size: 12px; line-height: 1.45; color: var(--text-muted); margin-bottom: 10px;
}
.es-perf-fin-note b { color: var(--text, #0f172a); }
.es-perf-fin-kpis {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.es-perf-fin-card {
  flex: 1 1 160px; min-width: 140px; text-align: left;
  border: 1px solid var(--border, #e2e8f0); border-radius: 8px;
  background: var(--bg-card, #fff); padding: 12px 14px; cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.es-perf-fin-card:hover { border-color: #94a3b8; }
.es-perf-fin-card.open {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}
.es-perf-fin-card b {
  display: block; font-size: 17px; font-variant-numeric: tabular-nums;
  color: var(--text, #0f172a); margin-bottom: 2px;
}
.es-perf-fin-card span {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .04em;
}
.es-fin-won b { color: #166534; }
.es-fin-progressed b { color: #1d4ed8; }
.es-fin-closed b { color: #9a3412; }
.es-perf-fin-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.es-perf-fin-split {
  display: block; margin-top: 3px; font-size: 10px; font-style: normal;
  color: var(--text-muted, #64748b); text-transform: none; letter-spacing: 0;
}
.es-perf-fin-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 12px; color: var(--text-muted, #64748b); cursor: pointer;
}
.es-perf-fin-note { font-size: 11px; color: var(--text-muted, #64748b); }
.es-perf-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 600; vertical-align: middle;
}
.es-perf-badge-carve { background: #ede9fe; color: #6d28d9; }
.es-perf-badge-unsent { background: #fef2f2; color: #b91c1c; }
.es-perf-fin-detail {
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0); border-radius: 8px;
  background: var(--surface-2, #f8fafc);
}
.es-perf-fin-detail-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 8px;
}
.es-perf-fin-detail-head b { margin-right: 4px; }
.es-perf-fin-detail-head .nav-rep-chip-btn { margin-left: auto; }
.es-perf-fin-wrap { max-height: 280px; overflow-y: auto; }
.es-perf-fin-empty { font-size: 13px; color: var(--text-muted); }
.es-perf-fin-seq-head {
  font-size: 13px; line-height: 1.45; margin: 12px 0 8px; color: var(--text, #0f172a);
}
.es-perf-fin-seq-head b { color: var(--accent, #3b82f6); }
.es-perf-touch { margin-top: 12px; }
.es-perf-touch-cell {
  border: 1px solid var(--border, #e2e8f0); border-radius: 6px;
  background: var(--bg-card, #fff); padding: 4px 10px; cursor: pointer;
  font: inherit; color: inherit;
}
.es-perf-touch-cell.open {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}
.es-perf-touch-cell b { font-variant-numeric: tabular-nums; }

.es-perf-stage {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em;
}
.es-perf-stage-eligible { background: #ede9fe; color: #6d28d9; }
.es-perf-stage-upcoming { background: #e0f2fe; color: #075985; }
.es-perf-stage-blocked { background: #fee2e2; color: #991b1b; }

/* The number-one rule banner + no-send labels + click-to-explain detail. */
.es-perf-rule {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 3px solid #166534;
  border-radius: 6px; padding: 7px 10px; margin-bottom: 8px;
}
.es-perf-rule b { color: var(--text, #0f172a); }

.es-nosend {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
}
.es-nosend-replied { color: #166534; }
.es-nosend-attention { color: #991b1b; }

.es-perf-row { cursor: pointer; }
.es-perf-row:hover { background: var(--surface-2, #f8fafc); }
.es-perf-row.open { background: var(--surface-2, #f1f5f9); }

/* Financial detail: click an opp row to expand the actual emails sent. */
.es-fin-row { cursor: pointer; }
.es-fin-row:hover { background: var(--surface-2, #f8fafc); }
.es-fin-row.open { background: var(--surface-2, #eef2ff); }
.es-fin-sent-count { white-space: nowrap; }
.es-fin-caret { color: var(--text-muted, #64748b); font-size: 10px; margin-left: 2px; }
.es-fin-email-row > td {
  background: var(--surface-2, #f8fafc);
  border-top: none; padding: 6px 14px 12px;
}
.es-fin-email-wrap { max-height: 240px; overflow-y: auto; }
.es-fin-email-table { font-size: 12px; }
.es-fin-email-table th {
  font-weight: 600; color: var(--text-muted, #64748b);
  text-transform: uppercase; font-size: 10px; letter-spacing: .03em;
}
.es-fin-email-table td { line-height: 1.5; }
.es-perf-detail-row > td {
  background: var(--surface-2, #f8fafc);
  border-top: none; padding: 8px 14px 12px;
  font-size: 12px; line-height: 1.5; color: var(--text, #0f172a);
}
.es-perf-detail-reason { margin-bottom: 6px; }
.es-perf-detail-reply b { color: var(--text, #0f172a); }
.es-perf-detail-reply blockquote {
  margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid #166534;
  background: var(--surface, #fff); border-radius: 0 4px 4px 0;
  white-space: pre-wrap; color: var(--text-muted);
}
.es-perf-detail-code { margin-top: 6px; color: var(--text-muted); }
.es-perf-detail-code code {
  background: var(--surface, #fff); padding: 1px 5px; border-radius: 3px;
  border: 1px solid var(--border, #e2e8f0); font-size: 11px;
}

/* ── Prior-Registrant Resigns subtab toolbar ──────────────────────── */
/* The toolbar's event/stage multiselect popovers are position:absolute.
   .dept-section (departments.css) sets overflow:hidden, which clipped the
   dropdown at the compact section's bottom edge — hiding the filter values.
   prr-root has exactly one .dept-section (this toolbar), so letting it
   overflow is safe and lets the popovers escape. */
.prr-root .dept-section { overflow: visible; }
.prr-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.prr-toolbar-spacer { flex: 1 1 auto; }
.prr-search { min-width: 220px; flex: 0 1 280px; }
.prr-owner { min-width: 150px; }
.prr-stage-ms { position: relative; }
.prr-stage-btn { cursor: pointer; text-align: left; min-width: 120px; }
.prr-stage-pop {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0;
  min-width: 200px; max-height: 300px; overflow-y: auto;
  background: var(--bg-card, var(--surface)); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.12)); padding: 8px;
  color: var(--text-primary);
}
.prr-stage-opt {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px;
  font-size: 13px; color: var(--text-primary); cursor: pointer; border-radius: 5px;
}
.prr-stage-opt:hover { background: var(--bg-card-hover, var(--surface-hover)); }
.prr-stage-clear { margin-top: 6px; width: 100%; }
.prr-event-pop { min-width: 260px; }
.prr-event-search { width: 100%; margin-bottom: 6px; box-sizing: border-box; }
.prr-event-opt-date { margin-left: auto; font-size: 11px; color: var(--text-tertiary, #94a3b8); font-family: 'JetBrains Mono', monospace; }
.prr-level-chip {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  background: rgba(217, 119, 6, 0.12); color: #b45309;
  font-weight: 600; font-size: 10px; letter-spacing: .02em;
}
.prr-activity-stale { color: #b45309; }
.prr-sort { display: inline-flex; align-items: center; gap: 6px; }
.prr-sort-key { min-width: 130px; cursor: pointer; }
.prr-sort-dir { white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.prr-gap-chip {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  background: rgba(220, 38, 38, 0.10); color: #b91c1c;
  font-weight: 600; letter-spacing: .02em;
}
.prr-apply-result { margin-top: 10px; font-size: 12.5px; }
.prr-apply-result.is-ok { color: #166534; }
.prr-apply-result.is-err { color: #b91c1c; }
.prr-template-editor { margin: 0 0 16px; }
.prr-error { color: #b91c1c; }

/* ── Broadened re-sign status scope (open / lost / cold / one-time) ───────── */
.prr-scope-seg { display: inline-flex; gap: 4px; }
.prr-lookback { min-width: 130px; cursor: pointer; }
.prr-status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 auto; margin-right: 2px; vertical-align: middle;
}
.prr-resign-chip {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-weight: 600; font-size: 10px; letter-spacing: .02em;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: middle;
}
.prr-resign-chip.is-none { background: rgba(217, 164, 0, 0.14); color: #a16207; }
.prr-resign-chip.is-lost { background: rgba(220, 38, 38, 0.10); color: #b91c1c; }
.prr-resign-chip.is-onetime { background: rgba(37, 99, 235, 0.10); color: #1d4ed8; }

/* ── Navigator enrollment product (product lens of the Enrollment hub) ──────
   Reuses the es-* enrollment classes (es-cov, es-engine-kpi, es-engine-cov,
   es-enroll-views, es-drawer …); these are the few nv-specific additions plus
   two small shared helpers the enrollment views reference. */
.es-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  vertical-align: middle;
}
.es-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  text-transform: capitalize;
}
.es-status.active { background: #dbeafe; color: #1d4ed8; }
.es-status.replied { background: #dcfce7; color: #166534; }
.es-status.completed { background: #f1f5f9; color: #475569; }
.es-status.held, .es-status.paused { background: #fef3c7; color: #92400e; }

.nv-seq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.nv-seq-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.nv-seq-card.dropped { opacity: .5; }
.nv-seq-card.held {
  opacity: .6;
  background: repeating-linear-gradient(135deg, #fff, #fff 8px, #f8fafc 8px, #f8fafc 16px);
  border-style: dashed;
}
.nv-seq-card.held .nv-seq-date { color: #b45309; font-style: italic; }

/* Discovery wave gate */
.dc-wave-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 13px;
}
.dc-wave-banner.paused {
  border-color: #fcd34d;
  background: #fffbeb;
}
.dc-wave-msg { color: #334155; line-height: 1.35; }
.dc-wave-banner.paused .dc-wave-msg { color: #92400e; }
#dc-wave-release { white-space: nowrap; }
.nv-seq-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.nv-seq-step { font-weight: 700; font-size: 12px; color: #1d4ed8; }
.nv-seq-date { font-size: 11px; color: #64748b; }
.nv-seq-subj { font-weight: 600; font-size: 13px; line-height: 1.3; }
.nv-seq-alt { font-size: 11px; color: #94a3b8; margin-top: 3px; }

.nv-cand-row.blocked { opacity: .5; }
.nv-cand-row .nv-opp-link { color: #1d4ed8; text-decoration: none; }
.nv-cand-row .nv-opp-link:hover { text-decoration: underline; }
.nv-sf-link {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.nv-sf-link:hover { color: #1d4ed8; border-color: #1d4ed8; }
.nv-sel { cursor: pointer; }
.nv-sr-imminent { background: #eff6ff; }

.nv-drawer-cov { margin-bottom: 8px; }
.nv-drawer-plan { font-size: 12px; color: #475569; margin: 6px 0 10px; }
.nv-drawer-contacts table { width: 100%; }

/* -- Enrollment Suite Overview (hub landing view) ------------------------- */
.es-overview .eo-matrix th { white-space: nowrap; }
.eo-matrix-product { font-weight: 600; white-space: nowrap; }
.eo-cell { vertical-align: top; }
.eo-cell.rep { background: #f8fafc; }
.eo-cell-gap { color: #cbd5e1; }
.eo-cell-chip {
  display: inline-block;
  font-size: 11px;
  line-height: 1.3;
  border-radius: 10px;
  padding: 2px 8px;
  margin: 1px 2px 1px 0;
  border: 1px solid #cbd5e1;
  color: #475569;
  background: #fff;
}
.eo-cell-chip.live { background: #dcfce7; border-color: #86efac; color: #166534; }
.eo-cell-chip.built { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.eo-cell-chip.planned { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; }
.eo-cell-chip.rep { background: #f1f5f9; border-color: #cbd5e1; color: #64748b; }
.eo-cell-chip[data-leg] { cursor: pointer; }
.eo-cell-chip[data-leg]:hover { border-color: #1d4ed8; color: #1d4ed8; }

.eo-legs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
.eo-leg-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eo-leg-card.openable { cursor: pointer; }
.eo-leg-card.openable:hover { border-color: #93c5fd; box-shadow: 0 1px 4px rgba(29,78,216,.12); }
.eo-leg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eo-leg-title { font-weight: 700; font-size: 14px; }
.eo-leg-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 2px 8px;
  white-space: nowrap;
}
.eo-leg-pill.live { background: #dcfce7; color: #166534; }
.eo-leg-pill.built { background: #e0f2fe; color: #075985; }
.eo-leg-pill.planned { background: #f1f5f9; color: #94a3b8; }
.eo-leg-pill.notbuilt { background: #fef3c7; color: #92400e; }
.eo-leg-desc { font-size: 12px; color: #475569; }
.eo-leg-kpis { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #334155; }
.eo-leg-kpis b { font-size: 13px; }
.eo-leg-kpis-empty { color: #94a3b8; font-style: italic; }
.eo-leg-schema { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 11px; color: #475569; }
.eo-leg-schema > div > span {
  display: inline-block;
  min-width: 74px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .03em;
}
.eo-leg-open { font-size: 12px; color: #1d4ed8; font-weight: 600; margin-top: auto; }

/* -- Open Sessions subtab (.oss-*) ---------------------------------------- */
.oss-head-section .dept-section-body { padding-top: 8px; }
.oss-coverage { font-size: 13px; color: var(--text-secondary, #556); margin-bottom: 8px; }
.oss-coverage b { color: var(--text-primary, #1a2233); }
.oss-warn { color: #b45309; }
.oss-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oss-select, .oss-search {
  padding: 5px 10px; border: 1px solid var(--border, #d7dce5); border-radius: 8px;
  background: var(--bg-card, #fff); font-size: 13px; color: inherit;
}
.oss-search { min-width: 180px; }
.oss-pkg-only { font-size: 12.5px; display: inline-flex; gap: 5px; align-items: center; }
.oss-board { display: flex; flex-direction: column; gap: 14px; }
.oss-event { margin: 0; }
.oss-ev-meta { font-size: 12.5px; color: var(--text-secondary, #667); }
.oss-ev-date { font-variant-numeric: tabular-nums; }
.oss-ev-body { display: flex; flex-direction: column; gap: 6px; }
.oss-session { border: 1px solid var(--border, #e2e6ee); border-radius: 10px; padding: 8px 12px; background: var(--bg-card, #fff); }
.oss-session.open { border-color: var(--accent, #3b82f6); }
.oss-sess-row { display: flex; align-items: center; gap: 8px; cursor: pointer; flex-wrap: wrap; }
.oss-caret { color: var(--text-secondary, #99a); width: 12px; }
.oss-sess-title { font-weight: 600; font-size: 13.5px; }
.oss-sess-right { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.oss-count { font-size: 12px; color: var(--text-secondary, #667); white-space: nowrap; }
.oss-sess-desc { font-size: 12.5px; color: var(--text-secondary, #556); margin: 4px 0 0 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oss-sess-top { font-size: 12px; color: var(--text-secondary, #778); margin: 3px 0 0 20px; }
.oss-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: #445; white-space: nowrap; }
.oss-a-upgrade { background: #dcfce7; color: #166534; }
.oss-a-winback { background: #fee2e2; color: #991b1b; }
.oss-a-speaker { background: #ede9fe; color: #5b21b6; }
.oss-a-match { background: #dbeafe; color: #1e40af; }
.oss-theme { background: #fef3c7; color: #92400e; }
.oss-pkg { background: #fef3c7; color: #92400e; margin-left: 6px; }
/* Availability (sold / open) */
.oss-sold-badge { background: #e2e8f0; color: #475569; margin-left: 6px; letter-spacing: .04em; }
.oss-sold-toggle { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; border-radius: 999px; border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; cursor: pointer; white-space: nowrap; }
.oss-sold-toggle .oss-sold-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.oss-sold-toggle.is-sold { border-color: #e2e8f0; background: #f1f5f9; color: #64748b; }
.oss-sold-toggle.is-sold .oss-sold-dot { background: #94a3b8; }
.oss-sold-toggle.is-auto { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.oss-sold-toggle.is-auto .oss-sold-dot { background: #ef4444; }
.oss-sold-toggle:disabled { opacity: .5; cursor: progress; }
.oss-session.oss-sold .oss-sess-title { color: #94a3b8; text-decoration: line-through; }
.oss-session.oss-sold { opacity: .72; }
.oss-auto-sold { background: #fee2e2; color: #b91c1c; margin-left: 6px; letter-spacing: .03em; cursor: help; }
.oss-auto-likely { background: #fef9c3; color: #a16207; margin-left: 6px; cursor: help; }
.oss-sold-summary { margin: 2px 0 10px; padding: 7px 12px; font-size: 12.5px; background: var(--surface-2, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 8px; }
.oss-roster { margin: 8px 0 2px 20px; }
.oss-table { width: 100%; font-size: 12.5px; }
.oss-table .oss-num { text-align: right; font-variant-numeric: tabular-nums; }
.oss-acct { font-weight: 600; }
.oss-why { max-width: 480px; white-space: normal; line-height: 1.35; color: var(--text-secondary, #556); vertical-align: top; }
.oss-evidence { white-space: nowrap; }
.oss-ev-chip { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: #f1f5f9; color: #475569; margin-right: 3px; cursor: help; }
.oss-ev-committed { background: #dcfce7; color: #166534; }
.oss-ev-churn { background: #fee2e2; color: #991b1b; }
.oss-ev-spoke { background: #ede9fe; color: #5b21b6; }
.oss-ev-engine { background: #dbeafe; color: #1e40af; }
.oss-ev-topic { background: #fef9c3; color: #854d0e; }
.oss-score { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: 6px; font-weight: 700; background: linear-gradient(90deg, rgba(59,130,246,.22) var(--w, 0%), transparent var(--w, 0%)); }
.oss-more { font-size: 12px; color: var(--text-secondary, #778); padding: 6px 2px; }
.oss-pkg-sessions { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.oss-pkg-sess { font-size: 12.5px; }

/* -- Open Sessions: view nav + By-account + inline detail pane ------------- */
.oss-views { margin-bottom: 10px; }
.oss-kit-cov { color: var(--text-secondary, #667); }
.oss-kit-cov b { color: var(--text-primary, #1a2233); }

.oss-acct-head { cursor: pointer; }
.oss-acct-card.open .dept-section-header { border-bottom: 1px solid var(--border, #e2e6ee); }

/* Expandable target rows (shared by By event + By account rosters). */
.oss-trow { cursor: pointer; }
.oss-trow:hover { background: var(--surface-2, #f8fafc); }
.oss-trow.is-open { background: var(--surface-2, #f1f5f9); }
.oss-trow .oss-caret { color: var(--text-secondary, #99a); margin-right: 2px; }
.oss-detail-row > td { padding: 0 !important; background: #fbfcfe; }
.oss-detail { padding: 12px 14px; border-left: 3px solid var(--accent, #3b82f6); }
.oss-detail-why { font-size: 12.5px; color: var(--text-primary, #334); margin-bottom: 10px; line-height: 1.4; }
.oss-detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.oss-detail-col { min-width: 0; }
.oss-detail-kit { grid-column: span 1; }
.oss-detail-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--text-secondary, #667); margin-bottom: 7px; }
.oss-detail-sub { font-size: 11.5px; color: var(--text-secondary, #778); margin-bottom: 4px; }
.oss-detail-empty { font-size: 12px; color: var(--text-secondary, #889); padding: 4px 0; }
.oss-gen-btn { margin-top: 6px; }
.oss-mini-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.oss-mini-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary, #889); padding: 2px 6px 4px 0; border-bottom: 1px solid var(--border, #e8ecf3); }
.oss-mini-table td { padding: 3px 6px 3px 0; border-bottom: 1px solid #f1f4f9; vertical-align: top; }
.oss-mini-table .oss-num { text-align: right; font-variant-numeric: tabular-nums; }
.oss-pri { background: #dbeafe; color: #1e40af; margin-left: 4px; }
/* Kit drawer */
.oss-drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 1200; }
.oss-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 92vw); background: var(--bg-card, #fff); box-shadow: -8px 0 28px rgba(15,23,42,.18); z-index: 1201; display: flex; flex-direction: column; }
.oss-drawer[hidden], .oss-drawer-backdrop[hidden], .oss-filters[hidden] { display: none; }
.oss-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border, #e2e6ee); }
.oss-drawer-title { font-weight: 700; font-size: 15px; }
.oss-drawer-sub { font-size: 12px; color: var(--text-secondary, #667); }
.oss-drawer-close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-secondary, #889); }
.oss-drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.oss-drawer-foot { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border, #e2e6ee); }
.oss-kit-status { font-size: 12px; color: var(--text-secondary, #667); }
.oss-kit-headline { font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.oss-kit-block { margin-bottom: 12px; font-size: 13px; }
.oss-kit-block b { display: block; margin-bottom: 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary, #667); }
.oss-kit-block ul { margin: 4px 0 0 18px; padding: 0; }
.oss-kit-block li { margin-bottom: 5px; }
.oss-kit-subj { font-weight: 600; margin: 4px 0; }
.oss-kit-body { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; background: #f8fafc; border: 1px solid var(--border, #e2e6ee); border-radius: 8px; padding: 10px; }
.oss-kit-conf { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; }
.oss-conf-high { background: #dcfce7; color: #166534; }
.oss-conf-low { background: #fee2e2; color: #991b1b; }
