/* Campaigns, funnel & bar charts, pipeline stages, tags, automations, and timeline */

.stage-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.stage-pill {
  font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.stage-pill:hover { background: var(--blush); }
.stage-pill.on { background: var(--plum); color: var(--on-plum); border-color: var(--plum); }
.stage-pill .cnt { font-size: 11.5px; opacity: .8; font-variant-numeric: tabular-nums; }

/* Funnel & horizontal metric bars */
.funnel { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 13.5px; }
@media (max-width: 560px) { .funnel-row { grid-template-columns: 110px minmax(0, 1fr) 74px; font-size: 12.5px; } }
.funnel-track { height: 14px; background: var(--code); border-radius: 999px; overflow: hidden; }
.funnel-fill { height: 100%; background: linear-gradient(90deg, var(--plum), var(--gold)); border-radius: 999px; min-width: 2px; }
.funnel-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Daily vertical mini chart */
.day-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 10px 4px 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.day-col { flex: 1 0 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.day-bars { display: flex; align-items: flex-end; gap: 2px; width: 100%; justify-content: center; flex: 1; }
.day-bar { width: 9px; border-radius: 3px 3px 0 0; background: var(--plum); min-height: 2px; }
.day-bar.alt { background: var(--gold); }
.day-bar.ok { background: var(--ok); }
.day-lbl { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* Tag swatches */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); vertical-align: middle; margin-right: 5px; background: var(--blush); }
.chip.colored { border: 1px solid var(--line); }

/* Sequence step card */
.step-card { border-left: 4px solid var(--plum); position: relative; }
.step-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--plum); color: var(--on-plum); font-size: 12.5px; font-weight: 700; }

/* Activity timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); }
.timeline .when { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }

/* Rule box */
.rule-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
