/* ATLAS V6 — Pipeline page augmentation (absorbs former v5-pipeline.css)
 *
 * V5→V6 migration 2026-06-23. Original v5-pipeline.css deleted post-migration
 * (verification: grep `.v5-pipeline-` = 0). All selectors translated to V6
 * vocabulary; dark-mode blocks removed per `.claude/rules/atlas-dashboard.md`
 * hard rule #4 (single locked theme, V6 light).
 *
 * Class renames applied here AND in index.html + js/depts.js + js/training.js:
 *   .v5-pipeline-board   → .v6-kanban-board
 *   .v5-pipeline-eyebrow → .v6-pipe-eyebrow
 *   .v5-pipeline-title   → .v6-pipe-title
 *   .v5-pipeline-actions → .v6-pipe-actions
 *   .v5-pipeline-strip   → .v6-pipe-strip
 *   .v5-pipeline-stat*   → .v6-pipe-stat*
 *   .v5-kanban           → .v6-kanban
 *   .v5-lane-col         → .v6-kanban-col   (already in v6-pipeline.css)
 *   .v5-lane-header      → .v6-kanban-col-head (already in v6-pipeline.css)
 *   .v5-lane-name        → .v6-kanban-col-name
 *   .v5-lane-title       → .v6-kanban-col-title
 *   .v5-lane-count       → .v6-kanban-col-count
 *   .v5-lane-add         → .v6-kanban-col-add
 *   .v5-lane-body        → .v6-kanban-col-body
 *   .v5-lane-empty       → .v6-kanban-empty (already in v6-pipeline.css)
 *   .v5-deal-card*       → .v6-deal-card*  (some already exist)
 *   .v5-deal-chip        → .v6-deal-chip
 *   .v5-deal-name/desc/meta/analyzer → .v6-deal-name/desc/meta/analyzer
 *
 * Loads after v6-pipeline.css in index.html, so these rules win on overlap.
 * ─────────────────────────────────────────────────────────────────────── */

/* ── Page header (when not using v6-pipe-header from v6-pipeline.css) ─── */
.v6-pipe-eyebrow {
  font: 900 11px/1 var(--font-ui, Inter, "Segoe UI", system-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #8a95a3);
  margin-bottom: 6px;
}
.v6-pipe-title {
  font: 850 28px/1.1 var(--font-display, "Aptos Display", Inter, system-ui);
  color: #101722;
  letter-spacing: -0.005em;
  margin: 0;
}
.v6-pipe-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Summary strip ─────────────────────────────────────────────────── */
.v6-pipe-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 0;
  flex-shrink: 0;
}
.v6-pipe-stat {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid #d7d0c3;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(29, 24, 14, 0.07);
}
.v6-pipe-stat-label {
  color: #647184;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.v6-pipe-stat-val {
  color: #101722;
  font: 850 26px/1.1 var(--font-display, "Aptos Display", Inter);
  font-variant-numeric: tabular-nums;
}
.v6-pipe-stat-val.champagne { color: var(--gold, #c18a25); }

/* ── Kanban wrapper (when used directly on its own; v6-pipeline.css has   */
/*    .v6-kanban-scroll for the scroll container) ──────────────────────── */
.v6-kanban {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  overflow-x: auto;
  flex: 1;
  min-height: 0;
}
.v6-kanban-board {
  display: flex;
  gap: 16px;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
}

/* ── Lane / column (augmenting v6-pipeline.css .v6-kanban-col) ────────── */
.v6-kanban-col-name,
.v6-kanban-col-title {
  font: 800 12px var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #647184;
}
.v6-kanban-col-count {
  font-size: 10px;
  background: #f6f3ec;
  border: 1px solid #ebe7de;
  border-radius: 10px;
  padding: 2px 8px;
  color: #647184;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.v6-kanban-col-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #d7d0c3;
  background: #fffdf8;
  color: var(--gold, #c18a25);
  cursor: pointer;
  font-weight: 700;
}
.v6-kanban-col-add:hover {
  background: #fff;
  border-color: var(--gold, #c18a25);
}
.v6-kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

/* Lane header color underlines preserved from V5 (lane status hint) */
.v6-kanban-col-head.prospect  { border-bottom: 2px solid #8a95a3; }
.v6-kanban-col-head.active    { border-bottom: 2px solid #17468e; }
.v6-kanban-col-head.contract  { border-bottom: 2px solid var(--gold, #c18a25); }
.v6-kanban-col-head.closed    { border-bottom: 2px solid #17623a; }

/* ── Deal card supplemental (v6-pipeline.css has .v6-deal-card base) ──── */
.v6-deal-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.v6-deal-name {
  color: #101722;
  font: 600 13px var(--font-ui, Inter);
  margin-bottom: 4px;
  line-height: 1.3;
}
.v6-deal-desc {
  color: #647184;
  font-size: 12px;
  line-height: 1.4;
}
.v6-deal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.v6-deal-analyzer {
  color: #647184;
  font-size: 10px;
  font-style: italic;
  margin-top: 4px;
}

/* Deal chip (buyer / seller / rental) */
.v6-deal-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f6f3ec;
  color: #647184;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.v6-deal-chip.buyer  { background: #e0e9fb; color: #17468e; }
.v6-deal-chip.seller { background: #fbecd0; color: #7a4a0a; }
.v6-deal-chip.rental { background: #dff2e7; color: #17623a; }

/* ── kb-group head color accents (preserved unchanged — no prefix) ────── */
#view-pipeline .kb-group-head {
  border-left-width: 3px;
  border-left-style: solid;
}
#view-pipeline .kb-group[data-group="listings"]     .kb-group-head { border-left-color: #17623a; }
#view-pipeline .kb-group[data-group="transactions"] .kb-group-head { border-left-color: var(--gold, #c18a25); }
#view-pipeline .kb-group[data-group="tasks"]        .kb-group-head { border-left-color: #17468e; }

/* ── Deal-card inner layout (T05 Lofty data wiring — dc-* preserved) ──── */
.dc-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(193, 138, 37, 0.12);
  color: var(--gold, #c18a25);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dc-body { flex: 1; min-width: 0; }
.dc-name {
  font-size: 12px; font-weight: 600; color: #101722;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-price {
  font-size: 11px; color: var(--gold, #c18a25); font-weight: 600; margin-top: 2px;
}
.dc-meta {
  display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap;
}
.dc-days {
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
  background: #f6f3ec; color: #647184;
}
.dc-close {
  font-size: 10px; color: #647184;
}
