:root {
  --ink: #123f3a;
  --muted: #65756e;
  --green: #123f3a;
  --line: #dce3da;
  --paper: #f6f3eb;
  --lime: #d9ed8b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 5vw;
  background: #fff;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  gap: 12px;
  align-items: center;
}
.mark {
  background: var(--green);
  color: white;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
}
.product {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 8px;
}
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 4vw 70px;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.6px;
  line-height: 1.14;
  margin: 10px 0 16px;
  max-width: 900px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.quiet {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.small {
  padding: 6px 10px;
  font-size: 12px;
}
.danger {
  color: #922e29;
  border-color: #e5beb6;
  background: #fff6f2;
}
.banner {
  background: #e9efe0;
  padding: 14px 20px;
  border-left: 3px solid #647c30;
  border-radius: 6px;
  margin: 0 0 26px;
}
.warning {
  background: #fff1de;
  border-color: #a06c29;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card p {
  flex: 1;
}
.stat {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.metrics .panel {
  padding: 19px 22px;
}
.tag {
  font-size: 12px;
  border-radius: 99px;
  background: #edf2e8;
  padding: 4px 10px;
  display: inline-block;
  color: #3e6347;
  width: fit-content;
}
.tag.off {
  background: #f1efea;
  color: #7a6e5b;
}
.split {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
}
.topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic {
  text-align: left;
  background: white;
  color: var(--ink);
  border-color: var(--line);
  font-size: 13px;
  font-weight: 500;
  padding: 14px;
}
.topic.active {
  background: var(--green);
  color: white;
}
.topic b {
  font-weight: 400;
  opacity: 0.6;
  margin-right: 12px;
}
.preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 22px;
  align-items: start;
}
.preview img {
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--line);
}
.caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tabs button.active {
  background: var(--green);
  color: white;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 16px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  font: inherit;
  background: white;
  color: var(--ink);
  border: 1px solid #bfcac0;
  border-radius: 7px;
}
textarea {
  min-height: 150px;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}
dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 20px 80px #0002;
}
dialog::backdrop {
  background: #13261f70;
}
dialog button {
  margin-top: 14px;
}
#notice:not(:empty) {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 500px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: 0 8px 25px #0003;
  z-index: 10;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding: 24px;
}
.login {
  max-width: 470px;
  margin: 40px auto;
}
.empty {
  padding: 48px;
  text-align: center;
}
.timeline {
  margin-top: 24px;
}
.timeline .row {
  font-size: 13px;
}
a {
  color: var(--green);
}
.space {
  margin-top: 30px;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .topline {
    align-items: start;
    flex-direction: column;
  }
  .product {
    display: none;
  }
}
@media (max-width: 550px) {
  main {
    padding: 28px 16px;
  }
  .grid,
  .preview {
    grid-template-columns: 1fr;
  }
  header {
    padding: 0 16px;
    height: 70px;
  }
  .brand {
    font-size: 17px;
  }
  .topics {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .metrics {
    gap: 9px;
  }
  .metrics .panel {
    padding: 14px;
  }
  .stat {
    font-size: 27px;
  }
  .preview img {
    max-height: 430px;
    object-fit: contain;
  }
  .row {
    flex-wrap: wrap;
  }
}

.topic-date {
  display: block;
  font-size: 11px;
  opacity: 0.75;
  margin-top: 5px;
  margin-left: 26px;
}

.preview video {
  width: 100%;
  max-height: 560px;
  background: #142522;
  border-radius: 16px;
}
.visual-brief {
  padding: 32px;
  border: 1px solid #cbd4cb;
  border-radius: 16px;
  background: #f4f5ee;
}
details {
  margin-top: 16px;
}

/* Shared Phase 5 account surface */
:root { --ink:#10354a; --muted:#5c7280; --green:#12394d; --line:#d9e5e8; --paper:#f7fafb; }
.campaign-heading {align-items:flex-start}.campaign-heading h1{font-size:clamp(28px,3.3vw,40px);max-width:760px}.campaign-heading .actions{max-width:330px;flex-shrink:0}.back-link{color:var(--ink);font-weight:600;text-decoration:none}.campaign-status h2{margin-top:10px}.campaign-status p{max-width:850px}.status-stopped{border-left:5px solid #d79424}.billing-note{font-size:14px;border-top:1px solid var(--line);padding-top:14px;margin-bottom:0}.plan-facts{display:flex;flex-wrap:wrap;gap:20px 36px;padding:24px 0;color:var(--muted)}.plan-facts b{color:var(--ink);font-size:20px;margin-right:5px}details>summary{cursor:pointer;font-weight:700}details[open]>summary{margin-bottom:16px}.empty{padding:28px}.empty h2{font-size:22px}h1{overflow-wrap:anywhere}@media(max-width:680px){.campaign-heading{flex-direction:column}.campaign-heading .actions{max-width:none}.plan-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{padding:20px}}

.publish-now-bar{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.3rem;background:#e9f4f2;border-radius:12px;margin-bottom:1.5rem}.publish-now-bar p{margin:.4rem 0 0;max-width:42rem}.publish-now-bar button{flex-shrink:0}@media(max-width:650px){.publish-now-bar{align-items:stretch;flex-direction:column}.publish-now-bar button{width:100%}}

/* Shared phase-style progress: prominent current step, numbered stages, distinct states. */
.social-progress{margin:28px 0 0;border:1px solid #cbdce2;border-top:6px solid #d95d4e;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 26px #102f4b0a}
.social-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:30px 32px;background:#0d2d50;color:#fff}
.social-progress-head .eyebrow{color:#a9c9dd;margin:0 0 12px}
.social-progress h2{color:#fff;font-size:clamp(24px,2.6vw,34px);line-height:1.2;margin:0 0 14px;max-width:780px}
.social-progress-head p{color:#d9e6ef;margin:0;max-width:760px;line-height:1.6}
.progress-badge{display:flex;align-items:center;gap:10px;white-space:nowrap;background:#e5f5f2;color:#0b6258;font-weight:750;padding:11px 15px;border-radius:24px}
.progress-signal{width:18px;height:18px;display:grid;place-items:center;line-height:1}
.progress--running .progress-signal{border:2px solid #82b8af;border-top-color:#0b6258;border-radius:50%;animation:social-spin 1s linear infinite}
@keyframes social-spin{to{transform:rotate(360deg)}}
.progress--error .progress-badge{background:#ffe4dc;color:#9b3024}
.progress--error{border-top-color:#bc3d31}
.progress--paused .progress-badge,.progress--idle .progress-badge{background:#edf0f4;color:#46566c}
.progress--complete .progress-badge{background:#dff4e7;color:#206942}
.social-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:24px!important;margin:0!important}
.social-steps li{display:flex;align-items:flex-start;gap:12px;border:1px solid #e0e8ed;border-radius:10px;padding:18px 14px;color:#667d88;min-width:0}
.social-step-symbol{flex:none;display:grid;place-items:center;width:30px;height:30px;border:1px solid #c9d7de;border-radius:50%;font-size:12px;font-weight:750}
.social-steps strong{display:block;line-height:1.35;font-size:15px}
.social-steps li span:not(.social-step-symbol){display:block;font-size:12px;line-height:1.5;margin-top:8px}
.social-steps small{display:block;font-size:11px;margin-top:8px}
.social-steps li.active{background:#edf5fc;border:2px solid #24658d;padding:17px 13px;color:#123e5c}
.social-steps li.active .social-step-symbol{background:#0d2d50;color:#fff;border-color:#0d2d50}
.social-steps li.done{background:#f0f8f4;border-color:#cae3d7;color:#23694f}
.social-steps li.done .social-step-symbol{background:#e0f1e7;border-color:#a7cbb8}
.progress--error .social-steps li.active{background:#fff3ed;border-color:#b54333;color:#973426}
.progress--error .social-steps li.active .social-step-symbol{background:#b54333;border-color:#b54333}
.progress-foot{display:flex;justify-content:space-between;gap:16px;padding:0 26px 22px;color:#596f7c;font-size:12px}
.social-billing-note{font-size:13px;color:#647985;margin:14px 0 22px}
@media(max-width:1000px){.social-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.social-progress-head{flex-direction:column;gap:18px}}
@media(max-width:600px){.social-progress{margin-top:20px}.social-progress-head{padding:24px 20px}.social-steps{grid-template-columns:1fr;padding:16px!important;gap:8px}.social-steps li{padding:13px 12px}.social-steps li.active{padding:12px 11px}.social-steps li span:not(.social-step-symbol){margin-top:4px}.social-steps small{margin-top:4px}.progress-foot{padding:0 20px 20px;flex-direction:column;gap:8px}.progress-badge{font-size:13px}}
@media(prefers-reduced-motion:reduce){.progress--running .progress-signal{animation:none}}

body,button,input,select,textarea{font-family:Manrope,system-ui,sans-serif}h1,h2{font-family:Fraunces,Georgia,serif}.brand-logo{width:200px;height:auto;display:block;object-fit:contain}.brand{display:flex;align-items:center;gap:8px}header{background:#f6f3eb}@media(max-width:600px){.brand-logo{width:155px}.brand{gap:0}}
