/* PORTED VERBATIM from vo-app-marketing-hub/apps/Marketing-Hub/marketing-hub-settings.css, minus 3 rule(s)
   whose selectors name a class crm.css / ax-containers.css already own.
   DO NOT EDIT — node tools/port-marketing-hub.cjs */
/* ============================================================
   Campaign Settings / Pacing Controls — Marketing Hub Settings
   ============================================================ */

/* ── Panel container ── */
.cs-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.cs-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.cs-panel-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #6366f1;
  color: #fff;
  flex-shrink: 0;
}

.cs-panel-icon svg { width: 20px; height: 20px; }

.cs-panel-title {
  font-size: 16px; font-weight: 700; color: #1e293b;
}

.cs-panel-sub {
  font-size: 13px; color: #64748b; margin-top: 2px;
}

.cs-status {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #64748b;
  white-space: nowrap;
}

.cs-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.cs-status.active .cs-status-dot   { background: #22c55e; }

.cs-status.active .cs-status-label { color: #16a34a; }

.cs-status.unsaved .cs-status-dot   { background: #f59e0b; }

.cs-status.unsaved .cs-status-label { color: #b45309; }

.cs-status.error .cs-status-dot   { background: #ef4444; }

.cs-status.error .cs-status-label { color: #dc2626; }

/* ── Sections ── */
.cs-section {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.cs-section:last-of-type { border-bottom: none; }

.cs-section-title {
  font-size: 13px; font-weight: 700; color: #334155;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ── Automation Level Bar ── */
.cs-level-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cs-level-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 12px;
  background: #f8fafc; border: 2px solid #e2e8f0;
  border-radius: 12px; cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cs-level-btn svg { width: 24px; height: 24px; color: #94a3b8; flex-shrink: 0; }

.cs-level-btn span { font-size: 14px; font-weight: 600; color: #334155; }

.cs-level-btn small { font-size: 11px; color: #94a3b8; line-height: 1.3; }

.cs-level-btn:hover { border-color: #6366f1; background: #eef2ff; }

.cs-level-btn:hover svg { color: #6366f1; }

.cs-level-btn.active {
  border-color: #6366f1; background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.cs-level-btn.active svg { color: #6366f1; }

.cs-level-btn.active span { color: #4f46e5; }

/* ── Controls grid ── */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cs-control { display: flex; flex-direction: column; gap: 8px; }

.cs-label {
  font-size: 13px; font-weight: 600; color: #475569;
}

.cs-hint {
  font-size: 12px; color: #94a3b8;
}

/* ── Range sliders ── */
.cs-slider-row {
  display: flex; align-items: center; gap: 12px;
}

.cs-range {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: #e2e8f0; outline: none;
  transition: background 0.2s;
}

.cs-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #6366f1; cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.cs-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.cs-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #6366f1; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.cs-range-val {
  min-width: 44px; text-align: right;
  font-size: 15px; font-weight: 700; color: #6366f1;
  font-variant-numeric: tabular-nums;
}

/* ── Time inputs ── */
.cs-time {
  padding: 8px 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 14px;
  color: #334155; background: #f8fafc;
  font-family: inherit;
}

.cs-time:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* ── Toggle switch ── */
.cs-toggle-row {
  display: flex; align-items: flex-start; gap: 14px;
}

.cs-toggle { position: relative; display: inline-flex; cursor: pointer; }

.cs-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.cs-toggle-track {
  width: 44px; height: 24px; border-radius: 12px;
  background: #cbd5e1; transition: background 0.2s;
  display: flex; align-items: center; padding: 2px;
}

.cs-toggle-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.cs-toggle input:checked + .cs-toggle-track { background: #6366f1; }

.cs-toggle input:checked + .cs-toggle-track .cs-toggle-thumb { transform: translateX(20px); }

/* ── Save bar ── */
.cs-save-bar {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; padding: 16px 24px;
  background: #f8fafc; border-top: 1px solid #e2e8f0;
}

.cs-save-msg {
  font-size: 13px; color: #16a34a; font-weight: 500;
}

.cs-save-msg.error { color: #dc2626; }

.cs-btn {
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.15s;
}

.cs-btn-save {
  background: #6366f1; color: #fff;
}

.cs-btn-save:hover { background: #4f46e5; }

.cs-btn-save:disabled {
  opacity: 0.5; cursor: not-allowed;
}

@media (max-width: 700px) {
.cs-level-bar { grid-template-columns: 1fr; }

.cs-grid { grid-template-columns: 1fr; }

.cs-panel-head { flex-wrap: wrap; }

.cs-status { margin-left: 0; margin-top: 8px; }
}
