:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #e2e7ee;
  --soft: #f6f7f9;
  --panel: #ffffff;
  --navy: #111827;
  --navy-2: #1f2937;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eff6ff;
  --violet: #6246f4;
  --violet-soft: #f0edff;
  --sky: #2f80ff;
  --coral: #e9654b;
  --coral-soft: #fff2ee;
  --amber: #c47a00;
  --amber-soft: #fff3cf;
  --rose: #d01331;
  --rose-soft: #fff0f3;
  --green: #138a5c;
  --green-soft: #e9fbf4;
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.04), 0 8px 24px rgba(23, 32, 51, 0.05);
}

/* YouTube publishing workspace */
.youtube-upload-workspace {
  width: min(1180px, 100%);
  margin: 0 auto 48px;
}

.youtube-upload-form {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.youtube-upload-header {
  position: sticky;
  z-index: 24;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.youtube-upload-heading,
.youtube-upload-header-actions,
.youtube-section-title,
.youtube-subsection-head,
.youtube-footer-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youtube-upload-heading,
.youtube-upload-header-actions {
  gap: 14px;
}

.youtube-upload-heading h2,
.youtube-section-title h2,
.youtube-subsection h3,
.youtube-element-row h3,
.youtube-check-copy h3 {
  margin: 0;
  letter-spacing: 0;
}

.youtube-upload-heading h2 {
  max-width: 650px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-mark {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #ff0033;
  color: #fff;
  font-size: 15px;
}

.youtube-save-state {
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.youtube-progress-rail {
  position: sticky;
  z-index: 23;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.youtube-progress-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 17px 8px 23px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #89909b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.youtube-progress-step::before {
  position: absolute;
  right: 50%;
  bottom: 10px;
  left: -50%;
  height: 2px;
  background: #d8dde5;
  content: "";
}

.youtube-progress-step:first-child::before {
  display: none;
}

.youtube-progress-dot {
  position: absolute;
  z-index: 1;
  bottom: 2px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: inherit;
  font-size: 0;
}

.youtube-progress-step.active,
.youtube-progress-step.visited {
  color: #111827;
}

.youtube-progress-step.active .youtube-progress-label {
  font-weight: 800;
}

.youtube-progress-step.visited .youtube-progress-dot {
  border-color: #111827;
  background: #111827;
}

.youtube-progress-step.visited .youtube-progress-dot::after {
  color: #fff;
  content: "\2713";
  font-size: 9px;
  line-height: 1;
}

.youtube-upload-section {
  padding: 44px 34px 50px;
  scroll-margin-top: 164px;
  border-bottom: 1px solid var(--line);
}

.youtube-upload-section:last-child {
  border-bottom: 0;
}

.youtube-section-title {
  justify-content: space-between;
  margin-bottom: 28px;
}

.youtube-section-title > div:first-child {
  max-width: 720px;
}

.youtube-section-title h2 {
  margin-top: 3px;
  font-size: 28px;
}

.youtube-section-title p,
.youtube-subsection-head p,
.youtube-element-row p,
.youtube-check-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.youtube-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.youtube-section-fields,
.youtube-advanced-fields {
  display: grid;
  gap: 22px;
}

.youtube-title-field input,
.youtube-description-field textarea {
  font-size: 16px;
}

.youtube-description-field textarea {
  min-height: 160px;
  resize: vertical;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.field-meta span,
.field-meta small {
  color: var(--muted);
  font-size: 11px;
}

.required-note {
  color: var(--rose);
  font-size: 11px;
}

.youtube-video-summary {
  position: sticky;
  top: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fa;
}

.youtube-video-frame {
  aspect-ratio: 16 / 9;
  background: #16181d;
}

.youtube-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.youtube-video-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #fff;
  text-align: center;
}

.youtube-video-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.youtube-video-empty small {
  color: #cbd1da;
}

.youtube-video-summary-body {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.youtube-video-summary-body strong {
  overflow-wrap: anywhere;
}

.youtube-video-summary-body span:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}

.youtube-subsection {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.youtube-subsection-head {
  justify-content: space-between;
  align-items: flex-start;
}

.youtube-support-tag,
.youtube-section-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.youtube-support-tag.api,
.youtube-section-status.complete {
  background: var(--green-soft);
  color: var(--green);
}

.youtube-support-tag.handoff {
  background: var(--amber-soft);
  color: #875400;
}

.youtube-thumbnail-uploader {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
}

.youtube-upload-tile {
  display: grid;
  min-height: 118px;
  place-content: center;
  justify-items: center;
  gap: 5px;
  padding: 14px;
  border: 1px dashed #aeb7c4;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.youtube-upload-tile:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.youtube-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.youtube-upload-tile-icon {
  font-size: 28px;
  line-height: 1;
}

.youtube-upload-tile small {
  color: var(--muted);
}

.youtube-thumbnail-preview {
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.youtube-thumbnail-preview > div {
  position: relative;
  width: 100%;
  height: 100%;
}

.youtube-thumbnail-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
}

.youtube-thumbnail-preview .btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.youtube-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.youtube-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-field-action {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.youtube-choice-stack {
  display: grid;
  gap: 8px;
}

.youtube-choice-stack > label,
.youtube-visibility-choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.youtube-choice-stack > label:has(input:checked),
.youtube-visibility-choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.youtube-choice-stack input,
.youtube-visibility-choice input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.youtube-choice-stack span,
.youtube-visibility-choice span {
  display: grid;
  gap: 3px;
}

.youtube-choice-stack small,
.youtube-visibility-choice small {
  color: var(--muted);
  line-height: 1.45;
}

.youtube-choice-stack.compact > label {
  padding: 10px 12px;
}

.youtube-element-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.youtube-element-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.youtube-element-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft);
  font-size: 22px;
}

.youtube-check-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.youtube-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

.youtube-setting-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.youtube-setting-card > input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand);
}

.youtube-setting-card > span {
  display: grid;
  gap: 8px;
}

.youtube-setting-card small {
  color: var(--muted);
  line-height: 1.45;
}

.youtube-setting-card.radio-setting {
  display: grid;
  grid-template-columns: 1fr;
  cursor: default;
}

.youtube-setting-card .segmented-control {
  justify-self: start;
}

.youtube-visibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.youtube-schedule-card,
.youtube-readiness-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.youtube-readiness-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.youtube-readiness-panel > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youtube-readiness-panel p {
  margin: 4px 0 0;
  color: var(--muted);
}

.youtube-readiness-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: #875400;
  font-weight: 900;
}

.youtube-readiness-icon.ready {
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
}

.youtube-upload-footer {
  position: sticky;
  z-index: 25;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.youtube-footer-state {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.youtube-footer-state > span:first-child {
  color: #111827;
  font-size: 20px;
}

.youtube-upload-footer .btn.primary.ready {
  background: #111827;
}

@media (max-width: 900px) {
  .youtube-section-layout,
  .youtube-check-group {
    grid-template-columns: 1fr;
  }

  .youtube-video-summary {
    position: static;
    grid-row: 1;
  }

  .youtube-check-grid,
  .youtube-form-row.three {
    grid-template-columns: 1fr;
  }

  .youtube-visibility-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .youtube-upload-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .youtube-upload-heading .eyebrow,
  .youtube-save-state {
    display: none;
  }

  .youtube-upload-heading h2 {
    max-width: 210px;
    font-size: 15px;
  }

  .youtube-progress-rail {
    top: 64px;
    padding: 0 8px;
  }

  .youtube-progress-step {
    min-height: 52px;
    padding: 14px 3px 19px;
    font-size: 11px;
  }

  .youtube-progress-step::before {
    bottom: 8px;
  }

  .youtube-progress-dot {
    bottom: 1px;
    width: 16px;
    height: 16px;
  }

  .youtube-upload-section {
    padding: 32px 16px 40px;
    scroll-margin-top: 126px;
  }

  .youtube-section-title,
  .youtube-subsection-head,
  .youtube-readiness-panel,
  .youtube-upload-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .youtube-section-title h2 {
    font-size: 24px;
  }

  .youtube-thumbnail-uploader,
  .youtube-form-row,
  .youtube-element-row {
    grid-template-columns: 1fr;
  }

  .youtube-upload-tile {
    min-height: 104px;
  }

  .youtube-element-row {
    padding: 16px 0;
  }

  .youtube-upload-footer {
    gap: 10px;
    padding: 10px 14px;
  }

  .youtube-upload-footer .row.actions,
  .youtube-upload-footer .btn {
    width: 100%;
  }
}

/* Platform-specific manual publishing */
.nav-nested-subnav {
  display: grid;
  gap: 4px;
  margin: 1px 0 4px 15px;
  padding: 3px 0 3px 10px;
  border-left: 1px solid rgba(201, 214, 239, 0.18);
}

.settings-subnav .nested-nav-toggle {
  color: #d4def0;
}

.nested-nav-toggle .nav-caret {
  margin-left: auto;
  color: #91a4c4;
  font-size: 12px;
}

.nav-nested-subnav button {
  min-height: 32px;
  padding-left: 8px;
  color: #9fb0cc;
  font-size: 12px;
}

.manual-post-hub {
  display: grid;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.manual-post-hub-copy {
  max-width: 720px;
}

.manual-post-hub-copy h3,
.platform-composer-head h3 {
  margin: 5px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0;
}

.manual-post-hub-copy p,
.platform-composer-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.manual-platform-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.manual-platform-card:hover,
.manual-platform-card:focus-visible {
  border-color: #a9c3f5;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.manual-platform-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.manual-platform-card strong {
  font-size: 15px;
}

.manual-platform-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.manual-platform-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  font-size: 18px;
  font-weight: 850;
}

.platform-facebook .manual-platform-icon { background: #1877f2; }
.platform-instagram .manual-platform-icon { background: #c13584; }
.platform-threads .manual-platform-icon { background: #111111; }
.platform-pinterest .manual-platform-icon { background: #bd081c; }
.platform-youtube .manual-platform-icon { background: #ff0000; }
.platform-x .manual-platform-icon { background: #0f1419; }
.platform-bluesky .manual-platform-icon { background: #1185fe; }

.platform-composer-facebook {
  align-items: start;
}

.facebook-composer-main {
  width: 100%;
  max-width: 980px;
  justify-self: center;
}

.facebook-native-composer {
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #d8dade;
  border-radius: 8px;
  color: #050505;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.facebook-native-header {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 60px;
  padding: 0 62px;
  border-bottom: 1px solid #e4e6eb;
  font-size: 20px;
}

.facebook-close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #606770;
  background: #e4e6eb;
  font-size: 28px;
  font-weight: 400;
}

.facebook-native-body {
  padding: 16px;
}

.facebook-identity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.facebook-composer-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
}

.facebook-page-post-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #65676b;
  font-size: 11px;
  font-weight: 700;
}

.facebook-compose-textarea {
  width: 100%;
  min-height: 150px;
  padding: 18px 0 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
  color: #050505;
  background: transparent;
  font-size: 24px;
  line-height: 1.35;
}

.facebook-compose-textarea:focus { outline: 0; box-shadow: none; }
.facebook-compose-textarea::placeholder { color: #65676b; }

.facebook-creative-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.facebook-emoji-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

.facebook-emoji-button { color: #65676b; background: transparent; font-size: 25px; }

.facebook-media-area .manual-media-uploader {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed #ccd0d5;
  border-radius: 8px;
  background: #f7f8fa;
}

.facebook-media-area .advanced-media-url { display: none; }

.facebook-add-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #ced0d4;
  border-radius: 8px;
}

.facebook-add-row strong { white-space: nowrap; }
.facebook-tool-list { display: flex; align-items: center; gap: 3px; }

.facebook-tool {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  font-weight: 900;
}

.facebook-tool:hover { background: #f0f2f5; }
.facebook-tool.photo { color: #45bd62; }
.facebook-tool.video { color: #f3425f; }
.facebook-tool.more { color: #65676b; }

.facebook-next-button {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  border-radius: 6px;
  color: #ffffff;
  background: #1877f2;
  font-weight: 800;
}

/* Instagram's composer is a guided media workflow: upload, crop, edit, publish. */
.platform-composer-instagram {
  align-items: start;
}

.instagram-composer-main {
  width: 100%;
  max-width: 1040px;
  justify-self: center;
  overflow: hidden;
}

.instagram-flow-progress {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  padding: 0 20px;
  border-bottom: 1px solid #dbdbdb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.instagram-flow-progress button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  color: #737373;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.instagram-flow-progress button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.instagram-flow-progress button > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #c7c7c7;
  border-radius: 50%;
  font-size: 11px;
}

.instagram-flow-progress button.active { color: #000000; }
.instagram-flow-progress button.active::after { background: #0095f6; }
.instagram-flow-progress button.active > span { border-color: #0095f6; color: #ffffff; background: #0095f6; }
.instagram-flow-progress button.complete { color: #167d3e; }
.instagram-flow-progress button.complete > span { border-color: #1f9d55; color: #ffffff; background: #1f9d55; }

.instagram-flow-stage { display: none; }
.instagram-flow-stage.active { display: block; }

.instagram-native-header {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #dbdbdb;
  color: #000000;
  background: #ffffff;
  text-align: center;
}

.instagram-native-header > strong { grid-column: 2; font-size: 16px; }
.instagram-native-header > .icon-btn { grid-column: 1; justify-self: start; font-size: 22px; }
.instagram-native-next { grid-column: 3; justify-self: end; padding: 8px 0; color: #0095f6; background: transparent; font-weight: 800; }

.instagram-upload-dropzone {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 520px;
  padding: 42px 24px;
  color: #262626;
  background: #ffffff;
  text-align: center;
}

.instagram-upload-symbol {
  font-size: 46px;
  line-height: 1;
  letter-spacing: 4px;
}

.instagram-upload-dropzone h3 { margin: 0; font-size: 21px; font-weight: 450; }
.instagram-upload-preview { width: min(100%, 620px); margin-top: 10px; }
.instagram-upload-preview:empty { display: none; }

.instagram-stage-actions {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #dbdbdb;
}

.instagram-crop-workspace,
.instagram-edit-preview,
.instagram-final-preview {
  display: grid;
  place-items: center;
  min-height: 500px;
  overflow: hidden;
  background: #111111;
}

.instagram-stage-media,
.instagram-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.instagram-image-preview {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.instagram-image-preview img {
  width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.instagram-empty-preview {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 30px;
  color: #ffffff;
  text-align: center;
}

.instagram-empty-preview span { font-size: 42px; }

.instagram-ratio-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 16px 20px 8px;
  border: 0;
}

.instagram-ratio-picker legend { width: 100%; color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; }
.instagram-ratio-picker label { cursor: pointer; }
.instagram-ratio-picker input { position: absolute; opacity: 0; pointer-events: none; }
.instagram-ratio-picker span { display: block; min-width: 64px; padding: 9px 12px; border: 1px solid #dbdbdb; border-radius: 7px; text-align: center; }
.instagram-ratio-picker input:checked + span { border-color: #0095f6; color: #0064e0; background: #eef7ff; box-shadow: 0 0 0 1px #0095f6; }
.instagram-format-note { margin: 0; padding: 8px 20px 20px; text-align: center; }

.instagram-edit-layout,
.instagram-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 540px;
}

.instagram-edit-controls,
.instagram-final-fields {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-left: 1px solid #dbdbdb;
  background: #ffffff;
}

.instagram-sound-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #efefef;
  color: #262626;
  text-transform: none;
}

.instagram-sound-toggle span { display: grid; gap: 3px; }
.instagram-sound-toggle small { color: #737373; font-weight: 500; line-height: 1.4; }
.instagram-sound-toggle input { width: 42px; height: 24px; flex: 0 0 auto; accent-color: #0095f6; }

.instagram-final-fields textarea { min-height: 180px; }
.instagram-reel-notice { display: flex; gap: 12px; margin: 18px 20px 0; padding: 14px 16px; border: 1px solid #bde3ff; border-radius: 7px; color: #174e72; background: #f0f9ff; }
.instagram-reel-notice[hidden] { display: none; }
.instagram-reel-notice span { line-height: 1.5; }
.instagram-publishing-fields { padding: 22px 20px 6px; border-top: 1px solid #dbdbdb; }
.platform-composer-instagram .advanced-media-url { margin: 14px 20px; }
.platform-composer-instagram .platform-composer-actions { padding: 4px 20px 22px; }

@media (max-width: 820px) {
  .instagram-edit-layout,
  .instagram-final-layout { grid-template-columns: 1fr; }
  .instagram-edit-preview,
  .instagram-final-preview { min-height: 360px; }
  .instagram-edit-controls,
  .instagram-final-fields { border-top: 1px solid #dbdbdb; border-left: 0; }
}

@media (max-width: 560px) {
  .instagram-flow-progress { padding: 0 6px; }
  .instagram-flow-progress button { min-height: 52px; gap: 4px; padding: 7px 3px; font-size: 10px; }
  .instagram-flow-progress button > span { width: 20px; height: 20px; }
  .instagram-upload-dropzone { min-height: 390px; }
  .instagram-crop-workspace { min-height: 390px; }
  .instagram-native-header { padding: 0 8px; }
  .instagram-reel-notice { align-items: flex-start; flex-direction: column; }
}

.facebook-next-button:disabled { color: #bcc0c4; background: #e4e6eb; cursor: not-allowed; }

.facebook-publishing-details {
  scroll-margin-top: 90px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facebook-publishing-details .section-title { margin-bottom: 22px; }

.platform-composer-x {
  align-items: start;
}

.x-composer-main {
  width: 100%;
  max-width: 900px;
  justify-self: center;
}

.x-composer-head {
  margin-bottom: 18px;
}

.x-native-composer {
  display: block;
  overflow: hidden;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  background: #ffffff;
}

.x-feed-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  border-bottom: 1px solid #eff3f4;
}

.x-feed-tabs button,
.x-feed-tabs > span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  color: #536471;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}

.x-feed-tabs button:hover {
  background: #f7f9f9;
}

.x-feed-tabs button.active,
.x-feed-tabs > span.active {
  color: #0f1419;
}

.x-feed-tabs button.active::after,
.x-feed-tabs > span.active::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: #1d9bf0;
  content: "";
  transform: translateX(50%);
}

.x-feed-tabs .x-feed-add {
  font-size: 22px;
  font-weight: 400;
}

.x-compose-row {
  display: flex;
  gap: 12px;
  padding: 18px;
}

.x-composer-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #eff3f4;
  border-radius: 50%;
  object-fit: cover;
}

.x-compose-body {
  flex: 1;
  min-width: 0;
}

.x-compose-textarea {
  width: 100%;
  min-height: 150px;
  padding: 6px 0 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
  color: #0f1419;
  background: transparent;
  font-size: 22px;
  line-height: 1.4;
}

.x-media-preview {
  margin: 0 0 10px;
}

.x-media-preview:empty,
.x-media-status:empty {
  display: none;
}

.x-media-status {
  margin: 0 0 10px;
  color: #536471;
  font-size: 12px;
}

.x-compose-textarea:focus {
  outline: 0;
  box-shadow: none;
}

.x-reply-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d9bf0;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  cursor: pointer;
}

.x-reply-control select {
  width: auto;
  min-height: 32px;
  padding: 0 24px 0 0;
  border: 0;
  color: #1d9bf0;
  background-color: transparent;
  font-weight: 800;
}

.x-poll-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #cfd9de;
  border-radius: 8px;
}

.x-poll-panel.hidden {
  display: none;
}

.x-poll-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x-poll-choice {
  position: relative;
}

.x-poll-choice input {
  padding-right: 55px;
}

.x-poll-choice span {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #536471;
  font-size: 11px;
}

.x-poll-duration {
  display: grid;
  gap: 6px;
  color: #536471;
  font-size: 12px;
  text-transform: none;
}

.x-compose-toolbar,
.x-toolbar-tools,
.x-post-status {
  display: flex;
  align-items: center;
}

.x-compose-toolbar {
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #eff3f4;
}

.x-toolbar-tools,
.x-post-status {
  gap: 6px;
}

.x-tool-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #1d9bf0;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.x-gif-button {
  font-size: 9px;
  letter-spacing: 0;
}

.x-tool-button:hover:not(:disabled) {
  background: #e8f5fd;
}

.x-tool-button:disabled {
  color: #aab8c2;
  cursor: not-allowed;
  opacity: 0.65;
}

.x-character-count,
.x-thread-status {
  color: #536471;
  font-size: 12px;
}

.x-character-count {
  font-variant-numeric: tabular-nums;
}

.x-character-count.threading {
  color: #b45309;
}

.x-character-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(#1d9bf0 var(--x-progress, 0%), #eff3f4 0);
}

.x-character-ring::after {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.x-post-button {
  min-width: 92px;
  min-height: 38px;
  border-radius: 999px;
  background: #0f1419;
}

.x-publishing-details {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eff3f4;
}

@media (max-width: 720px) {
  .x-composer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .x-compose-row {
    padding: 14px;
  }

  .x-compose-textarea {
    min-height: 130px;
    font-size: 19px;
  }

  .x-compose-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .x-toolbar-tools {
    max-width: 100%;
    overflow-x: auto;
  }

  .x-post-status {
    justify-content: flex-end;
    width: 100%;
  }

  .x-thread-status {
    display: none;
  }
}

.platform-composer-bluesky {
  align-items: start;
}

.bluesky-composer-main {
  width: 100%;
  max-width: 980px;
  justify-self: center;
}

.bluesky-composer-head {
  margin-bottom: 18px;
}

.bluesky-native-composer {
  overflow: hidden;
  border: 1px solid #ccd7e0;
  border-radius: 8px;
  color: #17202a;
  background: #ffffff;
}

.bluesky-native-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid #d9e2e8;
}

.bluesky-native-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bluesky-link-button {
  padding: 8px 0;
  border: 0;
  color: #006aff;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.bluesky-native-post {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #1185fe;
  font-weight: 850;
}

.bluesky-compose-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  min-height: 230px;
  padding: 16px;
}

.bluesky-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: #72df8d;
  font-size: 24px;
  font-weight: 850;
}

.bluesky-compose-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.bluesky-compose-textarea {
  width: 100%;
  min-height: 150px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #17202a;
  background: transparent;
  box-shadow: none;
  resize: vertical;
  font: inherit;
  font-size: 18px;
  line-height: 1.45;
}

.bluesky-compose-textarea:focus {
  border: 0;
  box-shadow: none;
}

.bluesky-compose-textarea::placeholder {
  color: #7c8794;
}

.bluesky-interaction-control {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #34495e;
  background: #eef4f8;
}

.bluesky-interaction-control select,
.bluesky-language-control select {
  appearance: none;
  width: auto;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 750;
}

.bluesky-compose-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 8px 16px;
  border-top: 1px solid #d9e2e8;
}

.bluesky-toolbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bluesky-toolbar-tools button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #006aff;
  background: transparent;
  font-weight: 850;
}

.bluesky-toolbar-tools button:not(:disabled):hover {
  background: #eef6ff;
}

.bluesky-toolbar-tools button:disabled {
  opacity: 0.4;
}

.bluesky-language-control {
  color: #006aff;
}

.bluesky-post-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #526170;
  font-size: 12px;
}

.bluesky-handoff-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #28445f;
  background: #eef6ff;
  font-size: 13px;
}

.manual-platform-arrow {
  color: #8190a7;
  font-size: 24px;
  text-align: right;
}

.manual-post-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.manual-platform-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow-x: auto;
}

.manual-platform-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  color: #536178;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.manual-platform-tabs button:hover,
.manual-platform-tabs button.active {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.manual-connection-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 8px;
  outline: 0;
}

.manual-connection-banner.connected {
  border-color: #91d5b8;
  color: #075f3d;
  background: var(--green-soft);
}

.manual-connection-banner.attention {
  border-color: #e8bf65;
  color: #704300;
  background: var(--amber-soft);
}

.manual-connection-banner.disconnected {
  border-color: #eea7b3;
  color: #9f1028;
  background: var(--rose-soft);
}

.manual-connection-banner:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.manual-connection-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
}

.manual-connection-banner.connected .manual-connection-icon { background: var(--green); }
.manual-connection-banner.attention .manual-connection-icon { background: var(--amber); }
.manual-connection-banner.disconnected .manual-connection-icon { background: var(--rose); }

.manual-connection-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-connection-copy > span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-connection-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-connection-copy small {
  color: inherit;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.82;
}

.manual-connection-banner .btn {
  border-color: currentColor;
  color: inherit;
  background: rgba(255, 255, 255, 0.72);
}

.platform-composer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 18px;
}

.platform-composer-main {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.platform-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.platform-composer-head > div:first-child {
  max-width: 760px;
}

.platform-form-grid {
  gap: 0 20px;
}

.platform-composer-aside {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.native-publish-checklist {
  display: grid;
  gap: 14px;
}

.native-publish-checklist > div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.native-publish-checklist strong {
  font-size: 12px;
}

.native-publish-checklist span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.required-note {
  color: var(--rose);
  font-size: 10px;
}

.youtube-description-field textarea {
  min-height: 210px;
}

.youtube-thumbnail-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 12px;
  border: 1px dashed #b8c6dc;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  text-align: center;
  font-size: 12px;
}

.youtube-thumbnail-preview > div {
  display: grid;
  grid-template-columns: minmax(0, 280px) auto;
  align-items: center;
  gap: 12px;
}

.youtube-thumbnail-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  object-fit: cover;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-transform: none;
}

.choice-list input {
  width: 17px;
  min-height: 17px;
}

.inline-field-action {
  justify-self: start;
  padding: 0;
  color: var(--brand-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.field-error {
  color: var(--rose) !important;
}

.studio-handoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.studio-handoff-grid span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #536178;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.studio-handoff-grid span.needed {
  border-color: #f2c16d;
  color: #7a4a00;
  background: var(--amber-soft);
}

.platform-composer-actions {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1040px) {
  .platform-composer-shell {
    grid-template-columns: 1fr;
  }

  .platform-composer-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .manual-platform-grid {
    grid-template-columns: 1fr;
  }

  .manual-post-hub-foot,
  .platform-composer-head {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-connection-banner {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .manual-connection-banner .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .platform-composer-head .actions,
  .manual-post-hub-foot .btn {
    width: 100%;
  }

  .studio-handoff-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facebook-composer-page-head { display: none; }
  .facebook-native-body { padding: 12px; }
  .facebook-compose-textarea { font-size: 20px; }
  .facebook-add-row { align-items: flex-start; flex-direction: column; }
  .facebook-tool-list { width: 100%; justify-content: space-between; }

  .youtube-thumbnail-preview > div {
    grid-template-columns: 1fr;
  }

  .x-native-composer {
    gap: 10px;
    padding: 14px 12px;
  }

  .x-composer-avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .x-compose-textarea {
    min-height: 150px;
    font-size: 20px;
  }

  .x-reply-control {
    display: flex;
    width: 100%;
  }

  .x-reply-control select {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .bluesky-native-topbar {
    padding-inline: 12px;
  }

  .bluesky-compose-body {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .bluesky-avatar {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .bluesky-compose-toolbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-inline: 10px;
  }

  .bluesky-post-status {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .bluesky-details-grid {
    grid-template-columns: 1fr;
  }

  .x-compose-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .x-post-status {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .x-thread-status {
    margin-right: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f4f5f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  color: #eef5ff;
  background: var(--navy);
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 6px 24px;
}

.sidebar-mobile-head {
  display: block;
}

.sidebar-brand {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  padding-top: 2px;
  text-align: center;
}

.sidebar-brand .logo-mark {
  width: 190px;
  height: 190px;
  padding: 0;
  border-radius: 12px;
}

.sidebar-brand p {
  margin: 0;
  color: #b8c6e4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.mobile-nav-toggle {
  display: none;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 900;
}

.logo-mark {
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 16, 48, 0.22);
}

.mark.small {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.brand-lockup h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-lockup p {
  margin: 2px 0 0;
  color: #9ca8bd;
  font-size: 12px;
}

.workspace-select {
  width: 100%;
  min-height: 42px;
  min-height: 46px;
  margin-bottom: 22px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f5f8ff;
  background: #1b2535;
}

.user-select,
.session-chip {
  min-height: 40px;
  max-width: 210px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  white-space: nowrap;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy);
}

.login-panel {
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 16, 48, 0.28);
}

.login-brand {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--ink);
}

.login-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 119, 242, 0.18);
}

.login-brand p {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 5px;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
  color: #c4cedd;
  background: transparent;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.nav button.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.settings-nav-toggle .nav-caret {
  margin-left: auto;
  color: #9db1d4;
  font-size: 13px;
}

.settings-subnav {
  display: grid;
  gap: 5px;
  margin: 1px 0 7px 18px;
  padding: 3px 0 3px 11px;
  border-left: 1px solid rgba(201, 214, 239, 0.2);
}

.settings-subnav button {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  color: #afbfdb;
  font-size: 13px;
}

.settings-subnav button.active,
.settings-subnav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.settings-subnav .icon {
  width: 18px;
  font-size: 12px;
}

.nav .icon,
.quick-action .icon,
.icon-only {
  width: 22px;
  text-align: center;
  font-weight: 800;
}

.install-button {
  background: #eef6ff;
  color: var(--blue);
}

.sidebar-footer {
  margin-top: 28px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-footer strong {
  display: block;
  margin-bottom: 6px;
}

.sidebar-footer span {
  color: #b8c6e4;
  font-size: 12px;
  line-height: 1.4;
}

.main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 17px clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.page-title h2 {
  margin: 0;
  color: var(--navy-2);
  font-size: 23px;
  letter-spacing: 0;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #eef1f5;
  font-size: 13px;
  font-weight: 750;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.btn.primary {
  color: #ffffff;
  background: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #ffffff;
  border: 1px solid var(--line);
}

.btn.ghost:hover,
.btn:not(.primary):not(.danger):hover {
  border-color: #cbd3df;
  background: #f8fafc;
}

.btn.danger {
  color: #970f26;
  background: var(--rose-soft);
}

.link-btn {
  padding: 0;
  background: transparent;
}

.content {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 30px clamp(22px, 3vw, 42px) 56px;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #b8d7ff;
  border-radius: 8px;
  background: var(--brand-soft);
}

.live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #ffc5cf;
  border-radius: 8px;
  color: #8f1025;
  background: var(--rose-soft);
}

.live-banner span {
  font-size: 13px;
}

.live-control-stack {
  display: grid;
  gap: 12px;
}

.notice span {
  color: #17427f;
  font-size: 13px;
}

.review-scope-notice > div {
  display: grid;
  gap: 4px;
}

.studio-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.studio-guide div,
.studio-help-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.studio-guide strong,
.studio-guide span,
.studio-help-list strong,
.studio-help-list span {
  display: block;
}

.studio-guide strong,
.studio-help-list strong {
  color: var(--ink);
  font-size: 13px;
}

.studio-guide span,
.studio-help-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.studio-help-list {
  display: grid;
  gap: 9px;
}

.studio-help-list.spaced {
  margin-top: 12px;
}

.creative-quiz-form .form-grid {
  gap: 18px;
}

.quiz-field > label {
  margin-bottom: 9px;
}

.quiz-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.quiz-card-option {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 106px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.quiz-card-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.quiz-card-option strong {
  color: var(--ink);
  font-size: 13px;
}

.quiz-card-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quiz-card-option:hover,
.quiz-card-option:has(input:focus-visible) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 119, 242, 0.12);
}

.quiz-card-option:has(input:checked) {
  border-color: var(--brand);
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.manual-timing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-publish-timing .quiz-card-option {
  min-height: 112px;
}

.manual-schedule-fields {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.manual-schedule-fields .form-grid {
  gap: 16px;
}

.manual-schedule-fields .field {
  margin-bottom: 0;
}

.automatic-status-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.automatic-status-summary span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.analysis-output {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.command-dashboard-section .metrics {
  margin-bottom: 0;
}

.metric,
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  min-height: 126px;
  padding: 22px 20px 18px;
  overflow: hidden;
}

.metric::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
}

.metric:nth-child(4n + 2)::before {
  background: var(--violet);
}

.metric:nth-child(4n + 3)::before {
  background: var(--green);
}

.metric:nth-child(4n + 4)::before {
  background: var(--coral);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--navy-2);
  font-size: 30px;
  letter-spacing: 0;
}

.metric small {
  color: var(--muted);
}

.metric-link {
  width: 100%;
  color: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric-link:hover,
.metric-link:focus-visible {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  transform: translateY(-2px);
}

.metric-link.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 12px 30px rgba(23, 32, 51, 0.1);
}

.metric-link.active .metric-link-cue {
  color: var(--navy-2);
}

.selected-lead-card {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--shadow);
}

.selected-lead-card:focus {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
}

.metric-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.metric-link-cue {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.dashboard-list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.dashboard-list-item {
  align-items: center;
  min-height: 72px;
}

.dashboard-list-item strong,
.dashboard-list-item span {
  display: block;
}

.dashboard-list-item span {
  margin-top: 4px;
}

.panel {
  padding: 24px;
  min-width: 0;
}

.panel.spaced {
  margin-top: 22px;
}

.spaced {
  margin-top: 22px;
}

.panel.nested {
  margin-top: 18px;
  box-shadow: none;
  background: #f8f9fb;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-head h3,
.section-title {
  margin: 0;
  color: var(--navy-2);
  font-size: 17px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.month-calendar {
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  grid-auto-rows: 176px;
}

.day {
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.month-day {
  height: 176px;
  min-height: 0;
  overflow: hidden;
}

.muted-day {
  opacity: 0.55;
  background: #f8fafc;
}

.day-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-chip {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  color: var(--navy-2);
  background: var(--brand-soft);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.post-chip.compact {
  margin-top: 5px;
  padding: 5px 6px;
  font-size: 10px;
  line-height: 1.15;
}

.post-chip.compact strong,
.post-chip.compact .post-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-chip-title {
  display: block;
}

.month-day-posts {
  min-height: 0;
}

.calendar-more {
  width: 100%;
  margin-top: 5px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.calendar-view-control {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  flex: 0 0 auto;
}

.calendar-view-control button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.calendar-view-control button.active {
  color: var(--navy-2);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(7, 22, 50, 0.12);
}

.icon-calendar-nav {
  width: 40px;
  padding-inline: 0;
}

.week-calendar {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  align-items: stretch;
}

.week-day {
  height: 540px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.week-day.today {
  border-color: var(--primary);
  box-shadow: inset 0 3px 0 var(--primary);
}

.week-day-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  cursor: pointer;
}

.week-day-head strong {
  color: var(--navy-2);
  font-size: 20px;
}

.week-day-posts {
  height: 470px;
  overflow-y: auto;
  padding: 4px 8px 12px;
}

.calendar-empty-day {
  display: block;
  padding: 18px 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.day-calendar {
  display: grid;
  gap: 16px;
}

.day-calendar-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.day-calendar-head span,
.day-agenda-main small {
  color: var(--muted);
}

.day-agenda {
  display: grid;
  gap: 10px;
}

.day-agenda-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy-2);
  text-align: left;
}

.day-agenda-item:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.day-agenda-time {
  font-weight: 800;
}

.day-agenda-main {
  display: grid;
  gap: 4px;
}

.day-agenda-open {
  min-width: 0;
  padding: 4px 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.day-agenda-open:hover strong,
.day-agenda-open:focus-visible strong {
  color: var(--primary);
}

.compact-btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.calendar-empty-agenda {
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.post-chip.pending {
  background: var(--amber-soft);
}

.post-chip.changes_requested {
  border-color: #fdba74;
  background: #fff7ed;
}

.post-chip.draft {
  background: var(--violet-soft);
}

.post-chip strong {
  display: block;
  margin-bottom: 3px;
}

.campaign-chip {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(7, 22, 50, 0.12);
  color: #17427f;
  font-size: 11px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 20, 49, 0.48);
}

.modal-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(6, 20, 49, 0.25);
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: end start;
  padding: 24px;
  background: linear-gradient(90deg, rgba(6, 20, 49, 0.38), rgba(6, 20, 49, 0.12));
}

.tour-panel {
  width: min(560px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(6, 20, 49, 0.28);
}

.tour-panel .panel-head {
  margin-bottom: 12px;
}

.tour-panel small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.tour-panel p {
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.5;
}

.tour-progress {
  height: 6px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3fb;
}

.tour-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--amber));
}

.tour-step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tour-step-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tour-step-list button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
}

.tour-step-list button.active {
  border-color: var(--brand);
  background: #fff8f1;
}

.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.schedule-modal {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.schedule-platform-field {
  display: grid;
  gap: 12px;
}

.schedule-platform-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.schedule-platform-head > div:first-child {
  display: grid;
  gap: 4px;
}

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

.schedule-platform-option {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.schedule-platform-option:has(input:checked) {
  border-color: var(--primary);
  background: #f3f7ff;
  box-shadow: 0 0 0 1px var(--primary);
}

.schedule-platform-option.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background: #f5f7fb;
}

.schedule-platform-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-platform-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #b7c4d8;
  border-radius: 6px;
  color: transparent;
  background: #ffffff;
  font-weight: 900;
}

.schedule-platform-option input:checked + .schedule-platform-check {
  border-color: var(--primary);
  color: #ffffff;
  background: var(--primary);
}

.schedule-platform-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.schedule-platform-copy small,
.schedule-platform-summary {
  color: var(--muted);
}

.schedule-platform-summary {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .schedule-platform-grid {
    grid-template-columns: 1fr;
  }

  .schedule-platform-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Multi-platform publishing composer */
.multi-platform-composer {
  display: grid;
  gap: 18px;
}

.multi-platform-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(36, 87, 214, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 106, 0, 0.22), transparent 30%),
    linear-gradient(135deg, #071632 0%, #123878 64%, #2457d6 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(7, 22, 50, 0.18);
}

.multi-platform-hero::after {
  position: absolute;
  right: -70px;
  bottom: -115px;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.multi-platform-hero > * {
  position: relative;
  z-index: 1;
}

.multi-platform-hero .eyebrow {
  color: #ffbd80;
}

.multi-platform-hero h2 {
  margin: 5px 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
}

.multi-platform-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.multi-platform-hero-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.multi-platform-hero-flow span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.multi-platform-hero-flow i {
  color: #ff9c46;
  font-style: normal;
  font-weight: 900;
}

.multi-platform-form {
  display: grid;
  gap: 18px;
}

.multi-platform-shared-panel,
.multi-platform-destinations-panel,
.multi-platform-overrides-panel {
  padding: 22px;
}

.multi-platform-destinations-head {
  align-items: flex-end;
}

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

.multi-platform-destination {
  position: relative;
  display: grid;
  grid-template-columns: 28px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.multi-platform-destination.is-compatible {
  cursor: pointer;
}

.multi-platform-destination.is-compatible:hover {
  border-color: #9bb4ee;
  transform: translateY(-1px);
}

.multi-platform-destination.is-selected,
.multi-platform-destination:has(input:checked) {
  border-color: #2457d6;
  background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(36, 87, 214, 0.1);
}

.multi-platform-destination.is-blocked {
  background: #f7f8fb;
  opacity: 0.72;
  cursor: not-allowed;
}

.multi-platform-destination > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.multi-platform-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #b7c4d8;
  border-radius: 7px;
  background: #ffffff;
  color: transparent;
  font-weight: 900;
}

.multi-platform-destination input:checked + .multi-platform-check {
  border-color: #2457d6;
  background: #2457d6;
  color: #ffffff;
}

.multi-platform-destination-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.multi-platform-destination-icon.platform-facebook { background: #1877f2; }
.multi-platform-destination-icon.platform-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.multi-platform-destination-icon.platform-threads { background: #111111; }
.multi-platform-destination-icon.platform-pinterest { background: #bd081c; }
.multi-platform-destination-icon.platform-tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: #07101a; }
.multi-platform-destination-icon.platform-youtube { background: #ff0000; }
.multi-platform-destination-icon.platform-x { background: #0f1419; }
.multi-platform-destination-icon.platform-bluesky { background: #1185fe; }

.multi-platform-destination-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.multi-platform-destination-copy strong {
  color: var(--navy);
}

.multi-platform-destination-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.multi-platform-destination-copy em {
  color: #9a4a00;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.multi-platform-destination-status {
  align-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf1f7;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.multi-platform-destination.is-compatible .multi-platform-destination-status {
  background: #e9f8ef;
  color: #18794e;
}

.multi-platform-selection-summary {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.multi-platform-overrides {
  display: grid;
  gap: 10px;
}

.multi-platform-empty-overrides {
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px dashed #b8c5da;
  border-radius: 10px;
  background: #f8faff;
  color: var(--muted);
  text-align: center;
}

.multi-platform-overrides.has-selection .multi-platform-empty-overrides {
  display: none;
}

.multi-platform-override[hidden] {
  display: none;
}

.multi-platform-override {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.multi-platform-override > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.multi-platform-override > summary::-webkit-details-marker {
  display: none;
}

.multi-platform-override > summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.multi-platform-override > summary small {
  color: var(--muted);
}

.multi-platform-override-state {
  color: #2457d6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.multi-platform-override-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.multi-platform-preview {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: #071632;
  color: #ffffff;
}

.multi-platform-preview > span {
  color: #86a9ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.multi-platform-preview > strong {
  color: #ffffff;
  font-size: 13px;
}

.multi-platform-preview p {
  max-height: 180px;
  margin: 0;
  overflow: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.multi-platform-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.multi-platform-toggle > span {
  display: grid;
  gap: 3px;
}

.multi-platform-toggle small {
  color: var(--muted);
}

.multi-platform-submit-bar {
  position: sticky;
  bottom: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(36, 87, 214, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(7, 22, 50, 0.18);
  backdrop-filter: blur(12px);
}

.multi-platform-submit-bar > div {
  display: grid;
  gap: 3px;
}

.multi-platform-submit-bar span {
  color: var(--muted);
  font-size: 12px;
}

.cross-post-label {
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eaf0ff;
  color: #2457d6;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .multi-platform-hero {
    grid-template-columns: 1fr;
  }

  .multi-platform-override-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .multi-platform-hero {
    gap: 22px;
    padding: 22px 18px;
    border-radius: 10px;
  }

  .multi-platform-hero-flow {
    grid-template-columns: 1fr;
  }

  .multi-platform-hero-flow i {
    transform: rotate(90deg);
    text-align: center;
  }

  .multi-platform-shared-panel,
  .multi-platform-destinations-panel,
  .multi-platform-overrides-panel {
    padding: 16px;
  }

  .multi-platform-destinations-head,
  .multi-platform-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .multi-platform-destination-grid {
    grid-template-columns: 1fr;
  }

  .multi-platform-destination {
    grid-template-columns: 28px 36px minmax(0, 1fr);
  }

  .multi-platform-destination-status {
    grid-column: 3;
    justify-self: start;
  }

  .multi-platform-override > summary {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .multi-platform-override-state {
    grid-column: 2;
  }

  .multi-platform-submit-bar {
    bottom: 8px;
  }

  .multi-platform-submit-bar .btn {
    width: 100%;
  }
}

/* Multi-platform command center */
.view-compose-multi {
  --composer-bg: #0b0a14;
  --composer-panel: #151522;
  --composer-panel-raised: #1b1a29;
  --composer-line: rgba(255, 255, 255, 0.1);
  --composer-muted: rgba(236, 232, 245, 0.48);
  min-height: 100vh;
  color: #f7f4ff;
  background:
    radial-gradient(circle at 84% 4%, rgba(124, 83, 255, 0.13), transparent 29%),
    radial-gradient(circle at 18% 92%, rgba(218, 49, 146, 0.08), transparent 31%),
    var(--composer-bg);
}

.view-compose-multi .topbar {
  border-bottom-color: var(--composer-line);
  background: rgba(12, 11, 22, 0.92);
}

.view-compose-multi .page-title h2 {
  color: #ffffff;
}

.view-compose-multi .page-title p,
.view-compose-multi .topbar .session-chip {
  color: rgba(238, 233, 247, 0.5);
}

.view-compose-multi .topbar .session-chip,
.view-compose-multi .topbar .btn.ghost {
  border-color: var(--composer-line);
  background: rgba(255, 255, 255, 0.045);
}

.view-compose-multi .topbar .btn.ghost:hover {
  border-color: rgba(175, 145, 255, 0.45);
  color: #ffffff;
  background: rgba(124, 83, 255, 0.12);
}

.view-compose-multi .topbar .btn.primary,
.multi-platform-submit-bar .btn.primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(100deg, #3979f6 0%, #7661ee 50%, #d83482 100%);
  box-shadow: 0 12px 28px rgba(105, 70, 224, 0.24);
}

.view-compose-multi .content {
  max-width: 1520px;
  padding-top: 28px;
}

.multi-platform-composer {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.multi-platform-form {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.multi-platform-composer .panel,
.multi-platform-submit-bar {
  border: 1px solid var(--composer-line);
  color: #f7f4ff;
  background: linear-gradient(180deg, rgba(27, 26, 41, 0.98), rgba(20, 20, 32, 0.98));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.multi-platform-shared-panel {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 100%;
}

.multi-platform-destinations-panel {
  grid-column: 2;
  grid-row: 1;
}

.multi-platform-submit-bar {
  position: static;
  grid-column: 2;
  grid-row: 2;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  backdrop-filter: none;
}

.multi-platform-submit-bar .btn {
  width: 100%;
  min-height: 48px;
}

.multi-platform-overrides-panel {
  grid-column: 1 / -1;
  grid-row: 3;
}

.multi-platform-composer .panel-head {
  margin-bottom: 18px;
}

.multi-platform-card-head {
  align-items: flex-start;
}

.multi-platform-card-head .eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #b7a2ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.multi-platform-composer .panel-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.multi-platform-composer .panel-head > div > span:not(.eyebrow),
.multi-platform-submit-bar span,
.multi-platform-composer .field small {
  color: var(--composer-muted);
}

.multi-platform-composer .badge.ready {
  color: #d1ff9f;
  background: rgba(166, 255, 99, 0.1);
}

.multi-platform-composer .field label {
  color: rgba(239, 235, 248, 0.66);
}

.multi-platform-composer input,
.multi-platform-composer select,
.multi-platform-composer textarea {
  border-color: var(--composer-line);
  color: #f7f4ff;
  background: rgba(8, 8, 16, 0.34);
}

.multi-platform-composer input::placeholder,
.multi-platform-composer textarea::placeholder {
  color: rgba(236, 232, 245, 0.28);
}

.multi-platform-composer input:focus,
.multi-platform-composer select:focus,
.multi-platform-composer textarea:focus {
  border-color: rgba(156, 126, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(124, 83, 255, 0.12);
}

.multi-platform-destinations-head {
  align-items: flex-start;
  gap: 14px;
}

.multi-platform-destinations-head .actions {
  justify-content: flex-end;
}

.multi-platform-composer .btn.compact {
  min-height: 32px;
  border-color: var(--composer-line);
  color: rgba(245, 241, 252, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.multi-platform-composer .btn.compact:hover {
  border-color: rgba(156, 126, 255, 0.5);
  color: #ffffff;
  background: rgba(124, 83, 255, 0.12);
}

.multi-platform-destination-grid {
  gap: 8px;
}

.multi-platform-destination {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 70px;
  padding: 11px 42px 11px 11px;
  border-color: var(--composer-line);
  color: #f7f4ff;
  background: rgba(255, 255, 255, 0.035);
}

.multi-platform-check {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 23px;
  height: 23px;
  border-color: rgba(255, 255, 255, 0.2);
  color: transparent;
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-50%);
}

.multi-platform-destination-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 12px;
}

.multi-platform-destination-copy {
  grid-column: 2;
}

.multi-platform-destination-copy strong {
  color: #f8f5ff;
  font-size: 12px;
}

.multi-platform-destination-copy small,
.multi-platform-destination-copy em {
  display: none;
}

.multi-platform-destination-status {
  grid-column: 2;
  justify-self: start;
  padding: 2px 0;
  color: rgba(236, 232, 245, 0.38);
  background: transparent;
  font-size: 9px;
}

.multi-platform-destination.is-compatible,
.multi-platform-destination.is-compatible .multi-platform-destination-status {
  color: #bffb93;
  background-color: rgba(255, 255, 255, 0.04);
}

.multi-platform-destination.is-compatible:hover {
  border-color: rgba(156, 126, 255, 0.52);
  background: rgba(124, 83, 255, 0.08);
}

.multi-platform-destination.is-selected,
.multi-platform-destination:has(input:checked) {
  border-color: rgba(156, 126, 255, 0.72);
  background: rgba(124, 83, 255, 0.13);
  box-shadow: 0 0 0 2px rgba(124, 83, 255, 0.08);
}

.multi-platform-destination input:checked + .multi-platform-check {
  border-color: #a8ff6a;
  color: #09100a;
  background: #a8ff6a;
}

.multi-platform-destination.is-blocked {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.5;
}

.multi-platform-selection-summary {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--composer-muted);
  background: rgba(255, 255, 255, 0.025);
}

.multi-platform-empty-overrides,
.multi-platform-override {
  border-color: var(--composer-line);
  color: var(--composer-muted);
  background: rgba(255, 255, 255, 0.025);
}

.multi-platform-override > summary small,
.multi-platform-toggle small {
  color: var(--composer-muted);
}

.multi-platform-override-state {
  color: #b7a2ff;
}

.multi-platform-override-body {
  border-top-color: var(--composer-line);
  background: rgba(8, 8, 16, 0.32);
}

.multi-platform-toggle {
  border-color: var(--composer-line);
}

.multi-platform-submit-bar strong {
  color: #ffffff;
}

@media (max-width: 1180px) {
  .multi-platform-form {
    grid-template-columns: 1fr;
  }

  .multi-platform-shared-panel,
  .multi-platform-destinations-panel,
  .multi-platform-submit-bar,
  .multi-platform-overrides-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .view-compose-multi .topbar {
    background: rgba(12, 11, 22, 0.98);
  }

  .multi-platform-destinations-head,
  .multi-platform-card-head {
    align-items: stretch;
  }

  .multi-platform-destination-grid {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: grid;
  gap: 12px;
}

.card {
  padding: 17px;
  box-shadow: none;
}

.card-grid,
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.usage-line {
  display: grid;
  gap: 6px;
}

.usage-line span,
.usage-line strong {
  font-size: 12px;
}

.usage-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row.wrap {
  flex-wrap: wrap;
}

.row.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0b56c7;
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.pending {
  color: #7a4a00;
  background: var(--amber-soft);
}

.badge.changes-requested {
  color: #7c2d12;
  background: #ffedd5;
}

.badge.draft {
  color: #59677c;
  background: #edf2f7;
}

.badge.published {
  color: var(--green);
  background: var(--green-soft);
}

.badge.failed {
  color: var(--rose);
  background: var(--rose-soft);
}

.badge.disconnected {
  color: var(--rose);
  background: var(--rose-soft);
}

.badge.needs-reconnect,
.badge.needs-app-review,
.badge.needs-api-sync,
.badge.missing,
.badge.blocked {
  color: var(--rose);
  background: var(--rose-soft);
}

.badge.waiting,
.badge.simulation,
.badge.almost-ready,
.badge.local-dev,
.badge.review,
.badge.possible-duplicate {
  color: #7a4a00;
  background: var(--amber-soft);
}

.badge.ready {
  color: var(--green);
  background: var(--green-soft);
}

.nav-notification {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #e5484d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.workflow-alert {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #7c2d12;
  border-color: #fed7aa;
  background: #fff7ed;
}

.review-filter-panel {
  margin-bottom: 18px;
}

.review-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.review-filter-grid .field {
  margin-bottom: 0;
}

.review-filter-submit .btn {
  width: 100%;
}

.approval-card {
  display: grid;
  gap: 16px;
  border-left: 4px solid #f59e0b;
}

.approval-card.changes_requested {
  border-left-color: #f97316;
}

.approval-card-title {
  justify-content: flex-start;
}

.approval-copy {
  margin: 0;
  white-space: pre-wrap;
}

.review-feedback-note {
  padding: 14px 16px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #7c2d12;
  background: #fff7ed;
}

.review-feedback-note p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.review-history-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
}

.review-history {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.review-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 16px;
}

.review-history-item:not(:last-child)::before {
  position: absolute;
  top: 13px;
  bottom: -2px;
  left: 5px;
  width: 2px;
  background: var(--line);
  content: "";
}

.review-history-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--line);
}

.review-history-item div {
  display: grid;
  gap: 3px;
}

.review-history-item small,
.review-history-empty {
  color: var(--muted);
}

.review-history-item p {
  margin: 3px 0 0;
  white-space: pre-wrap;
}

.review-feedback-modal {
  width: min(620px, calc(100vw - 32px));
}

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

.permission-capability-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.permission-capability-card input {
  margin-top: 3px;
}

.permission-capability-card span {
  display: grid;
  gap: 4px;
}

.permission-capability-card small {
  color: var(--muted);
  line-height: 1.45;
}

.queue-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.queue-next-action strong,
.queue-next-action span {
  grid-column: 1;
}

.queue-next-action .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 900px) {
  .review-filter-grid,
  .permission-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .review-filter-grid,
  .permission-capability-grid,
  .queue-next-action {
    grid-template-columns: 1fr;
  }

  .queue-next-action .btn,
  .queue-next-action strong,
  .queue-next-action span {
    grid-column: 1;
    grid-row: auto;
  }
}

.muted {
  color: var(--muted);
}

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

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #596579;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: 0;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.upload-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px;
  border: 1px dashed #b8c6dc;
  border-radius: 8px;
  background: #f8fbff;
}

.upload-preview.muted {
  display: block;
  min-height: 0;
  color: var(--muted);
}

.upload-preview img {
  width: 72px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ffffff;
}

.upload-preview strong,
.upload-preview span {
  display: block;
}

.upload-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.manual-media-uploader {
  padding: 16px;
  border: 1px dashed var(--line);
  background: #f8fbff;
  border-radius: 8px;
}

.upload-status {
  margin-top: 10px;
}

.manual-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.manual-media-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.manual-media-thumb img,
.manual-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-media-thumb video {
  background: #0d1424;
}

.manual-media-thumb > span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.manual-media-thumb .icon-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  background: #fff;
}

.advanced-media-url {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.advanced-media-url summary {
  cursor: pointer;
  font-weight: 700;
}

.advanced-media-url .field {
  margin-top: 12px;
}

.authenticated-owner-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.authenticated-owner-value span {
  color: var(--muted);
  font-size: 12px;
}

.upload-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--rose);
  background: #fff5f7;
  font-size: 13px;
  font-weight: 900;
}

.music-fieldset {
  padding: 12px;
  border: 1px solid #c9dcff;
  border-radius: 8px;
  background: #f8fbff;
}

.music-handoff {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #c9dcff;
  border-radius: 8px;
  background: #f8fbff;
}

.music-handoff strong,
.music-handoff span,
.music-handoff small {
  display: block;
}

.music-handoff span {
  color: #304866;
  line-height: 1.45;
}

.music-handoff small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.music-preview-player,
.music-preview-note {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(20, 119, 242, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.music-preview-player span,
.music-preview-note {
  color: #304866;
  font-size: 12px;
  font-weight: 800;
}

.music-preview-player audio {
  width: 100%;
}

.music-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.music-library-card {
  display: grid;
  gap: 10px;
}

.music-library-card p,
.music-library-card small {
  margin: 0;
}

.asset-meta-editor {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.permission-note {
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px solid #ffd66b;
  border-radius: 8px;
  color: #7a4a00;
  background: var(--amber-soft);
  font-size: 13px;
}

.success-note {
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  background: #f0fdf4;
  font-size: 13px;
}

.login-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.credentials-box {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #b8d7ff;
  border-radius: 8px;
  color: #17427f;
  background: var(--brand-soft);
}

.credentials-box strong,
.credentials-box span {
  display: block;
}

.credentials-box span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.success-note {
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.settings-link-grid {
  display: grid;
  gap: 10px;
}

.settings-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.settings-link:hover,
.settings-link.active {
  border-color: rgba(20, 119, 242, 0.28);
  background: #eef6ff;
}

.settings-link strong,
.settings-link small {
  display: block;
}

.settings-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.campaign-review {
  margin-bottom: 18px;
}

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

.campaign-review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.compact-form {
  margin-top: 12px;
  gap: 10px;
}

.compact-form .field {
  margin-bottom: 0;
}

.compact-form textarea {
  min-height: 116px;
}

.table-list {
  display: grid;
  gap: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-bar .field {
  margin-bottom: 0;
}

.compact-actions {
  margin-top: 0;
}

.morning-dashboard {
  display: grid;
  gap: 20px;
}

.morning-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.morning-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.morning-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.morning-column > strong {
  font-size: 13px;
}

.morning-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.morning-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.history-row strong,
.history-row span {
  display: block;
}

.history-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.history-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: #344f6a;
  font-size: 13px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.55fr) minmax(110px, 0.4fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.table-row strong,
.table-row span {
  display: block;
}

.saas-readiness-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.table-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.campaign-row-label {
  color: var(--brand) !important;
  font-weight: 800;
}

.campaign-groups {
  margin-bottom: 18px;
}

.campaign-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.campaign-group-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.campaign-group-card p {
  margin: 10px 0 4px;
  color: #344f6a;
  font-size: 13px;
}

.campaign-group-card span {
  color: var(--muted);
  font-size: 12px;
}

.campaign-performance-mini {
  margin-top: 10px;
  padding: 9px;
  border-radius: 8px;
  color: #344f6a;
  background: #eef8f6;
  font-size: 12px;
  font-weight: 700;
}

.campaign-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.campaign-group-actions .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

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

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy-2);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.check-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.nav-access-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.access-section {
  display: grid;
  gap: 8px;
}

.access-section > strong {
  color: var(--navy-2);
  font-size: 13px;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.ugc-builder {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 8px 0 28px;
}

.ugc-builder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
}

.ugc-builder-heading {
  max-width: 720px;
}

.ugc-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ugc-builder-heading h2 {
  margin: 0;
  color: var(--navy-2);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.ugc-builder-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.ugc-output-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f7fafc;
}

.ugc-output-strip > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px 22px;
}

.ugc-output-strip > div + div {
  border-left: 1px solid var(--line);
}

.ugc-output-strip strong {
  color: var(--navy-2);
  font-size: 13px;
}

.ugc-output-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ugc-guided-form {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.ugc-form-section {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.ugc-form-section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
}

.ugc-form-section legend > span:last-child {
  display: grid;
  gap: 3px;
}

.ugc-form-section legend strong {
  color: var(--navy-2);
  font-size: 16px;
}

.ugc-form-section legend small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ugc-step-number {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy-2);
  font-size: 13px;
  font-weight: 900;
}

.ugc-field-grid,
.ugc-brief-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ugc-field-grid-four {
  grid-template-columns: 1.35fr 1fr 1fr .7fr;
}

.ugc-field-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ugc-field-grid-two,
.ugc-brief-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ugc-builder .field {
  min-width: 0;
  margin: 0;
}

.ugc-builder .field label,
.ugc-field-label {
  color: #5f6d86;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ugc-builder .field input,
.ugc-builder .field select,
.ugc-builder .field textarea {
  min-height: 48px;
  padding: 11px 13px;
  border-color: #d8e0ea;
  color: var(--navy-2);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.ugc-builder .field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.ugc-platform-field {
  display: grid;
  gap: 10px;
}

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

.ugc-platform-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.ugc-platform-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 62%, #d8e0ea);
  background: color-mix(in srgb, var(--brand) 6%, #ffffff);
}

.ugc-platform-option input,
.ugc-plan-toggle input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.ugc-platform-option > span,
.ugc-plan-toggle > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ugc-platform-option strong,
.ugc-plan-toggle strong {
  color: var(--navy-2);
  font-size: 13px;
}

.ugc-platform-option small,
.ugc-plan-toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ugc-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px;
  background: #f7fafc;
}

.ugc-plan-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.ugc-generate-button {
  min-width: 210px;
  min-height: 46px;
}

.ugc-stage-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.ugc-stage-path > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.ugc-stage-path > div > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dce6f7;
  color: var(--ink);
  font-weight: 800;
}

.ugc-stage-path > div small,
.ugc-cost-confirmation span {
  color: var(--muted);
}

.ugc-stage-path > div.complete {
  border-color: #b7e4d5;
  background: #f0fbf7;
}

.ugc-stage-path > div.complete > span {
  background: #11865f;
  color: #fff;
}

.ugc-stage-path > div.active {
  border-color: #9dbefb;
  background: #f2f6ff;
}

.ugc-stage-path > div.active > span {
  background: var(--primary);
  color: #fff;
}

.ugc-video-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.ugc-video-loading,
.ugc-provider-setup {
  padding: 28px;
  border: 1px dashed #b9c8dc;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.ugc-provider-setup {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.ugc-provider-setup span {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
}

.ugc-video-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ugc-video-form-grid .full {
  grid-column: 1 / -1;
}

.ugc-video-form-grid textarea {
  min-height: 230px;
  resize: vertical;
}

.ugc-cost-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #c7d8f5;
  border-radius: 8px;
  background: #f4f8ff;
}

.ugc-cost-confirmation > div {
  display: grid;
  gap: 4px;
}

.ugc-video-stage-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #c7d8f5;
  border-radius: 8px;
  background: #f8faff;
}

.ugc-video-stage-card h4 {
  margin: 0;
}

.ugc-video-stage-card video {
  width: min(420px, 100%);
  max-height: 620px;
  border-radius: 8px;
  background: #0b1220;
}

.ugc-render-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.ugc-render-progress > span {
  width: 18px;
  height: 18px;
  border: 2px solid #bfd0ee;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: ugc-spin 0.8s linear infinite;
}

@keyframes ugc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .ad-plan-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-plan-list-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ad-plan-detail-columns {
    grid-template-columns: 1fr;
  }

  .ad-plan-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-plan-performance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ugc-field-grid-four,
  .ugc-field-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ugc-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ad-plan-index-head,
  .ad-plan-index-controls,
  .ad-plan-list-main,
  .ad-plan-list-footer,
  .ad-plan-summary-top,
  .ad-plan-summary-footer,
  .ad-plan-detail-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-plan-index-controls {
    justify-content: flex-start;
  }

  .ad-plan-view-toggle {
    width: 100%;
  }

  .ad-plan-view-toggle button {
    flex: 1;
  }

  .ad-plan-summary-grid,
  .ad-plan-list-details,
  .ad-plan-summary-meta,
  .ad-plan-overview-grid,
  .ad-plan-performance-grid {
    grid-template-columns: 1fr;
  }

  .ad-plan-list-row,
  .ad-plan-summary-card,
  .ad-plan-detail-hero {
    padding: 16px;
  }

  .ad-plan-list-footer .btn,
  .ad-plan-summary-footer .btn {
    width: 100%;
  }

  .ugc-builder-header,
  .ugc-generate-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ugc-builder-header,
  .ugc-form-section,
  .ugc-generate-bar {
    padding: 22px 18px;
  }

  .ugc-output-strip,
  .ugc-stage-path,
  .ugc-video-form-grid,
  .ugc-field-grid-four,
  .ugc-field-grid-three,
  .ugc-field-grid-two,
  .ugc-brief-grid,
  .ugc-platform-grid {
    grid-template-columns: 1fr;
  }

  .ugc-output-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ugc-generate-button {
    width: 100%;
  }

  .ugc-cost-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .ugc-cost-confirmation .btn {
    width: 100%;
  }
}

.ad-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ad-account-card,
.ad-utm-box,
.ad-asset-panel,
.ad-update-panel {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ad-asset-panel {
  --asset-brand-primary: var(--brand);
  --asset-brand-secondary: var(--brand-soft);
  --asset-brand-accent: var(--violet);
  --asset-brand-ink: var(--ink);
  border-color: color-mix(in srgb, var(--asset-brand-primary) 24%, var(--line));
  background: linear-gradient(180deg, #ffffff, var(--asset-brand-secondary));
}

.ad-account-card span,
.ad-account-card small,
.ad-asset-panel span,
.ad-utm-box span,
.ad-utm-box strong {
  overflow-wrap: anywhere;
}

.ad-account-card span,
.ad-account-card small,
.ad-asset-panel span,
.ad-utm-box span {
  color: var(--muted);
  font-size: 12px;
}

.ad-asset-panel p {
  margin: 3px 0 0;
  color: color-mix(in srgb, var(--asset-brand-ink) 76%, #ffffff);
  font-size: 13px;
  line-height: 1.4;
}

.ad-asset-panel > .row strong {
  color: var(--asset-brand-ink);
}

.ad-update-panel summary {
  cursor: pointer;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 800;
}

.ad-update-panel form {
  margin-top: 10px;
}

.ad-utm-box strong {
  color: var(--navy-2);
  font-size: 12px;
  line-height: 1.4;
}

.meta-package {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b8d7ff;
  border-radius: 8px;
  background: var(--brand-soft);
}

.meta-package pre {
  max-height: 260px;
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  color: var(--navy-2);
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
  white-space: pre-wrap;
}

.launch-checklist {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.launch-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-height: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.launch-check > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 900;
}

.launch-check strong,
.launch-check small {
  display: block;
}

.launch-check strong {
  color: var(--navy-2);
  font-size: 12px;
}

.launch-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.launch-check.warn > span {
  color: #7a4a00;
  background: var(--amber-soft);
}

.launch-check.block > span {
  color: var(--rose);
  background: var(--rose-soft);
}

.ad-plan-index {
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

.ad-create-page,
.ad-campaign-index-page,
.conversion-command-page {
  display: grid;
  gap: 20px;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.ad-create-hero,
.ad-campaign-index-hero,
.conversion-command-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 2px 22px;
  border-bottom: 1px solid var(--line);
}

.ad-create-hero > div:first-child,
.ad-campaign-index-hero > div:first-child,
.conversion-command-hero > div:first-child {
  max-width: 760px;
}

.ad-create-hero h3,
.ad-campaign-index-hero h3,
.conversion-command-hero h3 {
  margin: 5px 0 8px;
  color: var(--navy-2);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.ad-create-hero p,
.ad-campaign-index-hero p,
.conversion-command-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.ad-create-hero-actions,
.ad-campaign-index-actions,
.conversion-command-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ad-create-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ad-create-progress > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.ad-create-progress > div:last-child {
  border-right: 0;
}

.ad-create-progress span {
  display: inline-flex;
  grid-row: 1 / 3;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 900;
}

.ad-create-progress strong,
.ad-create-progress small {
  display: block;
  min-width: 0;
}

.ad-create-progress strong {
  color: var(--navy-2);
  font-size: 13px;
}

.ad-create-progress small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.ad-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.ad-create-main {
  display: grid;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ad-create-section {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.ad-create-section:last-child {
  border-bottom: 0;
}

.ad-create-section-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ad-create-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 7px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 65%, #ffffff);
  font-size: 11px;
  font-weight: 900;
}

.ad-create-section-head h3,
.ad-create-summary h3 {
  margin: 0;
  color: var(--navy-2);
  font-size: 17px;
  line-height: 1.25;
}

.ad-create-section-head p,
.ad-create-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ad-create-field-grid {
  gap: 16px;
}

.ad-create-field-grid .field > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ad-objective-grid,
.ad-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.ad-choice-card {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.ad-choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ad-choice-card > span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.ad-choice-card > span:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background: #ffffff;
}

.ad-choice-card input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.ad-choice-card input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.ad-choice-card strong,
.ad-choice-card small {
  display: block;
}

.ad-choice-card strong {
  color: var(--navy-2);
  font-size: 13px;
}

.ad-choice-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ad-create-aside {
  position: sticky;
  top: 18px;
}

.ad-create-summary {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 22, 50, 0.07);
}

.ad-create-checks {
  display: grid;
  gap: 8px;
}

.ad-create-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-radius: 7px;
  background: var(--soft);
}

.ad-create-check > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.ad-create-check.ready > span {
  color: #08785d;
  background: var(--green-soft);
}

.ad-create-check.warn > span {
  color: #7a4a00;
  background: var(--amber-soft);
}

.ad-create-check strong,
.ad-create-check small {
  display: block;
}

.ad-create-check strong {
  color: var(--navy-2);
  font-size: 12px;
}

.ad-create-check small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ad-create-safety {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-left: 3px solid var(--green);
  border-radius: 0 7px 7px 0;
  background: var(--green-soft);
}

.ad-create-safety strong {
  color: #075e4c;
  font-size: 12px;
}

.ad-create-safety span {
  color: #27695b;
  font-size: 11px;
  line-height: 1.45;
}

.ad-create-submit {
  width: 100%;
}

.ad-campaign-pulse,
.conversion-executive-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ad-campaign-pulse > div,
.conversion-executive-metrics > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.ad-campaign-pulse > div:last-child,
.conversion-executive-metrics > div:last-child {
  border-right: 0;
}

.ad-campaign-pulse span,
.conversion-executive-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-campaign-pulse strong,
.conversion-executive-metrics strong {
  overflow-wrap: anywhere;
  color: var(--navy-2);
  font-size: 22px;
  line-height: 1.05;
}

.ad-campaign-pulse small,
.conversion-executive-metrics small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.conversion-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-2);
}

.conversion-journey-stage {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.conversion-journey-stage:last-child {
  border-right: 0;
}

.conversion-journey-stage > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 900;
}

.conversion-journey-stage div,
.conversion-journey-stage strong,
.conversion-journey-stage b,
.conversion-journey-stage small {
  display: block;
  min-width: 0;
}

.conversion-journey-stage strong {
  color: #a9b8d2;
  font-size: 10px;
  text-transform: uppercase;
}

.conversion-journey-stage b {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.05;
}

.conversion-journey-stage small {
  margin-top: 5px;
  color: #a9b8d2;
  font-size: 11px;
  line-height: 1.35;
}

.conversion-decision-layout,
.conversion-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 20px;
  align-items: start;
}

.conversion-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conversion-priority-panel,
.conversion-signal-panel,
.conversion-recommendations-section,
.conversion-report-grid > .panel,
.conversion-answer-paths {
  margin: 0;
}

.conversion-signal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.conversion-signal-row {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.conversion-signal-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.conversion-signal-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.conversion-signal-row strong {
  color: var(--navy-2);
  font-size: 14px;
  line-height: 1.35;
}

.conversion-signal-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.conversion-recommendations-section .conversion-filter-bar {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.conversion-recommendation-list {
  margin-top: 18px;
}

.ad-plan-index-head,
.ad-plan-index-controls,
.ad-plan-list-main,
.ad-plan-list-footer,
.ad-plan-summary-top,
.ad-plan-summary-footer,
.ad-plan-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-plan-index-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ad-plan-view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ad-plan-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ad-plan-view-toggle button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(7, 22, 50, 0.1);
}

.ad-plan-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ad-plan-list-row,
.ad-plan-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ad-plan-list-row:hover,
.ad-plan-list-row:focus-visible,
.ad-plan-summary-card:hover,
.ad-plan-summary-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  box-shadow: 0 12px 28px rgba(7, 22, 50, 0.09);
  outline: none;
  transform: translateY(-1px);
}

.ad-plan-list-row {
  display: grid;
  gap: 15px;
  padding: 18px 20px;
}

.ad-plan-list-title {
  min-width: 0;
}

.ad-plan-list-title strong,
.ad-plan-summary-top strong {
  display: block;
  color: var(--navy-2);
  font-size: 15px;
  line-height: 1.3;
}

.ad-plan-list-title span,
.ad-plan-summary-top span:not(.ad-plan-budget) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ad-plan-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ad-plan-list-details {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(7, minmax(86px, 0.55fr));
  gap: 8px;
}

.ad-plan-list-details > div,
.ad-plan-summary-meta > div,
.ad-plan-performance-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 7px;
  background: var(--soft);
}

.ad-plan-list-details span,
.ad-plan-summary-meta span,
.ad-plan-performance-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-plan-list-details strong,
.ad-plan-summary-meta strong,
.ad-plan-performance-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--navy-2);
  font-size: 12px;
  line-height: 1.35;
}

.ad-plan-list-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ad-plan-list-footer > span,
.ad-plan-summary-footer > span {
  font-size: 12px;
  font-weight: 800;
}

.ad-plan-list-footer .has-blockers,
.ad-plan-summary-footer .has-blockers {
  color: var(--rose);
}

.ad-plan-list-footer .ready,
.ad-plan-summary-footer .ready {
  color: #08785d;
}

.ad-plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ad-plan-summary-card {
  display: grid;
  grid-template-rows: auto auto minmax(72px, auto) 1fr auto;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.ad-plan-summary-top {
  align-items: flex-start;
}

.ad-plan-summary-top > div {
  min-width: 0;
}

.ad-plan-budget {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--navy-2);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.ad-plan-summary-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #344f6a;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ad-plan-summary-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ad-plan-summary-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ad-plan-detail-page {
  display: grid;
  gap: 18px;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.ad-plan-detail-hero {
  align-items: flex-end;
  padding: 24px;
}

.ad-plan-detail-heading {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ad-plan-detail-heading h3 {
  margin: 4px 0 6px;
  color: var(--navy-2);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: 0;
}

.ad-plan-detail-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-plan-detail-section {
  min-width: 0;
}

.ad-plan-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.ad-plan-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ad-copy-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.ad-copy-block {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ad-copy-block span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-copy-block p {
  margin: 0;
  color: #344f6a;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ad-plan-performance-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 8px;
}

.ad-plan-detail-actions {
  gap: 9px;
}

.ad-plan-detail-section .tracking-url,
.ad-plan-detail-section .ad-utm-box,
.ad-plan-detail-section pre,
.ad-plan-detail-section strong {
  overflow-wrap: anywhere;
}

.ad-plan-missing {
  display: grid;
  justify-items: start;
  gap: 16px;
}

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

.ad-detail-grid div {
  min-height: 74px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.ad-detail-grid span,
.ad-detail-grid strong {
  display: block;
}

.ad-detail-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-detail-grid strong {
  color: var(--navy-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.campaign-detail-head h3 {
  margin: 0;
  font-size: 20px;
}

.campaign-detail-head p,
.campaign-detail-post p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.campaign-detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.campaign-detail-post {
  box-shadow: none;
}

.campaign-detail-post .queue-detail {
  white-space: pre-wrap;
}

.campaign-performance {
  margin-top: 18px;
}

.campaign-history-panel {
  margin-top: 18px;
}

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

.campaign-history-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.campaign-history-card p {
  margin: 10px 0 4px;
  color: #344f6a;
  font-size: 13px;
}

.campaign-history-card span {
  color: var(--muted);
  font-size: 12px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.integration-switcher {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.integration-switcher h3 {
  margin: 0 0 4px;
}

.integration-select-field {
  min-width: 260px;
  margin: 0;
}

.integration-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.integration-discovery-panel {
  min-height: 100%;
}

.adapter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

.adapter-card {
  background: var(--soft);
}

.integration-card h3 {
  margin: 0 0 4px;
}

.integration-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.integration-meter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-meter strong {
  font-size: 18px;
}

.vault-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.oauth-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #344f6a;
  background: var(--soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.platform-readiness-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.platform-readiness-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.platform-readiness-row strong,
.platform-readiness-row span,
.readiness-box strong,
.readiness-box span,
.readiness-box small {
  display: block;
}

.platform-readiness-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.readiness-box {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #ffd66b;
  border-radius: 8px;
  color: #7a4a00;
  background: var(--amber-soft);
  font-size: 13px;
}

.readiness-box small {
  color: #8a5a00;
}

.env-mini,
.env-list {
  display: grid;
  gap: 8px;
}

.env-mini span {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: #5f6d86;
  background: #eef3fb;
  font-size: 12px;
}

.env-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.env-row strong,
.env-row span {
  display: block;
}

.env-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.secrets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}

.secret-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.secret-card strong,
.secret-card span {
  display: block;
}

.secret-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.secret-row-list {
  display: grid;
  gap: 8px;
}

.secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: #ffffff;
}

.secret-row strong {
  font-size: 13px;
}

.secret-note {
  padding: 10px;
  border-radius: 8px;
  color: #5f6d86;
  background: #eef3fb;
  font-size: 12px;
  line-height: 1.45;
}

.integration-center {
  display: block;
}

.integration-center-mobile {
  display: none;
}

.integration-center-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.integration-center-nav {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.integration-center-nav-head {
  display: grid;
  gap: 3px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.integration-center-nav-head span,
.integration-center-nav-head small,
.integration-provider-nav-item strong,
.integration-provider-nav-item small,
.integration-center-overview strong,
.integration-center-overview small {
  display: block;
}

.integration-center-nav-head span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.integration-center-nav-head small,
.integration-provider-nav-item small,
.integration-center-overview small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.integration-center-overview,
.integration-provider-nav-item,
.integration-center-group-toggle {
  width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.integration-center-overview,
.integration-provider-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
}

.integration-center-overview {
  border-bottom: 1px solid var(--line);
}

.integration-center-overview:hover,
.integration-provider-nav-item:hover,
.integration-center-overview.active,
.integration-provider-nav-item.active {
  background: #f3f7fc;
}

.integration-center-overview.active,
.integration-provider-nav-item.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.integration-center-group {
  border-bottom: 1px solid var(--line);
}

.integration-center-group:last-child {
  border-bottom: 0;
}

.integration-center-group-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.integration-center-group-toggle:hover {
  background: #fafbfd;
}

.integration-center-group-toggle strong,
.integration-center-group-toggle small {
  display: block;
}

.integration-center-group-toggle strong {
  font-size: 12px;
  text-transform: uppercase;
}

.integration-center-group-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.integration-center-caret {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.integration-center-group-items {
  padding: 0 0 8px;
}

.integration-provider-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cdd8e8;
  border-radius: 7px;
  color: #173056;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.integration-provider-mark.large {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.integration-provider-mark.hero {
  width: 52px;
  height: 52px;
  font-size: 14px;
}

.integration-nav-lock {
  padding: 4px 6px;
  border-radius: 5px;
  color: #59677c;
  background: #e9eef5;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-center-workspace {
  min-width: 0;
}

.integration-center-hero,
.integration-provider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.integration-center-hero h2,
.integration-provider-header h2 {
  margin: 4px 0 7px;
  color: var(--ink);
  font-size: 26px;
}

.integration-center-hero p,
.integration-provider-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.integration-eyebrow {
  color: #52627a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.integration-center-metrics,
.integration-provider-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.integration-center-metric,
.integration-provider-readiness > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  background: #ffffff;
}

.integration-center-metric span,
.integration-provider-readiness span {
  color: #5d6b81;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-center-metric strong,
.integration-provider-readiness strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.integration-center-metric small,
.integration-provider-readiness small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.integration-directory-section,
.integration-provider-section {
  margin-top: 26px;
}

.integration-section-heading,
.integration-column-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.integration-section-heading.compact {
  margin-bottom: 12px;
}

.integration-section-heading h3,
.integration-section-heading h4,
.integration-column-heading h4 {
  margin: 0;
}

.integration-section-heading p,
.integration-column-heading span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.integration-directory-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.integration-directory-card:hover {
  border-color: #9db8df;
  background: #fbfdff;
}

.integration-directory-copy strong,
.integration-directory-copy small {
  display: block;
}

.integration-directory-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.integration-directory-status {
  padding: 5px 7px;
  border-radius: 6px;
  color: #7a4a00;
  background: #fff3cf;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.integration-directory-status.ready {
  color: #087653;
  background: #e1f7ef;
}

.integration-security-strip,
.integration-diagnostics-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.integration-security-strip > div,
.integration-diagnostics-link > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-security-strip strong,
.integration-security-strip small,
.integration-diagnostics-link strong,
.integration-diagnostics-link span {
  display: block;
}

.integration-security-strip small,
.integration-diagnostics-link span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.integration-provider-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.integration-provider-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integration-provider-badges {
  display: flex;
  gap: 7px;
  align-items: center;
}

.integration-provider-content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.integration-connection-panel,
.integration-discovery-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.integration-definition-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.integration-definition-list > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.integration-definition-list dt {
  color: #5c6b81;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-definition-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.integration-primary-actions {
  margin-top: 14px;
}

.service-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.service-capability-list span {
  padding: 6px 8px;
  border-radius: 6px;
  color: #3d526f;
  background: #eef3f9;
  font-size: 11px;
  font-weight: 700;
}

.integration-credential-workspace {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.integration-credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.integration-credential-column {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
}

.integration-token-form {
  display: grid;
  gap: 10px;
}

.integration-token-form label {
  display: grid;
  gap: 5px;
  color: #53627a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-token-form input,
.integration-token-form select,
.integration-token-form textarea {
  width: 100%;
  min-width: 0;
}

.integration-security-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 7px;
  color: #3d526f;
  background: #eef3f9;
  font-size: 11px;
  line-height: 1.45;
}

.integration-stored-credentials .card {
  box-shadow: none;
}

.queue-card {
  border-left: 4px solid #cbd5e1;
}

.queue-card.ready {
  border-left-color: var(--green);
}

.queue-card.blocked {
  border-left-color: var(--rose);
}

.queue-platform-groups {
  display: grid;
  gap: 18px;
}

.duplicate-schedule-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid #f2c56b;
  border-radius: 8px;
  color: #6b4300;
  background: #fff8e8;
}

.planned-integration-card,
.planned-integration-panel {
  border-color: #c9d5e7;
  background: #f8fafc;
}

.planned-badge {
  background: #e8eef8;
  color: #334155;
}

.planned-capability-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.integration-readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.integration-readiness-list > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.integration-readiness-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.integration-readiness-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.integration-wrap-value {
  overflow-wrap: anywhere;
}

.planned-capability-list > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.planned-capability-list span,
.planned-integration-lock {
  align-items: center;
  background: #17243a;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.tiktok-review-console {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tiktok-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.tiktok-review-form,
.tiktok-draft-handoff,
.tiktok-draft-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.tiktok-review-form .field,
.tiktok-draft-handoff .field {
  flex: 1 1 auto;
  margin: 0;
}

.tiktok-draft-list {
  display: grid;
  gap: 10px;
}

.tiktok-draft-row {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.tiktok-draft-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tiktok-direct-post-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-top: 6px;
  padding-top: 22px;
}

.tiktok-creator-summary {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.tiktok-creator-summary img {
  border-radius: 50%;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.tiktok-creator-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tiktok-creator-summary span {
  overflow-wrap: anywhere;
}

.tiktok-direct-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.tiktok-direct-form .field {
  margin: 0;
}

.tiktok-direct-form .full {
  grid-column: 1 / -1;
}

.tiktok-interaction-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.tiktok-interaction-controls label,
.tiktok-consent {
  align-items: flex-start;
  display: flex;
  gap: 9px;
  line-height: 1.45;
}

.tiktok-interaction-controls input,
.tiktok-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.tiktok-consent {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

@media (max-width: 760px) {
  .tiktok-review-grid {
    grid-template-columns: 1fr;
  }

  .tiktok-review-form,
  .tiktok-draft-handoff,
  .tiktok-draft-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tiktok-creator-summary,
  .tiktok-direct-form {
    grid-template-columns: 1fr;
  }

  .tiktok-creator-summary > .muted,
  .tiktok-direct-form .full {
    grid-column: 1;
  }
}

.planned-integration-lock {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  height: auto;
  padding: 6px 10px;
  width: fit-content;
}

.activation-checklist {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.integration-roadmap {
  margin-bottom: 18px;
}

.integration-roadmap-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.roadmap-platform-card {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  color: #14213a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px;
  text-align: left;
}

.roadmap-platform-card:hover,
.roadmap-platform-card:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}

.roadmap-platform-card span:first-child {
  display: grid;
  gap: 5px;
}

.roadmap-platform-card small {
  color: #64748b;
}

.duplicate-schedule-alert strong,
.duplicate-schedule-alert span {
  display: block;
}

.duplicate-schedule-alert span {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
}

.post-chip.possible-duplicate {
  border-color: #d99a21;
  background: #fff8e8;
}

.duplicate-post-label {
  color: #7a4a00;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.queue-detail.duplicate-detail {
  color: #6b4300;
  background: #fff8e8;
}

.queue-platform-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.queue-platform-filter-label {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.queue-platform-filter-label span {
  color: var(--muted);
  font-size: 12px;
}

.queue-platform-filter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.queue-platform-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
}

.queue-platform-filter-button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 11px;
}

.queue-platform-filter-button:hover,
.queue-platform-filter-button:focus-visible {
  border-color: var(--blue);
}

.queue-platform-filter-button.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.queue-platform-filter-button.active span {
  color: var(--blue);
}

.queue-platform-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--soft);
}

.queue-platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-platform-head h4 {
  margin: 0;
  font-size: 16px;
}

.queue-platform-head span:not(.badge) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.queue-detail {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #5f6d86;
  background: var(--soft);
  font-size: 13px;
}

.preserve-lines {
  white-space: pre-wrap;
}

.launch-meta-value {
  white-space: pre-line;
  text-align: right;
  line-height: 1.45;
}

.asset-card {
  display: grid;
  gap: 12px;
}

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

.asset-library-section + .asset-library-section {
  margin-top: 18px;
}

.asset-library-section-head > div {
  display: grid;
  gap: 4px;
}

.asset-library-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.asset-linked-posts {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.asset-linked-posts-head,
.asset-linked-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-linked-posts-head span,
.asset-linked-post span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asset-linked-post-list {
  display: grid;
  gap: 6px;
}

.asset-linked-post {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.asset-linked-post:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, #ffffff);
}

.asset-linked-post:focus-visible {
  outline: 3px solid rgba(20, 119, 242, 0.24);
  outline-offset: 1px;
}

.asset-collapsible-card {
  display: block;
  align-self: start;
  padding: 0;
  overflow: hidden;
}

.asset-collapsible-card[open] {
  grid-column: 1 / -1;
}

.asset-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  list-style: none;
  cursor: pointer;
}

.asset-card-summary::-webkit-details-marker {
  display: none;
}

.asset-card-summary:hover {
  background: var(--soft);
}

.asset-card-summary:focus-visible {
  outline: 3px solid rgba(20, 119, 242, 0.28);
  outline-offset: -3px;
}

.asset-card-summary-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.asset-card-summary-main strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.asset-card-summary-main span,
.asset-card-context span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.asset-card-summary-side,
.asset-card-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.asset-card-chevron {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  transition: transform 160ms ease;
}

.asset-collapsible-card[open] .asset-card-chevron {
  transform: rotate(180deg);
}

.asset-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.asset-card-context {
  justify-content: space-between;
}

.asset-preview-trigger {
  position: relative;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.asset-preview-trigger:focus-visible {
  outline: 3px solid rgba(20, 119, 242, 0.4);
  outline-offset: -3px;
}

.asset-preview-expand-cue {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.2);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.asset-preview-trigger:hover .asset-preview-expand-cue,
.asset-preview-trigger:focus-visible .asset-preview-expand-cue {
  opacity: 1;
  transform: translateY(0);
}

.asset-preview-backdrop {
  padding: 24px;
}

.asset-preview-lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #f8fafc;
}

.asset-preview-lightbox-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding-bottom: 14px;
  background: #f8fafc;
}

.asset-preview-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
  min-height: 560px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eef5;
}

.asset-preview-focus {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 520px;
}

.asset-preview-focus > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(68vh, 680px);
  max-height: 680px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
  background: #fff;
}

.asset-preview-focus .asset-slide-fallback {
  width: min(100%, 540px);
  min-height: 520px;
}

.asset-preview-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.asset-preview-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.asset-preview-thumbnails {
  display: flex;
  gap: 10px;
  padding: 14px 2px 6px;
  overflow-x: auto;
}

.asset-preview-thumbnail {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 96px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.asset-preview-thumbnail.active {
  border-color: var(--brand);
}

.asset-preview-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.asset-preview-thumbnail span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.asset-preview-lightbox-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.asset-preview-lightbox-footer strong {
  color: var(--ink);
}

.asset-copy-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-copy-block .queue-detail {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .asset-library-grid {
    grid-template-columns: 1fr;
  }

  .asset-card-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-card-summary-side {
    justify-content: space-between;
  }

  .asset-preview-backdrop {
    padding: 8px;
  }

  .asset-preview-lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .asset-preview-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    min-height: 430px;
    padding: 8px;
  }

  .asset-preview-focus {
    min-height: 400px;
  }

  .asset-preview-focus > img {
    width: 100%;
    height: auto;
    max-height: 62vh;
  }

  .asset-preview-nav {
    width: 38px;
    height: 38px;
  }
}

.asset-editor-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
}

.asset-slide-editor-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.asset-slide-editor-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.asset-slide-editor-row > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-slide-editor-fields {
  display: grid;
  gap: 10px;
}

.asset-slide-editor-fields .field {
  display: grid;
  gap: 6px;
}

.asset-slide-editor-fields label {
  color: #51627a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-slide-editor-row textarea {
  min-height: 72px;
  resize: vertical;
}

.asset-slide-editor-row textarea[name^="slide_body_"] {
  min-height: 96px;
}

.asset-editor-mini-preview {
  min-height: 160px;
  aspect-ratio: 1 / 1;
  padding: 12px;
}

.asset-editor-mini-preview strong {
  font-size: 17px;
}

.asset-editor-mini-preview span {
  font-size: 12px;
}

.asset-preview {
  --asset-brand-primary: var(--brand);
  --asset-brand-secondary: var(--brand-soft);
  --asset-brand-accent: var(--violet);
  --asset-brand-ink: var(--ink);
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--asset-brand-primary) 22%, var(--line));
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--asset-brand-secondary));
}

.asset-preview-top,
.asset-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--asset-brand-ink);
}

.asset-preview-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--asset-brand-primary) 18%, transparent);
}

.asset-preview-stage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 6px;
  scroll-snap-type: inline proximity;
}

.rendered-asset-preview {
  background: #ffffff;
}

.rendered-slide-stage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 0 8px;
  scroll-snap-type: inline proximity;
}

.rendered-slide-stage-detail {
  grid-auto-columns: minmax(240px, 320px);
  margin-bottom: 12px;
}

.rendered-slide-card {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rendered-slide-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rendered-slide-card .asset-slide-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.asset-slide-image-fallback[hidden] {
  display: none;
}

.asset-slide-image-fallback em {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  color: currentColor;
  opacity: 0.72;
}

.asset-preview-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  position: relative;
  gap: 10px;
  min-height: 260px;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--asset-brand-ink), var(--asset-brand-primary));
  overflow: visible;
  scroll-snap-align: start;
}

.platform-pinterest .asset-preview-slide {
  aspect-ratio: 2 / 3;
  min-height: 360px;
}

.asset-preview-slide small {
  justify-self: end;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
}

.asset-preview-copy {
  align-self: center;
  display: grid;
  gap: 12px;
}

.asset-preview-copy strong,
.asset-preview-slide strong {
  align-self: end;
  font-size: 22px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.asset-preview-copy span,
.asset-preview-slide span {
  align-self: start;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-line;
}

.asset-preview-slide:has(.asset-preview-copy span) .asset-preview-copy {
  align-self: center;
}

.asset-preview-slide:not(:has(span)) .asset-preview-copy,
.asset-preview-slide:not(:has(span)) strong {
  align-self: center;
}

.asset-preview-slide:not(:last-child) {
  padding-bottom: 34px;
}

.asset-preview-slide:not(:last-child)::after {
  content: "Swipe for more →";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: color-mix(in srgb, currentColor 82%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.preview-premium .asset-preview-slide {
  color: var(--asset-brand-ink);
  background: linear-gradient(145deg, #ffffff, var(--asset-brand-secondary));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--asset-brand-primary) 18%, transparent);
}

.preview-premium .asset-preview-slide small {
  color: var(--asset-brand-primary);
  background: color-mix(in srgb, var(--asset-brand-primary) 12%, #ffffff);
}

.preview-premium .asset-preview-slide span {
  color: color-mix(in srgb, var(--asset-brand-ink) 76%, #ffffff);
}

.preview-checklist .asset-preview-slide {
  color: var(--asset-brand-ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--asset-brand-primary) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--asset-brand-primary) 10%, transparent) 1px, transparent 1px),
    #ffffff;
  background-size: 22px 22px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--asset-brand-primary) 18%, transparent);
}

.preview-checklist .asset-preview-slide small {
  color: var(--asset-brand-primary);
  background: color-mix(in srgb, var(--asset-brand-primary) 12%, #ffffff);
}

.preview-checklist .asset-preview-slide span {
  color: color-mix(in srgb, var(--asset-brand-ink) 76%, #ffffff);
}

.preview-myth .asset-preview-slide {
  background: linear-gradient(145deg, var(--asset-brand-ink), var(--asset-brand-accent));
}

.preview-steps .asset-preview-slide {
  background: linear-gradient(145deg, var(--asset-brand-ink), var(--asset-brand-primary));
}

.workspace-cca .asset-preview-slide {
  color: var(--asset-brand-ink);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--asset-brand-primary) 18%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, var(--asset-brand-secondary));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--asset-brand-primary) 20%, transparent);
}

.workspace-cca .asset-preview-slide strong {
  color: var(--asset-brand-ink);
}

.workspace-cca .asset-preview-slide span {
  color: color-mix(in srgb, var(--asset-brand-ink) 72%, #ffffff);
}

.workspace-cca .asset-preview-slide small {
  color: var(--asset-brand-primary);
  background: color-mix(in srgb, var(--asset-brand-primary) 12%, #ffffff);
}

.workspace-cca.preview-bold .asset-preview-slide:first-child {
  color: #ffffff;
  background: linear-gradient(145deg, var(--asset-brand-ink), var(--asset-brand-primary));
}

.workspace-cca.preview-bold .asset-preview-slide:first-child strong,
.workspace-cca.preview-bold .asset-preview-slide:first-child span {
  color: #ffffff;
}

.workspace-cca.preview-bold .asset-preview-slide:first-child small {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.slide-list {
  display: grid;
  gap: 7px;
}

.slide-list div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
}

.slide-list strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
}

.slide-list span {
  color: #344f6a;
  line-height: 1.35;
}

.slide-list.compact div {
  padding: 6px;
}

.inspiration-card {
  display: grid;
  gap: 12px;
}

.viral-source-card {
  display: grid;
  gap: 10px;
}

.template-platforms,
.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inspiration-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 14px;
}

.inspiration-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344f6a;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.inspiration-filters button.active,
.inspiration-filters button:hover {
  border-color: #8db8ff;
  color: #17427f;
  background: var(--brand-soft);
}

.inspiration-filters span {
  color: var(--muted);
  font-weight: 900;
}

.template-platforms span,
.template-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.template-platforms span {
  color: #0b56c7;
  background: #eef6ff;
}

.template-tags span {
  color: #4d5870;
  background: #f1f4f8;
}

.template-hook {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.source-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.performance-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  color: #344f6a;
  background: #eef6ff;
  font-size: 13px;
}

.performance-note span {
  line-height: 1.4;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #344f6a;
  background: #e8eef8;
}

.tab.active {
  color: #ffffff;
  background: var(--navy-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.6fr);
  gap: 18px;
}

.deployment-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.deployment-hero h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.deployment-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f6d86;
  line-height: 1.55;
}

.deployment-summary {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 170px;
}

.deployment-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.deployment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.deployment-card {
  box-shadow: none;
}

.deployment-card.ready {
  border-left: 4px solid var(--green);
}

.deployment-card.caution {
  border-left: 4px solid var(--amber);
}

.deployment-card.blocked {
  border-left: 4px solid var(--rose);
}

.deployment-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.deployment-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.deployment-action {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  color: #344f6a;
  background: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.lane {
  min-height: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
}

.lane h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5f6d86;
  text-transform: uppercase;
}

.funnel-stage {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.funnel-stage + .funnel-stage {
  margin-top: 10px;
}

.funnel-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.funnel-index-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.funnel-index-actions > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.funnel-index-list {
  display: grid;
  gap: 12px;
}

.funnel-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 7px rgba(7, 22, 50, 0.04);
}

.funnel-index-summary {
  min-width: 0;
}

.funnel-kpi-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.funnel-kpi-card.blue {
  background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.funnel-kpi-card.violet {
  background: linear-gradient(135deg, #f3edff, #ffffff);
}

.funnel-kpi-card.green {
  background: linear-gradient(135deg, #ebfbf4, #ffffff);
}

.funnel-kpi-card.amber {
  background: linear-gradient(135deg, #fff6e6, #ffffff);
}

.funnel-kpi-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.funnel-kpi-card strong {
  font-size: 28px;
  line-height: 1;
}

.funnel-kpi-card small {
  color: var(--muted);
  font-size: 12px;
}

.funnel-list {
  display: grid;
  gap: 10px;
}

.funnel-list-row {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.funnel-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.funnel-row-title {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.funnel-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.funnel-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #1f3148;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  pointer-events: none;
}

.icon-btn:hover {
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--brand);
  background: #f5f9ff;
}

.icon-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.icon-btn.active {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--brand);
  background: #eef6ff;
}

.icon-btn.danger {
  color: var(--rose);
}

.funnel-builder {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.funnel-builder-shell {
  --asset-brand-primary: var(--brand);
  --asset-brand-secondary: var(--brand-soft);
  --asset-brand-accent: var(--violet);
  --asset-brand-ink: var(--ink);
}

.funnel-builder-form {
  display: grid;
  gap: 12px;
}

.funnel-builder-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.funnel-builder-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.funnel-builder-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.funnel-title-input,
.funnel-slug-inline {
  width: min(360px, 100%);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

.funnel-slug-inline {
  width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.funnel-builder-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(320px, 1fr) minmax(260px, 320px);
  gap: 14px;
  align-items: stretch;
}

.funnel-steps-panel,
.funnel-live-panel,
.funnel-editor-panel {
  min-height: 720px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.funnel-panel-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.funnel-step-list {
  display: grid;
  gap: 6px;
}

.funnel-step-list-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  width: 100%;
  min-height: 50px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.funnel-step-list-item.active {
  border-color: var(--asset-brand-primary);
  background: color-mix(in srgb, var(--asset-brand-primary) 8%, #ffffff);
  box-shadow: inset 0 0 0 1px var(--asset-brand-primary);
}

.funnel-step-list-item strong {
  color: var(--asset-brand-primary);
  font-size: 11px;
  text-transform: uppercase;
}

.funnel-step-list-item em {
  grid-column: 3;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-step-list-item small {
  grid-column: 3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.drag-handle {
  color: var(--muted);
  font-weight: 900;
}

.funnel-live-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  background: #fffdfa;
}

.funnel-live-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.segmented.mini {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.segmented.mini button {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.segmented.mini button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(7, 22, 50, 0.08);
}

.funnel-phone-preview {
  width: min(340px, 100%);
  min-height: 640px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 23, 21, 0.14);
}

.funnel-phone-inner {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 610px;
  padding: 18px 22px 26px;
  border: 1px solid color-mix(in srgb, var(--asset-brand-primary) 18%, var(--line));
  border-radius: 13px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--asset-brand-primary) 9%, transparent), transparent 30%),
    linear-gradient(180deg, #ffffff, var(--asset-brand-secondary));
}

.funnel-phone-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-phone-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--asset-brand-primary) 18%, transparent);
}

.funnel-preview-progress {
  height: 4px;
  margin: 12px 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--asset-brand-primary) 10%, #ffffff);
}

.funnel-preview-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
}

.funnel-preview-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.funnel-preview-copy h2 {
  margin: 0;
  color: var(--asset-brand-ink);
  font-size: clamp(25px, 4vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
}

.funnel-preview-copy p {
  margin: 0;
  color: color-mix(in srgb, var(--asset-brand-ink) 65%, #ffffff);
  font-size: 16px;
  line-height: 1.45;
}

.funnel-preview-copy button {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: var(--asset-brand-primary);
  font-weight: 900;
}

.funnel-editor-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.funnel-editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
}

.funnel-editor-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.funnel-editor-tabs button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(7, 22, 50, 0.08);
}

.funnel-builder-tab {
  display: none;
}

.funnel-builder-tab.active {
  display: grid;
  gap: 12px;
}

.funnel-builder-tab .funnel-step-editor {
  display: none;
}

.funnel-builder-tab .funnel-step-editor.active {
  display: grid;
}

.funnel-builder-tab .funnel-step-grid {
  gap: 10px;
}

.funnel-builder-tab .funnel-step-editor {
  padding: 0;
  border: 0;
  background: transparent;
}

.funnel-builder-tab .compact-form {
  grid-template-columns: 1fr;
}

.funnel-builder-tab .field.full {
  grid-column: auto;
}

.funnel-add-groups {
  display: grid;
  gap: 14px;
}

.funnel-add-groups > div {
  display: grid;
  gap: 8px;
}

.funnel-add-groups strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.funnel-add-grid button,
.btn.full {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.btn.full {
  width: 100%;
}

.funnel-automation-panel,
.funnel-settings-panel {
  display: grid;
  gap: 12px;
}

.compact-head {
  margin-bottom: 12px;
}

.funnel-step-grid,
.funnel-branch-map {
  display: grid;
  gap: 12px;
}

.funnel-step-editor,
.funnel-branch-step {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.funnel-step-editor {
  background: var(--soft);
}

.funnel-step-head {
  align-items: flex-start;
}

.funnel-step-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.branch-options {
  display: grid;
  gap: 8px;
}

.branch-options div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
}

.branch-options span {
  color: #344f6a;
  font-size: 13px;
}

.branch-options strong {
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
}

.funnel-card {
  display: grid;
  gap: 14px;
}

.funnel-card .row span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.funnel-flow,
.funnel-rule-grid,
.funnel-support-grid {
  display: grid;
  gap: 10px;
}

.funnel-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.funnel-rule-grid {
  grid-template-columns: 1fr;
}

.funnel-support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.funnel-support-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.funnel-support-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.funnel-link {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.funnel-link:hover {
  text-decoration: underline;
}

.lead-card {
  display: grid;
  gap: 12px;
}

.lead-card.collapsed {
  gap: 0;
}

.lead-card > .row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lead-card-details {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.lead-expand-btn {
  min-width: 96px;
  white-space: nowrap;
}

.lead-pipeline-grid,
.lead-work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.lead-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.lead-pipeline-column,
.lead-work-card,
.lead-automation-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.lead-pipeline-column > .muted,
.lead-work-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-work-card p {
  margin: 0;
}

.lead-automation-card p {
  margin: 0;
}

.lead-message-box {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.lead-sequence-step {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-sequence-step span,
.lead-sequence-step small {
  color: var(--muted);
  font-size: 12px;
}

.lead-sequence-step span {
  font-weight: 900;
  text-transform: uppercase;
}

.lead-sequence-step strong {
  font-size: 13px;
}

.lead-mini-card {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
}

.lead-mini-card:hover {
  border-color: rgba(29, 114, 245, 0.35);
  background: #ffffff;
}

.lead-mini-card span {
  color: var(--muted);
  font-size: 12px;
}

.compact-stack {
  gap: 6px;
}

.lead-filter-bar {
  grid-template-columns: minmax(150px, 0.35fr) minmax(150px, 0.35fr) minmax(220px, 1fr) auto;
}

.lead-quick-form {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lead-quick-form textarea {
  min-height: 74px;
}

.lead-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-timeline > strong {
  font-size: 13px;
}

.lead-timeline-row {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.lead-timeline-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-timeline-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.lead-timeline-row small {
  color: var(--muted);
  font-size: 12px;
}

.lead-card .row span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

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

.lead-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-meta strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.engagement-workspace {
  display: grid;
  gap: 20px;
}

.engagement-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #b9d8c9;
  border-radius: 10px;
  background: linear-gradient(110deg, #f2fbf7 0%, #f7fbff 70%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(19, 138, 92, 0.05);
}

.engagement-sync-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.engagement-sync-copy > div {
  display: grid;
  gap: 3px;
}

.engagement-sync-copy strong {
  color: #174c3a;
  font-size: 14px;
}

.engagement-sync-copy span:last-child {
  color: #5c746c;
  font-size: 12.5px;
  line-height: 1.4;
}

.engagement-live-dot {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 3px solid #c8edde;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 138, 92, 0.08);
}

.engagement-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.engagement-overview-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 112px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

button.engagement-overview-card {
  cursor: pointer;
}

button.engagement-overview-card:hover,
button.engagement-overview-card:focus-visible,
.engagement-overview-card.active {
  border-color: #9fc0f5;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.09);
  transform: translateY(-1px);
}

.engagement-overview-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
}

.engagement-overview-card.tone-violet::before {
  background: var(--violet);
}

.engagement-overview-card.tone-green::before {
  background: var(--green);
}

.engagement-overview-card.tone-coral::before {
  background: var(--coral);
}

.engagement-overview-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.engagement-overview-card > strong {
  margin-top: 2px;
  color: var(--navy-2);
  font-size: 29px;
  line-height: 1;
}

.engagement-overview-card > small {
  color: var(--muted);
  font-size: 12px;
}

.engagement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  align-items: start;
  gap: 18px;
}

.engagement-inbox-panel {
  padding: 0;
  overflow: hidden;
}

.engagement-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 17px;
}

.engagement-inbox-head h3,
.engagement-side-head h3 {
  margin: 3px 0 0;
  color: var(--navy-2);
  font-size: 19px;
}

.engagement-inbox-head p,
.engagement-channel-panel > p,
.engagement-ai-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.engagement-eyebrow {
  color: #53657d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.engagement-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  width: min(310px, 42%);
  min-width: 230px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.engagement-search:focus-within {
  border-color: #8db8ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.engagement-search > span {
  color: #7b8798;
  font-size: 17px;
}

.engagement-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.engagement-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 24px 17px;
}

.engagement-status-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #4d5c70;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
}

.engagement-status-filters button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #617089;
  background: var(--soft);
  font-size: 10px;
}

.engagement-status-filters button:hover,
.engagement-status-filters button.active {
  border-color: #9fc0f5;
  color: #17427f;
  background: var(--brand-soft);
}

.engagement-status-filters button.active span {
  color: #ffffff;
  background: var(--brand);
}

.engagement-platform-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}

.engagement-platform-filter {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.engagement-platform-filter:hover,
.engagement-platform-filter.active {
  border-color: #d2dceb;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(23, 32, 51, 0.05);
}

.engagement-platform-filter.active {
  border-color: #9fc0f5;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 3px 10px rgba(23, 32, 51, 0.05);
}

.engagement-platform-filter > span:last-child,
.engagement-platform-filter strong,
.engagement-platform-filter small {
  display: block;
  min-width: 0;
}

.engagement-platform-filter strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engagement-platform-filter small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.engagement-platform-mark {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 9px;
  color: #ffffff;
  background: #738096;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.engagement-platform-mark.large {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 12px;
}

.engagement-platform-mark.platform-facebook {
  background: #1877f2;
}

.engagement-platform-mark.platform-instagram {
  background: linear-gradient(145deg, #6a35d3 5%, #d62976 52%, #f6a337 100%);
}

.engagement-platform-mark.platform-threads {
  background: #111111;
}

.engagement-platform-mark.platform-pinterest {
  background: #bd081c;
}

.engagement-platform-mark.platform-youtube {
  background: #ff0033;
}

.engagement-platform-mark.platform-bluesky {
  background: #1686ed;
}

.engagement-platform-mark.platform-x {
  background: #111111;
}

.engagement-platform-mark.platform-all {
  color: #36506e;
  background: #eaf0f7;
  font-size: 9px;
}

.engagement-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 24px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.engagement-results-head button {
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
}

.engagement-conversation-list {
  display: grid;
  gap: 14px;
  padding: 15px 24px 24px;
}

.engagement-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}

.engagement-channel-panel {
  padding: 20px;
}

.engagement-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.engagement-side-head > span {
  display: grid;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  color: #17427f;
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 900;
}

.engagement-channel-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.engagement-channel-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.engagement-channel-row:last-child {
  border-bottom: 0;
}

.engagement-channel-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.engagement-channel-copy strong {
  font-size: 12px;
}

.engagement-channel-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engagement-channel-state {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 70px;
}

.engagement-channel-state strong {
  font-size: 13px;
}

.engagement-channel-state span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.engagement-channel-state.state-syncing span {
  color: var(--green);
}

.engagement-channel-state.state-sync-issue span,
.engagement-channel-state.state-needs-connection span {
  color: var(--coral);
}

.engagement-channel-state.state-waiting span,
.engagement-channel-state.state-insights-only span {
  color: var(--amber);
}

.engagement-ai-note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9d2ff;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f2ff, #fbfaff);
}

.engagement-ai-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--violet);
  box-shadow: 0 6px 16px rgba(98, 70, 244, 0.2);
}

.engagement-ai-note strong {
  color: #33246f;
  font-size: 12.5px;
}

.engagement-empty-state {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 52px 24px;
  place-content: center;
  border: 1px dashed #cad4e2;
  border-radius: 10px;
  background: linear-gradient(145deg, #fbfcfe, #f7f9fc);
  text-align: center;
}

.engagement-empty-state.compact {
  min-height: 240px;
}

.engagement-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid #cbdcf5;
  border-radius: 18px;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
  font-size: 23px;
}

.engagement-empty-state > strong {
  color: var(--navy-2);
  font-size: 15px;
}

.engagement-empty-state > span {
  max-width: 480px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.engagement-empty-state .btn {
  margin-top: 18px;
}

.inbox-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(23, 32, 51, 0.045);
}

.inbox-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #738096;
  content: "";
}

.inbox-card.platform-card-facebook::before {
  background: #1877f2;
}

.inbox-card.platform-card-instagram::before {
  background: #d62976;
}

.inbox-card.platform-card-threads::before {
  background: #111111;
}

.inbox-card-head,
.inbox-author-block,
.inbox-author-line,
.inbox-meta-row,
.inbox-card-actions,
.reply-draft-head,
.reply-draft-head > div {
  display: flex;
  align-items: center;
}

.inbox-card-head,
.inbox-meta-row,
.inbox-card-actions,
.reply-draft-head {
  justify-content: space-between;
}

.inbox-card-head {
  gap: 16px;
}

.inbox-author-block {
  gap: 11px;
  min-width: 0;
}

.inbox-author-block > div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inbox-author-block > div > span {
  color: var(--muted);
  font-size: 10.5px;
}

.inbox-author-line {
  gap: 7px;
  min-width: 0;
}

.inbox-author-line strong {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-author-line > span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #52627a;
  background: var(--soft);
  font-size: 9.5px;
  font-weight: 800;
}

.inbox-post-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #e9edf2;
  border-radius: 7px;
  background: #fbfcfd;
  font-size: 10.5px;
}

.inbox-post-context > span {
  color: var(--muted);
}

.inbox-post-context > strong {
  overflow: hidden;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-post-context a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.inbox-message {
  margin: 0;
  padding: 14px 15px;
  border: 0;
  border-left: 3px solid #c5d8f4;
  border-radius: 0 8px 8px 0;
  color: #253b55;
  background: #f7f9fc;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.inbox-meta-row {
  gap: 12px;
  color: var(--muted);
  font-size: 10.5px;
}

.inbox-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}

.inbox-source-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 138, 92, 0.1);
}

.inbox-card-actions {
  align-items: flex-start;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #edf0f4;
}

.inbox-primary-actions,
.inbox-secondary-actions {
  flex-wrap: wrap;
}

.inbox-card-actions .btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 10.5px;
}

.inbox-secondary-actions {
  justify-content: flex-end;
}

.btn.danger-text {
  color: #a12538;
}

.btn.danger-text:hover {
  border-color: #edb6be;
  background: #fff4f5;
}

@media (max-width: 1180px) {
  .engagement-layout {
    grid-template-columns: 1fr;
  }

  .engagement-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  }

  .engagement-ai-note {
    align-content: start;
  }

  .engagement-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
}

@media (max-width: 820px) {
  .engagement-overview-grid,
  .engagement-platform-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engagement-inbox-head {
    align-items: stretch;
    flex-direction: column;
  }

  .engagement-search {
    width: 100%;
    min-width: 0;
  }

  .engagement-sidebar {
    grid-template-columns: 1fr;
  }

  .engagement-channel-list {
    grid-template-columns: 1fr;
  }

  .inbox-card-actions {
    flex-direction: column;
  }

  .inbox-secondary-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .engagement-sync-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .engagement-overview-grid {
    grid-template-columns: 1fr;
  }

  .engagement-inbox-head,
  .engagement-status-filters,
  .engagement-platform-filters,
  .engagement-results-head,
  .engagement-conversation-list {
    padding-right: 16px;
    padding-left: 16px;
  }

  .engagement-platform-filters {
    grid-template-columns: 1fr 1fr;
  }

  .engagement-status-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .engagement-status-filters button {
    flex: 0 0 auto;
  }

  .inbox-card-head,
  .inbox-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .inbox-post-context {
    grid-template-columns: 1fr auto;
  }

  .inbox-post-context > span {
    grid-column: 1 / -1;
  }
}

.opportunity-radar-notice {
  border-color: #9ec5ff;
  background: #eef6ff;
}

.opportunity-radar-notice > div {
  display: grid;
  gap: 4px;
}

.opportunity-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.opportunity-source-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.opportunity-source-card span:not(.badge) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.opportunity-source-card .badge {
  justify-self: start;
}

.opportunity-filter-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin-bottom: 18px;
}

.opportunity-import-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.opportunity-import-form .full-span {
  grid-column: 1 / -1;
}

.opportunity-import-form textarea {
  min-height: 132px;
  resize: vertical;
}

.opportunity-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  border-left: 4px solid #8ba2bc;
}

.opportunity-card.intent-high {
  border-left-color: #dc4c36;
}

.opportunity-card.intent-medium {
  border-left-color: #df9b20;
}

.opportunity-card.intent-low {
  border-left-color: #39866e;
}

.opportunity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.opportunity-card-head > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.opportunity-score {
  display: grid;
  justify-items: center;
  flex: 0 0 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.opportunity-score strong {
  font-size: 24px;
  line-height: 1;
}

.opportunity-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-message {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  color: #203b57;
  background: var(--soft);
  line-height: 1.55;
  white-space: pre-wrap;
}

.opportunity-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.opportunity-insight-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.opportunity-insight-grid span,
.opportunity-insight-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.opportunity-insight-grid span {
  text-transform: uppercase;
}

.opportunity-insight-grid strong {
  font-size: 13px;
  line-height: 1.45;
}

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

.opportunity-drafts textarea {
  min-height: 126px;
}

.opportunity-drafts .btn {
  justify-self: start;
}

@media (max-width: 980px) {
  .opportunity-source-grid,
  .opportunity-insight-grid,
  .opportunity-drafts {
    grid-template-columns: 1fr;
  }

  .opportunity-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .opportunity-import-form {
    grid-template-columns: 1fr;
  }

  .opportunity-import-form .full-span {
    grid-column: auto;
  }

  .opportunity-filter-bar {
    grid-template-columns: 1fr;
  }

  .opportunity-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .opportunity-score {
    justify-self: start;
  }
}

.reply-draft {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #b8d7ff;
  border-radius: 8px;
  background: var(--brand-soft);
}

.reply-draft textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid #a7d8cf;
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
}

.reply-draft span {
  color: #17427f;
  font-size: 12px;
  font-weight: 700;
}

.reply-draft-head {
  gap: 12px;
}

.reply-draft-head > div {
  gap: 7px;
}

.reply-draft-head > div span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--violet);
  font-size: 10px;
}

.reply-draft-head small {
  color: #5a55a4;
  font-size: 10px;
  font-weight: 800;
}

.inbox-card .reply-draft {
  padding: 14px;
  border-color: #d5ccff;
  border-radius: 9px;
  background: #f7f5ff;
}

.inbox-card .reply-draft textarea {
  min-height: 92px;
  border-color: #cec7ef;
  background: #ffffff;
  font-size: 12.5px;
  line-height: 1.5;
}

.reply-delivery {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.reply-delivery span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.reply-delivery.success {
  border-color: #9ed9c4;
  background: #ecf9f4;
}

.reply-delivery.failed {
  border-color: #f1b5b5;
  background: #fff1f1;
}

.reply-delivery.manual {
  background: var(--soft);
}

.performance-card,
.performance-mini-card,
.tracking-link-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.analytics-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.analytics-tabs button {
  padding: 0 4px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.analytics-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}

.analytics-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.analytics-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.analytics-filter-group button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.analytics-filter-group button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(7, 22, 50, 0.08);
}

.ad-plan-toolbar {
  align-items: flex-end;
}

.compact-search {
  min-width: 220px;
  margin: 0;
}

.compact-search input {
  min-height: 36px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.analytics-chart-wrap {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.analytics-chart {
  min-width: 760px;
  width: 100%;
  height: auto;
}

.analytics-chart .analytics-grid line {
  stroke: #e7edf5;
  stroke-dasharray: 3 5;
}

.analytics-post-bars rect {
  fill: rgba(7, 22, 50, 0.08);
}

.analytics-chart .line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-chart .line.views {
  stroke: #1477f2;
}

.analytics-chart .line.likes {
  stroke: #ef4444;
}

.analytics-chart .line.comments {
  stroke: #7c3aed;
}

.analytics-chart .line.reposts {
  stroke: #0ea5a4;
}

.analytics-labels text {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: middle;
}

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.analytics-legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.analytics-legend .views {
  background: #1477f2;
}

.analytics-legend .likes {
  background: #ef4444;
}

.analytics-legend .comments {
  background: #7c3aed;
}

.analytics-legend .reposts {
  background: #0ea5a4;
}

.analytics-legend .posts {
  background: rgba(7, 22, 50, 0.15);
}

.analytics-empty-chart {
  padding: 18px;
}

.analytics-post-list {
  display: grid;
  gap: 8px;
}

.analytics-post-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.analytics-post-rank {
  color: var(--muted);
  font-weight: 900;
}

.analytics-post-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-post-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.analytics-post-copy strong,
.analytics-post-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-post-copy span,
.analytics-post-metrics {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analytics-post-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.performance-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.performance-status-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.performance-status-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.conversion-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.conversion-action-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.conversion-action-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.conversion-action-card p {
  margin: 0;
}

.conversion-filter-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

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

.health-card {
  display: grid;
  gap: 14px;
}

.health-legend {
  margin-bottom: 16px;
}

.health-legend summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.health-legend summary::-webkit-details-marker {
  display: none;
}

.health-legend summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.health-legend[open] summary {
  margin-bottom: 14px;
}

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

.health-legend-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.health-legend-item > span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.health-legend .notice {
  margin-top: 12px;
}

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

.health-capability {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.health-capability span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.performance-card .row span,
.performance-mini-card .row span,
.tracking-link-card .row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.tracking-url {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #17427f;
  background: var(--brand-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.performance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.performance-kpi {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.performance-kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.performance-kpi strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.activity {
  display: grid;
  gap: 12px;
}

.activity-log {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  line-height: 1.45;
}

.activity-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 170px;
  padding: 5px 10px;
  border: 1px solid #d7e2f1;
  border-radius: 999px;
  color: #31415d;
  background: #edf3fa;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.activity-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: 66px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.activity-entry strong,
.activity-entry span,
.activity-entry small {
  display: block;
}

.activity-entry span {
  margin-top: 3px;
  color: #5f6d86;
}

.activity-entry small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: #334155;
  font-size: 12px;
  font-weight: 800;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #c7d0d9;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy-2);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform 180ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px 18px;
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .sidebar .brand-lockup {
    margin: 0;
  }

  .sidebar .sidebar-brand {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    text-align: left;
  }

  .sidebar .sidebar-brand .logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }

  .sidebar .sidebar-brand p {
    margin: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 800;
  }

  .sidebar > .workspace-select,
  .sidebar > .nav,
  .sidebar > .sidebar-footer {
    display: none;
  }

  .sidebar.mobile-open > .workspace-select,
  .sidebar.mobile-open > .nav,
  .sidebar.mobile-open > .sidebar-footer {
    display: grid;
  }

  .sidebar.mobile-open > .workspace-select {
    display: block;
    margin-top: 18px;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
  }

  .metrics,
  .dashboard-grid,
  .integration-grid,
  .integration-detail-grid,
  .adapter-grid,
  .secrets-grid,
  .deployment-grid,
  .campaign-review-grid,
  .campaign-group-grid,
  .campaign-history-grid,
  .check-grid,
  .launch-check-grid,
  .ad-detail-grid,
  .funnel-dashboard-grid,
  .funnel-flow,
  .funnel-support-grid,
  .lead-meta-grid,
  .lead-pipeline-grid,
  .lead-work-grid,
  .morning-grid,
  .morning-metrics,
  .performance-kpis,
  .performance-status-grid,
  .conversion-action-grid,
  .funnel-builder-layout,
  .health-grid,
  .health-legend-grid,
  .health-capability-grid,
  .studio-guide,
  .two-col,
  .table-row {
    grid-template-columns: 1fr;
  }

  .integration-switcher {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-select-field {
    min-width: 0;
    width: 100%;
  }

  .integration-center-mobile {
    display: block;
    margin-bottom: 14px;
  }

  .integration-center-layout {
    grid-template-columns: 1fr;
  }

  .integration-center-nav {
    display: none;
  }

  .integration-provider-content-grid,
  .integration-credential-grid {
    grid-template-columns: 1fr;
  }

  .integration-center-metrics,
  .integration-provider-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-steps-panel,
  .funnel-live-panel,
  .funnel-editor-panel {
    min-height: auto;
  }

  .funnel-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-create-form,
  .conversion-decision-layout,
  .conversion-report-grid {
    grid-template-columns: 1fr;
  }

  .ad-create-aside {
    position: static;
  }

  .ad-create-progress,
  .ad-campaign-pulse,
  .conversion-executive-metrics,
  .conversion-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-create-progress > div:nth-child(2n),
  .ad-campaign-pulse > div:nth-child(2n),
  .conversion-executive-metrics > div:nth-child(2n),
  .conversion-journey-stage:nth-child(2n) {
    border-right: 0;
  }

  .ad-create-progress > div,
  .ad-campaign-pulse > div,
  .conversion-executive-metrics > div,
  .conversion-journey-stage {
    border-bottom: 1px solid var(--line);
  }

  .conversion-journey-stage {
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .ad-create-progress > div:nth-last-child(-n + 2),
  .ad-campaign-pulse > div:last-child,
  .conversion-executive-metrics > div:last-child,
  .conversion-journey-stage:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .content {
    padding: 18px;
  }

  .ad-create-hero,
  .ad-campaign-index-hero,
  .conversion-command-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ad-create-hero h3,
  .ad-campaign-index-hero h3,
  .conversion-command-hero h3 {
    font-size: 25px;
  }

  .ad-create-hero-actions,
  .ad-campaign-index-actions,
  .conversion-command-actions {
    justify-content: flex-start;
  }

  .ad-create-progress,
  .ad-campaign-pulse,
  .conversion-executive-metrics,
  .conversion-journey,
  .ad-objective-grid,
  .ad-platform-grid {
    grid-template-columns: 1fr;
  }

  .ad-create-progress > div,
  .ad-create-progress > div:nth-child(2n),
  .ad-campaign-pulse > div,
  .ad-campaign-pulse > div:nth-child(2n),
  .conversion-executive-metrics > div,
  .conversion-executive-metrics > div:nth-child(2n),
  .conversion-journey-stage,
  .conversion-journey-stage:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversion-journey-stage,
  .conversion-journey-stage:nth-child(2n) {
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .ad-create-progress > div:last-child,
  .ad-campaign-pulse > div:last-child,
  .conversion-executive-metrics > div:last-child,
  .conversion-journey-stage:last-child {
    border-bottom: 0;
  }

  .ad-create-section {
    padding: 18px;
  }

  .integration-center-hero,
  .integration-provider-header,
  .integration-security-strip,
  .integration-diagnostics-link {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-provider-header {
    display: flex;
  }

  .integration-provider-badges {
    flex-wrap: wrap;
  }

  .integration-center-metrics,
  .integration-provider-readiness,
  .integration-directory-grid {
    grid-template-columns: 1fr;
  }

  .integration-directory-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .integration-directory-status {
    grid-column: 2;
    justify-self: start;
  }

  .integration-definition-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .integration-security-strip > div,
  .integration-diagnostics-link > div {
    align-items: flex-start;
  }

  .activity-item.labeled {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .activity-item.labeled .activity-label {
    justify-self: start;
    max-width: 100%;
  }

  .sidebar-mobile-head {
    gap: 10px;
  }

  .sidebar .sidebar-brand p {
    display: none;
  }

  .sidebar .sidebar-brand .logo-mark {
    width: 54px;
    height: 54px;
  }

  .metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-head > .actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .calendar-view-control {
    width: 100%;
  }

  .calendar-view-control button {
    flex: 1;
  }

  .day-agenda-item {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .day-agenda-time {
    grid-column: 1 / -1;
  }

  .funnel-builder-topbar,
  .funnel-builder-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-title-input,
  .funnel-slug-inline {
    width: 100%;
  }

  .funnel-step-list {
    grid-template-columns: 1fr;
  }

  .funnel-phone-preview {
    min-height: 520px;
  }

  .funnel-phone-inner {
    min-height: 490px;
  }

  .asset-slide-editor-row {
    grid-template-columns: 1fr;
  }

  .asset-editor-mini-preview {
    width: min(220px, 100%);
  }

  .filter-bar,
  .conversion-filter-bar,
  .lead-filter-bar,
  .history-row {
    grid-template-columns: 1fr;
  }

  .funnel-row-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .funnel-index-actions,
  .funnel-index-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .funnel-index-actions {
    flex-direction: column;
  }

  .funnel-row-actions {
    justify-content: flex-start;
  }

  .analytics-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-filter-group {
    width: 100%;
  }

  .analytics-filter-group button {
    flex: 1;
  }

  .analytics-post-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .analytics-post-rank {
    display: none;
  }

  .analytics-post-metrics {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .topbar-actions,
  .composer-actions {
    width: 100%;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions .session-chip {
    display: none;
  }

  .deployment-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-preview-stage {
    grid-template-columns: 1fr;
  }

  .deployment-summary {
    justify-items: start;
  }

  .user-select,
  .session-chip {
    max-width: none;
    width: 100%;
  }

  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .tour-backdrop {
    place-items: end center;
    padding: 14px;
  }

  .tour-panel {
    width: min(100%, 560px);
  }

  .tour-step-list {
    grid-template-columns: 1fr;
  }

  .tour-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .manual-timing-grid {
    grid-template-columns: 1fr;
  }

  .automatic-status-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .queue-platform-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-platform-filter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .queue-platform-filter-button:first-child {
    grid-column: 1 / -1;
  }

  .duplicate-schedule-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .integration-readiness-list {
    grid-template-columns: 1fr;
  }

  .btn {
    flex: 1 1 auto;
  }
}
.threads-compose-layout {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.threads-native-composer,
.threads-workflow-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
}

.threads-composer-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.threads-composer-topbar > strong {
  color: #111827;
  font-size: 17px;
}

.threads-text-button,
.threads-icon-button,
.threads-toolbar button,
.threads-add-thread {
  border: 0;
  background: transparent;
  color: #111827;
}

.threads-text-button {
  justify-self: start;
  font-size: 16px;
  cursor: pointer;
}

.threads-top-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.threads-icon-button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
}

.threads-author-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 20px;
}

.threads-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  object-fit: cover;
}

.threads-avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.threads-author-copy {
  position: relative;
  min-width: 0;
}

.threads-author-copy::before {
  position: absolute;
  top: 50px;
  bottom: 38px;
  left: -34px;
  width: 2px;
  background: #e5e7eb;
  content: "";
}

.threads-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #9ca3af;
  font-size: 14px;
}

.threads-identity strong {
  color: #111827;
}

.threads-chevron {
  font-size: 20px;
  line-height: 1;
}

.threads-author-copy textarea {
  width: 100%;
  min-height: 170px;
  padding: 4px 0;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.threads-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.threads-toolbar button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #8b949e;
  font-size: 18px;
  cursor: pointer;
}

.threads-toolbar button:hover {
  background: #f3f4f6;
  color: #111827;
}

.threads-toolbar button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.threads-toolbar button:disabled:hover {
  background: transparent;
  color: #8b949e;
}

.threads-toolbar button span {
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.threads-add-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  color: #9ca3af;
  cursor: pointer;
}

.threads-mini-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c7cbd1;
  color: #fff;
  font-size: 12px;
}

.threads-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
}

.threads-reply-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.threads-reply-control label {
  color: #737780;
  font-weight: 700;
}

.threads-reply-control select {
  border: 0;
  background: transparent;
  color: #737780;
}

.threads-publish-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7280;
  font-size: 12px;
}

.threads-post-button {
  min-width: 70px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.threads-post-button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
}

.threads-workflow-card {
  padding: 22px;
}

@media (max-width: 720px) {
  .threads-compose-layout {
    gap: 16px;
  }

  .threads-composer-topbar {
    padding: 0 14px;
  }

  .threads-author-row {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px 14px;
  }

  .threads-avatar {
    width: 34px;
    height: 34px;
  }

  .threads-author-copy::before {
    left: -28px;
  }

  .threads-composer-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .threads-publish-summary {
    width: 100%;
    flex-wrap: wrap;
  }

  .threads-post-button {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   Creative Studio + Asset Library
   -------------------------------------------------------------------------- */

.view-studio,
.view-asset-library {
  background:
    radial-gradient(circle at 88% 5%, rgba(124, 92, 255, 0.07), transparent 26%),
    #f7f7fa;
}

.view-studio .topbar,
.view-asset-library .topbar {
  border-bottom-color: rgba(24, 24, 35, 0.08);
  background: rgba(250, 250, 252, 0.9);
}

.view-studio .content,
.view-asset-library .content {
  max-width: 1600px;
  padding-top: 28px;
}

.creative-studio-page,
.asset-library-page {
  --creative-black: #15151e;
  --creative-ink: #20202b;
  --creative-muted: #737387;
  --creative-purple: #7657ff;
  --creative-purple-dark: #5d3df2;
  --creative-lilac: #eeeaff;
  --creative-lime: #c9f06f;
  --creative-line: #e7e5ed;
}

.creative-studio-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 22%, rgba(118, 87, 255, 0.72), transparent 31%),
    radial-gradient(circle at 46% 110%, rgba(51, 103, 255, 0.28), transparent 38%),
    #15151e;
  box-shadow: 0 28px 70px rgba(26, 22, 50, 0.18);
}

.creative-studio-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 60%, #000);
  content: "";
}

.creative-studio-hero::after {
  position: absolute;
  z-index: -1;
  top: -130px;
  right: -110px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.025), 0 0 0 92px rgba(255, 255, 255, 0.018);
  content: "";
}

.creative-hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: clamp(44px, 5vw, 72px);
}

.creative-kicker,
.asset-library-kicker,
.creative-section-kicker {
  color: var(--creative-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.creative-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c8bcff;
}

.creative-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--creative-lime);
  box-shadow: 0 0 0 5px rgba(201, 240, 111, 0.12);
}

.creative-hero-copy h2 {
  max-width: 720px;
  margin: 20px 0 20px;
  color: #fff;
  font-size: clamp(48px, 5.1vw, 76px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.creative-hero-copy h2 em,
.asset-library-hero-copy h2 em {
  color: #a993ff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.creative-hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #bdbdca;
  font-size: 16px;
  line-height: 1.65;
}

.creative-hero-actions,
.asset-library-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.creative-hero-primary,
.asset-library-create {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  color: #17151f;
  background: var(--creative-lime);
  box-shadow: 0 10px 24px rgba(201, 240, 111, 0.14);
}

.creative-hero-primary:hover,
.asset-library-create:hover {
  color: #17151f;
  background: #d7f892;
  transform: translateY(-2px);
}

.creative-hero-library,
.asset-library-manual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.creative-ai-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
  color: #8e8e9e;
  font-size: 11px;
}

.creative-ai-status strong {
  color: #b7b7c3;
}

.creative-ai-status.is-ready strong {
  color: #d8f6a0;
}

.creative-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7aa4e;
}

.creative-ai-status.is-ready .creative-ai-dot {
  background: var(--creative-lime);
  box-shadow: 0 0 0 4px rgba(201, 240, 111, 0.1);
}

.creative-hero-visual {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 36px 42px 36px 0;
}

.creative-slide-stack {
  position: relative;
  width: min(310px, 72%);
  aspect-ratio: 4 / 5;
  transform: rotate(2deg) translateY(4px);
}

.creative-slide-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.creative-slide-back {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #3b2e83;
  transform: translate(46px, -16px) rotate(9deg);
}

.creative-slide-mid {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #28233c;
  transform: translate(23px, -8px) rotate(4.5deg);
}

.creative-slide-front {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(201, 240, 111, 0.15) 48% 49%, transparent 49%),
    radial-gradient(circle at 85% 10%, rgba(201, 240, 111, 0.28), transparent 25%),
    #7657ff;
  box-shadow: 0 30px 50px rgba(4, 3, 15, 0.34);
}

.creative-slide-front > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.creative-slide-front > div b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #17151f;
  background: var(--creative-lime);
  font-size: 10px;
}

.creative-slide-front > strong {
  font-size: clamp(28px, 2.5vw, 42px);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.creative-slide-front > strong em {
  color: var(--creative-lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.creative-slide-front > small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.creative-orbit {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e8e5f8;
  background: rgba(24, 22, 36, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creative-orbit-hook { top: 70px; left: 7%; }
.creative-orbit-caption { right: 6%; bottom: 88px; }
.creative-orbit-cta { right: 13%; top: 78px; color: #1b1a20; background: var(--creative-lime); }

.creative-workflow {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1050px, calc(100% - 56px));
  margin: -24px auto 32px;
  padding: 17px 24px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(24, 24, 35, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(28, 25, 46, 0.11);
  backdrop-filter: blur(16px);
}

.creative-workflow > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.creative-workflow > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #a3a2b0;
  background: #f2f1f5;
  font-size: 10px;
  font-weight: 900;
}

.creative-workflow > div.is-active > span {
  color: #fff;
  background: var(--creative-purple);
  box-shadow: 0 7px 14px rgba(118, 87, 255, 0.25);
}

.creative-workflow strong,
.creative-workflow small {
  display: block;
  white-space: nowrap;
}

.creative-workflow strong { color: var(--creative-ink); font-size: 12px; }
.creative-workflow small { margin-top: 2px; color: #a09fad; font-size: 10px; }
.creative-workflow > i { height: 1px; background: #e3e1e9; }

.creative-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  scroll-margin-top: 110px;
}

.creative-builder-panel,
.creative-option-panel,
.creative-inspiration-section > .panel {
  border-color: rgba(29, 28, 43, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(29, 28, 43, 0.07);
}

.creative-builder-panel {
  padding: 34px;
}

.creative-builder-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
}

.creative-builder-heading h3,
.creative-director-card h3,
.creative-option-panel h3 {
  margin: 7px 0 8px;
  color: var(--creative-ink);
  font-size: 25px;
  letter-spacing: -0.035em;
}

.creative-builder-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--creative-muted);
  font-size: 13px;
  line-height: 1.55;
}

.creative-builder-time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #706e7f;
  background: #f3f2f6;
  font-size: 10px;
  font-weight: 850;
}

.creative-form-section {
  padding: 28px 0 12px;
  border-top: 1px solid var(--creative-line);
}

.creative-form-section-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.creative-form-section-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ddd8f4;
  border-radius: 11px;
  color: var(--creative-purple-dark);
  background: #f7f5ff;
  font-size: 10px;
  font-weight: 900;
}

.creative-form-section-head strong,
.creative-form-section-head small {
  display: block;
}

.creative-form-section-head strong {
  color: var(--creative-ink);
  font-size: 14px;
}

.creative-form-section-head small {
  margin-top: 3px;
  color: var(--creative-muted);
  font-size: 11px;
}

.creative-title-field input,
.creative-prompt-field textarea {
  border-color: #dcdae4;
  border-radius: 12px;
  background: #fbfbfd;
}

.creative-title-field input {
  min-height: 54px;
  padding-inline: 16px;
  font-size: 15px;
}

.creative-prompt-field textarea {
  min-height: 180px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.creative-studio-page .field label {
  color: #565566;
  letter-spacing: 0.07em;
}

.creative-studio-page .quiz-field {
  margin-bottom: 14px;
}

.creative-studio-page .quiz-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.creative-studio-page [data-quiz-field="ctaGoal"] .quiz-card-grid,
.creative-studio-page [data-quiz-field="visualStyle"] .quiz-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.creative-studio-page .quiz-card-option {
  display: flex;
  align-items: flex-start;
  min-height: 142px;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-color: #e3e0e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(25, 23, 38, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.creative-studio-page .quiz-card-option:hover {
  border-color: #b8a9ff;
  box-shadow: 0 10px 24px rgba(64, 44, 144, 0.09);
  transform: translateY(-2px);
}

.creative-studio-page .quiz-card-option:has(input:checked) {
  border-color: var(--creative-purple);
  background: linear-gradient(155deg, #fbfaff, #f0ecff);
  box-shadow: inset 0 0 0 1px var(--creative-purple), 0 9px 22px rgba(93, 61, 242, 0.09);
}

.quiz-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: auto;
}

.creative-studio-page .quiz-card-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #605e6c;
  background: #f2f1f5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.creative-studio-page .quiz-card-option:has(input:checked) .quiz-card-icon {
  color: #fff;
  background: var(--creative-purple);
}

.creative-studio-page [data-quiz-field="slideCount"] .quiz-card-icon {
  color: var(--creative-purple-dark);
  font-size: 13px;
}

.creative-studio-page .quiz-card-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #ddd9e6;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.creative-studio-page .quiz-card-option:has(input:checked) .quiz-card-check {
  border-color: var(--creative-purple);
  color: #fff;
  background: var(--creative-purple);
}

.creative-studio-page .quiz-card-option > strong {
  color: #262431;
  font-size: 11px;
  letter-spacing: 0.015em;
  line-height: 1.25;
  text-transform: uppercase;
}

.creative-studio-page .quiz-card-option > span:last-child {
  margin: 0;
  color: #858391;
  font-size: 10px;
  line-height: 1.4;
}

.creative-inline-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 4px;
  color: #7c7989;
  font-size: 10px;
}

.creative-inline-note > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aaa5bb;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
}

.creative-prompt-section {
  padding-bottom: 2px;
}

.creative-generate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px -34px -34px;
  padding: 20px 34px;
  border-radius: 0 0 22px 22px;
  background: #171720;
}

.creative-generate-bar > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.creative-generate-bar > div > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #777683;
}

.creative-generate-bar > div > span:first-child { background: var(--creative-lime); }
.creative-generate-bar small { margin-left: 7px; color: #8f8e9a; font-size: 10px; }

.creative-generate-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  color: #17151f;
  background: var(--creative-lime);
}

.creative-generate-button:hover {
  color: #17151f;
  background: #d8f996;
}

.creative-studio-aside {
  display: grid;
  gap: 20px;
}

.creative-director-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(118, 87, 255, 0.42), transparent 36%),
    #191922;
  box-shadow: 0 20px 44px rgba(25, 25, 34, 0.14);
}

.creative-director-card::after {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--creative-lime);
  content: "✦";
  font-size: 20px;
}

.creative-director-card .creative-section-kicker { color: #a997ff; }
.creative-director-card h3 { max-width: 260px; color: #fff; }

.creative-output-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.creative-output-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.creative-output-list > div > span {
  color: #767483;
  font-size: 10px;
  font-weight: 900;
}

.creative-output-list strong,
.creative-output-list small { display: block; }
.creative-output-list strong { color: #e8e7ee; font-size: 12px; }
.creative-output-list small { margin-top: 4px; color: #858391; font-size: 10px; line-height: 1.4; }

.creative-director-footer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin: 20px -8px -8px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.creative-director-footer > span { color: var(--creative-lime); }
.creative-director-footer p { margin: 0; color: #9d9ba9; font-size: 10px; line-height: 1.5; }

.creative-option-panel {
  padding: 26px;
}

.creative-option-panel .panel-head {
  margin-bottom: 18px;
}

.creative-option-panel .studio-help-list > div {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--creative-line);
  border-radius: 0;
}

.creative-option-panel .studio-help-list p { margin: 0; }
.creative-option-panel .studio-help-list strong { font-size: 11px; }
.creative-option-panel .studio-help-list span { font-size: 10px; }
.creative-option-panel .studio-help-index { color: #aaa7b4; font-size: 9px; font-weight: 900; }

.creative-style-guide {
  margin-top: 14px;
  border-top: 1px solid var(--creative-line);
}

.creative-style-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 4px;
  color: var(--creative-purple-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  list-style: none;
}

.creative-style-guide summary::-webkit-details-marker { display: none; }
.creative-style-guide[open] summary span { transform: rotate(45deg); }
.creative-style-guide .studio-help-list > div { grid-template-columns: 1fr; }

.creative-inspiration-section {
  margin-top: 24px;
}

.creative-inspiration-section > .panel {
  padding: 30px;
}

/* Asset library */

.asset-library-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  min-height: 340px;
  overflow: hidden;
  padding: clamp(38px, 5vw, 64px);
  border: 1px solid #ded9f5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 97% 0, rgba(118, 87, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #f3f1ff, #e9e5ff 56%, #f8f7fd);
  box-shadow: 0 24px 60px rgba(58, 43, 120, 0.1);
}

.asset-library-hero::after {
  position: absolute;
  right: 34%;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(118, 87, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(118, 87, 255, 0.035), 0 0 0 84px rgba(118, 87, 255, 0.025);
  content: "";
}

.asset-library-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.asset-library-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-library-kicker span {
  color: var(--creative-lime);
  filter: drop-shadow(0 0 0 var(--creative-purple));
}

.asset-library-hero-copy h2 {
  margin: 15px 0 16px;
  color: var(--creative-ink);
  font-size: clamp(46px, 4.6vw, 70px);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.asset-library-hero-copy p {
  max-width: 570px;
  margin: 0;
  color: #6e6b7b;
  font-size: 14px;
  line-height: 1.6;
}

.asset-library-create {
  color: #fff;
  background: var(--creative-purple);
  box-shadow: 0 10px 24px rgba(118, 87, 255, 0.2);
}

.asset-library-create:hover {
  color: #fff;
  background: var(--creative-purple-dark);
}

.asset-library-manual {
  border-bottom-color: rgba(44, 41, 60, 0.28);
  color: #34313f;
}

.asset-library-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  gap: 10px;
}

.asset-library-stats > div {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(48, 42, 82, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 34px rgba(44, 35, 92, 0.07);
  backdrop-filter: blur(14px);
}

.asset-library-stats > div::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #aaa2d6;
  content: "";
}

.asset-library-stats > div.is-scheduled::before { background: #7657ff; }
.asset-library-stats > div.is-published::before { background: #8bb43a; }

.asset-library-stats span {
  color: #777486;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-library-stats strong {
  color: #24212e;
  font-size: 52px;
  letter-spacing: -0.065em;
  line-height: 1;
}

.asset-library-stats small {
  color: #8e8a9a;
  font-size: 10px;
}

.asset-library-toolbar {
  position: sticky;
  z-index: 4;
  top: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 8px;
  padding: 12px;
  border: 1px solid rgba(29, 28, 43, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 12px 32px rgba(30, 28, 45, 0.07);
  backdrop-filter: blur(18px);
}

.asset-library-search {
  display: grid;
  grid-template-columns: 28px minmax(180px, 380px) auto;
  align-items: center;
  gap: 3px;
  min-width: min(520px, 48%);
}

.asset-library-search > span {
  color: #747181;
  font-size: 22px;
  text-align: center;
}

.asset-library-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--creative-ink);
  background: transparent;
  font-size: 12px;
}

.asset-library-search small {
  padding: 5px 9px;
  border-radius: 999px;
  color: #777482;
  background: #f1f0f4;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.asset-library-jump {
  display: flex;
  align-items: center;
  gap: 5px;
}

.asset-library-jump button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 10px;
  color: #777482;
  background: transparent;
  font-size: 10px;
  font-weight: 850;
}

.asset-library-jump button span {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #eeedf1;
  font-size: 9px;
}

.asset-library-jump button:hover,
.asset-library-jump button.is-active {
  color: #fff;
  background: var(--creative-ink);
}

.asset-library-jump button.is-active span { color: #2d2939; background: var(--creative-lime); }

.asset-library-collections {
  display: grid;
  gap: 4px;
}

.asset-library-section {
  padding: 42px 0 32px;
  scroll-margin-top: 170px;
  border-top: 1px solid #dedce5;
}

.asset-library-section:first-child { border-top: 0; }

.asset-library-section-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.asset-library-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--creative-purple-dark);
  background: var(--creative-lilac);
  font-size: 16px;
}

.asset-library-section-scheduled .asset-library-section-icon { color: #855c00; background: #fff2ce; }
.asset-library-section-published .asset-library-section-icon { color: #34721b; background: #e9f8df; }

.asset-library-section-head h3 {
  margin: 0;
  color: var(--creative-ink);
  font-size: 20px;
  letter-spacing: -0.035em;
}

.asset-library-section-head > div > span {
  display: block;
  margin-top: 4px;
  color: #83808f;
  font-size: 11px;
}

.asset-library-page .asset-library-count {
  min-height: 28px;
  border: 1px solid #e4e1e9;
  color: #777482;
  background: #fff;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.asset-library-page .asset-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.asset-library-page .asset-collapsible-card {
  position: relative;
  border-color: #e1dfe7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34, 30, 56, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.asset-library-page .asset-collapsible-card:hover {
  border-color: #c5baf9;
  box-shadow: 0 18px 42px rgba(45, 35, 96, 0.1);
  transform: translateY(-3px);
}

.asset-library-page .asset-collapsible-card[open] {
  transform: none;
  box-shadow: 0 22px 54px rgba(34, 30, 56, 0.1);
}

.asset-library-page .asset-card-summary {
  position: relative;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: stretch;
  min-height: 190px;
  gap: 16px;
  padding: 13px;
}

.asset-library-page .asset-collapsible-card[open] .asset-card-summary {
  grid-template-columns: 170px minmax(0, 1fr) auto;
  min-height: 205px;
  padding: 16px;
}

.asset-library-page .asset-card-summary:hover { background: transparent; }

.asset-card-cover {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 12px;
  background: #24212f;
}

.asset-card-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: space-between;
  padding: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(201, 240, 111, 0.32), transparent 26%),
    linear-gradient(145deg, #6f51f2, #312660);
}

.asset-card-cover.is-fallback .asset-card-cover-fallback { display: grid; }
.asset-card-cover-fallback span { font-size: 10px; font-weight: 900; }
.asset-card-cover-fallback strong { align-self: end; font-size: 19px; letter-spacing: -0.05em; line-height: 1; }

.asset-card-cover-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 17, 25, 0.72);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 900;
}

.asset-library-page .asset-card-summary-main {
  align-content: center;
  gap: 7px;
  padding: 5px 0;
}

.asset-library-page .asset-card-eyebrow {
  color: var(--creative-purple-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-library-page .asset-card-summary-main > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #292633;
  font-size: 16px;
  letter-spacing: -0.025em;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.asset-library-page .asset-card-summary-main > span:not(.asset-card-eyebrow) {
  color: #8b8896;
  font-size: 10px;
}

.asset-card-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.asset-card-mini-tags > span {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #696675;
  background: #f2f1f5;
  font-size: 8px;
  font-weight: 750;
}

.asset-library-page .asset-card-summary-side {
  position: absolute;
  top: 20px;
  right: 20px;
  align-items: flex-end;
  flex-direction: column;
}

.asset-library-page .asset-collapsible-card:not([open]) .asset-card-summary-side .status {
  display: none;
}

.asset-library-page .asset-card-chevron {
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(23, 22, 31, 0.72);
  backdrop-filter: blur(7px);
}

.asset-library-page .asset-collapsible-card:not([open]) .asset-card-chevron {
  position: absolute;
  top: 1px;
  right: 1px;
}

.asset-library-page .asset-card-body {
  padding: 24px;
  border-top-color: #e8e5ed;
  background: #fbfafd;
}

.asset-library-page .asset-card-body .rendered-asset-preview {
  border-radius: 14px;
}

.asset-library-page .asset-library-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 220px;
  place-items: center;
  align-content: center;
  padding: 32px;
  border: 1px dashed #cbc7d8;
  border-radius: 18px;
  color: #767281;
  background:
    linear-gradient(135deg, rgba(118, 87, 255, 0.035), transparent 55%),
    rgba(255, 255, 255, 0.58);
  text-align: center;
}

.asset-library-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 13px;
  color: var(--creative-purple-dark);
  background: var(--creative-lilac);
  font-size: 16px;
}

.asset-library-empty > strong { color: #302d3a; font-size: 15px; }
.asset-library-empty > p { max-width: 480px; margin: 7px 0 16px; font-size: 11px; line-height: 1.5; }

.asset-library-page .asset-collapsible-card[hidden] {
  display: none !important;
}

@media (max-width: 1280px) {
  .creative-studio-page .quiz-card-grid,
  .creative-studio-page [data-quiz-field="ctaGoal"] .quiz-card-grid,
  .creative-studio-page [data-quiz-field="visualStyle"] .quiz-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-library-page .asset-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-library-stats {
    grid-template-columns: 1fr;
  }

  .asset-library-stats > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    gap: 4px 12px;
    padding: 14px 16px;
  }

  .asset-library-stats strong { grid-row: 1 / 3; grid-column: 2; font-size: 38px; }
}

@media (max-width: 1060px) {
  .creative-studio-hero { grid-template-columns: minmax(0, 1fr) 330px; }
  .creative-studio-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .creative-hero-copy { padding: 44px; }
  .creative-slide-stack { width: 250px; }
  .asset-library-hero { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 860px) {
  .view-studio .content,
  .view-asset-library .content { padding-inline: 16px; }

  .creative-studio-hero,
  .asset-library-hero,
  .creative-studio-layout {
    grid-template-columns: 1fr;
  }

  .creative-studio-hero { min-height: auto; }
  .creative-hero-visual { min-height: 360px; padding: 10px 0 48px; }
  .creative-slide-stack { width: 240px; }

  .creative-workflow {
    width: calc(100% - 28px);
    gap: 9px;
    padding-inline: 14px;
  }

  .creative-workflow small { display: none; }
  .creative-studio-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .asset-library-hero { gap: 28px; }
  .asset-library-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-library-stats > div { display: flex; min-height: 130px; }
  .asset-library-stats strong { font-size: 38px; }
  .asset-library-toolbar { top: 78px; align-items: stretch; flex-direction: column; }
  .asset-library-search { min-width: 0; }
  .asset-library-jump { overflow-x: auto; }
}

@media (max-width: 640px) {
  .creative-studio-hero,
  .asset-library-hero { border-radius: 20px; }

  .creative-hero-copy,
  .asset-library-hero { padding: 30px 24px; }

  .creative-hero-copy h2,
  .asset-library-hero-copy h2 { font-size: 45px; }

  .creative-workflow { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
  .creative-workflow > i { display: none; }
  .creative-workflow > div { justify-content: center; }
  .creative-workflow > div > div { display: none; }

  .creative-builder-panel { padding: 22px; }
  .creative-builder-heading { flex-direction: column; }

  .creative-studio-page .quiz-card-grid,
  .creative-studio-page [data-quiz-field="ctaGoal"] .quiz-card-grid,
  .creative-studio-page [data-quiz-field="visualStyle"] .quiz-card-grid {
    grid-template-columns: 1fr;
  }

  .creative-studio-page .quiz-card-option { min-height: 118px; }
  .creative-generate-bar { align-items: stretch; flex-direction: column; margin: 20px -22px -22px; padding: 18px 22px; }
  .creative-generate-button { width: 100%; }
  .creative-studio-aside { grid-template-columns: 1fr; }

  .asset-library-stats { grid-template-columns: 1fr; }
  .asset-library-stats > div { display: grid; min-height: 76px; }
  .asset-library-page .asset-library-grid { grid-template-columns: 1fr; }
  .asset-library-section-head { grid-template-columns: 40px minmax(0, 1fr); }
  .asset-library-section-head .asset-library-count { display: none; }

  .asset-library-page .asset-card-summary,
  .asset-library-page .asset-collapsible-card[open] .asset-card-summary {
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 172px;
    padding: 12px;
  }

  .asset-library-page .asset-card-cover { min-height: 148px; }
  .asset-library-search { grid-template-columns: 26px minmax(0, 1fr); }
  .asset-library-search small { display: none; }
}

/* --------------------------------------------------------------------------
   Section experience system
   -------------------------------------------------------------------------- */

.nav-group-toggle,
.nav-group-subnav {
  --nav-group-rgb: 86, 166, 255;
  --nav-group-accent: #56a6ff;
}

.nav-group-dashboard,
.nav-group-subnav-dashboard { --nav-group-rgb: 70, 143, 255; --nav-group-accent: #468fff; }
.nav-group-studio,
.nav-group-subnav-studio { --nav-group-rgb: 141, 108, 255; --nav-group-accent: #8d6cff; }
.nav-group-ads,
.nav-group-subnav-ads { --nav-group-rgb: 255, 122, 69; --nav-group-accent: #ff7a45; }
.nav-group-checklist,
.nav-group-subnav-checklist { --nav-group-rgb: 76, 148, 255; --nav-group-accent: #4c94ff; }
.nav-group-funnels,
.nav-group-subnav-funnels { --nav-group-rgb: 167, 111, 255; --nav-group-accent: #a76fff; }
.nav-group-leads,
.nav-group-subnav-leads { --nav-group-rgb: 45, 190, 143; --nav-group-accent: #2dbe8f; }
.nav-group-settings,
.nav-group-subnav-settings { --nav-group-rgb: 148, 163, 184; --nav-group-accent: #94a3b8; }
.nav-group-admin,
.nav-group-subnav-admin { --nav-group-rgb: 245, 183, 65; --nav-group-accent: #f5b741; }

.nav .nav-group-toggle {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav .nav-group-toggle > .icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--nav-group-rgb), 0.2);
  border-radius: 8px;
  color: rgb(var(--nav-group-rgb));
  background: rgba(var(--nav-group-rgb), 0.09);
  font-size: 12px;
}

.nav .nav-group-toggle:hover {
  border-color: rgba(var(--nav-group-rgb), 0.2);
  background: rgba(var(--nav-group-rgb), 0.09);
  transform: translateX(2px);
}

.nav .nav-group-toggle.active {
  border-color: rgba(var(--nav-group-rgb), 0.24);
  background: linear-gradient(90deg, rgba(var(--nav-group-rgb), 0.16), rgba(var(--nav-group-rgb), 0.07));
  box-shadow: inset 3px 0 0 var(--nav-group-accent), 0 10px 22px rgba(0, 0, 0, 0.08);
}

.nav .nav-group-toggle.active > .icon {
  border-color: rgba(var(--nav-group-rgb), 0.45);
  color: #fff;
  background: rgba(var(--nav-group-rgb), 0.78);
  box-shadow: 0 6px 16px rgba(var(--nav-group-rgb), 0.2);
}

.nav-group-subnav {
  margin-block: 4px 10px;
  padding: 4px 0 4px 12px;
  border-left-color: rgba(var(--nav-group-rgb), 0.32);
}

.nav-group-subnav button {
  position: relative;
  border: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nav-group-subnav button:hover {
  border-color: rgba(var(--nav-group-rgb), 0.16);
  background: rgba(var(--nav-group-rgb), 0.08);
  transform: translateX(2px);
}

.nav-group-subnav button.active {
  border-color: rgba(var(--nav-group-rgb), 0.18);
  background: rgba(var(--nav-group-rgb), 0.14);
  box-shadow: inset 3px 0 0 var(--nav-group-accent);
}

.nav-group-subnav button.active .icon {
  color: var(--nav-group-accent);
}

.section-experience-dashboard {
  --section-rgb: 71, 119, 255;
  --section-accent: #4777ff;
  --section-accent-strong: #315bd5;
  --section-secondary: #cfff72;
  --section-soft: #eaf0ff;
  --section-dark: #101827;
  --section-dark-2: #1b376f;
}

.section-experience-ads {
  --section-rgb: 255, 111, 57;
  --section-accent: #ff6f39;
  --section-accent-strong: #eb5522;
  --section-secondary: #ffd56a;
  --section-soft: #fff0e9;
  --section-dark: #241712;
  --section-dark-2: #3c2015;
}

.section-experience-checklist {
  --section-rgb: 62, 132, 246;
  --section-accent: #3e84f6;
  --section-accent-strong: #2468d8;
  --section-secondary: #91d6ff;
  --section-soft: #eaf3ff;
  --section-dark: #101c2e;
  --section-dark-2: #183b69;
}

.section-experience-funnels {
  --section-rgb: 137, 92, 246;
  --section-accent: #895cf6;
  --section-accent-strong: #7041df;
  --section-secondary: #c9f16e;
  --section-soft: #f1edff;
  --section-dark: #1b1530;
  --section-dark-2: #35236c;
}

.section-experience-leads {
  --section-rgb: 24, 166, 121;
  --section-accent: #18a679;
  --section-accent-strong: #0c875f;
  --section-secondary: #e6cf70;
  --section-soft: #e7f8f1;
  --section-dark: #0f241d;
  --section-dark-2: #154c3c;
}

.section-experience-integrations {
  --section-rgb: 64, 138, 255;
  --section-accent: #408aff;
  --section-accent-strong: #2469d9;
  --section-secondary: #8edcff;
  --section-soft: #eaf4ff;
  --section-dark: #101d35;
  --section-dark-2: #173d72;
}

.section-experience-video-studio {
  --section-rgb: 141, 108, 255;
  --section-accent: #7c58f1;
  --section-accent-strong: #6542d8;
  --section-secondary: #d8c8ff;
  --section-soft: #f2eeff;
  --section-dark: #1b1535;
  --section-dark-2: #392573;
}

.section-experience-compose-multi,
.section-experience-manual-post {
  --section-rgb: 124, 83, 255;
  --section-accent: #7658ee;
  --section-accent-strong: #6242dc;
  --section-secondary: #cfff72;
  --section-soft: #f1edff;
  --section-dark: #11101c;
  --section-dark-2: #33236d;
}

.section-experience-compose-facebook {
  --section-rgb: 24, 119, 242;
  --section-accent: #1877f2;
  --section-accent-strong: #0e63cf;
  --section-secondary: #9ed1ff;
  --section-soft: #eaf4ff;
  --section-dark: #0d1a30;
  --section-dark-2: #164c91;
}

.section-experience-compose-instagram {
  --section-rgb: 203, 53, 124;
  --section-accent: #c63378;
  --section-accent-strong: #a92362;
  --section-secondary: #ffd27b;
  --section-soft: #fff0f6;
  --section-dark: #251222;
  --section-dark-2: #702454;
}

.section-experience-compose-threads,
.section-experience-compose-x {
  --section-rgb: 99, 101, 112;
  --section-accent: #252832;
  --section-accent-strong: #111319;
  --section-secondary: #cfff72;
  --section-soft: #f0f1f4;
  --section-dark: #0d0e13;
  --section-dark-2: #292b34;
}

.section-experience-compose-pinterest {
  --section-rgb: 189, 8, 28;
  --section-accent: #bd081c;
  --section-accent-strong: #970516;
  --section-secondary: #ffc5ce;
  --section-soft: #fff0f2;
  --section-dark: #260f14;
  --section-dark-2: #6e1725;
}

.section-experience-compose-youtube {
  --section-rgb: 255, 35, 35;
  --section-accent: #e92e2e;
  --section-accent-strong: #c51d1d;
  --section-secondary: #fff0a8;
  --section-soft: #fff0f0;
  --section-dark: #231010;
  --section-dark-2: #681d1d;
}

.section-experience-compose-bluesky {
  --section-rgb: 17, 133, 254;
  --section-accent: #1185fe;
  --section-accent-strong: #056bcc;
  --section-secondary: #b8e7ff;
  --section-soft: #eaf7ff;
  --section-dark: #0d1b2d;
  --section-dark-2: #13589b;
}

.section-experience-calendar {
  --section-rgb: 93, 89, 236;
  --section-accent: #5d59ec;
  --section-accent-strong: #4540d3;
  --section-secondary: #cfff72;
  --section-soft: #f0efff;
  --section-dark: #15142b;
  --section-dark-2: #343184;
}

.section-experience-inbox {
  --section-rgb: 29, 155, 141;
  --section-accent: #1d9b8d;
  --section-accent-strong: #117d71;
  --section-secondary: #c8ff9b;
  --section-soft: #e9f8f5;
  --section-dark: #0d2523;
  --section-dark-2: #185e57;
}

.section-experience-performance {
  --section-rgb: 102, 83, 233;
  --section-accent: #6653e9;
  --section-accent-strong: #503bce;
  --section-secondary: #cfff72;
  --section-soft: #efedff;
  --section-dark: #17142d;
  --section-dark-2: #3f337e;
}

.section-experience-analytics {
  --section-rgb: 124, 88, 241;
  --section-accent: #7653e8;
  --section-accent-strong: #5e3dcc;
  --section-secondary: #cfff87;
  --section-soft: #f1edff;
  --section-dark: #18152f;
  --section-dark-2: #39276c;
}

.section-experience-settings {
  --section-rgb: 104, 122, 149;
  --section-accent: #61758f;
  --section-accent-strong: #4b5d74;
  --section-secondary: #dce8f5;
  --section-soft: #eef3f8;
  --section-dark: #17202d;
  --section-dark-2: #31445b;
}

.section-experience-saas {
  --section-rgb: 232, 169, 52;
  --section-accent: #d99a27;
  --section-accent-strong: #b97b16;
  --section-secondary: #fff0a8;
  --section-soft: #fff8e5;
  --section-dark: #292013;
  --section-dark-2: #654719;
}

.section-experience {
  min-height: 100vh;
  background:
    radial-gradient(circle at 91% 2%, rgba(var(--section-rgb), 0.09), transparent 25%),
    linear-gradient(180deg, rgba(var(--section-rgb), 0.025), transparent 430px),
    #f7f7fa;
}

.section-experience .topbar {
  border-bottom-color: rgba(var(--section-rgb), 0.12);
  background: rgba(250, 250, 252, 0.91);
}

.section-experience .page-title h2 {
  letter-spacing: -0.03em;
}

.section-experience .page-title h2::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: var(--section-accent);
  box-shadow: 0 0 0 5px rgba(var(--section-rgb), 0.09);
  content: "";
}

.section-experience .content {
  max-width: 1600px;
  padding-top: 28px;
}

.section-experience-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  min-height: 360px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 15%, rgba(var(--section-rgb), 0.58), transparent 31%),
    radial-gradient(circle at 38% 115%, rgba(var(--section-rgb), 0.23), transparent 42%),
    linear-gradient(135deg, var(--section-dark), var(--section-dark-2));
  box-shadow: 0 28px 68px rgba(21, 20, 31, 0.17);
}

.section-experience-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
  content: "";
}

.section-experience-hero::after {
  position: absolute;
  z-index: -1;
  top: -155px;
  right: -85px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.025), 0 0 0 96px rgba(255, 255, 255, 0.018);
  content: "";
}

.section-experience-hero.is-compact {
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.5fr);
  min-height: 245px;
}

.section-experience-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  max-width: 850px;
  padding: clamp(38px, 4.6vw, 62px);
}

.section-experience-hero.is-compact .section-experience-copy {
  padding-block: 34px;
}

.section-experience-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-experience-kicker > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(var(--section-rgb), 0.46);
  border-radius: 9px;
  color: var(--section-secondary);
  background: rgba(var(--section-rgb), 0.15);
  font-size: 12px;
  letter-spacing: 0;
}

.section-experience-copy h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(44px, 4.25vw, 66px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-experience-hero.is-compact .section-experience-copy h2 {
  margin-block: 13px 11px;
  font-size: clamp(34px, 3.1vw, 47px);
}

.section-experience-copy h2 em {
  color: var(--section-secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.section-experience-copy > p {
  max-width: 720px;
  margin: 0;
  color: rgba(239, 239, 246, 0.7);
  font-size: 14px;
  line-height: 1.65;
}

.section-experience-hero.is-compact .section-experience-copy > p {
  max-width: 780px;
  font-size: 12px;
}

.section-experience-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.section-experience-hero.is-compact .section-experience-actions {
  margin-top: 18px;
}

.section-experience .section-experience-primary {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--section-accent);
  box-shadow: 0 10px 24px rgba(var(--section-rgb), 0.2);
}

.section-experience .section-experience-primary:hover {
  color: #fff;
  background: var(--section-accent-strong);
  transform: translateY(-2px);
}

.section-experience .section-experience-secondary {
  min-height: 46px;
  padding-inline: 18px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.section-experience .section-experience-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.section-experience-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.section-experience-hero.is-compact .section-experience-meta {
  display: none;
}

.section-experience-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-experience-meta b {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-experience-visual {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 34px 42px 34px 0;
}

.section-route-card {
  position: relative;
  width: min(360px, 90%);
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(13, 14, 21, 0.58);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  transform: rotate(2deg);
}

.section-experience-hero.is-compact .section-route-card {
  padding: 22px;
  transform: rotate(1deg) scale(0.9);
}

.section-route-card::after {
  position: absolute;
  z-index: -1;
  inset: 12px -14px -14px 14px;
  border: 1px solid rgba(var(--section-rgb), 0.24);
  border-radius: 22px;
  background: rgba(var(--section-rgb), 0.1);
  content: "";
}

.section-route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-route-card-head > span {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  color: var(--section-dark);
  background: var(--section-secondary);
  font-weight: 900;
}

.section-route-card-head small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-route-card > strong {
  display: block;
  margin: 24px 0;
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.section-route-stages {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-route-stages > div {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
}

.section-route-stages > div::after {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  content: "";
}

.section-route-stages > div.is-active {
  color: #fff;
}

.section-route-stages > div.is-active::after {
  border-color: var(--section-secondary);
  background: var(--section-secondary);
  box-shadow: 0 0 0 4px rgba(var(--section-rgb), 0.12);
}

.section-route-stages span { color: rgba(255, 255, 255, 0.28); font-size: 9px; font-weight: 900; }
.section-route-stages b { font-size: 11px; }

.section-experience-orbit {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(13, 14, 21, 0.66);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-experience-orbit.orbit-one { top: 54px; left: 1%; }
.section-experience-orbit.orbit-two { right: 7%; bottom: 51px; color: var(--section-dark); background: var(--section-secondary); }
.section-experience-hero.is-compact .section-experience-orbit { display: none; }

.section-experience .panel,
.section-experience .metric,
.section-experience .card {
  border-color: rgba(29, 28, 43, 0.085);
  border-radius: 17px;
  box-shadow: 0 16px 42px rgba(29, 28, 43, 0.065);
}

.section-experience .panel {
  padding: 27px;
}

.section-experience .panel.nested {
  border-radius: 14px;
  background: rgba(var(--section-rgb), 0.025);
  box-shadow: none;
}

.section-experience .panel-head h3,
.section-experience .section-title {
  color: #242330;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.section-experience .metrics {
  gap: 14px;
}

.section-experience .metric {
  min-height: 132px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--section-rgb), 0.075), transparent 42%),
    #fff;
}

.section-experience .metric::before,
.section-experience .metric:nth-child(4n + 2)::before,
.section-experience .metric:nth-child(4n + 3)::before,
.section-experience .metric:nth-child(4n + 4)::before {
  height: 4px;
  background: linear-gradient(90deg, var(--section-accent), var(--section-secondary));
}

.section-experience .metric strong {
  color: #252330;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.section-experience .metric-link:hover,
.section-experience .metric-link:focus-visible,
.section-experience .metric-link.active {
  border-color: rgba(var(--section-rgb), 0.48);
  box-shadow: 0 16px 34px rgba(var(--section-rgb), 0.11);
}

.section-experience .metric-link.active {
  box-shadow: 0 0 0 3px rgba(var(--section-rgb), 0.12), 0 16px 34px rgba(var(--section-rgb), 0.11);
}

.section-experience .metric-link-cue {
  color: var(--section-accent);
}

.section-experience .notice {
  padding: 16px 18px;
  border-color: rgba(var(--section-rgb), 0.28);
  border-radius: 15px;
  background: var(--section-soft);
}

.section-experience .notice span {
  color: #4d5667;
}

.section-experience .btn.primary {
  background: var(--section-accent);
}

.section-experience .btn.primary:hover {
  background: var(--section-accent-strong);
}

.section-experience input:focus,
.section-experience select:focus,
.section-experience textarea:focus {
  border-color: rgba(var(--section-rgb), 0.62);
  box-shadow: 0 0 0 3px rgba(var(--section-rgb), 0.11);
  outline: 0;
}

/* Multi-Platform Post keeps its focused dark composer while sharing the same
   light application shell and graphic page-entry system as the rest of Studio. */
.section-experience-compose-multi.view-compose-multi {
  color: var(--ink);
}

.section-experience-compose-multi.view-compose-multi .topbar {
  border-bottom-color: rgba(var(--section-rgb), 0.12);
  background: rgba(250, 250, 252, 0.91);
}

.section-experience-compose-multi.view-compose-multi .page-title h2 {
  color: var(--ink);
}

.section-experience-compose-multi.view-compose-multi .page-title p {
  color: var(--muted);
}

.section-experience-compose-multi.view-compose-multi .topbar .session-chip,
.section-experience-compose-multi.view-compose-multi .topbar .btn.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.section-experience-compose-multi.view-compose-multi .topbar .btn.ghost:hover {
  border-color: rgba(var(--section-rgb), 0.36);
  color: var(--section-accent-strong);
  background: var(--section-soft);
}

.section-experience-integrations .integration-center-nav,
.section-experience-integrations .integration-directory-card,
.section-experience-integrations .integration-center-metrics,
.section-experience-integrations .integration-provider-readiness,
.section-experience-integrations .integration-connection-panel,
.section-experience-integrations .integration-discovery-panel,
.section-experience-integrations .integration-credential-grid,
.section-experience-integrations .integration-security-strip,
.section-experience-integrations .integration-diagnostics-link {
  border-color: rgba(var(--section-rgb), 0.13);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(29, 28, 43, 0.055);
}

.section-experience-integrations .integration-center-overview.active,
.section-experience-integrations .integration-provider-nav-item.active {
  background: var(--section-soft);
  box-shadow: inset 3px 0 0 var(--section-accent);
}

.section-experience-integrations .integration-directory-card:hover {
  border-color: rgba(var(--section-rgb), 0.36);
  box-shadow: 0 14px 30px rgba(var(--section-rgb), 0.08);
  transform: translateY(-2px);
}

.video-studio-launchpad {
  display: grid;
  gap: 22px;
}

.video-studio-launchpad-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.video-studio-launchpad-head > div > span,
.analytics-control-heading > div > span {
  color: var(--section-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-studio-launchpad-head h3 {
  margin: 7px 0 6px;
  color: #242330;
  font-size: clamp(25px, 2.3vw, 34px);
  letter-spacing: -0.04em;
}

.video-studio-launchpad-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.video-studio-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.video-studio-step {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(var(--section-rgb), 0.11);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--section-rgb), 0.1), transparent 42%),
    #fff;
  box-shadow: 0 16px 42px rgba(29, 28, 43, 0.06);
}

.video-studio-step-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(var(--section-rgb), 0.24);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.video-studio-step-icon,
.video-studio-handoff-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: var(--section-accent);
  background: rgba(var(--section-rgb), 0.1);
  font-weight: 900;
}

.video-studio-step h3 {
  margin: 30px 0 10px;
  color: #242330;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.video-studio-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.section-experience .video-studio-handoff {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(330px, 0.85fr) auto;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at 0 100%, rgba(var(--section-rgb), 0.08), transparent 35%),
    #fff;
}

.video-studio-handoff-copy {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.video-studio-handoff-copy span,
.video-studio-handoff-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.video-studio-handoff-copy h3 {
  margin: 5px 0;
  font-size: 17px;
}

.video-studio-handoff-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.video-studio-handoff-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(var(--section-rgb), 0.1);
  border-radius: 12px;
  background: rgba(var(--section-rgb), 0.1);
}

.video-studio-handoff-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #fff;
}

.video-studio-handoff-facts strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.3;
}

.analytics-control-deck {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(var(--section-rgb), 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(29, 28, 43, 0.055);
}

.analytics-control-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.analytics-control-heading strong {
  display: block;
  margin-top: 4px;
  color: #242330;
  font-size: 18px;
}

.analytics-control-heading > span {
  color: var(--muted);
  font-size: 11px;
}

.section-experience-analytics .analytics-toolbar {
  justify-content: flex-start;
  margin-bottom: 0;
}

.section-experience-analytics .analytics-toolbar > .muted {
  margin-left: auto;
}

.section-experience-analytics .analytics-filter-group {
  border-color: rgba(var(--section-rgb), 0.12);
  border-radius: 10px;
  background: var(--section-soft);
}

.section-experience-analytics .analytics-filter-group button.active {
  color: var(--section-accent-strong);
  box-shadow: 0 3px 10px rgba(var(--section-rgb), 0.1);
}

.section-experience-settings .profile-card,
.section-experience-settings .activity > div,
.section-experience-saas .table-row {
  border-color: rgba(var(--section-rgb), 0.11);
  border-radius: 13px;
}

.section-experience-saas .saas-readiness-row {
  border-left: 3px solid rgba(var(--section-rgb), 0.55);
}

.section-experience-funnels .funnel-kpi-card,
.section-experience-leads .lead-pipeline-column,
.section-experience-ads .performance-status-card,
.section-experience-checklist .approval-card,
.section-experience-checklist .queue-card {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(29, 28, 43, 0.06);
}

@media (max-width: 1180px) {
  .section-experience-hero,
  .section-experience-hero.is-compact {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .section-experience-visual {
    padding-right: 28px;
  }

  .section-experience .video-studio-handoff {
    grid-template-columns: minmax(280px, 1fr) minmax(330px, 1fr);
  }

  .video-studio-handoff > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .section-experience .content {
    padding-inline: 16px;
  }

  .section-experience-hero,
  .section-experience-hero.is-compact {
    grid-template-columns: 1fr;
  }

  .section-experience-hero.is-compact .section-experience-visual {
    display: none;
  }

  .section-experience-visual {
    min-height: 285px;
    padding: 0 30px 42px;
  }

  .video-studio-step-grid,
  .section-experience .video-studio-handoff {
    grid-template-columns: 1fr;
  }

  .video-studio-handoff > .btn {
    grid-column: auto;
  }

  .analytics-control-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-experience-analytics .analytics-toolbar > .muted {
    width: 100%;
    margin-left: 0;
  }

  .section-route-card {
    width: min(390px, 88%);
  }
}

@media (max-width: 640px) {
  .section-experience-hero {
    border-radius: 20px;
  }

  .section-experience-copy {
    padding: 31px 24px;
  }

  .section-experience-copy h2,
  .section-experience-hero.is-compact .section-experience-copy h2 {
    font-size: 39px;
  }

  .section-experience-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .section-experience-actions .btn {
    width: 100%;
  }

  .section-experience-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-experience-visual {
    min-height: 250px;
    padding: 0 18px 34px;
  }

  .section-route-card {
    padding: 22px;
  }

  .section-route-card > strong {
    font-size: 20px;
  }

  .section-experience .panel {
    padding: 20px;
  }
}

/* Keep late-loaded form primitives inside the dark multi-platform surface. */
.view-compose-multi .multi-platform-composer .field input,
.view-compose-multi .multi-platform-composer .field select,
.view-compose-multi .multi-platform-composer .field textarea {
  border-color: var(--composer-line);
  color: #f7f4ff;
  background: rgba(8, 8, 16, 0.42);
}

.view-compose-multi .multi-platform-composer .field input::placeholder,
.view-compose-multi .multi-platform-composer .field textarea::placeholder {
  color: rgba(236, 232, 245, 0.28);
}

.view-compose-multi .multi-platform-composer .field input:focus,
.view-compose-multi .multi-platform-composer .field select:focus,
.view-compose-multi .multi-platform-composer .field textarea:focus {
  border-color: rgba(156, 126, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(124, 83, 255, 0.12);
}

.view-compose-multi .multi-platform-composer input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: #f7f4ff;
  background: rgba(124, 83, 255, 0.22);
}

.view-compose-multi .multi-platform-composer .manual-media-uploader,
.view-compose-multi .multi-platform-composer .advanced-media-url,
.view-compose-multi .multi-platform-composer .manual-schedule-fields,
.view-compose-multi .multi-platform-composer .authenticated-owner-value,
.view-compose-multi .multi-platform-composer .automatic-status-summary,
.view-compose-multi .multi-platform-composer .quiz-card-option {
  border-color: var(--composer-line);
  color: #f7f4ff;
  background: rgba(8, 8, 16, 0.28);
}

.view-compose-multi .multi-platform-composer .quiz-card-option span,
.view-compose-multi .multi-platform-composer .authenticated-owner-value span,
.view-compose-multi .multi-platform-composer .automatic-status-summary span:last-child,
.view-compose-multi .multi-platform-composer .upload-status,
.view-compose-multi .multi-platform-composer .advanced-media-url summary {
  color: var(--composer-muted);
}

.view-compose-multi .multi-platform-composer .quiz-card-option:has(input:checked) {
  border-color: rgba(156, 126, 255, 0.72);
  background: rgba(124, 83, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(156, 126, 255, 0.42);
}

.view-compose-multi .topbar .session-chip,
.view-compose-multi .topbar .btn.ghost {
  color: rgba(247, 244, 255, 0.74);
}
