.campanas-page {
  display: grid;
  gap: 14px;
}

.campanas-shell,
.campanas-preview,
.campanas-history {
  padding: 18px;
}

.campanas-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.campanas-topbar h2 {
  margin: 0 0 6px;
}

.campanas-topbar p {
  max-width: 680px;
}

.camp-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f1f6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.camp-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.camp-tab:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.72);
}

.camp-tab.is-active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 91, 215, 0.08), 0 1px 0 rgba(13, 91, 215, 0.08);
  transform: translateY(-1px);
}

.camp-view.is-hidden {
  display: none;
}

.camp-progress {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}

.camp-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.camp-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #ebf1fb;
  overflow: hidden;
}

.camp-progress-bar span {
  display: block;
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d5bd7, #2b7cff);
  transition: width 0.2s ease;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

.camp-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.camp-stepper-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.camp-stepper-item:hover {
  border-color: rgba(13, 91, 215, 0.18);
  box-shadow: 0 8px 22px rgba(13, 91, 215, 0.06);
}

.camp-stepper-item.is-active {
  border-color: rgba(13, 91, 215, 0.3);
  background: #f2f7ff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 91, 215, 0.08);
}

.camp-stepper-item.is-done {
  color: #1d7f49;
  border-color: rgba(29, 127, 73, 0.18);
  background: #f6fcf8;
}

.camp-wizard {
  display: grid;
  gap: 14px;
}

.camp-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(13, 91, 215, 0.04);
}

.camp-step.is-hidden {
  display: none;
}

.camp-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.camp-step-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.camp-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d5bd7;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.camp-audience-modes--compact {
  display: grid;
  gap: 10px;
}

.camp-radio-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.camp-radio-option:hover {
  border-color: rgba(13, 91, 215, 0.2);
  box-shadow: 0 8px 24px rgba(13, 91, 215, 0.05);
}

.camp-radio-option input {
  margin: 0;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  accent-color: #0d5bd7;
}

.camp-radio-option strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.camp-radio-option small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
}

.camp-radio-option:has(input:checked) {
  border-color: rgba(13, 91, 215, 0.3);
  background: #f5f9ff;
  box-shadow: 0 10px 26px rgba(13, 91, 215, 0.07);
}

.camp-inline-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.camp-inline-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  min-height: 86px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.camp-inline-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.camp-zone-summary.is-hidden,
.camp-actions .is-hidden,
.camp-inline-card.is-hidden {
  display: none;
}

.campanas-shell .field {
  display: grid;
  gap: 6px;
}

.campanas-shell .field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.campanas-preview h3,
.campanas-history h3 {
  margin: 0 0 8px;
}

.campanas-shell textarea,
.campanas-shell input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.campanas-shell textarea:focus,
.campanas-shell input:not([type="radio"]):not([type="checkbox"]):focus,
.campanas-shell select:focus {
  border-color: rgba(13, 91, 215, 0.35);
  box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.08);
  outline: none;
}

.campanas-shell select {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.camp-compose-layout,
.camp-send-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.camp-preview-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(13, 91, 215, 0.04);
}

.camp-chat-preview {
  margin-top: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6fbff, #eef5ff);
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.camp-chat-preview__meta {
  display: grid;
  gap: 2px;
}

.camp-chat-preview__meta small {
  color: var(--muted);
}

.camp-chat-bubble {
  justify-self: end;
  max-width: 92%;
  border-radius: 16px 16px 4px 16px;
  background: #dcf8c6;
  color: #17305f;
  padding: 10px 12px;
  line-height: 1.45;
  box-shadow: 0 1px 0 rgba(13, 91, 215, 0.08);
}

.camp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.camp-grid--compact {
  margin-top: 0;
}

.camp-grid--compact input,
.camp-grid--compact textarea {
  min-height: 42px;
}

.camp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.camp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.camp-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.camp-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #f9fbff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.camp-chip:hover {
  border-color: rgba(13, 91, 215, 0.18);
  background: #f3f8ff;
}

.camp-chip strong {
  font-size: 13px;
}

.camp-chip small {
  color: var(--muted);
  font-size: 12px;
}

.campanas-preview--embedded {
  padding: 12px;
}

.camp-history-wrap {
  margin-top: 8px;
  border-top: 1px solid rgba(13, 91, 215, 0.06);
  padding-top: 10px;
}

.camp-picker-modal {
  width: min(980px, 96vw);
}

.camp-picker-body {
  display: grid;
  gap: 10px;
}

.camp-picker-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 220px;
}

.camp-picker-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.camp-picker-list {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.camp-picker-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #f9fbff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.camp-picker-item:hover {
  border-color: rgba(13, 91, 215, 0.18);
  background: #f4f8ff;
}

.camp-picker-item.is-disabled {
  opacity: 0.62;
}

.camp-picker-check {
  width: 16px;
  height: 16px;
}

.camp-picker-info {
  display: grid;
  gap: 2px;
}

.camp-picker-info small {
  color: var(--muted);
}

.camp-picker-foot {
  display: flex;
  justify-content: flex-end;
}

.camp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  overflow: hidden;
}

.camp-table th,
.camp-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 6px;
  vertical-align: top;
}

.camp-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.camp-sticky-actions {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding-top: 14px;
  padding-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(13, 91, 215, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 26%, #fff 100%);
}

.camp-sticky-actions__right {
  display: inline-flex;
  gap: 8px;
}

@media (max-width: 900px) {
  .campanas-topbar,
  .camp-progress-head,
  .camp-sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .camp-stepper,
  .camp-inline-cards,
  .camp-compose-layout,
  .camp-send-layout {
    grid-template-columns: 1fr;
  }

  .camp-grid {
    grid-template-columns: 1fr;
  }

  .camp-picker-filters {
    grid-template-columns: 1fr;
  }

  .camp-picker-item {
    grid-template-columns: auto 1fr;
  }

  .camp-tabs {
    width: 100%;
  }

  .camp-tab {
    flex: 1 1 0;
  }
}
