@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

body {
  background: #f0f4f8;
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.card-header {
  padding: 22px 28px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-body {
  padding: 28px;
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Activity log ── */
.log-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9;
}
.log-row:last-child {
  border-bottom: none;
}
.log-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.3px;
}
.badge-sent { background: #dcfce7; color: #16a34a; }
.badge-err  { background: #fee2e2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-skip { background: #f1f5f9; color: #94a3b8; }
.badge-dry  { background: #fef3c7; color: #b45309; }

/* ── Postback routing chips ── */
.src-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1 1 0;
  min-width: 0;
}
.src-box:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.src-box.active {
  border-color: #3b82f6;
  background: #eff6ff;
}
.src-box.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}
.src-box.disabled:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.src-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.src-box.active .src-check {
  background: #3b82f6;
  border-color: #3b82f6;
}
.src-check svg { display: none; }
.src-box.active .src-check svg { display: block; }

/* ── Routing pills (preview + applied) ── */
.routing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.pill-on  { background: #dcfce7; color: #166534; }
.pill-off { background: #f1f5f9; color: #64748b; }
