.content-strategy {
  margin: 30px 0 0;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid #d8e3dd;
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 104, 70, .12), transparent 31%),
    linear-gradient(145deg, #f7faf7, #eef5f0);
}

.content-strategy-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.content-strategy-heading > div {
  max-width: 820px;
}

.content-strategy-heading h3 {
  margin: 5px 0 8px;
  color: #102c24;
  font-size: clamp(24px, 3vw, 32px);
}

.content-strategy-heading p {
  margin: 0 0 8px;
  color: #5d7067;
  line-height: 1.65;
}

.content-strategy-heading small {
  color: #7b8c84;
}

.content-strategy-heading > span {
  max-width: 260px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #102c24;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.content-strategy-empty .content-recommendations-generate {
  background: #ff6846;
}

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

.content-idea-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 21px;
  border: 2px solid transparent;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 44, 36, .07);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.content-idea-card.selected {
  border-color: #ff6846;
  box-shadow: 0 16px 38px rgba(255, 104, 70, .16);
  transform: translateY(-2px);
}

.content-idea-card h4 {
  margin: 0;
  color: #102c24;
  font-size: 20px;
  line-height: 1.25;
}

.content-idea-card p {
  margin: 0;
  color: #5c6e66;
  font-size: 13px;
  line-height: 1.58;
}

.content-idea-card p b {
  color: #294b3f;
}

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

.content-idea-number {
  color: #ff6846;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.content-idea-priority {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf1ee;
  color: #55685f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-idea-priority.high {
  background: #ffe2da;
  color: #a33a24;
}

.content-idea-priority.medium {
  background: #fff0cf;
  color: #7a5b16;
}

.content-idea-type {
  color: #1d7b59 !important;
  font-weight: 800;
}

.content-idea-design {
  padding: 12px;
  border-radius: 13px;
  background: #eef7f1;
}

.content-idea-design span {
  display: inline-block;
  margin-bottom: 5px;
  color: #156947;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-idea-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  color: #39554a;
  font-size: 12px;
}

.content-idea-card details {
  border-top: 1px solid #e3e9e5;
  padding-top: 10px;
}

.content-idea-card summary {
  cursor: pointer;
  color: #214d3d;
  font-size: 12px;
  font-weight: 850;
}

.content-idea-card details p {
  margin-top: 9px;
  padding: 12px;
  border-radius: 11px;
  background: #f5f6f3;
  white-space: pre-wrap;
}

.content-idea-select {
  align-self: flex-start;
  margin-top: auto;
}

.content-idea-card.selected .content-idea-select {
  background: #ff6846;
  color: #fff;
}

.content-selected-idea {
  display: inline-flex;
  gap: 6px;
  margin-top: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: #cae0d6;
  font-size: 12px;
}

.content-selected-idea b {
  color: #fff;
}

.content-recommendations-status,
.content-automation-status {
  min-height: 22px;
  margin: 12px 0;
  padding: 0;
  color: #607169;
  font-size: 13px;
  font-weight: 800;
}

.content-recommendations-status.working,
.content-automation-status.working {
  color: #8a6417;
}

.content-recommendations-status.success,
.content-automation-status.success {
  color: #13764f;
}

.content-recommendations-status.error,
.content-automation-status.error {
  padding: 12px 14px;
  border: 1px solid #f1b4aa;
  border-radius: 12px;
  background: #fff0ed;
  color: #aa3329;
}

.content-automation {
  margin-top: 28px;
  padding: clamp(20px, 3.5vw, 32px);
  border: 1px solid #c9ddd3;
  border-radius: 27px;
  background: linear-gradient(145deg, #102c24, #17493a);
  color: #fff;
}

.content-automation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.content-automation-heading > div {
  max-width: 810px;
}

.content-automation-heading h3 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: clamp(23px, 3vw, 30px);
}

.content-automation-heading p {
  margin: 0;
  color: #bdd2c9;
  line-height: 1.6;
}

.content-auto-badge,
.content-auto-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff0d3;
  color: #775816;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-auto-badge.on,
.content-auto-state.complete {
  background: #bff0d8;
  color: #0f6742;
}

.content-auto-state.failed {
  background: #ffd8d1;
  color: #9d3026;
}

.content-automation-form {
  display: grid;
  gap: 17px;
}

.content-automation-form label {
  display: grid;
  gap: 7px;
  color: #cce1d8;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.content-automation-form input,
.content-automation-form select,
.content-automation-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.content-automation-form select option {
  color: #102c24;
}

.content-automation-form textarea {
  resize: vertical;
  min-height: 120px;
}

.content-automation-form label small {
  color: #9fbcb0;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.content-auto-toggle,
.content-auto-baseline {
  display: flex !important;
  align-items: center;
  gap: 11px !important;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.content-auto-toggle input,
.content-auto-baseline input {
  width: auto;
}

.content-auto-toggle span {
  display: grid;
  gap: 3px;
}

.content-auto-queue {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.content-auto-queue h4 {
  margin: 0 0 12px;
}

.content-auto-queue-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.content-auto-queue-row div {
  display: grid;
  gap: 3px;
}

.content-auto-queue-row small,
.content-auto-queue-row em {
  color: #aac4b9;
  font-size: 11px;
  font-style: normal;
}

@media (max-width: 900px) {
  .content-idea-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content-strategy-heading {
    flex-direction: column;
  }

  .content-automation-heading {
    flex-direction: column;
  }

  .content-strategy-heading .button {
    width: 100%;
  }

  .content-selected-idea {
    display: grid;
  }
}
