/* Engage — Campaign builder (lista + wizard 8 passos) */
.ecb-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 12rem;
}

.ecb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.ecb-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.ecb-lead {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  max-width: 42rem;
}

.ecb-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ecb-mode-chip--live {
  background: #dcfce7;
  color: #166534;
}

.ecb-mode-chip--sim {
  background: #e0f2fe;
  color: #075985;
}

.ecb-pacing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.ecb-pacing-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ecb-pacing-item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
}

.ecb-pacing-item strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.ecb-create {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.ecb-create input[type="text"] {
  flex: 1 1 16rem;
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
}

.ecb-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.ecb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ecb-table th,
.ecb-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.ecb-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
}

.ecb-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.ecb-status--draft { background: #f1f5f9; color: #475569; }
.ecb-status--running { background: #dbeafe; color: #1d4ed8; }
.ecb-status--completed { background: #dcfce7; color: #166534; }
.ecb-status--paused { background: #fef3c7; color: #92400e; }
.ecb-status--failed { background: #fee2e2; color: #b91c1c; }
.ecb-status--scheduled { background: #ede9fe; color: #5b21b6; }

.ecb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ecb-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ecb-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.ecb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ecb-btn--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.ecb-btn--primary:hover:not(:disabled) {
  background: #0d9488;
}

.ecb-btn--danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.ecb-btn--ghost {
  background: transparent;
}

.ecb-btn--sm {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
}

.ecb-builder-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.ecb-builder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
}

.ecb-builder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ecb-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.ecb-step {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.ecb-step.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.ecb-step.is-done {
  border-color: #99f6e4;
  color: #0f766e;
}

.ecb-panel {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ecb-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.ecb-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ecb-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.ecb-field input,
.ecb-field select,
.ecb-field textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}

.ecb-field textarea {
  min-height: 5rem;
  resize: vertical;
}

.ecb-field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.ecb-field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #b91c1c;
  font-weight: 600;
}

.ecb-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
}

.ecb-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.25rem;
}

.ecb-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ecb-collapse {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.ecb-collapse > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.ecb-collapse > summary::-webkit-details-marker { display: none; }

.ecb-collapse-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ecb-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ecb-radio-list label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #334155;
}

.ecb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.65rem;
}

.ecb-card {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.ecb-card span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
}

.ecb-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #0f172a;
}

.ecb-health {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ecb-health--low { border-color: #86efac; background: #f0fdf4; }
.ecb-health--medium { border-color: #fcd34d; background: #fffbeb; }
.ecb-health--high { border-color: #fca5a5; background: #fef2f2; }

.ecb-schedule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ecb-schedule-days label {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ecb-day-periods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ecb-period-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ecb-confirm-box {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.9rem;
}

.ecb-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #64748b;
}

.ecb-loading {
  padding: 1rem;
  color: #64748b;
}

.ecb-feedback {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.ecb-feedback[data-tone="success"] {
  background: #dcfce7;
  color: #166534;
}

.ecb-feedback[data-tone="danger"] {
  background: #fee2e2;
  color: #b91c1c;
}

.ecb-feedback[data-tone="info"] {
  background: #e0f2fe;
  color: #075985;
}

.ecb-check {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
}

.ecb-sender-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.ecb-contact-list {
  max-height: 12rem;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
}

.ecb-contact-list label {
  display: flex;
  gap: 0.45rem;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}

.ecb-var-map {
  display: grid;
  gap: 0.5rem;
}

.ecb-var-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .ecb-var-row {
    grid-template-columns: 1fr;
  }
}
