:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6b73;
  --line: #d8dee3;
  --soft: #f5f7f8;
  --accent: #0f766e;
  --accent-soft: #e5f3ef;
  --gold: #b7791f;
  --rose: #b4535a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f8f7f3;
}

.hidden {
  display: none !important;
}

.honeypot-field {
  display: none !important;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 15px 24px;
}

.topbar > div {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.brand img {
  border-radius: 6px;
  display: block;
}

.topnav {
  align-items: center;
  display: flex;
  gap: 0;
}

.topnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  padding: 0 14px;
  position: relative;
  text-decoration: none;
}

.topnav a:first-child {
  padding-left: 0;
}

.topnav a:last-child {
  padding-right: 0;
}

.topnav a + a::before {
  background: var(--line);
  content: "";
  height: 14px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--accent);
}

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

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 18px 24px 24px;
}

.site-footer > div {
  max-width: 1080px;
  margin: 0 auto;
}

.page-heading {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.guidance-heading {
  margin-bottom: 20px;
}

.page-heading p {
  max-width: 760px;
  margin: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.panel.narrow {
  max-width: 460px;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.login-brand img {
  border-radius: 10px;
  flex: 0 0 auto;
}

.login-brand h1 {
  margin: 0;
}

.login-brand p {
  color: var(--muted);
  margin: 4px 0 0;
}

.public-hero {
  display: grid;
  gap: 14px;
  padding: 34px 0 28px;
}

.public-hero img {
  border-radius: 18px;
}

.public-hero h1 {
  font-size: 44px;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 680px;
}

.public-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.public-band > div {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}

.public-band h2 {
  margin-bottom: 8px;
}

.legal-panel {
  display: grid;
  gap: 16px;
}

.legal-panel h2 {
  margin-bottom: 6px;
}

.compact-panel {
  max-width: 680px;
}

.error-panel {
  margin-top: 24px;
}

.subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  margin: 18px 0;
}

.subpanel.no-margin {
  margin: 0;
}

.subpanel.tinted {
  background: var(--accent-soft);
  border-color: #badbd3;
}

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

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

.setup-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
}

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

.connect-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
}

.connect-strip div {
  display: grid;
  gap: 3px;
}

.connect-strip span {
  color: var(--muted);
}

.template-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0;
}

.template-strip div {
  display: grid;
  gap: 3px;
}

.template-strip span {
  color: var(--muted);
}

.template-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.template-action-select {
  min-width: min(420px, 100%);
}

.template-action-select select {
  margin-top: 6px;
}

.required-panel {
  border-color: #d7862c;
  box-shadow: 0 0 0 3px rgba(215, 134, 44, 0.16);
}

.required-copy {
  color: #8a4f13;
  font-weight: 750;
}

.required-note {
  color: #9f2a2a;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}

.plan-note {
  color: var(--gold);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-left: 6px;
}

.required-notice {
  background: #fff4f4;
  border-color: #efb8b8;
  color: #8a1f1f;
}

.field-missing {
  background: #fff7f7;
  border-color: #efb8b8;
  box-shadow: 0 0 0 3px rgba(239, 184, 184, 0.22);
}

.field-missing-control,
input:required:invalid,
textarea:required:invalid,
select:required:invalid {
  background: #fff7f7;
  border-color: #e8a5a5;
}

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

.link-button:hover {
  color: var(--ink);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.choice input {
  width: auto;
  margin-top: 3px;
}

.choice span {
  display: grid;
  gap: 4px;
}

.choice small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.choice.muted {
  color: var(--muted);
  background: var(--soft);
}

.choice em {
  color: var(--muted);
  font-style: normal;
  margin-left: 8px;
}

.social-choice {
  align-items: stretch;
}

.social-output {
  width: 100%;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 7px;
  width: 100%;
}

.phase-segment {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.phase-fill {
  background: #d8dee3;
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 100%;
}

.phase-segment.active .phase-fill {
  background: var(--accent);
}

.phase-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.phase-segment.active .phase-label {
  color: var(--ink);
}

.workflow {
  align-items: center;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 22px;
}

.workflow-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-step.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.workflow-arrow {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.fixed-choice {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  min-height: 41px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.build-copy {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

textarea.tall-editor {
  min-height: 180px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.review-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.review-form input,
.review-form textarea {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.review-panel {
  padding: 18px;
}

.publish-selectable {
  transition: background 0.15s ease, border-color 0.15s ease;
}

.publish-selectable.publish-skipped {
  background: #fff7f7;
  border-color: #efb7b7;
}

.publish-output-toggle {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  margin: 0;
}

.publish-output-toggle input {
  accent-color: var(--accent);
  height: 18px;
  width: 18px;
}

.publish-output-toggle span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.publish-skip-note {
  display: none;
  border: 1px solid #efb7b7;
  border-radius: 8px;
  background: #fffafa;
  color: #9b2c2c;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 14px;
  padding: 9px 10px;
}

.publish-skipped .publish-skip-note {
  display: block;
}

.review-grid {
  gap: 14px;
}

.product-description-editor {
  color: #2f3b42;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 165px;
}

.blog-description-editor {
  color: #2f3b42;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
}

.social-caption-editor {
  color: #2f3b42;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 120px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0 0 4px;
}

.section-title p,
.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.guidance-editor {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  font-weight: 600;
}

.advanced-preferences {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.advanced-preferences summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.advanced-preferences .detail-grid {
  margin-top: 14px;
}

.guidance-editor textarea {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 170px;
  background: #fff;
  border-color: #bdc8ce;
  padding: 14px;
}

.guidance-editor small {
  color: var(--muted);
  font-weight: 600;
}

.guidance-editor textarea.preference-textarea {
  min-height: 104px;
}

.workflow-form {
  display: grid;
  gap: 16px;
}

.language-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.language-panel.product-panel {
  border-top: 4px solid var(--accent);
}

.language-panel.blog-panel {
  border-top: 4px solid var(--rose);
}

.language-panel.social-panel {
  border-top: 4px solid #2f855a;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-grid label {
  gap: 6px;
}

.detail-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.detail-grid input {
  color: #52636d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.4;
  min-height: 40px;
}

.detail-grid input::placeholder {
  color: var(--muted);
  font-weight: 400;
  opacity: 1;
}

.guidance-actions {
  margin-top: 4px;
}

.usage-strip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 13px 14px;
}

.usage-strip span,
.usage-strip small {
  color: var(--muted);
}

.usage-strip span {
  font-weight: 800;
}

.usage-strip small {
  flex: 0 0 100%;
  font-size: 12px;
  line-height: 1.35;
}

.upload-actions {
  align-items: end;
  border: 1px solid transparent;
  scroll-margin-top: 24px;
}

.category-confirm {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.category-confirm span {
  color: var(--muted);
  line-height: 1.4;
}

.upload-actions:target {
  background: var(--accent-soft);
  border: 1px solid #badbd3;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
  padding: 12px;
}

.upload-zone {
  border: 1px dashed #aebbc2;
  border-radius: 8px;
  background: #fcfcfb;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.upload-notes {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.upload-notes strong {
  color: var(--ink);
}

.preview-generate-progress {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
}

.preview-generate-progress .progress-shell {
  margin-top: 0;
}

.preview-generate-progress strong {
  color: var(--ink);
}

.preview-generate-progress span {
  color: var(--muted);
  line-height: 1.4;
}

.retained-upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
}

.retained-upload img {
  width: 76px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.retained-upload div {
  display: grid;
  gap: 4px;
}

.retained-upload span {
  color: var(--muted);
}

.confirm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.confirm-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: end;
}

.upload-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 96px;
  height: 72px;
  overflow: hidden;
  position: relative;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.82);
  color: #fff;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 800;
}

.file-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.draft-list {
  display: grid;
  gap: 10px;
}

.draft-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.draft-row:hover,
.draft-row:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(23, 32, 38, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.draft-row span:first-child {
  display: grid;
  gap: 3px;
}

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

.draft-row-meta {
  align-items: center;
  display: flex;
  gap: 10px;
}

.open-draft-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.open-draft-label::after {
  content: ">";
  margin-left: 6px;
}

.status-pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.status-card strong {
  color: var(--ink);
}

.status-card span {
  color: var(--muted);
}

.status-card.completed {
  background: var(--accent-soft);
  border-color: #badbd3;
}

.social-result-card {
  margin-top: 14px;
}

.progress-shell {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.progress-bar {
  animation: progress-slide 1.5s ease-in-out infinite;
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  width: 42%;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(65%);
  }

  100% {
    transform: translateX(245%);
  }
}

.template-search {
  display: grid;
  gap: 12px;
}

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

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.product-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

.product-table th,
.product-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 9px;
  text-align: left;
  vertical-align: middle;
}

.product-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-table td:first-child {
  min-width: 260px;
}

.product-table td:first-child span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.product-table button {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 7px 9px;
  white-space: nowrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pricing-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.pricing-card h2,
.pricing-card p {
  margin: 0;
}

.pricing-card p {
  color: var(--muted);
  font-weight: 800;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 5px;
  padding: 16px;
}

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

.metric-card span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.metric-card .compact-metric {
  font-size: 18px;
}

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

.metrics-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

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

.metrics-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.platform-watch-list {
  display: grid;
  gap: 16px;
}

.platform-watch-card {
  display: grid;
  gap: 16px;
}

.platform-watch-card-review_due {
  border-color: #e4c27b;
}

.platform-watch-card-needs_attention {
  border-color: #e9a6a6;
}

.platform-watch-head,
.platform-watch-details {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

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

.platform-watch-head h2,
.platform-watch-head p {
  margin: 0;
}

.platform-watch-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.platform-watch-details div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.platform-watch-details span,
.platform-watch-details small {
  color: var(--muted);
}

.platform-watch-details span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.platform-watch-columns {
  margin-bottom: 0;
}

.platform-watch-columns h3,
.platform-watch-columns p {
  margin: 0;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-ok {
  border-color: #badbd3;
  background: #effaf7;
  color: #25564d;
}

.status-review_due {
  border-color: #e4c27b;
  background: #fff8e6;
  color: #755616;
}

.status-needs_attention {
  border-color: #e9a6a6;
  background: #fff0f0;
  color: #8a2f2f;
}

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

.simple-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.simple-list li {
  margin: 7px 0;
}

.notice,
.placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
  margin: 16px 0;
}

.success-notice {
  border-color: #badbd3;
  color: #25564d;
}

.success-notice strong,
.success-notice span,
.success-notice a {
  display: block;
}

.success-notice span {
  color: var(--muted);
  margin-top: 5px;
}

.success-notice a {
  margin-top: 10px;
}

.success-note {
  border-color: #badbd3;
  background: var(--accent-soft);
}

.placeholder span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: var(--accent);
}

.mini-button {
  justify-self: start;
  margin-top: 4px;
  min-height: 32px;
  padding: 6px 10px;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
}

.status-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.status-icon::before {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.status-icon.ok {
  background: var(--accent);
}

.status-icon.ok::before {
  content: "✓";
}

.status-icon.bad {
  background: #b42318;
}

.status-icon.bad::before {
  content: "×";
}

.preview {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.preview-heading {
  max-width: 820px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.preview-builder {
  min-width: 0;
}

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

.preview-choice {
  min-height: 112px;
}

.preview-side {
  display: grid;
  gap: 14px;
}

.preview-results {
  margin-left: 50%;
  margin-top: 24px;
  max-width: 1500px;
  transform: translateX(-50%);
  width: min(1500px, calc(100vw - 48px));
}

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

.preview-uniform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.preview-card {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.preview-uniform-card {
  grid-template-rows: auto auto 96px auto;
  min-height: 560px;
  padding: 16px;
}

.preview-card.integration-requested {
  background: #f0f7f5;
  border-color: #9ccfc3;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.request-button:disabled {
  background: #e7f2ef;
  border-color: #8ec7ba;
  color: #25564d;
  cursor: default;
}

.preview-card.commerce {
  border-top: 4px solid var(--accent);
}

.preview-card.content {
  border-top: 4px solid var(--rose);
}

.preview-card.social {
  border-top: 4px solid #315f9f;
}

.preview-card.marketplace {
  border-top: 4px solid var(--gold);
}

.preview-card.discovery {
  border-top: 4px solid #6f6aa8;
}

.preview-card-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.preview-card-head span:not(.status-pill) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.platform-mockup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.preview-uniform-card .platform-mockup {
  align-self: start;
  display: grid;
  min-height: 230px;
}

.platform-logo-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.platform-logo-bar strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.platform-logo-mark {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.instagram-brand .platform-logo-mark {
  background: #c13584;
}

.etsy-brand .platform-logo-mark {
  background: #f1641e;
  font-family: Georgia, serif;
}

.facebook-brand .platform-logo-mark {
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.pinterest-brand .platform-logo-mark {
  background: #e60023;
  font-family: Georgia, serif;
}

.shopify-brand .platform-logo-mark {
  background: #5e8e3e;
}

.preview-card-image {
  background: var(--soft);
  display: block;
  object-fit: cover;
  width: 100%;
}

.platform-mockup.shopify_product .preview-card-image,
.platform-mockup.etsy .preview-card-image {
  aspect-ratio: 4 / 3;
}

.platform-mockup.shopify_blog .preview-card-image,
.platform-mockup.facebook .preview-card-image {
  aspect-ratio: 4 / 3;
}

.platform-mockup.instagram .preview-card-image {
  aspect-ratio: 4 / 3;
}

.platform-mockup.pinterest {
  border-radius: 8px;
}

.platform-mockup.pinterest .preview-card-image {
  aspect-ratio: 4 / 3;
}

.preview-uniform-card .preview-card-image {
  height: 150px;
  object-fit: cover;
}

.mockup-header {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 9px 10px;
}

.mockup-header span {
  background: var(--accent-soft);
  border: 1px solid #badbd3;
  border-radius: 999px;
  height: 22px;
  width: 22px;
}

.mockup-header strong,
.mockup-listing-bar strong,
.mockup-pin-footer strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.mockup-actions {
  display: flex;
  gap: 7px;
  padding: 9px 10px;
}

.mockup-actions span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  height: 14px;
  width: 14px;
}

.mockup-listing-bar,
.mockup-pin-footer {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.mockup-listing-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mockup-article-rule,
.mockup-product-strip {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.mockup-product-strip {
  display: grid;
  gap: 7px;
}

.mockup-product-strip span {
  background: var(--soft);
  border-radius: 999px;
  display: block;
  height: 9px;
}

.mockup-product-strip span:first-child {
  width: 72%;
}

.mockup-product-strip span:last-child {
  width: 46%;
}

.preview-fields {
  display: grid;
  gap: 12px;
}

.preview-card-summary {
  appearance: none;
  background: #f8fbfa;
  border: 1px solid #9ccfc3;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 96px;
  max-height: 96px;
  overflow: hidden;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.preview-card-summary:hover,
.preview-card-summary:focus-visible {
  border-color: #9ccfc3;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: none;
}

.preview-card-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.preview-card-summary strong {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.preview-card-summary em {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  display: -webkit-box;
  font-size: 15px;
  font-style: normal;
  line-height: 1.38;
  overflow: hidden;
}

.preview-edit-form {
  display: grid;
  gap: 10px;
}

.preview-action-stack {
  align-items: flex-start;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
}

.preview-action-stack .mini-button,
.preview-action-stack .request-button {
  align-self: start;
  justify-self: start;
  line-height: 1.2;
  margin-top: 0;
}

.preview-action-stack .mini-button {
  min-height: 38px;
  padding: 9px 13px;
}

.preview-action-stack .request-button {
  margin-top: 0;
}

.preview-action-stack.preview-edit-saved .mini-button {
  border-color: #badbd3;
  background: #effaf7;
  color: #25564d;
}

.request-helper {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}

.preview-uniform-card .request-helper {
  font-size: 12px;
  line-height: 1.35;
  max-width: 260px;
}

.preview-edit-panel[hidden] {
  display: none;
}

body.preview-editing {
  overflow: hidden;
}

.preview-edit-panel.is-open {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
}

.preview-edit-backdrop {
  background: rgba(12, 21, 32, 0.46);
  inset: 0;
  position: absolute;
}

.preview-edit-dialog {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(12, 21, 32, 0.28);
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100dvh - 32px);
  max-width: 860px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  width: min(860px, 100%);
}

.preview-edit-dialog .preview-edit-form {
  display: grid;
  gap: 14px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.preview-edit-dialog-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.preview-edit-dialog-head h3 {
  font-size: 28px;
  line-height: 1.15;
  margin: 8px 0 0;
}

.preview-edit-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  font-weight: 400;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.preview-edit-actions {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), #fff 38%);
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 -22px -22px;
  padding: 14px 22px 18px;
  position: sticky;
}

.preview-edit-fields {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.preview-edit-fields label {
  display: grid;
  gap: 6px;
}

.preview-edit-fields input,
.preview-edit-fields textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  padding: 9px 10px;
  width: 100%;
}

.preview-edit-fields textarea {
  min-height: 118px;
  resize: vertical;
}

.preview-fields strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.preview-fields p {
  margin: 0;
}

.preview-email-form {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .field-group,
  .form-grid,
  .detail-grid,
  .confirm-grid,
  .confirm-summary {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .connect-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .retained-upload {
    grid-template-columns: 1fr;
  }

  .template-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .template-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .metrics-grid,
  .metrics-columns,
  .public-band,
  .preview-layout,
  .preview-platforms,
  .preview-card-grid {
    grid-template-columns: 1fr;
  }

  .platform-watch-head,
  .platform-watch-details {
    align-items: flex-start;
    flex-direction: column;
  }

  .phase-track {
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    gap: 4px;
  }

  .phase-label {
    font-size: 10px;
  }
}
