.pipeline-wrap {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  height: calc(100vh - 168px);
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.pcol {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(217, 226, 236, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.pcol-head {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  border-top: 4px solid var(--stage-color, var(--brand-primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pcnt {
  min-width: 27px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 850;
}

.pcol-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.pcard {
  position: relative;
  margin-bottom: 9px;
  padding: 11px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pcard::before {
  content: "";
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--stage-color, var(--brand-primary));
}

.pcard:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.pcard-name {
  margin-bottom: 5px;
  padding-left: 4px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 850;
}

.pcard-svc {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

.pcard-date {
  color: var(--text-muted);
  font-size: 11px;
}

.pipeline-empty {
  padding: 12px 4px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}
