/* Campaign Studio. Visual source: 13-campaign-output.png. Spec §15. */

.cs {
  padding: 2px 2px 8px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.cs[hidden] { display: none !important; }

.cs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.cs-head .eyebrow { margin: 0 0 8px; }
.cs-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--slate);
  padding-top: 2px;
}
.cs-pills b { color: var(--ink); font-size: 18px; letter-spacing: -0.03em; margin-left: 4px; }
.cs h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 28ch;
}
.cs .lede {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 15px;
}
.cs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cs-tabs button {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.cs-tabs button.on {
  background: var(--lime-300);
  border-color: transparent;
}
.cs-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 32ch);
  gap: 28px 32px;
  align-items: start;
  margin-bottom: 18px;
}
.cs-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.cs-preview {
  position: relative;
  margin: 0;
  width: 100%;
  height: min(46vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #efe8dc;
  overflow: hidden;
}
.cs-preview img {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cs-preview-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(21, 23, 17, 0.55);
  padding: 4px 8px;
  border-radius: 999px;
}
.cs-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  color: var(--slate);
}
.cs-caption b {
  color: var(--ink);
  font-weight: 700;
}
.cs-caption span {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--olive-700);
}
.cs-scene-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cs-scene-strip button {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #1b1d16;
  cursor: pointer;
}
.cs-scene-strip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cs-scene-strip button span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 8px 7px;
  background: linear-gradient(transparent, rgba(17,17,17,.8));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.cs-scene-strip button.on {
  border-color: var(--olive-900);
  box-shadow: 0 0 0 2px var(--lime-300);
}
.cs-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 248px;
  height: 30vh;
  max-height: 320px;
  background: var(--olive-900);
  color: var(--white);
}
.cs-visual.empty {
  background: var(--track);
  color: var(--slate);
  border: 1px dashed var(--border);
}
.cs-visual.empty .cd-ai-mark {
  color: var(--olive-900);
  background: var(--lime-100);
}
.cs-visual img {
  position: absolute;
  right: -6%;
  bottom: -16%;
  width: 62%;
  height: 90%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.cs-visual.has-asset::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,23,17,.58) 0%, rgba(21,23,17,.1) 60%, transparent 100%);
  pointer-events: none;
}
.cs-visual .cd-ai-mark {
  max-width: 46ch;
  text-align: right;
}
.cs-visual-copy {
  position: relative;
  z-index: 1;
  padding: 44px 22px 20px;
  max-width: 18ch;
}
.cs-visual-copy .brand {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cs-visual-copy .head {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}
.cs-visual-empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px 20px 16px;
  font-size: 14px;
  line-height: 1.45;
}
.cs-copy {
  min-width: 0;
  max-width: 42ch;
}
.cs-copy .sub {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-700);
}
.cs-copy .pos {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cs-copy .why {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
  overflow-wrap: anywhere;
}
.cs-slogan {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: none;
  color: var(--olive-900);
  overflow-wrap: anywhere;
}
.cs-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.cs-cards article {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  min-width: 0;
}
.cs-cards h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.cs-cards p, .cs-cards ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.cs-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--slate);
}
.cs-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}
.cs-foot .note { flex: 1; margin: 0; font-size: 12px; color: var(--muted); }
.cs-foot .btn-primary,
.cs-foot .btn-secondary { height: 40px; border-radius: 999px; }
.cs-block {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 13px;
}
.cs-later { max-width: 52ch; padding: 12px 0; }
.cs-later h1 { font-size: 28px; }

.app-body.campaign-mode .app-main-scroll { padding: 16px 28px 14px; }
.app-body.campaign-mode .workflow { background: var(--olive-900); border-right: 0; color: var(--white); }
.app-body.campaign-mode .workflow-label { color: rgba(255,255,255,.55); }
.app-body.campaign-mode .workflow nav button { color: rgba(255,255,255,.86); }
.app-body.campaign-mode .workflow nav button:hover { background: rgba(206,255,150,.12); }
.app-body.campaign-mode .workflow nav button.on {
  background: var(--lime-300);
  color: var(--ink);
}
.app-body.campaign-mode .workflow-foot { color: rgba(255,255,255,.55); }

@media (max-width: 1280px) {
  .cs-stage, .cs-cards { grid-template-columns: 1fr; }
  .cs-copy { max-width: none; }
  .cs-preview { height: min(42vh, 360px); }
  .cs-visual { height: 220px; }
}
