/* ═══════════════════════════════════════════
   KPI CARDS
═══════════════════════════════════════════ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px; position: relative; overflow: hidden;
  animation: risein 0.4s ease both;
}
.kpi-card:nth-child(1) { animation-delay: 0.04s; }
.kpi-card:nth-child(2) { animation-delay: 0.08s; }
.kpi-card:nth-child(3) { animation-delay: 0.12s; }
.kpi-card:nth-child(4) { animation-delay: 0.16s; }
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.kpi-card.c-brass::before { background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); }
.kpi-card.c-green::before { background: linear-gradient(90deg, #15803d, #22c55e); }
.kpi-card.c-blue::before  { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.kpi-card.c-amber::before { background: linear-gradient(90deg, #b45309, #fbbf24); }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 7px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; color: var(--text-1);
  line-height: 1; margin-bottom: 5px;
}
.kpi-sub { font-size: 12px; color: var(--text-2); }
.kpi-sub.up   { color: #16a34a; }
.kpi-sub.down { color: #dc2626; }

/* ═══════════════════════════════════════════
   PIPELINE
═══════════════════════════════════════════ */
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px; margin-bottom: 22px;
  animation: risein 0.4s ease 0.2s both;
}
.pipeline-bar {
  height: 6px; border-radius: 4px;
  background: var(--border-lo);
  display: flex; gap: 2px; overflow: hidden;
  margin: 12px 0 14px;
}
.pipe-seg { height: 100%; border-radius: 2px; }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.leg-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
.leg-dot  { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.leg-n    { font-family: var(--font-mono); font-size: 11px; color: var(--text-1); font-weight: 500; }

/* ═══════════════════════════════════════════
   ACTIVITY TIMELINE
═══════════════════════════════════════════ */
.atl { display: flex; flex-direction: column; }
.atl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.atl-item:last-child { padding-bottom: 0; }
.atl-left { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.atl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.atl-dot svg { width: 12px; height: 12px; }
.atl-line { width: 1px; flex: 1; background: var(--border-lo); margin-top: 4px; min-height: 12px; }
.atl-item:last-child .atl-line { display: none; }
.atl-body { flex: 1; padding-top: 3px; }
.atl-msg  { font-size: 12.5px; color: var(--text-1); line-height: 1.4; }
.atl-msg strong { font-weight: 600; }
.atl-ts   { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 4px; }
.act-ref  { font-family: var(--font-mono); font-size: 11px; color: var(--brass); }

/* Activity feed (compact) */
.activity-feed { display: flex; flex-direction: column; }
.act-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border-lo); }
.act-item:last-child { border-bottom: none; padding-bottom: 0; }
.act-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.act-icon svg { width: 12px; height: 12px; }
.act-body { flex: 1; min-width: 0; }
.act-text { font-size: 12.5px; color: var(--text-1); line-height: 1.4; }
.act-text strong { font-weight: 600; }
.act-ts   { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); margin-top: 3px; }
