: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,
.topnav a {
  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 {
  display: flex;
  gap: 0;
  align-items: center;
}

.topnav a {
  color: var(--muted);
  font-weight: 650;
  padding: 0 12px;
}

.topnav a + a {
  border-left: 1px solid var(--line);
}

.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;
}

.page-heading.wide-heading p {
  max-width: none;
}

.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: 28px;
}

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

.setup-context-section {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.add-context-workflow-section {
  position: relative;
}

.add-context-workflow-section + .add-context-workflow-section,
.instagram-learning-grid.add-context-workflow-section + .setup-section {
  margin-top: 18px;
}

.workflow-step-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
}

.workflow-step-header > div {
  display: grid;
  gap: 4px;
}

.workflow-step-header h2,
.workflow-step-header h3 {
  margin: 0;
}

.workflow-step-label {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.permission-badge {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: #587078;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 100%;
  padding: 6px 9px;
}

.workflow-explainer {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
}

.workflow-explainer summary,
.intelligence-details > summary {
  color: var(--teal);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.workflow-explainer p {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 8px 0 0;
}

.content-category-card {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
}

.required-category-card {
  border-color: rgba(20, 184, 166, 0.52);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), 0 12px 28px rgba(15, 118, 110, 0.09);
}

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

.content-category-card .strategy-heading {
  align-items: flex-start;
}

.content-category-card .strategy-heading div {
  display: grid;
  gap: 6px;
}

.content-category-card .strategy-heading p {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 550;
  line-height: 1.4;
}

.category-select-field {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.content-category-card .category-select-field {
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  border: 2px solid rgba(20, 184, 166, 0.38);
  border-radius: 8px;
  gap: 9px;
  margin: 0;
  max-width: 520px;
  padding: 14px;
}

.business-detection-summary {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  padding: 14px;
}

.business-confidence-pill {
  background: #eaf8f4;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.business-detection-summary strong {
  align-items: center;
  color: #0b7f73;
  display: flex;
  font-size: 1.08rem;
  gap: 8px;
}

.business-detection-summary strong span {
  color: #0f8f70;
}

.business-detection-summary div {
  display: grid;
  gap: 4px;
}

.business-detection-summary div > span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.business-detection-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.business-detection-summary li {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 5px 8px;
}

.content-category-card .category-select-field > span {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.content-category-card .category-select-field select {
  border-color: rgba(15, 118, 110, 0.38);
  min-height: 48px;
}

.content-category-card .category-select-field select:invalid {
  color: #6b7a86;
}

.required-asterisk {
  color: #0f8f70;
  font-weight: 950;
}

.content-category-card #other-product-type-wrap {
  max-width: 520px;
}

.category-example-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
}

.image-context-signal {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  max-width: 680px;
  padding: 11px 12px;
}

.image-context-signal strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.image-context-signal span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

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

.output-suboptions {
  background: #f7fbfa;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: -4px 0 6px 32px;
  padding: 14px;
}

.output-suboptions[hidden] {
  display: none;
}

.output-suboptions legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 4px;
}

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

.output-suboptions input {
  margin-top: 4px;
  width: auto;
}

.output-suboptions span {
  display: grid;
  gap: 3px;
}

.output-suboptions small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.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);
}

.connection-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  margin: 0 0 34px;
  width: 100%;
}

.connection-note .status-icon {
  margin-right: 0;
}

.status-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  margin-right: 8px;
  width: 18px;
}

.status-icon.ok {
  background: #dff4ef;
  color: #0b7b6f;
}

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

.status-icon.error {
  background: #fff0f0;
  color: #9f2a2a;
}

.status-icon.error::before {
  content: "\00d7";
}

.template-strip {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  margin: 4px 0 0;
}

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

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

.template-choice-card {
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.template-choice-card.field-missing {
  background: #fbfffd;
  border-color: #badbd3;
}

.template-choice-card.template-selected {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  text-align: left;
}

.template-choice-copy {
  justify-items: start;
}

.template-kicker {
  color: var(--accent) !important;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-selected-pill {
  background: #e5f3ef;
  border: 1px solid #badbd3;
  border-radius: 999px;
  color: #0f5d57 !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.template-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(230px, max-content));
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.template-actions .button {
  width: 100%;
}

.optional-guidance {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  margin-top: 0;
  padding: 0;
}

.optional-guidance summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
  list-style-position: inside;
  padding: 14px 16px;
}

.optional-guidance label {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  padding: 0 16px 16px;
}

.optional-guidance textarea.preference-textarea {
  min-height: 92px;
}

.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;
}

.social-duplicate-warning {
  background: #fff8ec;
  border-color: #e7c98f;
  color: #6f4a0d;
}

.social-duplicate-warning ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.social-duplicate-warning li {
  color: #6f4a0d;
  font-weight: 650;
}

.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;
}

.field-regenerate {
  margin-top: 8px;
}

.field-regenerate summary {
  align-items: center;
  background: #eaf7f4;
  border: 1px solid #8fc5b8;
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 6px;
  padding: 8px 10px;
}

.field-regenerate summary:hover {
  background: #dff1ed;
  border-color: var(--accent);
}

.field-regenerate div {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.field-quick-voice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-voice-chip {
  appearance: none;
  background: #fffdf7;
  border: 1px solid #dfc26c;
  border-radius: 999px;
  color: #604600;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

.quick-voice-chip:hover,
.quick-voice-chip:focus-visible {
  background: #fff3c4;
  border-color: #c69416;
  outline: none;
}

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

.field-regenerate-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-regenerate .is-loading {
  opacity: 0.78;
}

.shopify-mockup-card label:has([required]),
.review-grid label:has([required]) {
  background: #f4fffa;
  border: 1px solid #d9f1e7;
  border-radius: 10px;
  padding: 10px;
}

.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;
}

.promotion-guidance-panel {
  background: #f7fbfa;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.promotion-guidance-panel .detail-grid {
  margin: 0;
}

.promotion-guidance-panel .muted-text {
  margin: 0;
}

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

.social-output {
  width: 100%;
}

.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;
}

.generation-progress-note {
  display: grid;
  gap: 0.35rem;
}

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;
}

.channel-review-panel {
  display: grid;
  gap: 14px;
}

.app-review-focused {
  display: grid;
  gap: 16px;
}

.review-sequence-row {
  display: grid;
  gap: 10px;
}

.review-sequence-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.review-sequence-label span {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #badbd3;
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.review-sequence-label strong {
  color: var(--ink);
  font-size: 13px;
}

.review-draft-switcher {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.review-draft-tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 9px 13px;
  position: relative;
}

.review-draft-tab:not(:last-child)::after {
  color: #9aa8af;
  content: ">";
  font-weight: 900;
  position: absolute;
  right: -23px;
  top: 50%;
  transform: translateY(-50%);
}

.review-draft-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.review-output-panel {
  display: none;
  margin: 0;
}

.review-output-panel.active {
  display: grid;
}

.review-draft-navigation {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: max-content 1fr max-content;
  padding-top: 16px;
}

.review-draft-navigation span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.review-draft-navigation [disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.batch-review-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.compact-batch-review-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  margin-bottom: 4px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.batch-product-nav {
  align-items: center;
  background: #f6fbfa;
  border: 1px solid #cfe5df;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
}

.batch-product-nav-compact {
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: flex-start;
  margin: 6px 0 8px;
  padding: 0;
}

.batch-product-nav-compact strong {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.batch-product-nav-bottom {
  margin: 14px 0 0;
}

.batch-product-nav div:first-child {
  display: grid;
  gap: 3px;
}

.batch-product-nav strong {
  color: var(--ink);
}

.batch-product-nav span:not(.status-pill) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.batch-product-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.batch-review-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px 12px 12px 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  flex: 1 0 190px;
  min-width: 190px;
  padding: 10px 18px 10px 12px;
  position: relative;
  text-decoration: none;
}

.compact-batch-review-list .batch-review-link:not(:last-child)::after {
  color: #9aa8af;
  content: ">";
  font-weight: 900;
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
}

.batch-review-link:hover,
.batch-review-link.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.batch-review-link strong {
  font-size: 13px;
}

.batch-review-link span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-dashboard-return {
  margin-bottom: 12px;
}

.batch-dashboard-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.batch-dashboard-summary > div {
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 12px;
}

.batch-dashboard-summary strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.batch-dashboard-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-campaign-review {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0;
  padding: 18px 0;
}

.batch-step-label {
  color: var(--accent);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.batch-campaign-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.batch-campaign-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.batch-campaign-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.12);
  transform: translateY(-1px);
}

.campaign-instagram {
  border-left-color: #d62976;
}

.campaign-facebook {
  border-left-color: #1877f2;
}

.campaign-pinterest {
  border-left-color: #e60023;
}

.campaign-shopify_blog {
  border-left-color: #95bf47;
}

.batch-campaign-logo {
  align-items: center;
  background: #f7f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.batch-campaign-logo img {
  display: block;
  max-height: 24px;
  max-width: 24px;
}

.batch-campaign-main {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.batch-campaign-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.batch-campaign-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.batch-campaign-action {
  background: #eef8f6;
  border: 1px solid #b9ddd5;
  border-radius: 7px;
  color: var(--accent) !important;
  display: block;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 8px 10px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.batch-dashboard-toolbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.batch-dashboard-toolbar > div {
  display: grid;
  gap: 3px;
}

.batch-dashboard-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.batch-dashboard-grid {
  display: grid;
  gap: 12px;
}

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

.batch-dashboard-card-top {
  display: grid;
  gap: 14px;
  grid-template-columns: 84px 1fr;
}

.batch-dashboard-thumb {
  align-items: center;
  aspect-ratio: 1;
  background: #f3f5f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.batch-dashboard-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.batch-card-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.batch-dashboard-card h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 2px 0 6px;
}

.batch-dashboard-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.batch-dashboard-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.batch-dashboard-warnings {
  color: #8a5a00;
  display: grid;
  font-size: 13px;
  font-weight: 750;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.batch-dashboard-outputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-dashboard-outputs a,
.batch-dashboard-outputs span {
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 6px 10px;
  text-decoration: none;
}

.batch-dashboard-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.batch-publish-review {
  align-items: center;
  background: #f7f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.batch-publish-review > div {
  display: grid;
  gap: 3px;
}

.batch-publish-review strong {
  color: var(--ink);
  font-size: 18px;
}

.batch-publish-review span:not(.batch-step-label) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.batch-publish-review .button {
  background: #fff;
  color: var(--accent);
  max-width: 360px;
}

.regeneration-nudge {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.regeneration-nudge div {
  display: grid;
  gap: 4px;
}

.regeneration-nudge span {
  color: var(--muted);
  line-height: 1.45;
}

.regeneration-nudge form {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: min(420px, 42vw);
}

.regeneration-nudge textarea {
  min-height: 58px;
  resize: vertical;
}

.shopify-product-mockup {
  background: #f1f1f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #202223;
  display: grid;
  gap: 18px;
  overflow: visible;
  padding: 18px;
}

.shopify-mockup-heading {
  font-size: 24px;
  font-weight: 850;
}

.shopify-mockup-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  overflow: visible;
}

.shopify-mockup-main,
.shopify-mockup-side {
  display: grid;
  gap: 14px;
  overflow: visible;
}

.shopify-mockup-card {
  background: #fff;
  border: 1px solid #dcdfe2;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(22, 29, 37, 0.08);
  display: grid;
  gap: 14px;
  overflow: visible;
  padding: 18px;
}

.shopify-mockup-card.compact-mock-card {
  gap: 12px;
}

.shopify-mockup-card label {
  color: #202223;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.shopify-mockup-card input,
.shopify-mockup-card textarea,
.shopify-mockup-card select {
  background: #fff;
  border: 1px solid #8c9196;
  border-radius: 8px;
  color: #202223;
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
  padding: 10px 12px;
  width: 100%;
}

.shopify-mockup-card input[readonly] {
  background: #f6f6f7;
  color: #5c5f62;
}

.shopify-mockup-card textarea {
  min-height: 145px;
  resize: vertical;
}

.shopify-mockup-card .product-description-editor {
  min-height: 260px;
}

.mock-rich-toolbar {
  background: #f6f6f7;
  border: 1px solid #8c9196;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #3f4448;
  display: flex;
  gap: 16px;
  padding: 10px 12px;
}

.mock-rich-toolbar + textarea {
  border-radius: 0 0 8px 8px;
}

.mock-media-field {
  display: grid;
  gap: 10px;
}

.mock-media-drop {
  align-items: center;
  border: 1px dashed #8c9196;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 150px;
  overflow: hidden;
  padding: 12px;
}

.mock-media-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scroll-snap-type: x proximity;
  width: 100%;
}

.mock-media-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  display: flex;
  flex: 0 0 120px;
  height: 120px;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.mock-media-thumb img {
  border-radius: 6px;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  width: 100%;
}

.mock-media-drop img {
  border-radius: 8px;
  max-height: 132px;
  max-width: 180px;
  object-fit: contain;
}

.mock-media-drop .mock-media-thumb img {
  height: 100%;
  max-height: none;
  max-width: none;
  width: 100%;
}

.mock-media-drop span {
  color: var(--muted);
  font-weight: 800;
}

.mock-chip-row {
  border-top: 1px solid #dcdfe2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px -18px -18px;
  padding: 12px 18px;
}

.mock-chip-row span {
  background: #ebebeb;
  border-radius: 8px;
  color: #5c5f62;
  font-weight: 750;
  padding: 8px 10px;
}

.template-source-note {
  color: #6d7175;
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.template-variant-summary,
.variant-image-note {
  background: #f6f6f7;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.template-variant-summary span,
.variant-image-note strong {
  color: #202223;
  font-weight: 800;
}

.template-variant-summary small,
.variant-image-note span {
  color: #5c5f62;
  line-height: 1.4;
}

.template-option-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.template-option-list div {
  background: #fff;
  border: 1px solid #dcdfe2;
  border-radius: 8px;
  padding: 9px 10px;
}

.template-option-list dt {
  color: #202223;
  font-weight: 850;
  margin: 0 0 4px;
}

.template-option-list dd {
  color: #5c5f62;
  line-height: 1.35;
  margin: 0;
}

.channel-review-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.compact-channel-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
}

.native-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(26, 40, 52, 0.08);
  overflow: hidden;
}

.native-preview-topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 13px 16px;
}

.native-preview-topbar strong {
  color: #3554d1;
  font-size: 14px;
}

.instagram-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  min-height: 420px;
}

.native-preview-media {
  align-items: center;
  background: #eef3f5;
  display: flex;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.native-preview-media img,
.facebook-preview-media img,
.pinterest-pin-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.native-preview-media span,
.pinterest-pin-card span {
  color: var(--muted);
  font-weight: 800;
}

.instagram-preview-side {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.native-account-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.native-account-row strong {
  color: var(--ink);
  font-size: 17px;
}

.native-account-row small {
  color: var(--muted);
  display: block;
  font-weight: 650;
}

.native-avatar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.native-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.native-avatar-initial {
  align-items: center;
  background: #eef4f2;
  color: var(--accent);
  display: inline-flex;
  font-size: 17px;
  font-weight: 850;
  height: 100%;
  justify-content: center;
  text-transform: uppercase;
  width: 100%;
}

.native-caption-preview,
.native-hashtag-preview {
  color: #26323a;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.native-hashtag-preview {
  color: #3157a7;
}

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

.native-settings-list span {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  padding: 12px 0;
}

.channel-editor-fields {
  display: grid;
  gap: 13px;
}

.native-inline-field {
  color: var(--ink);
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
}

.native-inline-field input,
.native-inline-field textarea {
  background: #fbfffd;
  border: 1px solid #6bb5a7;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
  color: #26323a;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 12px;
  width: 100%;
}

.native-inline-field textarea {
  min-height: 135px;
  resize: vertical;
}

.native-inline-field small {
  color: var(--muted);
  font-weight: 650;
}

.field-copy-button {
  justify-self: start;
  padding: 7px 11px;
}

.caption-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.caption-option-button {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  padding: 6px 10px;
}

.caption-option-button:hover,
.caption-option-button:focus {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: none;
}

.native-editor {
  min-height: 170px;
}

.subtle-notice {
  background: #f7fcfa;
  border-color: #badbd3;
}

.facebook-preview {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-gutter: stable;
}

.facebook-preview-media {
  aspect-ratio: 1.35;
  background: #eef3f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.facebook-action-row {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-weight: 800;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 10px;
  text-align: center;
}

.pinterest-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pinterest-pin-card {
  align-items: center;
  aspect-ratio: 2 / 3;
  background: #eef3f5;
  border-radius: 18px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pinterest-preview-copy {
  display: grid;
  gap: 6px;
}

.native-channel-label {
  color: #b42318;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pinterest-preview-copy strong {
  color: var(--ink);
  font-size: 20px;
}

.pinterest-preview-copy p {
  color: #40505a;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.pinterest-preview-copy small {
  color: var(--muted);
  font-weight: 750;
}

.platform-mockup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(26, 40, 52, 0.07);
  color: #111;
  display: grid;
  overflow: hidden;
}

.mobile-native-preview,
.pinterest-create-preview {
  margin: 0 auto;
  width: min(100%, 920px);
}

.mobile-native-preview {
  max-height: min(780px, calc(100vh - 220px));
  max-height: min(780px, calc(100dvh - 220px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.instagram-create-preview,
.facebook-create-preview {
  max-width: 460px;
  width: min(460px, 100%);
}

.mobile-preview-topbar {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  min-height: 66px;
  padding: 0 14px;
}

.instagram-create-preview .mobile-preview-topbar,
.instagram-create-preview .instagram-preview-topbar {
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0;
}

.instagram-create-preview .mobile-preview-topbar::after,
.instagram-create-preview .instagram-preview-topbar::after {
  content: none !important;
  display: none !important;
}

.instagram-preview-topbar + .instagram-phone-body {
  border-top: 0 !important;
  box-shadow: none !important;
  margin-top: 0;
}

.instagram-create-preview .instagram-phone-body {
  background: #fff;
  padding-top: 0;
}

.instagram-create-preview .instagram-image-frame,
.instagram-create-preview .instagram-media-strip {
  border-top: 0 !important;
  box-shadow: none !important;
  margin-top: 0;
}

.mobile-preview-topbar > span {
  font-size: 34px;
  line-height: 1;
}

.mobile-preview-topbar > span:empty {
  min-width: 44px;
}

.instagram-preview-topbar > span:last-child {
  font-size: 0;
}

.mobile-preview-topbar strong {
  font-size: 18px;
  justify-self: center;
}

.mobile-share-button {
  background: transparent;
  border: 0;
  color: #3154f4;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.mobile-share-button:disabled {
  color: #a3a7b0;
}

.instagram-review-strategy {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
}

.instagram-review-strategy summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.instagram-review-strategy div {
  display: grid;
  gap: 6px;
}

.instagram-review-strategy span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.instagram-review-strategy ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.instagram-review-strategy li,
.instagram-review-strategy p,
.instagram-review-strategy small {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
}

.instagram-review-strategy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.instagram-account-review-panel {
  background: #f7fbff;
  border-color: rgba(37, 99, 235, 0.2);
}

.instagram-simple-status {
  align-items: center;
  background: #f4fbf7;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 8px;
  color: #14532d;
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.instagram-simple-status::before {
  content: "\2713";
  font-weight: 900;
}

.instagram-simple-status.neutral {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
  color: #334155;
}

.instagram-simple-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
}

.instagram-simple-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.instagram-simple-card span,
.instagram-simple-card small {
  color: var(--muted);
  font-weight: 750;
}

.instagram-simple-card p,
.instagram-simple-card li {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.4;
  margin: 0;
}

.instagram-simple-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.caption-option-button.is-selected {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.caption-option-button [data-choice-state] {
  color: var(--teal);
  display: block;
  font-size: 0.75rem;
  font-weight: 900;
  margin-top: 3px;
}

.instagram-insights-section,
.instagram-publishing-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-bottom: 12px;
  padding: 20px;
}

.instagram-insights-heading {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: space-between;
}

.instagram-publishing-card > div:first-child {
  display: grid;
  gap: 3px;
}

.instagram-insights-heading strong,
.instagram-publishing-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.instagram-insights-heading span,
.instagram-publishing-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.instagram-insights-heading > div {
  display: grid;
  gap: 3px;
}

.instagram-insights-permission {
  background: linear-gradient(135deg, #ecfeff, #eef2ff);
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 2px;
  justify-items: end;
  max-width: 320px;
  padding: 9px 11px;
  text-align: right;
}

.instagram-insights-permission span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.instagram-insights-permission strong {
  color: #0f766e;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.instagram-insights-pending {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.instagram-insights-pending-copy {
  align-items: center;
  color: #334155;
  display: flex;
  gap: 9px;
}

.instagram-insights-pending-copy strong {
  color: #334155;
  font-size: 0.94rem;
}

.instagram-insights-pending small {
  color: var(--muted);
  font-weight: 750;
}

.instagram-insights-spinner {
  animation: instagram-insights-spin 0.9s linear infinite;
  border: 2px solid rgba(15, 118, 110, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.instagram-insights-static-icon {
  align-items: center;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.22);
  border-radius: 50%;
  color: #c2410c;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.instagram-insights-progress {
  background: #e2e8f0;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.instagram-insights-progress span {
  animation: instagram-insights-progress 1.35s ease-in-out infinite;
  background: var(--accent);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

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

.instagram-insight-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 142px;
  padding: 18px 16px;
  position: relative;
  text-align: center;
}

.instagram-insight-card::before {
  background: #0f766e;
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.instagram-insight-card:nth-child(2)::before {
  background: #2563eb;
}

.instagram-insight-card:nth-child(3)::before {
  background: #9333ea;
}

.instagram-insight-card:nth-child(4)::before {
  background: #ea580c;
}

.instagram-insight-card.is-low-data {
  background: #fbfcfd;
}

.instagram-insight-card span,
.instagram-hashtag-history span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.instagram-insight-card strong {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.25;
}

.instagram-insight-card p,
.instagram-hashtag-history p {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.38;
  margin: 0;
}

.instagram-insight-actions,
.instagram-publishing-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instagram-insight-actions .button,
.instagram-publishing-actions .button {
  min-height: 36px;
  padding: 7px 10px;
}

.instagram-insight-breakdown {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  justify-self: stretch;
  padding-top: 8px;
  text-align: left;
}

.instagram-insight-breakdown summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  list-style: none;
  text-align: center;
}

.instagram-insight-breakdown summary::-webkit-details-marker {
  display: none;
}

.instagram-insight-secondary {
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(239, 246, 255, 0.96) 58%, rgba(255, 247, 237, 0.58)),
    #ffffff;
  border: 1px solid rgba(14, 116, 144, 0.2);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
  margin-top: 20px;
  padding: 26px;
}

.instagram-insight-secondary > summary {
  display: grid;
  gap: 16px;
  text-align: left;
}

.instagram-insight-secondary-summary {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.instagram-insight-kicker {
  color: #0f766e;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.instagram-insight-secondary-copy {
  display: block;
}

.instagram-insight-secondary-summary strong {
  color: #0f172a;
  display: block;
  font-size: 1.34rem;
  letter-spacing: 0;
  text-transform: none;
}

.instagram-insight-secondary-summary small {
  color: #475569;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 3px;
  max-width: 620px;
}

.instagram-insight-summary-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.instagram-insight-summary-metrics > span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 12px 14px;
  place-content: center;
  text-align: center;
}

.instagram-insight-summary-metrics strong {
  color: #0f766e;
  font-size: 1.18rem;
}

.instagram-insight-summary-metrics small {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.instagram-insight-secondary-action {
  background: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 12px 15px;
  text-align: center;
  white-space: nowrap;
}

.instagram-insights-scope {
  background: rgba(255, 255, 255, 0.52);
  border-left: 3px solid rgba(15, 118, 110, 0.55);
  color: #334155;
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.42;
  max-width: 940px;
  padding: 9px 12px;
}

.instagram-insight-rankings {
  counter-reset: instagram-insight-rank;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.instagram-insight-ranking-row {
  counter-increment: instagram-insight-rank;
}

.instagram-insight-ranking-section {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 4px;
  text-transform: uppercase;
}

.instagram-insight-ranking-row > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.instagram-insight-ranking-row small {
  color: #64748b;
  display: block;
  font-size: 0.76rem;
  font-weight: 750;
  margin: 2px 0 0 2.1em;
}

.instagram-insight-ranking-row span {
  align-items: baseline;
  color: #334155;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.instagram-insight-ranking-row span::before {
  color: #64748b;
  content: counter(instagram-insight-rank) ".";
  font-weight: 900;
  min-width: 1.3em;
}

.instagram-insight-ranking-row strong {
  color: #475569;
  font-size: 0.82rem;
  text-align: right;
}

.instagram-insight-ranking-row.is-selected span,
.instagram-insight-ranking-row.is-selected span::before,
.instagram-insight-ranking-row.is-selected strong {
  color: #0f766e;
}

@keyframes instagram-insights-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes instagram-insights-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .instagram-insights-spinner,
  .instagram-insights-progress span {
    animation: none;
  }
}

.instagram-hashtag-history {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
}

.instagram-insights-details {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 10px;
}

.instagram-insights-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
}

.instagram-insights-details dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.instagram-insights-details div {
  display: grid;
  gap: 2px;
}

.instagram-insights-details dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.instagram-insights-details dd {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  margin: 0;
}

.instagram-schedule-field {
  margin-bottom: 0;
}

.caption-secondary-options {
  margin-bottom: 8px;
}

.caption-secondary-options-title {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.voice-adaptation-comparison {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.86), rgba(239, 246, 255, 0.9));
  border: 1px solid rgba(14, 116, 144, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 14px;
}

.voice-adaptation-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}

.voice-adaptation-heading span {
  color: var(--ink);
  font-weight: 900;
}

.voice-adaptation-heading small,
.voice-adaptation-reason {
  color: var(--muted);
  font-weight: 700;
}

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

.voice-adaptation-row > div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 10px;
}

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

.voice-adaptation-row strong {
  color: var(--teal-dark);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.voice-adaptation-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}

.voice-adaptation-row p {
  color: var(--ink);
  font-weight: 750;
  margin: 8px 0 0;
}

.voice-adaptation-row .mini-button {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .voice-adaptation-row {
    grid-template-columns: 1fr;
  }
}

.instagram-review-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.instagram-review-facts div {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 8px 10px;
}

.instagram-review-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  margin: 0 0 3px;
}

.instagram-review-facts dd {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.caption-generation-trace {
  background: #0f172a;
  border-radius: 8px;
  color: #e5edf6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 4px 0 0;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.review-hashtag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-hashtag-chip-list span {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 9px;
}

.review-hashtag-reason-list {
  list-style: none;
  padding-left: 0 !important;
}

.review-hashtag-reason-list li {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.review-hashtag-reason-list strong {
  color: var(--teal);
  font-size: 0.9rem;
}

.review-hashtag-reason-list small {
  color: var(--muted);
  font-weight: 600;
}

.instagram-phone-body,
.facebook-phone-body {
  display: grid;
  gap: 18px;
  max-height: min(700px, calc(100vh - 300px));
  max-height: min(700px, calc(100dvh - 300px));
  overflow-y: auto;
  padding: 20px;
  scrollbar-gutter: stable;
}

.instagram-image-frame {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.instagram-media-strip {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.instagram-media-thumb {
  align-items: center;
  background: #f5f6f7;
  border: 1px solid #edf0f2;
  border-radius: 10px;
  display: flex;
  flex: 0 0 min(300px, 78%);
  height: 280px;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: center;
}

.instagram-image-frame .native-social-image {
  border: 0;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.facebook-create-preview .native-social-image {
  background: #f5f6f7;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  display: block;
  height: 180px;
  object-fit: contain;
  width: 100%;
}

.nomev-editable-field {
  background: #f4fffa;
  border: 1px solid #d9f1e7;
  border-radius: 10px;
  color: #111;
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
  padding: 10px;
  position: relative;
}

.nomev-editable-field.current-review-field {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 0 0 8px rgba(255, 213, 42, 0.26);
  padding-top: 10px;
}

.nomev-editable-field.field-focus-cue {
  animation: none;
}

@keyframes fieldFocusPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 0 0 0 rgba(255, 213, 42, 0.62);
  }

  35% {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 0 0 8px rgba(255, 213, 42, 0.38);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 0 0 0 rgba(255, 213, 42, 0);
  }
}

.field-review-note {
  appearance: none;
  background: rgba(255, 214, 51, 0.96);
  border: 1px solid rgba(134, 95, 0, 0.38);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(74, 58, 11, 0.24);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  color: #4a3900;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  left: -132px;
  min-width: 96px;
  padding: 10px 25px 10px 14px;
  position: absolute;
  right: auto;
  text-align: center;
  text-transform: uppercase;
  top: 54px;
  transform: rotate(-0.4deg);
  width: auto;
  z-index: 8;
}

.field-review-note:hover,
.field-review-note:focus-visible {
  background: rgba(255, 204, 0, 1);
  border-color: rgba(130, 98, 0, 0.44);
  outline: none;
  transform: rotate(-0.4deg) translateY(-1px);
}

.nomev-editable-field.current-review-field .field-regenerate {
  margin: 8px 0 0;
  position: static;
  z-index: 4;
}

.nomev-editable-field.current-review-field .field-regenerate summary {
  background: rgba(234, 247, 244, 0.92);
  border-color: rgba(15, 118, 110, 0.34);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  padding: 10px 12px;
  width: min(100%, 360px);
}

.field-accept-next {
  appearance: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  justify-self: start;
  margin-top: 2px;
  padding: 10px 14px;
}

.field-accept-next:hover,
.field-accept-next:focus-visible {
  background: #0b6f67;
  border-color: #0b6f67;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.review-action-cue {
  animation: reviewActionPulse 1.4s ease-out;
}

@keyframes reviewActionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 213, 42, 0.72);
  }

  45% {
    box-shadow: 0 0 0 10px rgba(255, 213, 42, 0.34);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 213, 42, 0);
  }
}

.nomev-editable-field input,
.nomev-editable-field textarea {
  background: #fbfffd;
  border: 1px solid #6bb5a7;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
  color: #26323a;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 12px;
  width: 100%;
}

.nomev-editable-field textarea {
  min-height: 130px;
  resize: vertical;
}

.nomev-editable-field small {
  color: var(--muted);
  font-weight: 650;
}

.mobile-caption-field textarea {
  min-height: 140px;
}

.mobile-option-row,
.facebook-chip-row,
.facebook-bottom-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-option-row span,
.facebook-chip-row span,
.facebook-bottom-tools span {
  align-items: center;
  background: #f0f2f5;
  border-radius: 14px;
  color: #111;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.facebook-chip-row,
.facebook-bottom-tools {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.facebook-chip-row span,
.facebook-bottom-tools span {
  flex: 0 0 auto;
}

.mobile-setting-list {
  display: grid;
  gap: 16px;
}

.mobile-setting-list span {
  border-bottom: 1px solid #edf0f2;
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 14px;
}

.facebook-author-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

.facebook-author-row .native-avatar {
  height: 54px;
  width: 54px;
}

.facebook-author-row strong {
  display: block;
  font-size: 22px;
}

.facebook-author-row small {
  color: #65676b;
}

.pinterest-create-preview {
  max-height: min(820px, calc(100vh - 220px));
  max-height: min(820px, calc(100dvh - 220px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pinterest-topbar {
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 18px;
}

.pinterest-topbar strong {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.pinterest-topbar strong span {
  align-items: center;
  background: #e60023;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: Georgia, serif;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.pinterest-save {
  background: #e60023;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 14px;
}

.pinterest-save:disabled {
  background: #d8d8d8;
  color: #777;
}

.pinterest-create-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.25fr);
  padding: 28px;
}

.pinterest-upload-card {
  align-items: center;
  background: #e8e8e3;
  border-radius: 26px;
  display: flex;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  padding: 18px;
}

.pinterest-upload-card .native-pinterest-image {
  border: 0;
  border-radius: 18px;
  display: block;
  height: auto;
  max-height: 390px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.pinterest-field-stack {
  display: grid;
  gap: 18px;
}

.pinterest-field-stack label {
  color: #767676;
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.pinterest-field-stack input,
.pinterest-field-stack textarea {
  background: #e8e8e3;
  border: 1px solid #d7d7d1;
  border-radius: 14px;
  color: #111;
  font: inherit;
  font-weight: 500;
  padding: 14px 16px;
  width: 100%;
}

.pinterest-field-stack textarea {
  min-height: 94px;
  resize: vertical;
}

.pinterest-field-stack .nomev-editable-field input,
.pinterest-field-stack .nomev-editable-field textarea {
  background: #fbfffd;
  border-color: #6bb5a7;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.pinterest-toggle-row {
  align-items: center;
  color: #8a8a8a;
  display: flex;
  gap: 10px;
  font-weight: 700;
}

.pinterest-toggle-row span {
  background: #e9e9e4;
  border-radius: 999px;
  display: inline-block;
  height: 24px;
  width: 44px;
}

.pinterest-more-options summary {
  color: #767676;
  cursor: pointer;
  font-weight: 900;
  margin-bottom: 12px;
}

.field-label {
  color: var(--ink);
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.social-image-picker small {
  color: var(--muted);
  display: block;
}

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

.image-option-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 10px;
}

.image-option-card input {
  accent-color: var(--accent);
  justify-self: start;
  margin: 0;
}

.image-option-thumb {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

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

.image-option-meta {
  display: grid;
  gap: 3px;
}

.image-option-meta strong,
.image-option-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.image-option-meta span {
  color: var(--muted);
  font-size: 12px;
}

.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);
}

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

.single-learning-grid {
  grid-template-columns: minmax(0, 1fr);
}

.instagram-learning-card {
  background: #fff;
  border: 1px solid #b9ddd5;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.instagram-intelligence-card {
  gap: 12px;
}

.compact-intelligence-card {
  background: #fbfdfc;
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow: none;
  gap: 14px;
  padding: 16px;
}

.intelligence-ready-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.intelligence-ready-row strong {
  color: var(--ink);
}

.intelligence-ready-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.connection-summary-card {
  gap: 14px;
}

.connection-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.connection-summary-grid > div {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.connection-summary-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.connection-summary-grid span {
  color: var(--muted);
  font-weight: 750;
}

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

.intelligence-status-grid > div {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.intelligence-status-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.intelligence-status-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.intelligence-progress {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.intelligence-progress-label {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
}

.intelligence-progress-label strong {
  color: var(--ink);
}

.intelligence-progress-label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.intelligence-progress-track {
  background: #dfe7e5;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.intelligence-progress-track span {
  background: linear-gradient(90deg, #0f766e, #22a699);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 18px;
  transition: width 0.2s ease;
  width: var(--progress, 0%);
}

.intelligence-progress.is-active .intelligence-progress-track span {
  background: linear-gradient(90deg, #0f766e 0%, #22a699 45%, #6ee7d8 55%, #0f766e 100%);
  background-size: 220% 100%;
  animation: intelligence-progress-sweep 1.4s linear infinite;
}

@keyframes intelligence-progress-sweep {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

.intelligence-output {
  background: #f1fbf8;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.intelligence-details {
  display: grid;
  gap: 12px;
}

.intelligence-details > summary {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  display: inline-flex;
  justify-self: start;
  list-style: none;
  padding: 9px 14px;
}

.intelligence-details > summary::-webkit-details-marker {
  display: none;
}

.intelligence-details[open] > summary {
  background: #ffffff;
}

.intelligence-output h3 {
  font-size: 1.08rem;
  margin: 0;
}

.strategy-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
}

.strategy-heading span {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
}

.strategy-context {
  color: var(--muted);
  font-weight: 750;
  margin: 0;
}

.intelligence-output ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.strategy-list {
  list-style: none;
  padding-left: 0 !important;
}

.strategy-list li {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px 1fr;
}

.strategy-list li::before {
  color: var(--teal);
  content: "✓";
  font-weight: 950;
}

.intelligence-output li {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.learned-summary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.learned-summary h4 {
  font-size: 0.94rem;
  margin: 0;
}

.learned-summary li {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.hashtag-strategy-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
  text-align: center;
}

.hashtag-strategy-panel strong {
  color: var(--ink);
  font-size: 0.94rem;
}

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

.intelligence-mini-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fffb 100%);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  align-content: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 104px;
  padding: 12px;
  text-align: center;
}

.intelligence-mini-card span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.intelligence-mini-card strong {
  color: #0b7f73;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

.intelligence-mini-card p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.35;
  margin: 0;
  max-width: 24ch;
}

.hashtag-strategy-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0;
}

.creator-intent-learning {
  background: linear-gradient(180deg, #f1fbf8 0%, #ffffff 100%);
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 13px;
  text-align: center;
}

.creator-intent-learning span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 850;
}

.creator-intent-learning strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.creator-intent-learning p {
  color: #536576;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  max-width: 62ch;
}

.creator-intent-type-list {
  display: none;
}

.creator-intent-type-table {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  width: min(100%, 620px);
}

.creator-intent-type-row {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 72px 104px;
  padding: 7px 9px;
}

.creator-intent-type-head {
  background: transparent;
  border-color: transparent;
  padding-bottom: 0;
}

.creator-intent-type-row span {
  color: #536576;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
}

.creator-intent-type-head span {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

/* Legacy chip block kept hidden while old templates/profiles settle. */
.creator-intent-type-list {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.creator-intent-type-list span {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: #0b7f73;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 8px;
}

.creator-intent-examples {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.creator-intent-examples strong {
  color: var(--teal);
  display: block;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.creator-intent-example-table {
  display: grid;
  gap: 6px;
}

.creator-intent-example-row {
  align-items: center;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.8fr) minmax(90px, 0.45fr);
  padding-top: 7px;
}

.creator-intent-example-head {
  border-top: 0;
  padding-top: 0;
}

.creator-intent-example-row span {
  color: #536576;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  min-width: 0;
}

.creator-intent-example-head span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hashtag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.hashtag-chip-list span {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 9px;
}

.upload-intelligence-preview {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
}

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

.upload-intelligence-preview ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.upload-intelligence-preview li {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.insight-summary-panel {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.draft-recommendation-card {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.recommended-strategy-section {
  background: #eefaf7;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.1);
  gap: 16px;
  padding: 20px;
}

.recommended-strategy-section .permission-badge {
  border-color: rgba(15, 118, 110, 0.28);
}

.draft-recommendation-card h3,
.draft-recommendation-card p {
  margin: 0;
}

.draft-recommendation-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.draft-recommendation-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.draft-recommendation-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.recommended-settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.recommended-settings-grid label {
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  justify-items: stretch;
  min-width: 0;
  padding: 14px;
}

.recommended-settings-grid label > span,
.draft-recommendation-card .recommended-settings-grid label > span {
  color: var(--teal) !important;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.recommended-settings-grid select {
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 7px 7px, 7px 7px;
  border-color: rgba(15, 118, 110, 0.18);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.25;
  margin: 0;
  min-height: 48px;
  overflow: hidden;
  padding: 11px 42px 11px 14px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommended-settings-grid .custom-setting-selected {
  border-color: rgba(15, 118, 110, 0.42);
}

.settings-decision-flow {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.settings-decision-flow .settings-layer-card,
.settings-decision-flow .writing-style-layer {
  align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 9px;
  justify-items: stretch;
  min-width: 0;
  padding: 14px;
}

.settings-decision-flow .creator-intent-layer {
  background: linear-gradient(180deg, #f1fbf8 0%, #ffffff 100%);
  border-color: rgba(15, 118, 110, 0.46);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09), 0 10px 22px rgba(15, 118, 110, 0.08);
  padding: 18px;
}

.settings-decision-flow .settings-layer-kicker {
  color: #0f8f70 !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.settings-decision-flow strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
}

.settings-decision-flow .creator-intent-layer strong {
  color: var(--teal);
  font-size: 1.2rem;
}

.settings-decision-flow small {
  color: #617282;
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
}

.settings-decision-flow .creator-intent-layer small {
  color: #355f64;
}

.creator-intent-recommendation {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  display: inline-grid;
  gap: 8px;
  grid-template-columns: auto auto;
  justify-content: center;
  justify-self: center;
  max-width: 100%;
  padding: 9px 14px;
}

.creator-intent-recommendation span {
  align-items: center;
  background: #e6f7f2;
  border-radius: 999px;
  color: #0f8f70;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.creator-intent-recommendation strong {
  color: var(--ink);
  font-size: 1rem;
  text-align: left;
}

.creator-intent-change {
  display: grid;
  justify-items: center;
}

.creator-intent-change summary {
  border: 1px solid rgba(15, 118, 110, 0.34);
  border-radius: 999px;
  color: var(--teal);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  list-style: none;
  padding: 9px 18px;
  text-align: center;
}

.creator-intent-change summary::-webkit-details-marker {
  display: none;
}

.creator-intent-change[open] summary {
  background: #ffffff;
}

.creator-intent-change label {
  margin-top: 12px;
  width: min(100%, 420px);
}

.upload-page-permission-badge {
  margin-top: 8px;
}

.settings-decision-flow .writing-style-heading {
  display: grid;
  gap: 5px;
}

.settings-decision-flow .writing-style-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-decision-flow .writing-style-controls label {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.14);
  padding: 12px;
}

@media (max-width: 720px) {
  .instagram-insights-heading {
    align-items: stretch;
    display: grid;
  }

  .instagram-insights-permission {
    justify-items: start;
    max-width: none;
    text-align: left;
  }

  .instagram-insights-card-grid {
    grid-template-columns: 1fr;
  }

  .instagram-insight-secondary-summary {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .instagram-insight-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .instagram-insight-secondary-action {
    width: 100%;
  }

  .business-detection-summary {
    grid-template-columns: 1fr;
  }

  .recommended-settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-decision-flow .writing-style-controls {
    grid-template-columns: 1fr;
  }

  .creator-intent-example-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .creator-intent-example-head {
    display: none;
  }
}

.recommendation-reasons {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.recommendation-reasons strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.recommendation-reasons ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommendation-reasons li {
  align-items: start;
  color: #617282;
  display: grid;
  font-weight: 550;
  gap: 8px;
  grid-template-columns: 18px 1fr;
  line-height: 1.35;
}

.recommendation-reasons li::before {
  color: #0f8f70;
  content: "\2713";
  font-weight: 850;
}

.compact-actions {
  gap: 8px;
  margin-top: 0;
}

.promotion-guidance-panel.recommendation-applied {
  border-color: rgba(15, 118, 110, 0.44);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.strategy-list li::before {
  content: "+";
}

.intelligence-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intelligence-checks span {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
}

.intelligence-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: space-between;
}

.intelligence-actions p {
  margin: 0;
}

.muted-learning-card {
  background: #f7f8f8;
  border-color: var(--line);
}

.learning-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.learning-list li {
  align-items: start;
  color: var(--ink);
  display: grid;
  font-weight: 750;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.35;
}

.learning-list li span {
  color: var(--accent);
  font-weight: 900;
}

.learning-details {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 4px;
  padding-top: 10px;
}

.learning-details summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
}

.learning-details p {
  margin: 8px 0 0;
}

.shopify-batch-mode {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.shopify-batch-mode legend {
  color: var(--ink);
  font-weight: 850;
  margin-bottom: 2px;
}

.mode-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

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

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

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

.shopify-batch-details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.shopify-batch-details[hidden] {
  display: none !important;
}

.shopify-batch-selection-warning[hidden] {
  display: none !important;
}

.batch-output-summary {
  align-items: start;
  background: #f7fbfa;
  border: 1px solid #cfe4df;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.batch-output-summary > div:first-child {
  display: grid;
  gap: 3px;
}

.batch-output-summary span {
  color: var(--muted);
}

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

.batch-output-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 8px 10px;
}

.batch-output-row strong {
  font-weight: 800;
}

.batch-output-row > span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.output-logo {
  display: block;
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.shopify-batch-detail-list {
  display: grid;
  gap: 12px;
}

.shopify-batch-detail-row {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 12px;
  position: relative;
}

.shopify-batch-detail-thumb {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
}

.shopify-batch-detail-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.shopify-batch-detail-body {
  display: grid;
  gap: 5px;
  padding-top: 34px;
}

.shopify-batch-detail-body small {
  color: var(--muted);
}

.shopify-batch-product-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: max-content;
  position: absolute;
  right: 12px;
  top: 12px;
  white-space: nowrap;
}

.shopify-batch-product-toggle strong {
  color: var(--ink);
}

.shopify-batch-gallery-options {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 10px;
}

.shopify-batch-gallery-options legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 0 4px;
}

.shopify-batch-gallery-options label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 42px minmax(0, 1fr);
}

.shopify-batch-gallery-options span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-batch-gallery-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

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

.shopify-batch-detail-body textarea {
  min-height: 86px;
}

.retained-upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  grid-template-columns: minmax(76px, 320px) 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);
}

.retained-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-output-row > .shopify-batch-detail-list,
.batch-output-row > .destination-image-selector {
  grid-column: 1 / -1;
  width: 100%;
}

.destination-image-selector {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
}

.destination-image-selector p {
  color: var(--muted);
  margin: 0 0 2px;
}

.destination-image-selector label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 52px minmax(0, 1fr);
}

.destination-image-selector img {
  border-radius: 6px;
  height: 46px;
  object-fit: cover;
  width: 52px;
}

.destination-configuration-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.destination-configuration-intro {
  margin-top: 20px;
}

.destination-configuration-intro h3 {
  margin: 0 0 4px;
}

.destination-configuration-intro p {
  margin: 0;
  color: var(--muted);
}

.selected-upload-preview {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--soft);
}

.selected-upload-preview[hidden] {
  display: none;
}

.selected-upload-preview > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.selected-upload-preview > div:first-child span {
  color: var(--muted);
}

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

.destination-configuration-heading {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  list-style: none;
}

.destination-configuration-heading::-webkit-details-marker {
  display: none;
}

.destination-configuration-heading::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
}

.destination-configuration[open] > .destination-configuration-heading::after {
  content: "−";
}

.destination-configuration-heading .output-logo {
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.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;
}

.generation-strategy-card {
  background: #f8fbfa;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

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

.generation-strategy-card p {
  color: var(--muted);
  font-weight: 750;
}

.generation-strategy-signals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.generation-strategy-signals span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.generation-strategy-signals strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.generation-strategy-group {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.generation-strategy-group > strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.generation-progress-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.generation-progress-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.generation-progress-item strong {
  color: var(--ink);
  font-size: 13px;
}

.generation-progress-item span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-progress-item em {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.generation-progress-item.running em {
  background: #fff7d6;
  color: #7a5700;
}

.generation-progress-item.completed em {
  background: var(--accent-soft);
  color: var(--accent);
}

.generation-progress-item.failed em {
  background: #fff4f4;
  color: #8a1f1f;
}

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

.brand-memory-panel {
  border: 1px solid #badbd3;
  border-radius: 8px;
  background: #f7fcfa;
  margin: 14px 0 22px;
  padding: 0;
}

.brand-memory-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style-position: inside;
  padding: 13px 15px;
}

.brand-memory-panel summary > span:first-child {
  display: inline-grid;
  gap: 2px;
  min-width: 0;
}

.brand-memory-panel summary strong {
  color: var(--ink);
}

.brand-memory-panel summary small {
  color: var(--muted);
  font-weight: 650;
}

.brand-memory-meter {
  align-items: center;
  display: inline-flex;
  flex: 0 0 min(260px, 34%);
  gap: 8px;
  min-width: 150px;
}

.brand-memory-meter > span {
  background: #e5eaee;
  border-radius: 999px;
  display: block;
  height: 9px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-memory-meter > span::before {
  background: linear-gradient(90deg, #79c9bd, #0f766e);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: var(--memory-level);
}

.brand-memory-meter em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.brand-memory-body {
  border-top: 1px solid #badbd3;
  display: grid;
  gap: 14px;
  padding: 15px;
}

.brand-memory-body h2 {
  font-size: 20px;
  margin: 0 0 4px;
}

.brand-memory-body p {
  margin: 0;
}

.brand-memory-panel.is-empty {
  border-color: var(--line);
  background: #fcfcfb;
}

.brand-memory-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-memory-list li,
.brand-memory-empty,
.brand-memory-note,
.brand-memory-strength {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.brand-memory-list strong,
.brand-memory-empty strong,
.brand-memory-note strong,
.brand-memory-strength strong {
  color: var(--ink);
}

.brand-memory-list span,
.brand-memory-empty span,
.brand-memory-note span,
.brand-memory-strength span {
  color: var(--muted);
  line-height: 1.4;
}

.brand-memory-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-memory-actions form {
  margin: 0;
}

.danger-link {
  color: #a33c3c;
}

.memory-ignore-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
}

.memory-ignore-option input {
  margin-top: 4px;
  width: auto;
}

.memory-ignore-option span {
  display: grid;
  gap: 3px;
}

.memory-ignore-option small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

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

.social-copy-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
}

.social-copy-panel .section-title {
  align-items: start;
}

.social-copy-panel h2 {
  font-size: 22px;
  margin: 0;
}

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

.social-copy-list {
  display: grid;
  gap: 14px;
}

.social-copy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.social-copy-card > div {
  display: grid;
  gap: 2px;
}

.social-copy-card strong {
  color: var(--ink);
  font-size: 18px;
}

.social-copy-card span {
  color: var(--muted);
  font-weight: 650;
}

.social-copy-warning {
  background: #fff8ec;
  border: 1px solid #e7c98f;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.social-copy-card .social-copy-warning strong,
.social-copy-card .social-copy-warning span {
  color: #6f4a0d;
}

.social-copy-card .social-copy-warning strong {
  font-size: 15px;
}

.social-copy-card .social-copy-warning span {
  font-size: 14px;
}

.social-copy-card textarea {
  min-height: 132px;
  resize: vertical;
}

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

.social-copy-fields label {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.social-copy-fields label:first-child {
  border-top: 0;
  padding-top: 0;
}

.social-copy-fields textarea {
  min-height: 76px;
}

.copy-social-button {
  justify-self: start;
}

.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%;
}

.generation-step-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.generation-step {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 750;
}

.generation-step span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.generation-step.completed {
  color: var(--ink);
}

.generation-step.completed span {
  background: var(--accent);
  border-color: var(--accent);
}

.generation-step.running {
  color: var(--teal-dark);
}

.generation-step.running span {
  animation: pulse-dot 1.2s ease-in-out infinite;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 5px rgba(13, 148, 136, 0.12);
}

.generation-step.failed {
  color: #b42318;
}

.generation-step.failed span {
  background: #b42318;
  border-color: #b42318;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.12);
  }
}

@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;
}

.batch-preflight-table td:first-child {
  min-width: 140px;
}

.batch-create-checkbox {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  font-weight: 850;
}

.batch-create-checkbox input {
  accent-color: var(--accent);
  height: 18px;
  width: 18px;
}

.inline-review-link {
  color: var(--accent);
  display: inline-block;
  font-size: 13px;
  font-weight: 850;
  margin-top: 6px;
}

.batch-warning-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.batch-warning-list li {
  color: #6b4a05;
}

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

.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;
}

.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;
}

.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);
}

.success-note > strong,
.success-note > span {
  display: block;
}

.success-note > span {
  margin-top: 0.3rem;
}

.copy-summary-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 -4px;
}

.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: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.button:disabled {
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.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;
}

@media (max-width: 720px) {
  .field-review-note {
    left: 10px;
    top: 9px;
  }

  .nomev-editable-field.current-review-field .field-regenerate {
    position: static;
  }

  .nomev-editable-field.current-review-field {
    padding-top: 52px;
  }

  .regeneration-nudge {
    grid-template-columns: 1fr;
  }

  .regeneration-nudge form {
    min-width: 0;
  }

  .generation-progress-item {
    grid-template-columns: 1fr;
  }

  .generation-progress-item em {
    justify-self: start;
  }

  .field-group,
  .form-grid,
  .detail-grid,
  .confirm-grid,
  .confirm-summary,
  .shopify-mockup-grid,
  .pinterest-create-grid,
  .channel-review-grid,
  .compact-channel-grid,
  .instagram-preview-body,
  .image-option-grid {
    grid-template-columns: 1fr;
  }

  .instagram-preview-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .native-preview-media {
    min-height: 260px;
  }

  .pinterest-create-grid {
    padding: 18px;
  }

  .pinterest-upload-card {
    min-height: 280px;
  }

  .pinterest-upload-card .native-pinterest-image {
    max-height: 250px;
  }

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

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

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

  .batch-output-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .batch-output-row > span:last-child {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .batch-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-dashboard-toolbar,
  .batch-dashboard-card-actions,
  .batch-publish-review {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-dashboard-card-top {
    grid-template-columns: 64px 1fr;
  }

  .template-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .template-actions {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .review-draft-navigation {
    grid-template-columns: 1fr;
  }

  .review-draft-navigation span {
    order: -1;
    text-align: left;
  }

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

  .metrics-grid,
  .metrics-columns,
  .public-band {
    grid-template-columns: 1fr;
  }

}
.hub-spoke-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.retained-upload .retained-upload-images {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}

.pinterest-insights-heading {
  align-items: center;
  display: flex;
  gap: 16px;
}

.pinterest-insights-mark {
  align-items: center;
  background: #bd081c;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 50px;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 900;
  height: 50px;
  justify-content: center;
}

.pinterest-insights-heading h1,
.pinterest-insights-heading p,
.pinterest-recommendation-card p {
  margin: 0;
}

.pinterest-recommendation-panel {
  background: linear-gradient(145deg, #fff 0%, #fff8f8 100%);
}

.pinterest-recommendation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pinterest-recommendation-card {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ead8da;
  border-left: 5px solid #bd081c;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.pinterest-recommendation-card.recommendation-click { border-left-color: #0f766e; }
.pinterest-recommendation-card.recommendation-board { border-left-color: #2563eb; }
.pinterest-recommendation-card.recommendation-opportunity { border-left-color: #d97706; }

.recommendation-number {
  color: #bd081c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pinterest-recommendation-card strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.pinterest-recommendation-card p {
  color: var(--muted);
  line-height: 1.5;
}

.pinterest-metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 18px;
}

.pinterest-metric-grid > div {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 16px;
}

.pinterest-metric-grid strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.pinterest-metric-grid strong em {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.pinterest-metric-grid span,
.pinterest-metric-grid small,
.pinterest-signal-bars small {
  color: var(--muted);
}

.pinterest-metric-grid span {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pinterest-signal-bars {
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pinterest-signal-bars label,
.pinterest-signal-bars label span {
  display: grid;
  gap: 4px;
}

.pinterest-signal-bars label {
  align-items: center;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
}

.pinterest-signal-bars progress {
  accent-color: #bd081c;
  height: 12px;
  width: 100%;
}

.pinterest-evidence-table td:first-child {
  min-width: 300px;
}

@media (max-width: 640px) {
  .pinterest-signal-bars label { grid-template-columns: 1fr; }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.image-card {
  margin: 0;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.missing-image {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--rose);
  border-radius: 0.75rem;
  color: var(--rose);
  text-align: center;
}

.hub-draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hub-draft-review {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hub-draft-review .panel {
  margin: 0;
}

.hub-draft-summary .hub-draft-heading {
  margin: 0;
}

.hub-draft-edit-form {
  display: grid;
  gap: 1rem;
}

.hub-draft-destination-nav {
  overflow-x: auto;
}

.hub-draft-editor-shell {
  min-width: 0;
}

.hub-draft-editor-shell .review-output-panel {
  border: 0;
  padding: 0;
}

.hub-draft-heading h2 {
  margin: 0.2rem 0 0;
}

.hub-draft-thumbnail {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  object-fit: cover;
}

.hub-batch-review-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.45rem;
  border-radius: 0.85rem;
  box-shadow: 0 0.35rem 1rem rgba(10, 35, 57, 0.06);
}

.hub-batch-review-nav .review-draft-switcher {
  gap: 0.35rem;
  padding: 0;
}

.hub-batch-review-nav .review-draft-tab {
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
}

.hub-batch-review-nav .review-draft-tab::after {
  display: none;
}

.hub-draft-review.is-collapsed-product {
  gap: 0;
}

.hub-draft-review.is-collapsed-product .hub-draft-summary {
  cursor: pointer;
}

.hub-draft-review.is-collapsed-product .hub-draft-summary:hover {
  border-color: var(--teal);
  box-shadow: 0 0.35rem 1rem rgba(16, 132, 122, 0.1);
}

.hub-draft-review.is-campaign-output .hub-draft-summary {
  display: none;
}

.hub-batch-review-nav ~ .hub-draft-review .review-output-panel > .actions {
  display: none;
}

.hub-draft-review.is-reviewed .hub-draft-summary {
  border-color: var(--teal);
}

.hub-draft-review.is-reviewed .hub-draft-heading h2::after,
.hub-batch-review-nav .review-draft-tab.is-reviewed::after {
  content: "\2713";
  margin-left: 0.5rem;
  color: var(--teal);
  font-weight: 800;
}

.hub-batch-review-actions {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -0.5rem 1.5rem rgba(10, 35, 57, 0.1);
}

.hub-batch-review-actions strong {
  color: var(--muted);
  text-align: center;
}

.campaign-history-list {
  display: grid;
  gap: 1rem;
}

.campaign-history-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.campaign-history-card > img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  object-fit: cover;
}

.campaign-history-card h2,
.campaign-history-card p {
  margin: 0.2rem 0;
}

@media (max-width: 700px) {
  .campaign-history-card {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .campaign-history-card > img {
    width: 60px;
    height: 60px;
  }

  .campaign-history-card > .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .hub-batch-review-nav {
    top: 0;
  }

  .hub-batch-review-actions {
    flex-wrap: wrap;
  }

  .hub-batch-review-actions strong {
    order: -1;
    width: 100%;
  }
}

.draft-review-field {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.draft-review-field > span,
.draft-meta-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draft-review-field p,
.draft-meta-grid p {
  margin: 0;
  line-height: 1.55;
}

.draft-rendered-copy {
  line-height: 1.65;
}

.draft-rendered-copy > :first-child {
  margin-top: 0;
}

.draft-rendered-copy > :last-child {
  margin-bottom: 0;
}

.draft-markdown-copy {
  white-space: pre-wrap;
}

.draft-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.draft-meta-grid > div,
.draft-meta-grid > label {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--soft);
}

.draft-meta-grid input,
.draft-meta-grid textarea {
  width: 100%;
}

.pin-board-choices {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.pin-board-choices legend {
  padding: 0 0.3rem;
  font-weight: 700;
}

.pin-board-choices label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
}

.pinterest-publish-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
  width: 100%;
}

.pinterest-publish-card {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  padding: 1.25rem;
  width: 100%;
}

.pinterest-publish-media {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.pinterest-publish-card .publish-image-toggle {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-start;
}

.pinterest-publish-fields {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.pinterest-publish-fields > label {
  display: grid;
  gap: 0.4rem;
}

.pinterest-publish-fields input[type="text"],
.pinterest-publish-fields input:not([type]),
.pinterest-publish-fields textarea {
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  width: 100%;
}

.pinterest-publish-fields .pin-board-choices {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  justify-items: start;
}

.pinterest-publish-fields .pin-board-choices label {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-start;
  min-width: 0;
  white-space: nowrap;
}

[data-board-validation][hidden] {
  display: none;
}

@media (max-width: 720px) {
  .pinterest-publish-card {
    grid-template-columns: 1fr;
  }

  .pinterest-publish-media img {
    max-width: 280px;
  }

}

.image-card figcaption {
  margin-top: 0.4rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-spoke-disabled progress {
  display: block;
  width: min(100%, 18rem);
  margin-top: 0.55rem;
  accent-color: var(--accent, #6b5cff);
}
