.mp-import-entry,
.mp-import-entry *,
.mp-import-result,
.mp-import-result *,
.mp-import-editor,
.mp-import-editor * {
  box-sizing: border-box;
}

/* Marketplace imported-card analysis workflow. */
.mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__stage {
  width: min(100%, 1180px);
  padding: 8px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumbnails {
  width: min(100%, 1180px);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace {
  grid-template-rows: minmax(0, 1fr);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__panels {
  overflow-y: auto;
}

.mp-import-editor[data-active-section="materials"] .mp-import-field input[readonly],
.mp-import-editor[data-active-section="materials"] .mp-import-field textarea[readonly] {
  cursor: default;
  background: #f8fafc;
  color: #263043;
}

.mp-import-editor__product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mp-import-editor__product-facts > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 10px;
  background: var(--swaipy-panel-soft, #fafbfc);
}

.mp-import-editor__product-facts small {
  color: var(--swaipy-muted, #7a8699);
  font-size: 9px;
}

.mp-import-editor__product-facts strong {
  overflow: hidden;
  color: var(--swaipy-text, #0f172a);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__characteristics {
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 10px;
  background: #fff;
}

.mp-import-editor__characteristics summary {
  padding: 11px 12px;
  cursor: pointer;
  color: var(--swaipy-text, #0f172a);
  font-size: 11px;
  font-weight: 750;
}

.mp-import-editor__characteristics dl {
  display: grid;
  gap: 0;
  max-height: 260px;
  margin: 0;
  padding: 0 12px 10px;
  overflow-y: auto;
}

.mp-import-editor__characteristics dl > div {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #edf0f4;
  font-size: 10px;
}

.mp-import-editor__characteristics dt {
  color: var(--swaipy-muted, #7a8699);
}

.mp-import-editor__characteristics dd {
  margin: 0;
  color: var(--swaipy-text, #0f172a);
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-layout {
  display: block;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-main {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-sidebar {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: static;
  gap: 16px;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-sidebar > .mp-import-editor__eyebrow,
.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-sidebar > h3,
.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-sidebar > p,
.mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-summary {
  display: none;
}

@media (max-width: 760px) {
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
    grid-template-rows: auto minmax(280px, 52vh) auto auto;
  }

  .mp-import-editor__product-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mp-import-entry {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text, #1c2230);
}

.mp-import-entry__heading {
  display: block;
  min-width: 0;
}

.mp-import-editor__source-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0b0f19;
  color: #fff;
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.mp-import-editor[data-platform="ozon"] .mp-import-editor__source-mark,
.mp-import-editor__source-mark[data-platform="ozon"],
.mp-import-editor__product-context[data-platform="ozon"] .mp-import-editor__product-context-mark {
  background: linear-gradient(145deg, #1673ff, #005bff);
}

.mp-import-result__card[data-platform="ozon"] .marketplace-result-skeleton__badge,
.projects-product-result-card[data-platform="ozon"] .marketplace-result-skeleton__badge {
  background: #005bff;
  color: #fff;
}

.mp-import-entry__heading h3 {
  margin: 0;
}

.mp-import-entry__heading h3 {
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.mp-import-entry__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
}

.mp-import-entry__field {
  display: block;
  min-width: 0;
}

.mp-import-entry__field input,
.mp-import-field input,
.mp-import-field textarea {
  width: 100%;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #fff;
  color: var(--text, #1c2230);
  font: 500 13px/1.5 var(--body-font, Manrope, "Segoe UI", sans-serif);
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.mp-import-entry__field input {
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
}

.mp-import-entry__field input:focus,
.mp-import-field input:focus,
.mp-import-field textarea:focus {
  border-color: #0b0f19;
  box-shadow: 0 0 0 3px rgba(11, 15, 25, .08);
}

.mp-import-entry__field input[aria-invalid="true"] {
  border-color: #c73d4d;
  box-shadow: 0 0 0 3px rgba(199, 61, 77, .08);
}

.mp-import-entry__status {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  color: var(--muted, #677085);
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-entry__status:empty {
  display: none;
}

.mp-import-entry__status.is-error {
  color: #a82c3b;
}

.mp-import-entry__feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.mp-import-entry__retry {
  flex: 0 0 auto;
  min-height: 24px;
  margin: -4px 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #842534;
  font: 750 11px/1.2 var(--body-font, Manrope, "Segoe UI", sans-serif);
  white-space: nowrap;
  cursor: pointer;
}

.mp-import-entry__retry:hover:not(:disabled) {
  color: #a82c3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-import-entry__retry:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.marketplace-product-upload-head {
  display: grid;
  gap: 2px;
  margin: 18px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-line, #e1e5ec);
}

.marketplace-product-upload-head h3,
.marketplace-product-upload-head p {
  margin: 0;
}

.marketplace-product-upload-head h3 {
  color: var(--text, #1c2230);
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.marketplace-product-upload-head p {
  color: var(--muted, #677085);
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-button,
.mp-import-icon-button,
.mp-import-upload,
.mp-import-editor__tab,
.mp-import-editor__close,
.mp-import-ai-action {
  appearance: none;
  border: 0;
  font-family: var(--body-font, Manrope, "Segoe UI", sans-serif);
  cursor: pointer;
}

.mp-import-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.mp-import-entry__controls .mp-import-button {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 12px;
}

.mp-import-button--primary {
  background: #0b0f19;
  color: #fff;
}

.mp-import-button--primary:hover:not(:disabled) {
  background: #202632;
}

.mp-import-button--secondary {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #202632;
}

.mp-import-button--secondary:hover:not(:disabled) {
  border-color: #aeb6c4;
  background: #f7f8fa;
}

.mp-import-button--danger {
  border: 1px solid #efc8ce;
  background: #fff7f8;
  color: #a82c3b;
}

.mp-import-button--danger:hover:not(:disabled) {
  border-color: #d98c97;
  background: #fff0f2;
}

.mp-import-button:active:not(:disabled),
.mp-import-icon-button:active:not(:disabled),
.mp-import-upload:active:not(:disabled),
.mp-import-ai-action:active:not(:disabled) {
  transform: translateY(1px);
}

.mp-import-button:disabled,
.mp-import-icon-button:disabled,
.mp-import-upload:disabled,
.mp-import-ai-action:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.mp-import-result {
  min-width: 0;
  margin: 0 0 16px;
}

.mp-import-result.hidden,
#marketplace-import-editor.hidden {
  display: none !important;
}

.mp-import-result__card {
  display: grid;
  grid-template-columns: minmax(168px, 236px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--panel-line, #e1e5ec);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 38, 52, .06);
}

.mp-import-result__media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 6px;
  min-width: 0;
  min-height: 220px;
  padding: 6px;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f2f5;
}

.mp-import-result__media-main,
.mp-import-result__media-small {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #e6e9ee;
  object-fit: cover;
}

.mp-import-result__media-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.mp-import-result__media-more {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0b0f19;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mp-import-result__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 4px 0;
}

.mp-import-result__source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted, #677085);
  font-size: 12px;
  font-weight: 650;
}

.mp-import-result__source-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0b0f19;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
}

.mp-import-result__body h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text, #1c2230);
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 760;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-import-result__description {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--muted, #677085);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mp-import-result__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}

.mp-import-result__metric {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #4f5869;
  font-size: 11px;
  font-weight: 700;
}

.mp-import-result__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.mp-import-result__actions .mp-import-button {
  min-width: 170px;
}

.marketplace-result-grid-panel {
  container: marketplace-workspace / inline-size;
}

.marketplace-unified-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  justify-content: start;
  justify-items: stretch;
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.marketplace-unified-result-grid > .mp-import-result:not(.hidden),
.marketplace-unified-result-grid > .marketplace-result-grid {
  display: contents !important;
}

.marketplace-unified-result-grid .mp-import-result__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.marketplace-unified-result-grid .mp-import-result__open {
  width: 100%;
}

.marketplace-unified-result-grid .mp-import-result__card.is-open-disabled .mp-import-result__open,
.marketplace-unified-result-grid .mp-import-result__card.is-open-disabled .marketplace-result-card-menu__toggle {
  cursor: progress;
}

.marketplace-unified-result-grid .mp-import-result__stage {
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.marketplace-unified-result-grid .mp-import-result__media-main {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 0;
  background: #ffffff;
  object-fit: contain;
}

.mp-import-result__tile-meta {
  position: absolute;
  z-index: 5;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 20px);
}

.mp-import-result__tile-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #111827;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .09);
  backdrop-filter: blur(8px);
}

.mp-import-skeleton__tile {
  position: absolute;
  inset: 22% 18%;
  overflow: hidden;
  border-radius: 18px;
  background: #e9ecf1;
}

.mp-import-skeleton__tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  content: "";
  transform: translateX(-100%);
  animation: mp-import-shimmer 1.35s ease-in-out infinite;
}

@container marketplace-workspace (min-width: 514px) {
  .marketplace-unified-result-grid {
    grid-template-columns: repeat(2, minmax(250px, 320px));
  }
}

@container marketplace-workspace (min-width: 778px) {
  .marketplace-unified-result-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

.mp-import-skeleton {
  pointer-events: none;
}

.mp-import-skeleton__block,
.mp-import-skeleton__line {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e9ecf1;
}

.mp-import-skeleton__block::after,
.mp-import-skeleton__line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: mp-import-shimmer 1.35s ease-in-out infinite;
}

.mp-import-skeleton__block {
  min-height: 220px;
  border-radius: 14px;
}

.mp-import-skeleton__line {
  width: 100%;
  height: 13px;
  margin: 8px 0;
}

.mp-import-skeleton__line--short {
  width: 44%;
}

.mp-import-skeleton__line--title {
  width: 78%;
  height: 22px;
  margin-top: 22px;
}

@keyframes mp-import-shimmer {
  to { transform: translateX(100%); }
}

body.mp-import-editor-open {
  overflow: hidden !important;
}

body.mp-import-editor-open #preset-confirm-modal.modal-backdrop:not(.hidden) {
  z-index: 1300;
}

@media (max-width: 760px) {
  body.mp-import-editor-open #preset-confirm-modal.modal-backdrop:not(.hidden) {
    align-items: center;
    padding: 16px;
  }

  body.mp-import-editor-open #preset-confirm-modal .preset-dialog--confirm {
    width: min(100%, 440px);
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 32px);
    display: flex;
    padding: 18px;
    border-radius: 20px;
  }

  body.mp-import-editor-open #preset-confirm-modal .preset-dialog__head,
  body.mp-import-editor-open #preset-confirm-modal .preset-dialog__actions {
    padding: 0;
  }

  body.mp-import-editor-open #preset-confirm-modal .preset-dialog__actions {
    border-top: 0;
    background: transparent;
  }
}

.mp-import-editor {
  position: fixed;
  z-index: 1200;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  background: #f4f5f7;
  color: var(--text, #1c2230);
  font-family: var(--body-font, Manrope, "Segoe UI", sans-serif);
}

.mp-import-editor__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.mp-import-editor__header,
.mp-import-editor__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 24px;
  border-color: var(--panel-line, #e1e5ec);
  background: rgba(255, 255, 255, .98);
}

.mp-import-editor__header {
  min-height: 72px;
  border-bottom: 1px solid var(--panel-line, #e1e5ec);
}

.mp-import-editor__footer {
  min-height: 72px;
  border-top: 1px solid var(--panel-line, #e1e5ec);
  box-shadow: 0 -8px 28px rgba(24, 30, 42, .05);
}

.mp-import-editor__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor__header-copy {
  min-width: 0;
}

.mp-import-editor__header-copy h2,
.mp-import-editor__header-copy p {
  margin: 0;
}

.mp-import-editor__header-copy h2 {
  overflow: hidden;
  color: #171c26;
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: 17px;
  font-weight: 780;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__header-copy p {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted, #677085);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__source-link {
  flex: 0 0 auto;
  color: #3f4858;
  font-weight: 700;
  text-underline-offset: 2px;
}

.mp-import-editor__source-link.hidden {
  display: none;
}

.mp-import-editor__close,
.mp-import-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  color: #303746;
  font-size: 20px;
  line-height: 1;
}

.mp-import-editor__close:hover,
.mp-import-icon-button:hover:not(:disabled) {
  border-color: #b8bfcb;
  background: #f6f7f9;
}

.mp-import-editor__body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mp-import-editor__visual,
.mp-import-editor__workspace {
  min-width: 0;
  min-height: 0;
}

.mp-import-editor__visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f5f7;
}

.mp-import-editor__section-head,
.mp-import-editor__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor__section-head h3,
.mp-import-editor__panel-head h3,
.mp-import-editor__eyebrow,
.mp-import-editor__panel-copy {
  margin: 0;
}

.mp-import-editor__section-head h3,
.mp-import-editor__panel-head h3 {
  color: #1a202b;
  font-family: var(--title-font, Manrope, "Segoe UI", sans-serif);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.mp-import-editor__eyebrow {
  margin-bottom: 2px;
  color: #7d8595;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mp-import-editor__count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7e9ed;
  color: #3f4756;
  font-size: 11px;
  font-weight: 750;
}

.mp-import-editor__stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  width: 100%;
  min-height: 300px;
  max-height: min(50vh, 620px);
  overflow: hidden;
  border: 1px solid #e0e4ea;
  border-radius: 18px;
  background:
    linear-gradient(45deg, #f3f4f6 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, #f3f4f6 25%, transparent 25%) 0 9px / 18px 18px,
    linear-gradient(45deg, transparent 75%, #f3f4f6 75%) 9px -9px / 18px 18px,
    linear-gradient(-45deg, transparent 75%, #f3f4f6 75%) -9px 0 / 18px 18px,
    #fff;
}

.mp-import-editor__stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.mp-import-editor__stage img.hidden,
.mp-import-editor__video-badge.hidden {
  display: none;
}

.mp-import-editor__stage-placeholder {
  color: #8a92a2;
  font-size: 13px;
  font-weight: 650;
}

.mp-import-editor__stage-placeholder.hidden {
  display: none;
}

.mp-import-editor__video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 15, 25, .9);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.mp-import-editor__slide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0e4ea;
  border-radius: 14px;
  background: #fff;
}

.mp-import-editor__slide-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-editor__slide-status strong,
.mp-import-editor__slide-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__slide-status strong {
  color: #242b38;
  font-size: 12px;
}

.mp-import-editor__slide-status span {
  color: var(--muted, #677085);
  font-size: 10px;
}

.mp-import-editor__slide-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.mp-import-icon-button {
  width: 40px;
  height: 40px;
  font-size: 15px;
  font-weight: 700;
}

.mp-import-editor__slide-actions .mp-import-button {
  min-height: 40px;
  white-space: nowrap;
}

.mp-import-editor__thumbnails {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.mp-import-editor__thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.mp-import-editor__thumb-button {
  position: relative;
  display: block;
  width: 76px;
  height: 94px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #e6e9ee;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.mp-import-editor__thumb-button img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.mp-import-editor__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7e9ed, #f5f6f8);
}

.mp-import-editor__thumb.is-focused .mp-import-editor__thumb-button {
  border-color: #0b0f19;
  box-shadow: 0 0 0 3px rgba(11, 15, 25, .1);
}

.mp-import-editor__thumb.is-excluded .mp-import-editor__thumb-button img {
  opacity: .35;
  filter: grayscale(.6);
}

.mp-import-editor__thumb.is-excluded .mp-import-editor__thumb-button {
  background: #f0f1f3;
}

.mp-import-editor__thumb-index,
.mp-import-editor__thumb-state,
.mp-import-editor__thumb-video,
.mp-import-editor__thumb-owned {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(11, 15, 25, .16);
  font-size: 9px;
  font-weight: 850;
}

.mp-import-editor__thumb-index {
  bottom: 7px;
  left: 7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, .94);
  color: #242b38;
}

.mp-import-editor__thumb-state {
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  background: #0b0f19;
  color: #fff;
}

.mp-import-editor__thumb.is-excluded .mp-import-editor__thumb-state {
  border: 1px solid #cbd0d9;
  background: rgba(255, 255, 255, .94);
  color: #737c8d;
}

.mp-import-editor__thumb.is-uploaded .mp-import-editor__thumb-state {
  top: auto;
  bottom: 7px;
}

.mp-import-editor__thumb-video {
  right: 7px;
  bottom: 7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: rgba(11, 15, 25, .88);
  color: #fff;
}

.mp-import-editor__thumb-owned {
  top: 8px;
  left: 7px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: #242b38;
  font-size: 8px;
  letter-spacing: .01em;
}

.mp-import-editor__upload-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mp-import-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px dashed #cbd1da;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #242b38;
  text-align: left;
}

.mp-import-upload:hover {
  border-color: #969fad;
  background: #fff;
}

.mp-import-upload__icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e9ebef;
  font-size: 18px;
  font-weight: 600;
}

.mp-import-upload > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-upload strong,
.mp-import-upload small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-import-upload strong {
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.mp-import-editor__upload-feedback {
  min-height: 0;
  margin: 0;
  color: var(--muted, #677085);
  font-size: 12px;
  line-height: 1.4;
}

.mp-import-editor__upload-feedback:empty {
  display: none;
}

.mp-import-editor__upload-feedback.is-error {
  color: #a82c3b;
}

.mp-import-editor__upload-feedback.is-success {
  color: #2f7454;
}

.mp-import-editor__product-photos {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e4ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.mp-import-editor__product-photos.hidden {
  display: none;
}

.mp-import-editor__product-photos-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor__product-photos-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-editor__product-photos-head strong {
  color: #242b38;
  font-size: 11px;
}

.mp-import-editor__product-photos-head span {
  color: var(--muted, #677085);
  font-size: 9px;
  line-height: 1.35;
}

.mp-import-editor__product-photos-count {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eceef2;
  color: #4f5869 !important;
  font-weight: 750;
  white-space: nowrap;
}

.mp-import-editor__product-photos-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 1px 1px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.mp-import-editor__product-photo {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #dfe3e9;
  border-radius: 11px;
  background: #e9ebef;
}

.mp-import-editor__product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-editor__product-photo-remove {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(11, 15, 25, .84);
  color: #fff;
  font: 700 14px/1 var(--body-font, Manrope, "Segoe UI", sans-serif);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.mp-import-editor__product-photo-remove:disabled {
  cursor: progress;
  opacity: .55;
}

.mp-import-upload small {
  color: var(--muted, #677085);
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
}

.mp-import-editor__workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid var(--panel-line, #e1e5ec);
  background: #fff;
}

.mp-import-editor__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-line, #e1e5ec);
  background: #fff;
}

.mp-import-editor__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  background: transparent;
  color: #6b7485;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.mp-import-editor__tab:hover {
  background: #f2f3f6;
  color: #313846;
}

.mp-import-editor__tab.is-active {
  background: #0b0f19;
  color: #fff;
}

.mp-import-editor__panels {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.mp-import-editor__panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
}

.mp-import-editor__panel.hidden {
  display: none;
}

.mp-import-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mp-import-field > span {
  color: #414a5a;
  font-size: 11px;
  font-weight: 750;
}

.mp-import-field input {
  height: 44px;
  padding: 0 12px;
}

.mp-import-field textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.mp-import-editor__paid-actions {
  display: grid;
  gap: 8px;
}

.mp-import-ai-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dfe3e9;
  border-radius: 14px;
  background: #fff;
  color: #252c39;
  text-align: left;
}

.mp-import-ai-action:hover:not(:disabled) {
  border-color: #aeb6c2;
  background: #f8f9fa;
}

.mp-import-ai-action.is-busy {
  cursor: wait;
}

.mp-import-ai-action--featured {
  border-color: #cbd1da;
  background: #f5f6f8;
}

.mp-import-ai-action > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-ai-action strong,
.mp-import-ai-action small {
  line-height: 1.4;
}

.mp-import-ai-action strong {
  font-size: 11px;
}

.mp-import-ai-action small {
  color: var(--muted, #677085);
  font-size: 9px;
}

.mp-import-ai-action b {
  flex: 0 0 auto;
  color: #4a5363;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-import-editor__panel-copy {
  color: var(--muted, #677085);
  font-size: 12px;
  line-height: 1.55;
}

.mp-import-editor__analysis {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mp-import-editor__analysis:empty {
  display: none;
}

.mp-import-analysis__state {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  background: #fff;
}

.mp-import-analysis__state-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f2f5;
  color: #202938;
  font-size: 15px;
  font-weight: 850;
}

.mp-import-analysis__state > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mp-import-analysis__state h4,
.mp-import-analysis__state p {
  margin: 0;
}

.mp-import-analysis__state h4 {
  color: #172033;
  font-size: 14px;
}

.mp-import-analysis__state p,
.mp-import-analysis__state small {
  color: #69758a;
  font-size: 11px;
  line-height: 1.5;
}

.mp-import-analysis__state--error {
  border-color: #f0c6cf;
  background: #fff8f9;
}

.mp-import-analysis__state--error .mp-import-analysis__state-icon {
  background: #fce7eb;
  color: #b4233a;
}

.mp-import-analysis__state--partial {
  border-color: #ecd39d;
  background: #fffbf2;
}

.mp-import-analysis__state--partial .mp-import-analysis__state-icon {
  background: #fff0c9;
  color: #a76508;
}

.mp-import-analysis__progress {
  position: relative;
  width: min(520px, 100%);
  height: 6px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf6;
}

.mp-import-analysis__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #202938, #667287);
  transition: width .25s ease;
}

.mp-import-analysis__progress.is-indeterminate i {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 34% !important;
  animation: mp-reference-v2-busy-bar 1.5s ease-in-out infinite;
}

.mp-import-analysis__kicker {
  color: #7b879b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-import-analysis__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, .75fr);
  gap: 12px;
}

.mp-import-analysis__cover,
.mp-import-analysis__verdict,
.mp-import-analysis__diagnostic,
.mp-import-analysis__series,
.mp-import-analysis__sequence,
.mp-import-analysis__details {
  border: 1px solid #dfe5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(19, 32, 53, .025);
}

.mp-import-analysis__cover {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 18px;
  padding: 17px;
}

.mp-import-analysis__cover-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef1f6, #f8f9fb);
}

.mp-import-analysis__cover-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-analysis__cover-media > span {
  color: #7d1bab;
  font-size: 24px;
  font-weight: 900;
  line-height: .9;
  text-align: center;
}

.mp-import-analysis__cover-media > b {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 9px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.mp-import-analysis__cover-copy {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
}

.mp-import-analysis__cover-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mp-import-analysis__cover-heading h4,
.mp-import-analysis__verdict h4,
.mp-import-analysis__section-title h4 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 17px;
  line-height: 1.25;
}

.mp-import-analysis__score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex: 0 0 auto;
  color: #1d4ed8;
}

.mp-import-analysis__score b {
  font-size: 24px;
}

.mp-import-analysis__score small {
  font-size: 9px;
}

.mp-import-analysis__cover-copy > p,
.mp-import-analysis__verdict p {
  margin: 0;
  color: #526075;
  font-size: 11px;
  line-height: 1.58;
}

.mp-import-analysis__cover-factors {
  display: grid;
  gap: 6px;
}

.mp-import-analysis__cover-factors > span {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 9px;
  padding-top: 7px;
  border-top: 1px solid #edf0f4;
}

.mp-import-analysis__cover-factors small,
.mp-import-analysis__cover-action small,
.mp-import-analysis__headline small,
.mp-import-analysis__overall span {
  color: #7b8799;
  font-size: 9px;
}

.mp-import-analysis__cover-factors b {
  color: #344054;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.mp-import-analysis__cover-action,
.mp-import-analysis__headline {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 11px;
}

.mp-import-analysis__cover-action {
  background: #eef5ff;
}

.mp-import-analysis__headline {
  background: #f6f1ff;
}

.mp-import-analysis__cover-action strong,
.mp-import-analysis__headline strong {
  color: #253451;
  font-size: 10px;
  line-height: 1.45;
}

.mp-import-analysis__verdict {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 19px;
  background: linear-gradient(155deg, #fbfcff, #f4f7fb);
}

.mp-import-analysis__overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #dfe5ed;
}

.mp-import-analysis__overall strong {
  color: #263b67;
  font-size: 13px;
}

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

.mp-import-analysis__diagnostic {
  overflow: hidden;
}

.mp-import-analysis__diagnostic-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 15px 11px;
}

.mp-import-analysis__diagnostic-head span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.mp-import-analysis__diagnostic-head h4 {
  margin: 0;
  color: #1d2939;
  font-size: 13px;
}

.mp-import-analysis__diagnostic--strengths .mp-import-analysis__diagnostic-head span {
  background: #dcf7e8;
  color: #168755;
}

.mp-import-analysis__diagnostic--improvements .mp-import-analysis__diagnostic-head span {
  background: #fff1d6;
  color: #c27008;
}

.mp-import-analysis__diagnostic--missing .mp-import-analysis__diagnostic-head span {
  background: #e9edff;
  color: #4f60d9;
}

.mp-import-analysis__finding-list {
  display: grid;
  padding: 0 15px 14px;
}

.mp-import-analysis__finding {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
}

.mp-import-analysis__finding > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mp-import-analysis__finding i {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: #9aa5b5;
}

.mp-import-analysis__diagnostic--strengths .mp-import-analysis__finding i { background: #2eb77d; }
.mp-import-analysis__diagnostic--improvements .mp-import-analysis__finding i { background: #e59a25; }
.mp-import-analysis__diagnostic--missing .mp-import-analysis__finding i { background: #6675e8; }

.mp-import-analysis__finding strong {
  color: #293548;
  font-size: 10px;
  line-height: 1.4;
}

.mp-import-analysis__finding p,
.mp-import-analysis__finding small,
.mp-import-analysis__finding > b,
.mp-import-analysis__empty {
  margin: 0;
  color: #6c7789;
  font-size: 9px;
  line-height: 1.5;
}

.mp-import-analysis__finding small {
  color: #929bad;
}

.mp-import-analysis__finding > b {
  color: #46566e;
  font-weight: 750;
}

.mp-import-analysis__series {
  overflow: hidden;
}

.mp-import-analysis__section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7ebf1;
}

.mp-import-analysis__section-title > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #5f6c80;
  font-size: 9px;
  font-weight: 750;
}

.mp-import-analysis__series ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-import-analysis__series li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 18px;
  border-top: 1px solid #edf0f4;
}

.mp-import-analysis__series li:first-child {
  border-top: 0;
}

.mp-import-analysis__series-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2f4f8;
  color: #2a3547;
  font-size: 11px;
  font-weight: 850;
}

.mp-import-analysis__series-task,
.mp-import-analysis__series-sources {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-import-analysis__series-task small,
.mp-import-analysis__series-sources small {
  color: #8792a4;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.mp-import-analysis__series-task strong {
  color: #243044;
  font-size: 10px;
  line-height: 1.4;
}

.mp-import-analysis__series-task p {
  margin: 0;
  color: #6d788a;
  font-size: 9px;
  line-height: 1.45;
}

.mp-import-analysis__series-sources > div {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
}

.mp-import-analysis__source-thumb {
  position: relative;
  width: 32px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-radius: 6px;
  background: #f1f3f6;
}

.mp-import-analysis__source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-analysis__source-thumb b {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: inline-grid;
  place-items: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .9);
  color: #344054;
  font-size: 7px;
}

.mp-import-analysis__source-fallback {
  padding: 6px;
  border-radius: 6px;
  background: #f1f3f6;
  color: #667085;
  font-size: 8px;
}

.mp-import-analysis__sequence {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.mp-import-analysis__sequence > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef1ff;
  color: #5967d9;
  font-weight: 850;
}

.mp-import-analysis__sequence small {
  color: #7b8799;
  font-size: 9px;
  font-weight: 750;
}

.mp-import-analysis__sequence p {
  margin: 3px 0 0;
  color: #4f5d72;
  font-size: 10px;
  line-height: 1.55;
}

.mp-import-analysis__details {
  overflow: hidden;
}

.mp-import-analysis__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: #263247;
  font-size: 11px;
  font-weight: 800;
  list-style: none;
}

.mp-import-analysis__details summary::-webkit-details-marker { display: none; }

.mp-import-analysis__details summary b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f3f7;
  color: #6b7688;
  font-size: 9px;
}

.mp-import-analysis__slide-list {
  display: grid;
  padding: 0 14px 14px;
}

.mp-import-analysis__slide-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid #edf0f4;
}

.mp-import-analysis__slide-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f5;
  color: #68758a;
  font-size: 12px;
  font-weight: 850;
}

.mp-import-analysis__slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-analysis__slide-list article > div:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mp-import-analysis__slide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mp-import-analysis__slide-heading strong,
.mp-import-analysis__slide-heading b {
  color: #2d394c;
  font-size: 10px;
}

.mp-import-analysis__slide-list p,
.mp-import-analysis__slide-list small,
.mp-import-analysis__slide-list em {
  margin: 0;
  color: #6a7688;
  font-size: 9px;
  line-height: 1.5;
  font-style: normal;
}

.mp-import-analysis__slide-list em {
  color: #3e4f69;
  font-weight: 700;
}

.mp-import-analysis__cover-copy,
.mp-import-analysis__finding,
.mp-import-analysis__series-task,
.mp-import-analysis__sequence,
.mp-import-analysis__slide-list article {
  overflow-wrap: anywhere;
}

.mp-import-editor__apply-structure {
  width: 100%;
}

.mp-import-editor__apply-structure.hidden {
  display: none;
}

.mp-import-editor__feedback {
  min-height: 0;
  margin: 0;
  color: var(--muted, #677085);
  font-size: 10px;
  line-height: 1.45;
}

.mp-import-editor__feedback:empty {
  display: none;
}

.mp-import-editor__footer-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-editor__footer-copy strong,
.mp-import-editor__footer-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__footer-copy strong {
  color: #262d39;
  font-size: 12px;
}

.mp-import-editor__footer-copy span {
  color: var(--muted, #677085);
  font-size: 10px;
}

.mp-import-editor__generate {
  min-width: 220px;
  min-height: 44px;
}

.mp-import-editor :focus-visible,
.mp-import-entry :focus-visible,
.mp-import-result :focus-visible {
  outline: 3px solid rgba(11, 15, 25, .22);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .mp-import-editor__header,
  .mp-import-editor__footer {
    padding-inline: 16px;
  }

  .mp-import-editor__body {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  }

  .mp-import-editor__visual {
    padding: 16px;
  }

  .mp-import-editor__panel {
    padding: 16px;
  }

  .mp-import-editor__upload-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .mp-import-editor {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mp-import-editor__shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .mp-import-editor__header {
    position: sticky;
    top: 0;
  }

  .mp-import-editor__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .mp-import-editor__visual,
  .mp-import-editor__workspace,
  .mp-import-editor__panels {
    overflow: visible;
  }

  .mp-import-editor__workspace {
    border-top: 1px solid var(--panel-line, #e1e5ec);
    border-left: 0;
  }

  .mp-import-editor__tabs {
    position: sticky;
    z-index: 2;
    top: 72px;
  }

  .mp-import-editor__footer {
    position: sticky;
    bottom: 0;
  }

  .mp-import-editor__stage {
    flex: none;
    height: min(58vw, 520px);
    max-height: none;
  }

  .mp-import-editor__upload-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-import-editor__panel {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .mp-import-result__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-result__media {
    min-height: 260px;
  }

  .mp-import-result__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-import-result__actions .mp-import-button {
    width: 100%;
  }

  .mp-import-editor__header {
    min-height: 64px;
    padding: 8px 12px;
  }

  .mp-import-editor__source-mark {
    width: 36px;
    height: 36px;
  }

  .mp-import-editor__header-copy h2 {
    font-size: 14px;
  }

  .mp-import-editor__source-link {
    display: none;
  }

  .mp-import-editor__close {
    width: 40px;
    height: 40px;
  }

  .mp-import-editor__visual,
  .mp-import-editor__panel {
    padding: 12px;
  }

  .mp-import-editor__stage {
    height: min(86vw, 460px);
    min-height: 260px;
    border-radius: 14px;
  }

  .mp-import-editor__slide-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-import-editor__slide-actions {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .mp-import-editor__slide-actions .mp-import-button {
    min-width: 0;
    height: auto;
    min-height: 40px;
    padding: 6px 8px;
    overflow: visible;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .mp-import-editor__slide-actions .mp-import-button--danger {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mp-import-editor__thumb,
  .mp-import-editor__thumb-button {
    width: 68px;
  }

  .mp-import-editor__thumb {
    flex-basis: 68px;
  }

  .mp-import-editor__thumb-button {
    height: 84px;
  }

  .mp-import-editor__upload-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__tabs {
    top: 64px;
    gap: 4px;
    padding: 8px 12px;
  }

  .mp-import-editor__tab {
    min-height: 38px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .mp-import-editor__panel {
    min-height: 360px;
  }

  .mp-import-editor__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .mp-import-editor__footer-copy span {
    white-space: normal;
  }

  .mp-import-editor__generate {
    width: 100%;
    min-width: 0;
  }
}

/* Reference-flow v2: one task per screen, persistent stepper and footer. */
.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__global-tabs,
.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__sections,
.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__save-status {
  display: none !important;
}

.mp-reference-v2 {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f7f8fc;
}

.mp-reference-v2.hidden {
  display: none !important;
}

.mp-reference-v2__stepper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid #e5e8ef;
  background: rgba(255, 255, 255, .98);
}

.mp-reference-v2__step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  padding: 4px 24px 4px 0;
  border: 0;
  background: transparent;
  color: #778197;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__step:not(:last-child)::after {
  position: absolute;
  top: 20px;
  right: 8px;
  width: 16px;
  height: 1px;
  background: #d9ddea;
  content: "";
}

.mp-reference-v2__step > span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dce1ec;
  border-radius: 50%;
  background: #f3f5f9;
  color: #798298;
  font-size: 13px;
  font-weight: 800;
}

.mp-reference-v2__step b,
.mp-reference-v2__step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-reference-v2__step b {
  color: #4d576c;
  font-size: 14px;
  line-height: 1.35;
}

.mp-reference-v2__step small {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.mp-reference-v2__step.is-active > span {
  border-color: #20283a;
  background: #20283a;
  color: #fff;
}

.mp-reference-v2__step.is-complete > span {
  border-color: #dce1ec;
  background: #f3f5f9;
  color: #596579;
}

.mp-reference-v2__step.is-active.is-complete > span {
  border-color: #20283a;
  background: #20283a;
  color: #fff;
}

.mp-reference-v2__step.is-active b {
  color: #20283a;
}

.mp-reference-v2__step.is-complete b {
  color: #435064;
}

.mp-reference-v2__step.is-active.is-complete b {
  color: #20283a;
}

.mp-reference-v2__step:disabled {
  cursor: default;
  opacity: .58;
}

.mp-reference-v2__content {
  min-width: 0;
  min-height: 0;
  padding: 18px clamp(20px, 4vw, 62px) 24px;
  overflow: auto;
  outline: 0;
  scroll-padding: 24px;
}

.mp-reference-v2__screen {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.mp-reference-v2__screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.mp-reference-v2__screen-head > div:first-child {
  min-width: 0;
}

.mp-reference-v2__screen-head span {
  color: #7a849a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-reference-v2__screen-head h3,
.mp-reference-v2__screen-head p {
  margin: 0;
}

.mp-reference-v2__screen-head h3 {
  margin-top: 3px;
  color: #151c2c;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.15;
}

.mp-reference-v2__screen-head p {
  max-width: 860px;
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.mp-reference-v2__screen-head > b,
.mp-reference-v2__screen-actions > b {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf0f6;
  color: #536078;
  font-size: 12px;
  white-space: nowrap;
}

.mp-reference-v2__screen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-reference-v2__screen-actions button,
.mp-reference-v2__target-data > header button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d9deea;
  border-radius: 9px;
  background: #fff;
  color: #151c2c;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mp-reference-v2__source-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  background: #fff;
}

.mp-reference-v2__source-strip figure {
  position: relative;
  flex: 0 0 70px;
  height: 86px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e6ef;
  border-radius: 9px;
  background: #f1f3f7;
}

.mp-reference-v2__source-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__source-strip figcaption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #1d2434;
  font-size: 10px;
  font-weight: 800;
}

.mp-reference-v2__analysis-state,
.mp-reference-v2__plan-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e0e4eb;
  border-radius: 14px;
  background: #f8f9fb;
}

.mp-reference-v2__analysis-state > i,
.mp-reference-v2__plan-empty > i {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9edf2;
  color: #2a3343;
  font-style: normal;
  font-size: 18px;
}

.mp-reference-v2__analysis-state strong,
.mp-reference-v2__analysis-state p,
.mp-reference-v2__plan-empty strong,
.mp-reference-v2__plan-empty p {
  margin: 0;
}

.mp-reference-v2__analysis-state strong,
.mp-reference-v2__plan-empty strong {
  color: #222a3b;
  font-size: 15px;
}

.mp-reference-v2__analysis-state p,
.mp-reference-v2__plan-empty p {
  margin-top: 3px;
  color: #68738a;
  font-size: 14px;
}

.mp-reference-v2__analysis-progress {
  margin-top: 14px;
}

.mp-reference-v2__analysis-overview {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #e0e4eb;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f9fb, #fff);
}

.mp-reference-v2__analysis-overview > div {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.mp-reference-v2__analysis-overview > div > span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e9edf2;
  color: #303a4b;
  font-size: 15px;
}

.mp-reference-v2__analysis-overview h4,
.mp-reference-v2__analysis-overview p,
.mp-reference-v2__analysis-overview ul {
  margin: 0;
}

.mp-reference-v2__analysis-overview h4 {
  color: #20283a;
  font-size: 15px;
  line-height: 1.35;
}

.mp-reference-v2__analysis-overview p {
  margin-top: 3px;
  color: #747e91;
  font-size: 12px;
}

.mp-reference-v2__analysis-overview ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.mp-reference-v2__analysis-overview li {
  position: relative;
  padding-left: 17px;
  color: #3d475c;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__analysis-overview li::before {
  position: absolute;
  top: .62em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5f6b7e;
  content: "";
}

.mp-reference-v2__analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.mp-reference-v2__analysis-main {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
}

.mp-reference-v2__analysis-slides,
.mp-reference-v2__analysis-aside,
.mp-reference-v2__plan-list {
  display: grid;
  align-content: start;
  gap: 9px;
}

.mp-reference-v2__analysis-row,
.mp-reference-v2__analysis-aside section,
.mp-reference-v2__target-data,
.mp-reference-v2__target-photos,
.mp-reference-v2__plan-card,
.mp-reference-v2__marketplace-copy {
  border: 1px solid #e0e4ed;
  border-radius: 14px;
  background: #fff;
}

.mp-reference-v2__analysis-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 8px 12px;
}

.mp-reference-v2__analysis-row > span:nth-child(2) {
  min-width: 0;
}

.mp-reference-v2__analysis-row > span:nth-child(2) b,
.mp-reference-v2__analysis-row > span:nth-child(2) small {
  display: block;
}

.mp-reference-v2__analysis-row > span:nth-child(2) b {
  color: #222a3b;
  font-size: 14px;
  line-height: 1.35;
}

.mp-reference-v2__analysis-row > span:nth-child(2) small {
  margin-top: 4px;
  color: #687389;
  font-size: 13px;
  line-height: 1.4;
}

.mp-reference-v2__analysis-row summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 8px 12px;
  list-style: none;
  cursor: pointer;
}

.mp-reference-v2__analysis-row summary::-webkit-details-marker,
.mp-reference-v2__plan-grounding summary::-webkit-details-marker,
.mp-reference-v2__marketplace-copy summary::-webkit-details-marker {
  display: none;
}

.mp-reference-v2__analysis-thumb {
  width: 54px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: #eff1f5;
}

.mp-reference-v2__analysis-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__analysis-row summary b,
.mp-reference-v2__analysis-row summary small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-reference-v2__analysis-row summary b {
  color: #222a3b;
  font-size: 14px;
}

.mp-reference-v2__analysis-row summary small {
  margin-top: 4px;
  color: #6d768a;
  font-size: 13px;
}

.mp-reference-v2__analysis-row summary > i {
  color: #5f6b7e;
  font-style: normal;
}

.mp-reference-v2__analysis-row[open] summary > i {
  transform: rotate(180deg);
}

.mp-reference-v2__analysis-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px 82px;
}

.mp-reference-v2__analysis-detail p {
  margin: 0;
  padding: 10px;
  border-radius: 9px;
  background: #f7f8fb;
}

.mp-reference-v2__analysis-detail b,
.mp-reference-v2__analysis-detail span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__analysis-detail b {
  margin-bottom: 4px;
  color: #566078;
}

.mp-reference-v2__analysis-detail span {
  color: #273147;
}

.mp-reference-v2__analysis-technical {
  border: 1px solid #e0e4ed;
  border-radius: 12px;
  background: #fff;
}

.mp-reference-v2__analysis-technical > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  color: #68748a;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.mp-reference-v2__analysis-technical > summary::-webkit-details-marker {
  display: none;
}

.mp-reference-v2__analysis-technical[open] > summary span {
  transform: rotate(180deg);
}

.mp-reference-v2__analysis-technical-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.mp-reference-v2__analysis-technical-list > article {
  overflow: hidden;
  border: 1px solid #e7eaf1;
  border-radius: 10px;
}

.mp-reference-v2__analysis-technical-list h5 {
  margin: 0;
  padding: 10px 12px 0;
  color: #30394c;
  font-size: 12px;
}

.mp-reference-v2__analysis-technical-list .mp-reference-v2__analysis-detail {
  padding: 10px 12px 12px;
}

.mp-reference-v2__analysis-aside section {
  padding: 16px;
}

.mp-reference-v2__analysis-aside h4,
.mp-reference-v2__analysis-aside p {
  margin: 0;
}

.mp-reference-v2__analysis-aside h4 {
  margin-bottom: 10px;
  color: #20283a;
  font-size: 14px;
}

.mp-reference-v2__analysis-aside p {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  color: #4f5a70;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__analysis-aside p span {
  color: #2d9b69;
}

.mp-reference-v2__analysis-aside .is-warning {
  border-color: #f1dfc3;
  background: #fffbf5;
}

.mp-reference-v2__analysis-aside .is-warning p span {
  color: #df8a21;
}

.mp-reference-v2__mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mp-reference-v2__mode-grid > button {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 17px 88px 17px 18px;
  border: 1px solid #dfe3ec;
  border-radius: 13px;
  background: #fff;
  color: #20283a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__mode-grid > button.is-selected {
  border-color: #8c96a8;
  background: #fff;
  box-shadow: inset 0 0 0 1px #8c96a8, 0 5px 16px rgba(24, 32, 48, .06);
}

.mp-reference-v2__mode-copy {
  min-width: 0;
}

.mp-reference-v2__mode-state {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  padding: 4px 7px;
  border-radius: 7px;
  background: #f1f3f7;
  color: #596579;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.mp-reference-v2__mode-grid > button.is-selected .mp-reference-v2__mode-state {
  display: block;
}

.mp-reference-v2__mode-grid b,
.mp-reference-v2__mode-grid small {
  display: block;
}

.mp-reference-v2__mode-grid b {
  font-size: 14px;
}

.mp-reference-v2__mode-grid small {
  margin-top: 4px;
  color: #687389;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__visual-control {
  display: grid;
  grid-template-columns: 142px minmax(180px, 210px) minmax(280px, 440px);
  align-items: center;
  justify-content: start;
  gap: 10px;
  min-height: 50px;
  margin: 2px 0 14px;
  padding: 9px 0;
  border-block: 1px solid #e7eaf0;
}

.mp-reference-v2__visual-control-label {
  color: #30394c;
  font-size: 13px;
  font-weight: 750;
}

.mp-reference-v2__visual-mode {
  position: relative;
  min-width: 0;
}

.mp-reference-v2__visual-mode-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d4dae5;
  border-radius: 10px;
  background: #fff;
  color: #20283a;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__visual-mode-trigger i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #667085;
  border-bottom: 1.5px solid #667085;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 120ms ease;
}

.mp-reference-v2__visual-mode.is-open .mp-reference-v2__visual-mode-trigger i {
  transform: translateY(2px) rotate(225deg);
}

.mp-reference-v2__visual-mode-trigger:hover {
  border-color: #b6bfce;
}

.mp-reference-v2__visual-mode-trigger:focus-visible,
.mp-reference-v2__visual-mode-list [role="option"]:focus-visible,
.mp-reference-v2__visual-style:focus-visible {
  outline: 2px solid rgba(17, 24, 39, .18);
  outline-offset: 2px;
}

.mp-reference-v2__visual-mode-trigger:disabled {
  color: #8a94a6;
  background: #f6f7f9;
  cursor: not-allowed;
}

.mp-reference-v2__visual-mode-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: max(100%, 250px);
  padding: 5px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.mp-reference-v2__visual-mode-list[hidden] {
  display: none;
}

.mp-reference-v2__visual-mode-list [role="option"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #20283a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__visual-mode-list [role="option"]:hover,
.mp-reference-v2__visual-mode-list [role="option"]:focus-visible {
  background: #f5f6f8;
}

.mp-reference-v2__visual-mode-list [role="option"][aria-selected="true"] {
  background: #eef1f5;
}

.mp-reference-v2__visual-mode-list b {
  font-size: 13px;
  font-weight: 700;
}

.mp-reference-v2__visual-mode-list small {
  color: #687389;
  font-size: 11px;
  line-height: 1.3;
}

.mp-reference-v2__visual-style {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #d4dae5;
  border-radius: 10px;
  background: #fff;
  color: #20283a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.mp-reference-v2__visual-style:hover {
  border-color: #aeb8c7;
  background: #f8f9fb;
}

.mp-reference-v2__visual-style.is-selected {
  background: #fafbfc;
}

.mp-reference-v2__visual-style:disabled {
  color: #9aa3b2;
  background: #f5f6f8;
  cursor: not-allowed;
}

.mp-reference-v2__visual-style-thumb {
  display: grid;
  width: 42px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 9px;
  background: #f4f6f9;
}

.mp-reference-v2__visual-style-thumb.is-empty {
  border-style: dashed;
  color: #8a94a6;
  font-size: 20px;
  font-weight: 450;
}

.mp-reference-v2__visual-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__visual-style-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-reference-v2__visual-style-copy b {
  overflow: hidden;
  color: #20283a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-reference-v2__visual-style-copy small {
  color: #687389;
  font-size: 11px;
  line-height: 1.3;
}

.mp-reference-v2__visual-style-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  background: #fff;
  color: #20283a;
  font-size: 12px;
  font-weight: 700;
}

.mp-reference-v2__visual-help {
  color: #687389;
  font-size: 12px;
  line-height: 1.4;
}

.mp-reference-v2__target-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 15px;
  border: 1px dashed #d8ddea;
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
}

.mp-reference-v2__target-choice > span {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f3f7;
  color: #526076;
  font-size: 13px;
  font-weight: 850;
}

.mp-reference-v2__target-choice strong,
.mp-reference-v2__target-choice p {
  margin: 0;
}

.mp-reference-v2__target-choice strong {
  color: #30394c;
  font-size: 14px;
}

.mp-reference-v2__target-choice p {
  margin-top: 3px;
  color: #707b90;
  font-size: 13px;
}

.mp-reference-v2__same-product {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid #dfe3ec;
  border-radius: 15px;
  background: #fff;
}

.mp-reference-v2__same-product-preview {
  display: grid;
  place-items: center;
  width: 116px;
  height: 132px;
  overflow: hidden;
  border: 1px solid #dfe5e1;
  border-radius: 12px;
  background: #f0f3f1;
  color: #667085;
  font-size: 15px;
  font-weight: 800;
}

.mp-reference-v2__same-product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__same-product-copy {
  min-width: 0;
}

.mp-reference-v2__same-product-copy > span {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mp-reference-v2__same-product-copy h4,
.mp-reference-v2__same-product-copy p,
.mp-reference-v2__same-product-copy ul,
.mp-reference-v2__same-product-copy small {
  margin: 0;
}

.mp-reference-v2__same-product-copy h4 {
  margin-top: 4px;
  color: #20283a;
  font-size: 17px;
  line-height: 1.35;
}

.mp-reference-v2__same-product-copy p,
.mp-reference-v2__same-product-copy small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__same-product-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.mp-reference-v2__same-product-copy li {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf8f2;
  color: #33715a;
  font-size: 11px;
  font-weight: 700;
}

.mp-reference-v2__same-product-status {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 9px;
  padding: 13px;
  border: 1px solid #cfe6d8;
  border-radius: 12px;
  background: #fff;
}

.mp-reference-v2__same-product-status > span {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dff5e8;
  color: #21855a;
  font-weight: 850;
}

.mp-reference-v2__same-product-status b {
  color: #236b4d;
  font-size: 13px;
}

.mp-reference-v2__same-product-status small {
  color: #748279;
  font-size: 11px;
  line-height: 1.35;
}

.mp-reference-v2__target-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 14px;
}

.mp-reference-v2__target-data,
.mp-reference-v2__target-photos {
  padding: 15px;
}

.mp-reference-v2__target-data > header,
.mp-reference-v2__target-photos > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mp-reference-v2__target-data > header > div:last-child {
  display: flex;
  gap: 6px;
}

.mp-reference-v2__target-data h4,
.mp-reference-v2__target-data p,
.mp-reference-v2__target-photos h4,
.mp-reference-v2__target-photos p,
.mp-reference-v2__target-photos span {
  margin: 0;
}

.mp-reference-v2__target-data h4,
.mp-reference-v2__target-photos h4 {
  color: #20283a;
  font-size: 15px;
}

.mp-reference-v2__target-data p,
.mp-reference-v2__target-photos p,
.mp-reference-v2__target-photos span {
  margin-top: 3px;
  color: #727c90;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__compact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 8px;
  margin-top: 12px;
}

.mp-reference-v2__compact-fields .is-wide {
  grid-column: 1 / -1;
}

.mp-reference-v2__compact-fields label span small {
  color: #929bad;
  font: inherit;
  font-weight: 600;
}

.mp-reference-v2__compact-fields label,
.mp-reference-v2__plan-fields label,
.mp-reference-v2__marketplace-copy label {
  display: grid;
  gap: 4px;
}

.mp-reference-v2__compact-fields label span,
.mp-reference-v2__plan-fields label span,
.mp-reference-v2__marketplace-copy label span {
  color: #68748a;
  font-size: 11px;
  font-weight: 750;
}

.mp-reference-v2__compact-fields input,
.mp-reference-v2__plan-fields input,
.mp-reference-v2__plan-fields textarea,
.mp-reference-v2__fact input,
.mp-reference-v2__marketplace-copy textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe3ec;
  border-radius: 9px;
  background: #fff;
  color: #20283a;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: 0;
}

.mp-reference-v2__compact-fields input,
.mp-reference-v2__plan-fields input,
.mp-reference-v2__fact input {
  min-height: 38px;
  padding: 0 10px;
}

.mp-reference-v2__plan-fields textarea,
.mp-reference-v2__marketplace-copy textarea {
  padding: 8px 10px;
  resize: vertical;
}

.mp-reference-v2__compact-fields input:focus,
.mp-reference-v2__plan-fields input:focus,
.mp-reference-v2__plan-fields textarea:focus,
.mp-reference-v2__fact input:focus {
  border-color: #7d8899;
  box-shadow: 0 0 0 3px rgba(32, 41, 56, .09);
}

.mp-reference-v2__facts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.mp-reference-v2__facts-head h5,
.mp-reference-v2__facts-head span {
  margin: 0;
  font-size: 12px;
}

.mp-reference-v2__facts-head h5 {
  color: #30394c;
}

.mp-reference-v2__facts-head span {
  color: #718097;
}

.mp-reference-v2__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.mp-reference-v2__fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #e1e5ed;
  border-radius: 10px;
  background: #fafbfc;
}

.mp-reference-v2__fact.is-accepted {
  border-color: #cce9da;
  background: #f4fbf7;
}

.mp-reference-v2__fact > button {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eceff5;
  color: #667085;
  cursor: pointer;
}

.mp-reference-v2__fact.is-accepted > button {
  background: #d9f2e4;
  color: #21865a;
}

.mp-reference-v2__fact input {
  min-height: 28px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.mp-reference-v2__fact small {
  padding-left: 5px;
  color: #7b8598;
  font-size: 10px;
}

.mp-reference-v2__empty-note {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 9px;
  background: #f7f8fb;
}

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

.mp-reference-v2__photo-grid figure,
.mp-reference-v2__photo-add {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 10px;
  background: #f6f7fa;
}

.mp-reference-v2__photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__photo-grid figure.is-pending img {
  opacity: .78;
}

.mp-reference-v2__photo-grid figure figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  color: #344054;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.mp-reference-v2__photo-grid figure button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #343d50;
  cursor: pointer;
}

.mp-reference-v2__photo-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #202938;
  font: inherit;
  cursor: pointer;
}

.mp-reference-v2__photo-add span {
  color: inherit;
  font-size: 25px;
}

.mp-reference-v2__photo-add b {
  font-size: 11px;
}

.mp-reference-v2__target-photos > p:last-child {
  margin-top: 10px;
}

.mp-reference-v2__target-photos .mp-reference-v2__upload-feedback {
  margin: 10px 0 0;
  color: #667085;
  font-size: 12px;
}

.mp-reference-v2__target-photos .mp-reference-v2__upload-feedback.is-error {
  color: #b4233a;
}

.mp-reference-v2__target-photos .mp-reference-v2__upload-feedback.is-success {
  color: #227a52;
}

.mp-reference-v2__competitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 16px;
}

.mp-reference-v2__competitor-gallery,
.mp-reference-v2__competitor-data,
.mp-reference-v2__similar-product,
.mp-reference-v2__pipeline {
  min-width: 0;
  border: 1px solid #e0e4ed;
  border-radius: 14px;
  background: #fff;
}

.mp-reference-v2__competitor-gallery,
.mp-reference-v2__competitor-data,
.mp-reference-v2__similar-product {
  padding: 15px;
}

.mp-reference-v2__competitor-gallery > h4,
.mp-reference-v2__competitor-data > h4,
.mp-reference-v2__similar-product h4 {
  margin: 0;
  color: #222a3a;
  font-size: 16px;
}

.mp-reference-v2__competitor-stage {
  display: grid;
  place-items: center;
  height: min(50vh, 470px);
  min-height: 300px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f6f9;
}

.mp-reference-v2__competitor-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-reference-v2__competitor-stage > span {
  color: #7a8497;
  font-size: 13px;
}

.mp-reference-v2__competitor-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.mp-reference-v2__competitor-thumbs button {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce1ea;
  border-radius: 9px;
  background: #f5f6f8;
  cursor: pointer;
}

.mp-reference-v2__competitor-thumbs button.is-active {
  border-color: #596579;
  box-shadow: 0 0 0 2px rgba(32, 41, 56, .1);
}

.mp-reference-v2__competitor-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__competitor-thumbs span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #273044;
  font-size: 10px;
  font-weight: 800;
}

.mp-reference-v2__competitor-gallery > p {
  margin: 8px 0 0;
  color: #778197;
  font-size: 11px;
  text-align: center;
}

.mp-reference-v2__competitor-data {
  align-self: start;
  padding-bottom: 5px;
}

.mp-reference-v2__competitor-data > dl,
.mp-reference-v2__competitor-details > dl {
  margin: 12px -15px 0;
}

.mp-reference-v2__competitor-data dl > div {
  display: grid;
  gap: 4px;
  padding: 11px 15px;
  border-top: 1px solid #e8ebf1;
}

.mp-reference-v2__competitor-data dt {
  color: #778197;
  font-size: 11px;
}

.mp-reference-v2__competitor-data dd {
  margin: 0;
  color: #222a3a;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mp-reference-v2__competitor-details {
  margin-inline: -15px;
  border-top: 1px solid #e8ebf1;
}

.mp-reference-v2__competitor-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #30394c;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.mp-reference-v2__competitor-details summary::-webkit-details-marker {
  display: none;
}

.mp-reference-v2__competitor-details[open] summary span {
  transform: rotate(180deg);
}

.mp-reference-v2__competitor-details > p {
  max-height: 220px;
  margin: 0;
  padding: 0 15px 13px;
  overflow: auto;
  color: #4f596f;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.mp-reference-v2__competitor-details > dl {
  max-height: 260px;
  margin-top: 0;
  overflow: auto;
}

.mp-reference-v2__similar-product {
  margin-top: 14px;
}

.mp-reference-v2__similar-product > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mp-reference-v2__similar-product > header p,
.mp-reference-v2__similar-product > p {
  margin: 3px 0 0;
  color: #727c90;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__similar-product > header > span {
  flex: 0 0 auto;
  color: #778197;
  font-size: 11px;
  font-weight: 750;
}

.mp-reference-v2__pipeline {
  max-width: 820px;
  margin: 8px auto 0;
  overflow: hidden;
}

.mp-reference-v2__pipeline > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e7eaf0;
  background: #f8f9fb;
}

.mp-reference-v2__pipeline > header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e7ebf0;
  color: #202938;
  font-size: 13px;
}

.mp-reference-v2__pipeline > header small,
.mp-reference-v2__pipeline > header h4,
.mp-reference-v2__pipeline > header p {
  display: block;
  margin: 0;
}

.mp-reference-v2__pipeline > header small {
  color: #5f6a7c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mp-reference-v2__pipeline > header h4 {
  margin-top: 2px;
  color: #222a3a;
  font-size: 16px;
}

.mp-reference-v2__pipeline > header p {
  margin-top: 4px;
  color: #69758a;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__pipeline > ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-reference-v2__pipeline li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 16px;
  border-top: 1px solid #edf0f4;
}

.mp-reference-v2__pipeline li:first-child {
  border-top: 0;
}

.mp-reference-v2__pipeline li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f2f6;
  color: #7a8497;
  font-size: 12px;
  font-weight: 800;
}

.mp-reference-v2__pipeline li.is-active > span {
  background: #202938;
  color: #fff;
}

.mp-reference-v2__pipeline li.is-complete > span {
  background: #dff5e9;
  color: #21865a;
}

.mp-reference-v2__pipeline li.is-failed > span {
  background: #fde7e9;
  color: #c33c4b;
}

.mp-reference-v2__pipeline li b,
.mp-reference-v2__pipeline li small {
  display: block;
}

.mp-reference-v2__pipeline li b {
  color: #2c3548;
  font-size: 13px;
}

.mp-reference-v2__pipeline li small {
  margin-top: 2px;
  color: #778197;
  font-size: 11px;
  line-height: 1.45;
}

.mp-reference-v2__phase-progress {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.mp-reference-v2__phase-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #202938, #647083);
  transition: width .35s ease;
}

.mp-reference-v2__phase-progress.is-indeterminate i {
  animation: mp-reference-v2-progress 1.2s ease-in-out infinite;
}

.mp-reference-v2__pipeline.has-error > header {
  background: #fff8f8;
}

.mp-reference-v2__pipeline.has-error > header > span {
  background: #fde7e9;
  color: #c33c4b;
}

@keyframes mp-reference-v2-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(650%); }
}

.mp-reference-v2__plan-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mp-reference-v2__plan-status span {
  padding: 7px 10px;
  border-radius: 9px;
  background: #eef7f2;
  color: #39745a;
  font-size: 12px;
  font-weight: 700;
}

.mp-reference-v2__plan-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mp-reference-v2__plan-card.is-editing {
  border-color: #aeb7c5;
  box-shadow: 0 0 0 2px rgba(32, 41, 56, .07);
}

.mp-reference-v2__plan-preview {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8f9fb, #eef1f5);
  color: #6a7488;
}

.mp-reference-v2__plan-preview > span {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(204, 210, 221, .92);
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: #4f5b70;
  font-size: 12px;
  font-weight: 800;
}

.mp-reference-v2__plan-preview-skeleton {
  position: absolute;
  inset: 22px 14px 38px;
  display: grid;
  align-content: center;
  gap: 9px;
}

.mp-reference-v2__plan-preview-skeleton i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfe3ea, #eaedf2);
}

.mp-reference-v2__plan-preview-skeleton i:first-child {
  width: 72%;
  height: 28px;
  border-radius: 8px;
}

.mp-reference-v2__plan-preview-skeleton i:nth-child(2) {
  width: 88%;
}

.mp-reference-v2__plan-preview-skeleton i:nth-child(3) {
  width: 66%;
}

.mp-reference-v2__plan-preview-skeleton i:last-child {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border-radius: 10px;
}

.mp-reference-v2__plan-preview > small {
  position: relative;
  align-self: end;
  justify-self: center;
  color: #5f6b80;
  font-size: 11px;
  font-weight: 700;
}

.mp-reference-v2__plan-copy {
  min-width: 0;
}

.mp-reference-v2__plan-copy > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f4;
}

.mp-reference-v2__plan-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-reference-v2__plan-copy > header small,
.mp-reference-v2__plan-copy > header h4 {
  display: block;
  margin: 0;
}

.mp-reference-v2__plan-copy > header small {
  color: #5f6b80;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mp-reference-v2__plan-copy > header h4 {
  margin-top: 2px;
  color: #222a3b;
  font-size: 15px;
}

.mp-reference-v2__plan-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  background: #fff;
  color: #566176;
  font: inherit;
  cursor: pointer;
}

.mp-reference-v2__plan-edit:hover,
.mp-reference-v2__plan-edit[aria-expanded="true"] {
  border-color: #b9c0cc;
  background: #f7f8fa;
  color: #30394c;
}

.mp-reference-v2__plan-edit span {
  font-size: 16px;
}

.mp-reference-v2__plan-edit b {
  font-size: 12px;
}

.mp-reference-v2__plan-generation {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.mp-reference-v2__plan-generation button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #151c2c;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.mp-reference-v2__plan-generation.is-idle button:hover,
.mp-reference-v2__plan-generation.is-failed button:hover {
  border-color: #aeb6c4;
  background: #f7f8fa;
}

.mp-reference-v2__plan-generation.is-processing button,
.mp-reference-v2__plan-generation.is-ready button {
  cursor: default;
  opacity: 1;
}

.mp-reference-v2__plan-generation.is-processing button {
  background: #f4f6f9;
  color: #667085;
}

.mp-reference-v2__plan-generation.is-ready button {
  border-color: #cfe6d9;
  background: #eff8f3;
  color: #26724b;
}

.mp-reference-v2__plan-text {
  margin-top: 13px;
}

.mp-reference-v2__plan-text h5,
.mp-reference-v2__plan-text p,
.mp-reference-v2__plan-text ul {
  margin: 0;
}

.mp-reference-v2__plan-text h5 {
  color: #1f2738;
  font-size: 20px;
  line-height: 1.25;
}

.mp-reference-v2__plan-text p {
  margin-top: 6px;
  color: #657086;
  font-size: 13px;
  line-height: 1.5;
}

.mp-reference-v2__plan-text ul {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-left: 19px;
  color: #343e52;
  font-size: 13px;
  line-height: 1.45;
}

.mp-reference-v2__plan-text .is-empty {
  color: #667085;
  font-style: italic;
}

.mp-reference-v2__plan-text h5,
.mp-reference-v2__plan-text p,
.mp-reference-v2__plan-text li,
.mp-reference-v2__plan-detail-grid dd,
.mp-reference-v2__plan-grounding-section p,
.mp-reference-v2__plan-grounding-tags span {
  overflow-wrap: anywhere;
}

.mp-reference-v2__plan-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mp-reference-v2__plan-fields .is-wide {
  grid-column: 1 / -1;
}

.mp-reference-v2__plan-editor {
  margin-top: 12px;
}

.mp-reference-v2__plan-grounding {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ebf1;
}

.mp-reference-v2__plan-grounding summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: auto;
  min-height: 38px;
  color: #667187;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.mp-reference-v2__plan-grounding summary:focus {
  outline: 0;
}

.mp-reference-v2__plan-grounding summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(32, 40, 58, .10);
}

.mp-reference-v2__plan-grounding summary i {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.mp-reference-v2__plan-grounding[open] summary i {
  transform: translateY(2px) rotate(225deg);
}

.mp-reference-v2__plan-grounding-body {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 10px;
}

.mp-reference-v2__plan-technical-editor {
  grid-column: 1 / -1;
  padding: 11px;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  background: #fafbfc;
}

.mp-reference-v2__plan-detail-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.mp-reference-v2__plan-detail-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.mp-reference-v2__plan-detail-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  background: #fafbfc;
}

.mp-reference-v2__plan-detail-grid dt,
.mp-reference-v2__plan-detail-grid dd {
  margin: 0;
}

.mp-reference-v2__plan-detail-grid dt,
.mp-reference-v2__plan-grounding-section h6 {
  color: #5f6b80;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.mp-reference-v2__plan-detail-grid dd {
  margin-top: 4px;
  color: #3d475b;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__plan-grounding-section {
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #f7f8fa;
}

.mp-reference-v2__plan-grounding-section h6,
.mp-reference-v2__plan-grounding-section p {
  margin: 0;
}

.mp-reference-v2__plan-grounding-section p {
  margin-top: 4px;
  color: #4f596f;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__plan-grounding-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mp-reference-v2__plan-grounding-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f0f2f6;
  color: #5f6b80;
  font-size: 11px;
}

.mp-reference-v2__plan-sources,
.mp-reference-v2__plan-facts {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fa;
}

.mp-reference-v2__plan-sources h6,
.mp-reference-v2__plan-facts h6 {
  margin: 0 0 8px;
  color: #5f6b80;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mp-reference-v2__plan-sources > div {
  display: grid;
  gap: 8px;
}

.mp-reference-v2__plan-sources article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mp-reference-v2__plan-sources article.has-preview {
  grid-template-columns: 44px minmax(0, 1fr);
}

.mp-reference-v2__plan-source-preview {
  display: block;
  width: 44px;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  background: #eef1f5;
  cursor: zoom-in;
}

.mp-reference-v2__plan-source-preview:hover {
  border-color: #aeb6c4;
}

.mp-reference-v2__plan-source-preview:focus-visible {
  outline: 2px solid #20283a;
  outline-offset: 2px;
}

.mp-reference-v2__plan-source-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reference-v2__plan-sources b {
  color: #394357;
  font-size: 11px;
}

.mp-reference-v2__plan-sources p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #59647a;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mp-reference-v2__plan-facts {
  grid-column: 1 / -1;
}

.mp-reference-v2__plan-facts ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #4f596f;
  font-size: 11px;
  line-height: 1.4;
}

.mp-reference-v2__plan-menu {
  position: relative;
}

.mp-reference-v2__plan-menu > summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dfe3eb;
  border-radius: 9px;
  background: #fff;
  color: #566176;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  list-style: none;
  cursor: pointer;
}

.mp-reference-v2__plan-menu > summary::-webkit-details-marker {
  display: none;
}

.mp-reference-v2__plan-actions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 132px;
  padding: 5px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 32, 48, .12);
}

.mp-reference-v2__plan-actions button {
  width: 100%;
  height: auto;
  min-height: 31px;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #59647a;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__plan-actions button:hover {
  background: #f4f6f8;
}

.mp-reference-v2__plan-actions button:last-child {
  color: #ad3444;
}

.mp-reference-v2__result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}

.mp-reference-v2__result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e4ed;
  border-radius: 14px;
  background: #fff;
}

.mp-reference-v2__result-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7eaf0;
}

.mp-reference-v2__result-card > header > span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf0f4;
  color: #303a4b;
}

.mp-reference-v2__result-card > header b,
.mp-reference-v2__result-card > header small {
  display: block;
}

.mp-reference-v2__result-card > header b {
  overflow: hidden;
  color: #222a3a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-reference-v2__result-card > header small {
  margin-top: 2px;
  color: #418a65;
  font-size: 10px;
}

.mp-reference-v2__result-card.is-failed > header small {
  color: #9a4b4b;
}

.mp-reference-v2__result-card > header em {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf0f4;
  color: #566176;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.mp-reference-v2__result-body {
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.mp-reference-v2__result-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  background: #f2f4f8;
  cursor: zoom-in;
}

.mp-reference-v2__result-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-reference-v2__result-preview > span {
  display: grid;
  place-content: center;
  gap: 5px;
  color: #384354;
  font-size: 18px;
}

.mp-reference-v2__result-preview small {
  color: #737e92;
  font-size: 12px;
}

.mp-reference-v2__result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 3px 0;
}

.mp-reference-v2__result-copy > span {
  color: #68748a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mp-reference-v2__result-copy h4 {
  margin: 5px 0 0;
  color: #222a3a;
  font-size: 20px;
  line-height: 1.25;
}

.mp-reference-v2__result-copy p,
.mp-reference-v2__result-copy li {
  color: #566176;
  font-size: 13px;
  line-height: 1.5;
}

.mp-reference-v2__result-copy p {
  margin: 8px 0 0;
}

.mp-reference-v2__result-copy .mp-reference-v2__result-failure {
  max-width: 520px;
  margin-top: 16px;
  color: #606b7f;
}

.mp-reference-v2__result-copy ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.mp-reference-v2__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.mp-reference-v2__result-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dce1ea;
  border-radius: 9px;
  background: #fff;
  color: #30394c;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mp-reference-v2__result-actions button:last-child {
  border-color: #101827;
  background: #101827;
  color: #fff;
}

.mp-reference-v2__result-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.mp-reference-v2__result-card > footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
}

.mp-reference-v2__result-card > footer button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  background: #fff;
  color: #3c475c;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.mp-reference-v2__result-card > footer span {
  margin-left: auto;
  color: #778197;
  font-size: 10px;
}

.mp-reference-v2__result-card .mp-import-custom-instruction {
  margin: 0 14px 14px;
}

.mp-reference-v2__marketplace-copy {
  margin-top: 14px;
  padding: 12px;
}

.mp-reference-v2__marketplace-copy > summary {
  display: flex;
  justify-content: space-between;
  color: #2b3448;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
}

.mp-reference-v2__marketplace-copy label {
  margin-top: 10px;
}

.mp-reference-v2__marketplace-copy-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.mp-reference-v2__marketplace-copy-body > label {
  margin-top: 0;
}

.mp-reference-v2__marketplace-title-section {
  display: grid;
  gap: 8px;
}

.mp-reference-v2__marketplace-title-section h5 {
  margin: 0;
  color: #68748a;
  font-size: 11px;
  font-weight: 750;
}

.mp-reference-v2__marketplace-title-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.mp-reference-v2__marketplace-title-options label {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #fff;
}

.mp-reference-v2__marketplace-title-options label.is-recommended {
  border-color: #c7d7fb;
  background: #f5f8ff;
}

.mp-reference-v2__marketplace-title-options label.is-selected {
  border-color: #9aa8bd;
  box-shadow: 0 0 0 1px rgba(32, 41, 56, .08);
}

.mp-reference-v2__marketplace-original-description {
  border-top: 1px solid #e5e8ef;
  padding-top: 11px;
}

.mp-reference-v2__marketplace-original-description > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5f6b80;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.mp-reference-v2__marketplace-original-description > summary::-webkit-details-marker {
  display: none;
}

.mp-reference-v2__marketplace-original-description > summary span {
  transition: transform .18s ease;
}

.mp-reference-v2__marketplace-original-description[open] > summary span {
  transform: rotate(180deg);
}

.mp-reference-v2__marketplace-original-description > div {
  max-height: 220px;
  margin-top: 9px;
  overflow: auto;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #f8f9fb;
  padding: 11px 12px;
}

.mp-reference-v2__marketplace-original-description p {
  margin: 0;
  color: #4f5b70;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.mp-reference-v2__marketplace-seo {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 11px;
  border-top: 1px solid #e5e8ef;
}

.mp-reference-v2__marketplace-seo > div {
  min-width: 0;
}

.mp-reference-v2__marketplace-seo > div b {
  display: block;
  color: #2b3448;
  font-size: 12px;
}

.mp-reference-v2__marketplace-seo > div p {
  margin: 4px 0 0;
  color: #68748a;
  font-size: 12px;
}

.mp-reference-v2__marketplace-seo > label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.mp-reference-v2__marketplace-seo > button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #202938;
  border-radius: 9px;
  background: #202938;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mp-reference-v2__marketplace-seo > button:disabled {
  cursor: wait;
  opacity: .58;
}

.mp-reference-v2__marketplace-copy--plan {
  margin-bottom: 14px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #f8fafc;
}

.mp-reference-v2__marketplace-copy-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mp-reference-v2__marketplace-copy-head span,
.mp-reference-v2__marketplace-copy-head small {
  color: #778197;
  font-size: 11px;
}

.mp-reference-v2__marketplace-copy-head h4 {
  margin: 3px 0 0;
  color: #202938;
  font-size: 15px;
}

.mp-reference-v2__marketplace-title-options button {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #fff;
  color: #202938;
  text-align: left;
  cursor: pointer;
}

.mp-reference-v2__marketplace-title-options button span {
  color: #778197;
  font-size: 11px;
  font-weight: 750;
}

.mp-reference-v2__marketplace-title-options button b {
  align-self: start;
  font-size: 13px;
  line-height: 1.4;
}

.mp-reference-v2__marketplace-title-options button.is-recommended {
  background: #f5f8ff;
}

.mp-reference-v2__marketplace-title-options button.is-selected {
  border-color: #3f6fda;
  box-shadow: 0 0 0 2px rgba(63, 111, 218, 0.12);
}

.mp-reference-v2__marketplace-title-options textarea {
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  resize: none;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer {
  min-height: 70px;
  padding-inline: clamp(18px, 3vw, 42px);
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-ai-mark {
  display: none;
}

@media (max-width: 1080px) {
  .mp-reference-v2__marketplace-title-options {
    grid-template-columns: 1fr;
  }

  .mp-reference-v2__stepper {
    padding-inline: 24px;
  }

  .mp-reference-v2__step {
    padding-right: 18px;
  }

  .mp-reference-v2__step small {
    display: none;
  }

  .mp-reference-v2__analysis-layout,
  .mp-reference-v2__target-layout,
  .mp-reference-v2__competitor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-v2__analysis-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-reference-v2__same-product {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .mp-reference-v2__same-product-preview {
    width: 100px;
    height: 116px;
  }

  .mp-reference-v2__same-product-status {
    grid-column: 2;
  }

  .mp-reference-v2__result-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .mp-reference-v2__marketplace-seo {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-reference-v2__marketplace-seo > button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] {
    padding: 0;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__shell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .mp-reference-v2__stepper {
    grid-template-columns: repeat(4, 44px);
    justify-content: space-between;
    padding: 9px 14px;
  }

  .mp-reference-v2__step {
    display: grid;
    grid-template-columns: 34px;
    padding: 0;
  }

  .mp-reference-v2__step b,
  .mp-reference-v2__step small {
    display: none;
  }

  .mp-reference-v2__step:not(:last-child)::after {
    right: -22px;
    width: 24px;
  }

  .mp-reference-v2__content {
    padding: 14px;
  }

  .mp-reference-v2__screen-head,
  .mp-reference-v2__screen-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mp-reference-v2__screen-head h3 {
    font-size: 23px;
  }

  .mp-reference-v2__mode-grid,
  .mp-reference-v2__analysis-aside,
  .mp-reference-v2__analysis-overview,
  .mp-reference-v2__compact-fields,
  .mp-reference-v2__facts,
  .mp-reference-v2__competitor-layout,
  .mp-reference-v2__result-body,
  .mp-reference-v2__result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-v2__competitor-stage {
    height: min(46vh, 410px);
    min-height: 240px;
  }

  .mp-reference-v2__result-preview {
    max-width: 360px;
    margin-inline: auto;
  }

  .mp-reference-v2__result-copy h4 {
    font-size: 18px;
  }

  .mp-reference-v2__same-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-v2__visual-control {
    grid-template-columns: 132px minmax(150px, 1fr) minmax(160px, 1fr) 38px;
  }

  .mp-reference-v2__visual-control > small {
    grid-column: 2 / -1;
  }

  .mp-reference-v2__same-product-preview {
    width: 92px;
    height: 108px;
  }

  .mp-reference-v2__same-product-status {
    grid-column: auto;
  }

  .mp-reference-v2__analysis-detail {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 12px;
  }

  .mp-reference-v2__target-data > header {
    flex-direction: column;
  }

  .mp-reference-v2__photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-reference-v2__plan-card {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .mp-reference-v2__plan-preview {
    grid-column: 1;
    grid-row: 1;
  }

  .mp-reference-v2__plan-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .mp-reference-v2__plan-fields,
  .mp-reference-v2__plan-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-v2__plan-fields .is-wide {
    grid-column: auto;
  }

  .mp-reference-v2__plan-grounding-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-v2__plan-facts {
    grid-column: auto;
  }

  .mp-reference-v2__plan-edit b {
    display: none;
  }

  .mp-reference-v2__plan-generation button {
    width: 100%;
    padding-inline: 9px;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    padding: 10px 14px;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-actions,
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__generate {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-reference-v2 *,
  .mp-reference-v2 *::before,
  .mp-reference-v2 *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Reference v2 Step 1 is the existing Materials screen, not a second gallery. */
.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-reference-v2 {
  grid-template-rows: auto;
  min-height: 0;
  overflow: visible;
  background: #fff;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-reference-v2__content {
  display: none;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__sections {
  display: block !important;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] #marketplace-import-editor-pane-materials {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  height: 100%;
  min-height: 0;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-reference-context {
  display: none !important;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__materials-grid {
  height: 100% !important;
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-skeleton__block::after,
  .mp-import-skeleton__line::after {
    animation: none;
  }

  .mp-import-button,
  .mp-import-icon-button,
  .mp-import-upload,
  .mp-import-ai-action,
  .mp-import-editor__thumb-button {
    transition: none;
  }
}

/* 2026-07-17: compact custom instructions for paid slide variants. */
.mp-import-results__card-footer .mp-import-results__custom,
.mp-import-results__card-footer .mp-import-custom-instruction__footer button:first-child {
  border-color: #d7dce5;
  background: #fff;
  color: #27324a;
}

.mp-import-custom-instruction {
  display: grid;
  flex: 1 0 100%;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid #ded9f5;
  border-radius: 11px;
  background: #faf9ff;
}

.mp-import-custom-instruction label {
  color: #2f285f;
  font-size: 12px;
  font-weight: 780;
}

.mp-import-custom-instruction textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.mp-import-custom-instruction textarea:focus {
  border-color: #705de2;
  box-shadow: 0 0 0 3px rgb(112 93 226 / 12%);
}

.mp-import-custom-instruction textarea[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgb(217 45 32 / 10%);
}

.mp-import-custom-instruction__footer,
.mp-import-custom-instruction__footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-import-custom-instruction__footer {
  justify-content: space-between;
}

.mp-import-custom-instruction__footer small {
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
}

.mp-import-custom-instruction__footer button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #111827;
  border-radius: 9px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__custom-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #27324a;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-buttons > .is-secondary {
  border-color: #d7dce5;
  background: #fff;
  color: #27324a;
}

/* 2026-07-14: staged marketplace import editor */
.mp-import-editor {
  --mp-editor-inset: clamp(12px, 1.8vw, 24px);
  display: grid;
  place-items: center;
  padding: var(--mp-editor-inset);
  background: rgba(11, 15, 25, .5);
  backdrop-filter: blur(8px);
}

.mp-import-editor__shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(100%, 1680px);
  max-width: 1680px;
  height: min(calc(100dvh - (var(--mp-editor-inset) * 2)), 1040px);
  max-height: 1040px;
  overflow: hidden;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 20px;
  background: var(--swaipy-panel, #fff);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25);
}

.mp-import-editor__header,
.mp-import-editor__footer {
  min-height: 68px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, .98);
}

.mp-import-editor__source-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #701a93;
}

.mp-import-editor__header-actions,
.mp-import-editor__footer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.mp-import-editor__save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0f7f3;
  color: #2f7454;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mp-import-editor__save-status > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d9efe2;
  font-size: 9px;
}

.mp-import-editor__save-status.is-saving {
  background: #f5f6f8;
  color: #667085;
}

.mp-import-editor__save-status.is-saving > span:first-child {
  background: #e7e9ed;
}

.mp-import-editor__save-status.is-error {
  background: #fff1f2;
  color: #a82c3b;
}

.mp-import-editor__save-status.is-error > span:first-child {
  background: #fbdde1;
}

.mp-import-editor__global-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 28px;
  min-width: 0;
  min-height: 50px;
  padding: 0 20px;
  border-bottom: 1px solid var(--swaipy-border, #e3e8ef);
  background: var(--swaipy-panel, #fff);
}

.mp-import-editor__global-tab {
  position: relative;
  appearance: none;
  min-width: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--swaipy-muted, #7a8699);
  font: 750 12px/1.2 var(--body-font, Manrope, "Segoe UI", sans-serif);
  cursor: pointer;
}

.mp-import-editor__global-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  content: "";
}

.mp-import-editor__global-tab:hover {
  color: var(--swaipy-text, #0f172a);
}

.mp-import-editor__global-tab:disabled {
  cursor: not-allowed;
  opacity: .46;
}

.mp-import-editor__global-tab:disabled:hover {
  color: var(--swaipy-muted, #7a8699);
}

.mp-import-editor__global-tab.is-active {
  color: var(--swaipy-text, #0f172a);
}

.mp-import-editor__global-tab.is-active::after {
  background: var(--swaipy-accent, #ff7a2f);
}

.mp-import-editor__sections,
.mp-import-editor__section-pane,
.mp-import-editor__materials-grid {
  min-width: 0;
  min-height: 0;
}

.mp-import-editor__sections {
  overflow: hidden;
  background: var(--swaipy-bg-app, #f3f6fa);
}

.mp-import-editor__section-pane {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mp-import-editor__section-pane.hidden {
  display: none;
}

.mp-import-editor__materials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 25vw, 410px);
  width: 100%;
  height: 100%;
}

.mp-import-editor__visual {
  display: grid;
  grid-template-rows: auto auto minmax(280px, 1fr) auto auto;
  gap: 10px;
  padding: 16px 20px 12px;
  overflow: hidden;
  background: var(--swaipy-bg-app, #f3f6fa);
}

.mp-import-editor__section-head h3,
.mp-import-editor__panel-head h3 {
  color: var(--swaipy-text, #0f172a);
  font-size: 15px;
}

.mp-import-editor__section-head--large {
  align-items: center;
}

.mp-import-editor__section-head--large h3 {
  font-size: clamp(19px, 2vw, 24px);
}

.mp-import-editor__section-head--large p:not(.mp-import-editor__eyebrow) {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--swaipy-muted, #7a8699);
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor__eyebrow {
  color: var(--swaipy-muted, #7a8699);
}

.mp-import-editor__count {
  background: #e9edf3;
  color: #344054;
}

.mp-import-editor__slide-toolbar {
  min-height: 56px;
  padding: 8px 10px;
  border-color: var(--swaipy-border, #e3e8ef);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}

.mp-import-editor__slide-actions {
  gap: 7px;
}

.mp-import-editor__slide-actions .mp-import-button {
  min-height: 38px;
}

.mp-import-editor__stage {
  width: min(100%, 1040px);
  min-height: 0;
  max-height: none;
  margin-inline: auto;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 14px;
  background: #eef1f5;
}

.mp-import-editor__stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .13);
}

.mp-import-editor__thumbnails {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 2px 1px 7px;
  scroll-snap-type: x proximity;
}

.mp-import-editor__thumb {
  flex-basis: 70px;
  width: 70px;
  scroll-snap-align: start;
}

.mp-import-editor__thumb-button {
  width: 70px;
  height: 90px;
  border-radius: 11px;
  background: #fff;
}

.mp-import-editor__thumb-button img {
  background: #fff;
  object-fit: contain;
}

.mp-import-editor__thumb.is-focused .mp-import-editor__thumb-button {
  border-color: var(--swaipy-accent, #ff7a2f);
  box-shadow: 0 0 0 3px rgba(255, 122, 47, .14);
}

.mp-import-editor__thumb-state {
  width: 20px;
  height: 20px;
  background: rgba(11, 15, 25, .86);
  font-size: 8px;
  box-shadow: 0 2px 7px rgba(11, 15, 25, .12);
}

.mp-import-editor__thumb.is-excluded .mp-import-editor__thumb-button {
  border-color: #e2e6ec;
  background: #f5f6f8;
}

.mp-import-editor__thumb.is-excluded .mp-import-editor__thumb-button img {
  opacity: .42;
}

.mp-import-editor__thumb--add {
  flex-basis: 76px;
  width: 76px;
}

.mp-import-editor__thumb-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  width: 76px;
  border: 1px dashed #c8d0dc;
  background: rgba(255, 255, 255, .72);
  color: #475467;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.mp-import-editor__thumb-add:hover:not(:disabled) {
  border-color: var(--swaipy-accent, #ff7a2f);
  background: #fff;
}

.mp-import-editor__thumb-add-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e9edf3;
  color: #263043;
  font-size: 18px;
  font-weight: 500;
}

.mp-import-editor__workspace {
  grid-template-rows: auto minmax(0, 1fr);
  border-left-color: var(--swaipy-border, #e3e8ef);
}

.mp-import-editor__tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 12px;
}

.mp-import-editor__tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.mp-import-editor__tab.is-active {
  border-color: #dfe4eb;
  background: #f1f3f6;
  color: var(--swaipy-text, #0f172a);
}

.mp-import-editor__panel {
  gap: 14px;
  padding: 16px;
}

.mp-import-field textarea {
  min-height: 104px;
  max-height: 210px;
}

.mp-import-editor__product-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 12px;
  background: var(--swaipy-panel-soft, #fafbfc);
}

.mp-import-editor__product-context-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #701a93;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.mp-import-editor__product-context > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-import-editor__product-context strong,
.mp-import-editor__product-context small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__product-context strong {
  color: #263043;
  font-size: 11px;
}

.mp-import-editor__product-context small {
  color: var(--swaipy-muted, #7a8699);
  font-size: 9px;
}

.mp-import-editor__product-photos {
  padding: 11px;
  border-color: var(--swaipy-border, #e3e8ef);
  background: var(--swaipy-panel-soft, #fafbfc);
}

.mp-import-editor__product-photos-list {
  flex-wrap: wrap;
  overflow: visible;
}

.mp-import-editor__product-photo {
  flex-basis: 68px;
  width: 68px;
  height: 82px;
}

.mp-import-editor__product-photo--add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 4px;
  border: 1px dashed #c8d0dc;
  background: #fff;
  color: #475467;
  cursor: pointer;
}

.mp-import-editor__product-photo--add > span {
  font-size: 20px;
  line-height: 1;
}

.mp-import-editor__product-photo--add small {
  font-size: 8px;
  font-weight: 750;
}

.mp-import-editor__product-photo--add:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.mp-import-editor__product-photo-remove {
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
}

.mp-import-editor__upload-feedback {
  width: min(100%, 1040px);
  margin-inline: auto;
  font-size: 10px;
}

.mp-import-editor__plan-workspace,
.mp-import-editor__result-workspace {
  width: min(100%, 1420px);
  height: 100%;
  margin-inline: auto;
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.mp-import-editor__plan-workspace,
.mp-import-editor__result-workspace {
  display: grid;
  align-content: start;
  gap: 18px;
}

.mp-import-editor__plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  align-items: start;
  gap: 16px;
}

.mp-import-editor__plan-main,
.mp-import-editor__plan-sidebar {
  min-width: 0;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 16px;
  background: #fff;
}

.mp-import-editor__plan-main {
  padding: 8px;
}

.mp-import-editor__plan-sidebar {
  display: grid;
  gap: 10px;
  padding: 16px;
  position: sticky;
  top: 0;
}

.mp-import-editor__plan-sidebar h3,
.mp-import-editor__plan-sidebar p {
  margin: 0;
}

.mp-import-editor__plan-sidebar h3 {
  color: var(--swaipy-text, #0f172a);
  font-size: 15px;
}

.mp-import-editor__plan-sidebar > p:not(.mp-import-editor__eyebrow) {
  color: var(--swaipy-muted, #7a8699);
  font-size: 11px;
  line-height: 1.5;
}

.mp-import-editor__plan-list {
  display: grid;
  gap: 6px;
}

.mp-import-plan-item {
  display: grid;
  grid-template-columns: 32px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--swaipy-panel-soft, #fafbfc);
}

.mp-import-plan-item:hover {
  border-color: #dfe4eb;
  background: #fff;
}

.mp-import-plan-item__order {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e9edf3;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.mp-import-plan-item__preview {
  display: block;
  width: 50px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  background: #fff;
}

.mp-import-plan-item__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-plan-item__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mp-import-plan-item__copy small,
.mp-import-plan-item__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-plan-item__copy small {
  color: var(--swaipy-muted, #7a8699);
  font-size: 9px;
  font-weight: 650;
}

.mp-import-plan-item__copy strong {
  color: #263043;
  font-size: 11px;
}

.mp-import-plan-item__actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mp-import-plan-item__actions .mp-import-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
}

.mp-import-plan-item__actions .mp-import-button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 10px;
}

.mp-import-icon-button--danger {
  border-color: #efc8ce;
  color: #a82c3b;
}

.mp-import-editor__plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mp-import-editor__plan-summary > span {
  display: grid;
  gap: 2px;
  padding: 9px 7px;
  border-radius: 10px;
  background: #f2f4f7;
  text-align: center;
}

.mp-import-editor__plan-summary strong {
  color: #263043;
  font-size: 15px;
}

.mp-import-editor__plan-summary small {
  color: var(--swaipy-muted, #7a8699);
  font-size: 8px;
}

.mp-import-editor__plan-ai.hidden,
.mp-import-editor__paid-actions.hidden {
  display: none;
}

.mp-import-editor__empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #ccd3dd;
  border-radius: 12px;
  color: var(--swaipy-muted, #7a8699);
  text-align: center;
}

.mp-import-editor__empty-state strong {
  color: #344054;
  font-size: 13px;
}

.mp-import-editor__empty-state span {
  max-width: 360px;
  font-size: 11px;
  line-height: 1.5;
}

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

.mp-import-editor__result-summary article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 13px;
  background: #fff;
}

.mp-import-editor__result-summary article span {
  color: var(--swaipy-muted, #7a8699);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mp-import-editor__result-summary article strong {
  overflow: hidden;
  color: #263043;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-editor__target-product {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 16px;
  background: #fff;
}

.mp-import-editor__target-product-head h3,
.mp-import-editor__target-product-head p {
  margin: 0;
}

.mp-import-editor__target-product-head h3 {
  color: var(--swaipy-text, #0f172a);
  font-size: 15px;
}

.mp-import-editor__target-product-head p:not(.mp-import-editor__eyebrow) {
  max-width: 820px;
  margin-top: 5px;
  color: var(--swaipy-muted, #7a8699);
  font-size: 11px;
  line-height: 1.5;
}

.mp-import-editor__target-product-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mp-import-editor__target-product-fields .mp-import-field--wide {
  grid-column: 1 / -1;
}

.mp-import-editor__target-product-fields textarea {
  min-height: 92px;
  resize: vertical;
}

.mp-import-editor__result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  justify-content: start;
  gap: 12px;
  min-width: 0;
}

.mp-import-result-review-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(15, 23, 42, .05);
}

.mp-import-result-review-card.is-incomplete {
  border-color: #e6c9b5;
}

.mp-import-result-review-card__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px 6px 10px;
  border-bottom: 1px solid var(--swaipy-border, #e3e8ef);
  background: #fff;
}

.mp-import-result-review-card__toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-result-review-card__toolbar > span:first-child b {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding-inline: 5px;
  border-radius: 8px;
  background: #eef1f5;
  color: #263043;
  font-size: 9px;
}

.mp-import-result-review-card__move-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.mp-import-result-review-card__move-actions .mp-import-icon-button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 12px;
}

.mp-import-result-review-card__media {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  box-sizing: border-box;
  aspect-ratio: 3 / 4;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .94) 0 12%, transparent 38%),
    linear-gradient(152deg, #f3e6dc 0%, #fff7ef 47%, #e9eef4 100%);
  color: #263043;
}

.mp-import-result-review-card__preview-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mp-import-result-review-card__preview-meta > span {
  overflow: hidden;
  color: #263043;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mp-import-result-review-card__preview-meta > small {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(101, 112, 133, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #667085;
  font-size: 7px;
  font-weight: 750;
  white-space: nowrap;
}

.mp-import-result-review-card__preview-product {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.mp-import-result-review-card__preview-product > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(33, 41, 54, .18));
}

.mp-import-result-review-card__preview-product.is-empty {
  border: 1px dashed rgba(102, 112, 133, .42);
  border-radius: 12px;
  background: rgba(255, 255, 255, .42);
}

.mp-import-result-review-card__preview-product.is-empty > span {
  display: grid;
  place-items: center;
  gap: 5px;
  color: #667085;
  text-align: center;
}

.mp-import-result-review-card__preview-product.is-empty b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: #475467;
  font-size: 19px;
  font-weight: 500;
}

.mp-import-result-review-card__preview-product.is-empty small {
  font-size: 9px;
  font-weight: 750;
}

.mp-import-result-review-card__preview-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 22px rgba(45, 55, 72, .1);
  backdrop-filter: blur(8px);
}

.mp-import-result-review-card__preview-copy strong,
.mp-import-result-review-card__preview-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.mp-import-result-review-card__preview-copy strong {
  color: #1d2939;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.18;
  -webkit-line-clamp: 2;
}

.mp-import-result-review-card__preview-copy p {
  color: #5c6677;
  font-size: 8px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.mp-import-result-review-card__copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.mp-import-result-review-card__copy strong,
.mp-import-result-review-card__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-result-review-card__copy strong {
  color: #263043;
  font-size: 10px;
}

.mp-import-result-review-card__copy small {
  color: var(--swaipy-muted, #7a8699);
  font-size: 8px;
}

.mp-import-result-review-card__reference {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e4e8ee;
  border-radius: 10px;
  background: #f8fafc;
}

.mp-import-result-review-card__reference > span:first-child {
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.mp-import-result-review-card__reference > div {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mp-import-result-review-card__reference-thumb {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 7px;
  background: #fff;
}

.mp-import-result-review-card__reference-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-result-review-card__photo-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.mp-import-result-review-card__photo-picker legend {
  padding: 0;
  color: #667085;
  font-size: 9px;
  font-weight: 750;
}

.mp-import-result-review-card__photo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-import-result-review-card__photo-option {
  position: relative;
  appearance: none;
  width: 44px;
  height: 56px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  cursor: pointer;
}

.mp-import-result-review-card__photo-option:hover {
  border-color: #b6c0ce;
}

.mp-import-result-review-card__photo-option.is-selected {
  border-color: var(--swaipy-accent, #ff7a2f);
  box-shadow: 0 0 0 2px rgba(255, 122, 47, .16);
}

.mp-import-result-review-card__photo-option img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.mp-import-result-review-card__photo-option > span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding-inline: 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  color: #344054;
  font-size: 7px;
  font-weight: 850;
}

.mp-import-result-review-card__photo-option--empty {
  width: 58px;
  padding: 5px;
  border-style: dashed;
  font-size: 7px;
  font-weight: 750;
  line-height: 1.2;
}

.mp-import-result-review-card__photo-empty {
  margin: 0;
  color: #7a8699;
  font-size: 9px;
  line-height: 1.45;
}

.mp-import-result-review-card__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mp-import-result-review-card__field > span {
  color: #667085;
  font-size: 9px;
  font-weight: 750;
}

.mp-import-result-review-card__field input,
.mp-import-result-review-card__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  background: #fbfcfd;
  color: #263043;
  font: inherit;
  font-size: 10px;
  line-height: 1.45;
}

.mp-import-result-review-card__field input {
  min-height: 34px;
  padding: 7px 9px;
}

.mp-import-result-review-card__field textarea {
  min-height: 74px;
  padding: 8px 9px;
  resize: vertical;
}

.mp-import-result-review-card__field input:focus,
.mp-import-result-review-card__field textarea:focus {
  border-color: rgba(255, 122, 47, .72);
  background: #fff;
  outline: 2px solid rgba(255, 122, 47, .14);
  outline-offset: 0;
}

.mp-import-editor__readiness {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--swaipy-border, #e3e8ef);
  border-radius: 14px;
  background: #fff;
}

.mp-import-editor__readiness > strong {
  color: #263043;
  font-size: 12px;
}

.mp-import-editor__readiness > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-import-editor__readiness span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
}

.mp-import-editor__readiness span b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e0e4ea;
  font-size: 8px;
}

.mp-import-editor__readiness span.is-ready {
  background: #eef8f2;
  color: #2f7454;
}

.mp-import-editor__readiness span.is-ready b {
  background: #d5eddf;
}

.mp-import-editor__footer {
  position: relative;
  z-index: 5;
  min-height: 68px;
  backdrop-filter: blur(12px);
}

.mp-import-editor__footer-copy strong {
  font-size: 12px;
}

.mp-import-editor__footer-copy span {
  font-size: 10px;
}

.mp-import-editor__generate {
  min-width: 220px;
}

.mp-import-editor :focus-visible {
  outline-color: rgba(255, 122, 47, .38);
}

@media (max-width: 1280px) {
  .mp-import-editor {
    --mp-editor-inset: 0px;
    backdrop-filter: none;
  }

  .mp-import-editor__shell {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .mp-import-editor__materials-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-width: 980px) {
  .mp-import-editor__sections {
    overflow: auto;
  }

  .mp-import-editor__section-pane {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }

  .mp-import-editor__materials-grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .mp-import-editor__visual {
    grid-template-rows: auto auto minmax(360px, 52vh) auto auto;
    min-height: 690px;
    overflow: visible;
  }

  .mp-import-editor__workspace,
  .mp-import-editor__panels {
    overflow: visible;
  }

  .mp-import-editor__workspace {
    min-height: 430px;
    border-top: 1px solid var(--swaipy-border, #e3e8ef);
    border-left: 0;
  }

  .mp-import-editor__tabs {
    position: static;
  }

  .mp-import-editor__panel {
    min-height: 0;
  }

  .mp-import-editor__plan-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__plan-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .mp-import-editor__header,
  .mp-import-editor__footer {
    min-height: 62px;
    padding: 8px 12px;
  }

  .mp-import-editor__identity {
    gap: 9px;
  }

  .mp-import-editor__source-mark {
    width: 36px;
    height: 36px;
  }

  .mp-import-editor__header-copy h2 {
    max-width: 56vw;
    font-size: 13px;
  }

  .mp-import-editor__save-status {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .mp-import-editor__save-status > span:last-child {
    display: none;
  }

  .mp-import-editor__global-tabs {
    gap: 18px;
    min-height: 46px;
    padding-inline: 12px;
  }

  .mp-import-editor__global-tab {
    font-size: 10px;
  }

  .mp-import-editor__visual {
    grid-template-rows: auto auto minmax(300px, 62vh) auto auto;
    gap: 8px;
    min-height: 650px;
    padding: 12px;
  }

  .mp-import-editor__stage {
    height: auto;
    min-height: 300px;
    padding: 8px;
    border-radius: 12px;
  }

  .mp-import-editor__slide-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-import-editor__slide-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__slide-actions .mp-import-button--danger {
    grid-column: auto;
  }

  .mp-import-editor__thumb,
  .mp-import-editor__thumb-button {
    width: 64px;
  }

  .mp-import-editor__thumb {
    flex-basis: 64px;
  }

  .mp-import-editor__thumb-button {
    height: 82px;
  }

  .mp-import-editor__thumb--add,
  .mp-import-editor__thumb-add {
    width: 70px;
  }

  .mp-import-editor__thumb--add {
    flex-basis: 70px;
  }

  .mp-import-editor__plan-workspace,
  .mp-import-editor__result-workspace {
    gap: 14px;
    padding: 14px 12px;
  }

  .mp-import-editor__section-head--large {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-import-plan-item {
    grid-template-columns: 30px 48px minmax(0, 1fr);
  }

  .mp-import-plan-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .mp-import-editor__result-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__target-product {
    gap: 12px;
    padding: 13px 12px;
  }

  .mp-import-editor__target-product-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__target-product-fields .mp-import-field--wide {
    grid-column: auto;
  }

  .mp-import-editor__result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .mp-import-editor__footer-actions,
  .mp-import-editor__generate {
    width: 100%;
  }

  .mp-import-editor__footer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor__generate {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .mp-import-analysis__hero,
  .mp-import-analysis__diagnostics {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-analysis__verdict {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__plan-sidebar {
    width: 100%;
  }

  .mp-import-analysis__cover {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }

  .mp-import-analysis__cover-media {
    width: min(210px, 70vw);
    margin-inline: auto;
  }

  .mp-import-analysis__cover-heading,
  .mp-import-analysis__section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-import-analysis__cover-factors > span {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .mp-import-analysis__series li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 13px;
  }

  .mp-import-analysis__series-sources {
    grid-column: 2;
  }

  .mp-import-analysis__source-thumb {
    width: 36px;
    height: 48px;
  }

  .mp-import-analysis__state {
    padding: 14px;
  }

  .mp-import-analysis__slide-list article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .mp-import-analysis__slide-thumb {
    width: 46px;
  }
}

/* 2026-07-15: analysis readability and progressive-disclosure refinement. */
.mp-import-analysis__state h4 {
  font-size: 15px;
  line-height: 1.35;
}

.mp-import-analysis__state p {
  font-size: 13px;
  line-height: 1.5;
}

.mp-import-analysis__state small {
  font-size: 12px;
  line-height: 1.45;
}

.mp-import-analysis__state--compact {
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 14px;
}

.mp-import-analysis__state--compact .mp-import-analysis__state-icon {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.mp-import-analysis__state--compact > div {
  width: 100%;
  gap: 7px;
}

.mp-import-analysis__progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mp-import-analysis__progress-row .mp-import-analysis__progress {
  flex: 1 1 260px;
  width: auto;
  min-width: 120px;
  margin: 0;
}

.mp-import-analysis__progress-copy,
.mp-import-analysis__progress-meta {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.mp-import-analysis__progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475467;
  font-weight: 800;
  white-space: nowrap;
}

.mp-import-analysis__progress-meta time {
  color: #667085;
  font-weight: 700;
}

.mp-import-analysis__kicker {
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-analysis__cover {
  grid-template-columns: minmax(184px, 204px) minmax(0, 1fr);
  gap: 20px;
  padding: 19px;
}

.mp-import-analysis__cover-heading h4,
.mp-import-analysis__verdict h4,
.mp-import-analysis__section-title h4 {
  font-size: 20px;
  line-height: 1.27;
}

.mp-import-analysis__score b {
  font-size: 28px;
  line-height: 1;
}

.mp-import-analysis__score small {
  font-size: 11px;
}

.mp-import-analysis__cover-copy > p,
.mp-import-analysis__verdict p {
  font-size: 13px;
  line-height: 1.58;
}

.mp-import-analysis__cover-factors {
  gap: 8px;
}

.mp-import-analysis__cover-factors > span {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 11px;
  padding-top: 9px;
}

.mp-import-analysis__cover-factors small,
.mp-import-analysis__cover-action small,
.mp-import-analysis__headline small,
.mp-import-analysis__overall span {
  font-size: 11px;
  line-height: 1.4;
}

.mp-import-analysis__cover-factors b,
.mp-import-analysis__cover-action strong,
.mp-import-analysis__headline strong {
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-analysis__cover-action,
.mp-import-analysis__headline {
  gap: 5px;
  padding: 11px 12px;
  border-radius: 12px;
}

.mp-import-analysis__cover-media > b {
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-analysis__cover-details {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fbfcfe;
}

.mp-import-analysis__cover-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  cursor: pointer;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.mp-import-analysis__cover-details > summary::-webkit-details-marker {
  display: none;
}

.mp-import-analysis__cover-details > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef2f7;
  color: #475467;
  font-size: 16px;
  line-height: 1;
}

.mp-import-analysis__cover-details[open] > summary::after {
  content: "−";
}

.mp-import-analysis__cover-details-grid {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.mp-import-analysis__cover-details > p {
  margin: 0;
  padding: 0 12px 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.mp-import-analysis__verdict {
  gap: 12px;
  padding: 20px;
}

.mp-import-analysis__verdict-heading {
  display: grid;
  gap: 5px;
}

.mp-import-analysis__verdict-heading h4,
.mp-import-analysis__verdict-heading p {
  margin: 0;
}

.mp-import-analysis__verdict-heading h4 {
  color: #101828;
  font-size: 19px;
  line-height: 1.3;
}

.mp-import-analysis__verdict-heading p {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-analysis__verdict > details {
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
}

.mp-import-analysis__verdict > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  cursor: pointer;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.mp-import-analysis__verdict > details > summary::-webkit-details-marker {
  display: none;
}

.mp-import-analysis__verdict > details > summary::after {
  content: "+";
  color: #667085;
  font-size: 16px;
  line-height: 1;
}

.mp-import-analysis__verdict > details[open] > summary::after {
  content: "−";
}

.mp-import-analysis__verdict > details > p {
  margin: 0;
  padding: 0 11px 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.mp-import-analysis__overall strong {
  font-size: 15px;
}

.mp-import-analysis__diagnostics {
  gap: 14px;
}

.mp-import-analysis__diagnostic-head {
  gap: 10px;
  padding: 16px 16px 12px;
}

.mp-import-analysis__diagnostic-head span {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.mp-import-analysis__diagnostic-head h4 {
  font-size: 15px;
  line-height: 1.35;
}

.mp-import-analysis__finding-list {
  gap: 8px;
  padding: 0 14px 14px;
}

.mp-import-analysis__finding {
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  background: #fafbfd;
}

.mp-import-analysis__diagnostic--strengths .mp-import-analysis__finding {
  border-color: #def1e7;
  background: #f7fcf9;
}

.mp-import-analysis__diagnostic--improvements .mp-import-analysis__finding {
  border-color: #f5e7c9;
  background: #fffaf1;
}

.mp-import-analysis__diagnostic--missing .mp-import-analysis__finding {
  border-color: #e3e7fb;
  background: #f8f9ff;
}

.mp-import-analysis__finding > div {
  gap: 9px;
}

.mp-import-analysis__finding i {
  flex-basis: 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
}

.mp-import-analysis__finding strong {
  font-size: 13px;
  line-height: 1.4;
}

.mp-import-analysis__finding p,
.mp-import-analysis__finding small,
.mp-import-analysis__finding > b,
.mp-import-analysis__empty {
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-analysis__finding > b {
  color: #344054;
  font-weight: 800;
}

.mp-import-analysis__diagnostic--collapsed .mp-import-analysis__finding:nth-child(n + 4),
.mp-import-analysis__finding-list--collapsed .mp-import-analysis__finding:nth-child(n + 4) {
  display: none;
}

.mp-import-analysis__diagnostic--expanded .mp-import-analysis__finding,
.mp-import-analysis__finding-list--expanded .mp-import-analysis__finding {
  display: grid;
}

.mp-import-analysis__show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 28px);
  min-height: 38px;
  margin: 0 14px 14px;
  padding: 8px 12px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.mp-import-analysis__show-more:hover {
  border-color: #c7d0dd;
  background: #f8fafc;
}

.mp-import-analysis__show-more:focus-visible {
  outline: 3px solid rgba(91, 110, 225, .22);
  outline-offset: 2px;
}

.mp-import-analysis__diagnostic--collapsed > summary::-webkit-details-marker {
  display: none;
}

.mp-import-analysis__diagnostic--collapsed > .mp-import-analysis__show-more::after {
  content: "↓";
  margin-left: 7px;
  font-size: 13px;
  transition: transform .2s ease;
}

.mp-import-analysis__diagnostic--collapsed[open] > .mp-import-analysis__show-more::after {
  transform: rotate(180deg);
}

.mp-import-analysis__section-title {
  padding: 18px 20px;
}

.mp-import-analysis__section-title > span {
  font-size: 11px;
}

.mp-import-analysis__series li {
  grid-template-columns: 42px minmax(0, 1fr) minmax(230px, 270px);
  align-items: start;
  gap: 15px;
  padding: 15px 20px;
}

.mp-import-analysis__series-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.mp-import-analysis__series-task,
.mp-import-analysis__series-sources {
  gap: 5px;
}

.mp-import-analysis__series-task small,
.mp-import-analysis__series-sources > small {
  font-size: 10px;
  line-height: 1.35;
}

.mp-import-analysis__series-task strong {
  font-size: 14px;
  line-height: 1.4;
}

.mp-import-analysis__series-task p {
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-analysis__series-sources > div {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-height: 64px;
}

.mp-import-analysis__source-card {
  display: inline-flex;
  flex: 0 0 78px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 78px;
  min-width: 0;
}

.mp-import-analysis__source-card--primary {
  flex-basis: 94px;
  width: 94px;
}

.mp-import-analysis__source-card > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-import-analysis__source-card--supporting {
  color: #667085;
}

.mp-import-analysis__source-thumb {
  flex: 0 0 auto;
  width: 50px;
  height: 66px;
  border-radius: 8px;
}

.mp-import-analysis__source-thumb--primary {
  width: 62px;
  height: 82px;
  border: 2px solid #6675e8;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(102, 117, 232, .10);
}

.mp-import-analysis__source-thumb--supporting {
  width: 46px;
  height: 60px;
  opacity: .94;
}

.mp-import-analysis__source-thumb b {
  right: 4px;
  bottom: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
}

.mp-import-analysis__source-role,
.mp-import-analysis__source-purpose {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mp-import-analysis__source-role {
  color: #344054;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.mp-import-analysis__source-card--primary .mp-import-analysis__source-role {
  color: #4f60d9;
}

.mp-import-analysis__source-card[data-analysis-source-role="primary"] .mp-import-analysis__source-role {
  color: #4f60d9;
}

.mp-import-analysis__series-sources small.mp-import-analysis__source-purpose {
  margin-top: 2px;
  color: #778397;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: none;
}

.mp-import-analysis__source-note {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f4f6fa;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.mp-import-analysis__series > .mp-import-analysis__source-note {
  margin: 12px 20px 0;
}

.mp-import-analysis__source-fallback {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.mp-import-analysis__sequence {
  gap: 14px;
  padding: 16px 18px;
}

.mp-import-analysis__sequence small {
  font-size: 11px;
}

.mp-import-analysis__sequence p {
  font-size: 13px;
  line-height: 1.55;
}

.mp-import-analysis__details summary {
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.4;
}

.mp-import-analysis__details summary b {
  min-width: 30px;
  height: 24px;
  font-size: 11px;
}

.mp-import-analysis__slide-list {
  gap: 10px;
  padding: 0 16px 16px;
}

.mp-import-analysis__slide-list article {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  background: #fbfcfe;
}

.mp-import-analysis__slide-thumb {
  width: 72px;
  border-radius: 10px;
}

.mp-import-analysis__slide-heading strong,
.mp-import-analysis__slide-heading b {
  font-size: 13px;
  line-height: 1.4;
}

.mp-import-analysis__slide-heading b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
}

.mp-import-analysis__slide-list p,
.mp-import-analysis__slide-list small,
.mp-import-analysis__slide-list em {
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-analysis__slide-details {
  overflow: hidden;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #fff;
}

.mp-import-analysis__slide-details > summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px;
  cursor: pointer;
  color: #263247;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.mp-import-analysis__slide-details > summary::-webkit-details-marker {
  display: none;
}

.mp-import-analysis__slide-details > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f3f7;
  color: #536176;
  font-size: 16px;
}

.mp-import-analysis__slide-details[open] > summary::after {
  content: "−";
}

.mp-import-analysis__slide-analysis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.mp-import-analysis__slide-analysis--cover {
  grid-template-columns: minmax(0, 1fr);
}

.mp-import-analysis__slide-summary {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 2px 2px;
  color: #667085;
}

.mp-import-analysis__slide-block {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f8fafc;
}

.mp-import-analysis__slide-block--strengths {
  border-color: #dbeee4;
  background: #f4fbf7;
}

.mp-import-analysis__slide-block--improvements {
  border-color: #f2e2c1;
  background: #fff9ee;
}

.mp-import-analysis__slide-block--missing {
  border-color: #dfe4fb;
  background: #f6f7ff;
}

.mp-import-analysis__slide-block--action {
  border-color: #dbe6f8;
  background: #f2f7ff;
}

.mp-import-analysis__slide-block--cover {
  border-color: #dbe6f8;
  background: #f2f7ff;
}

.mp-import-analysis__slide-block h5,
.mp-import-analysis__slide-block p {
  margin: 0;
}

.mp-import-analysis__slide-block h5 {
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
}

.mp-import-analysis__slide-block p {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .mp-import-analysis__series li {
    grid-template-columns: 42px minmax(0, 1fr) minmax(210px, 240px);
  }
}

@media (max-width: 980px) {
  .mp-import-analysis__series li {
    grid-template-columns: 42px minmax(0, 1fr) minmax(220px, 260px);
  }

  .mp-import-analysis__slide-analysis {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .mp-import-editor__analysis {
    gap: 13px;
  }

  .mp-import-analysis__state--compact {
    align-items: flex-start;
    padding: 12px;
  }

  .mp-import-analysis__progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .mp-import-analysis__progress-row .mp-import-analysis__progress {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }

  .mp-import-analysis__progress-meta {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }

  .mp-import-analysis__cover {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }

  .mp-import-analysis__cover-media {
    width: min(220px, 72vw);
  }

  .mp-import-analysis__cover-heading h4,
  .mp-import-analysis__verdict h4,
  .mp-import-analysis__section-title h4 {
    font-size: 18px;
  }

  .mp-import-analysis__cover-factors > span {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .mp-import-analysis__verdict {
    padding: 16px;
  }

  .mp-import-analysis__diagnostic-head {
    padding: 14px 14px 11px;
  }

  .mp-import-analysis__finding-list {
    padding-inline: 12px;
  }

  .mp-import-analysis__show-more {
    width: calc(100% - 24px);
    margin-inline: 12px;
  }

  .mp-import-analysis__section-title {
    padding: 15px 14px;
  }

  .mp-import-analysis__series > .mp-import-analysis__source-note {
    margin: 10px 14px 0;
  }

  .mp-import-analysis__series li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
  }

  .mp-import-analysis__series-sources {
    grid-column: 2;
  }

  .mp-import-analysis__series-sources > div {
    min-height: 0;
  }

  .mp-import-analysis__source-thumb {
    width: 48px;
    height: 64px;
  }

  .mp-import-analysis__source-thumb--primary {
    width: 58px;
    height: 76px;
  }

  .mp-import-analysis__source-thumb--supporting {
    width: 44px;
    height: 58px;
  }

  .mp-import-analysis__sequence {
    padding: 14px;
  }

  .mp-import-analysis__details summary {
    padding: 14px;
  }

  .mp-import-analysis__slide-list {
    padding: 0 12px 12px;
  }

  .mp-import-analysis__slide-list article {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .mp-import-analysis__slide-thumb {
    width: 60px;
  }

  .mp-import-analysis__slide-details > summary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
  }

  .mp-import-analysis__slide-analysis {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 10px 10px;
  }
}

@media (max-width: 420px) {
  .mp-import-analysis__state {
    gap: 10px;
  }

  .mp-import-analysis__cover,
  .mp-import-analysis__verdict,
  .mp-import-analysis__diagnostic,
  .mp-import-analysis__series,
  .mp-import-analysis__sequence,
  .mp-import-analysis__details {
    border-radius: 14px;
  }

  .mp-import-analysis__series li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .mp-import-analysis__series-number {
    width: 32px;
    height: 32px;
  }

  .mp-import-analysis__source-card {
    gap: 6px;
  }

  .mp-import-analysis__source-note {
    font-size: 11px;
  }

  .mp-import-analysis__slide-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mp-import-analysis__slide-thumb {
    width: 54px;
  }

  .mp-import-analysis__slide-details > summary {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
}

/* 2026-07-15: reference-aligned read-only Materials screen. */
.mp-import-editor {
  --mp-materials-accent: #6d28d9;
  --mp-materials-accent-soft: #f5f2ff;
  --mp-editor-inset: clamp(12px, .8vw, 16px);
}

.mp-import-editor__footer-info {
  min-width: 0;
}

.mp-import-editor__footer-ai-mark,
.mp-import-editor__footer-meta {
  display: none;
}

.mp-import-editor__global-tabs {
  gap: 36px;
  min-height: 50px;
  padding-inline: 28px;
}

.mp-import-editor__global-tab {
  font-size: 13px;
  font-weight: 650;
}

.mp-import-editor__global-tab::after {
  height: 3px;
  border-radius: 999px 999px 0 0;
}

.mp-import-editor__global-tab.is-active::after {
  background: var(--mp-materials-accent);
}

.mp-import-editor :focus-visible {
  outline-color: rgba(109, 40, 217, .34);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #fff;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__header {
  min-height: 76px;
  padding: 12px 24px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__identity {
  gap: 14px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__source-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  font-size: 14px;
}

.mp-import-editor[data-active-section="materials"][data-platform="ozon"] .mp-import-editor__source-mark {
  background: linear-gradient(145deg, #1673ff, #005bff);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__header-copy h2 {
  max-width: min(760px, 62vw);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 680;
  line-height: 1.25;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__header-copy p {
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__source-link {
  color: #344054;
  font-weight: 650;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__save-status {
  min-height: 30px;
  padding-inline: 10px;
  border-radius: 12px;
  font-size: 12px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #101828;
  font-size: 23px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__sections {
  overflow: hidden;
  background: #fff;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__section-pane {
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__materials-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 1fr);
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 16px 22px;
  align-items: stretch;
  background: #fff;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__visual,
.mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 17px;
  background: #fff;
  box-shadow: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace {
  overflow: hidden;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  gap: 0;
  padding: 14px 20px 16px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__section-head {
  min-height: 26px;
  align-items: center;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__section-head h3,
.mp-import-editor[data-active-section="materials"] .mp-import-editor__panel-head h3 {
  color: #111827;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__slide-toolbar,
.mp-import-editor[data-active-section="materials"] .mp-import-editor__tabs {
  display: none !important;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__stage {
  align-self: stretch;
  width: 100%;
  min-height: 0;
  max-height: none;
  margin: 4px auto 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__stage img {
  width: auto;
  max-width: min(100%, 430px);
  height: auto;
  max-height: min(100%, 430px);
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__stage-placeholder {
  display: grid;
  width: min(100%, 430px);
  min-height: 320px;
  place-items: center;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  background: #fafbfc;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__stage-placeholder.hidden {
  display: none;
}

.mp-import-editor__gallery-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumbnails {
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 3px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumbnails::-webkit-scrollbar {
  display: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb,
.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb-button {
  width: 76px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb {
  flex-basis: 76px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb-button {
  height: 86px;
  padding: 2px;
  border: 2px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb-button img {
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb.is-focused .mp-import-editor__thumb-button {
  border-color: var(--mp-materials-accent);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, .1);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__thumb-index {
  bottom: 5px;
  left: 5px;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  background: rgba(255, 255, 255, .96);
  color: #111827;
  font-size: 10px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .12);
}

.mp-import-editor__gallery-next {
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font: 400 32px/1 var(--body-font, Manrope, "Segoe UI", sans-serif);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .035);
}

.mp-import-editor__gallery-next:hover:not(:disabled) {
  border-color: #b8c0cc;
  background: #fafafa;
}

.mp-import-editor__gallery-next.hidden {
  display: none;
}

.mp-import-editor__gallery-counter {
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__upload-feedback:empty {
  display: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace {
  display: block;
  border-left: 1px solid #e5e7eb;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__panels {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__panel {
  display: block;
  min-height: 100%;
  padding: 0;
}

.mp-import-editor[data-active-section="materials"] #marketplace-import-editor-panel-product {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__panel-head {
  min-height: 52px;
  padding: 12px 18px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.mp-import-editor__product-data {
  display: grid;
  min-width: 0;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data::-webkit-scrollbar {
  width: 8px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data::-webkit-scrollbar-track {
  background: transparent;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #cbd1db;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__product-facts {
  display: contents;
}

.mp-import-editor__product-data-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid #eaecf0;
}

.mp-import-editor__product-data-field > span,
.mp-import-editor__characteristics-copy small {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.mp-import-editor__product-data-field p {
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mp-import-editor__product-data-field--description > p {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.mp-import-editor__product-data-field--description.is-expanded > p,
.mp-import-editor__product-data-field--description.is-short > p {
  display: block;
  overflow: visible;
}

.mp-import-editor__description-toggle {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  margin-top: 1px;
  padding: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mp-import-editor__description-toggle b {
  display: inline-grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 0;
  transition: transform .16s ease;
}

.mp-import-editor__description-toggle b::before {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.mp-import-editor__product-data-field--description.is-expanded .mp-import-editor__description-toggle b {
  transform: rotate(180deg);
}

.mp-import-editor__description-toggle.hidden {
  display: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics summary {
  display: flex;
  min-height: 64px;
  padding: 13px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics summary::-webkit-details-marker {
  display: none;
}

.mp-import-editor__characteristics-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mp-import-editor__characteristics-copy strong {
  color: #111827;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.mp-import-editor__characteristics-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mp-import-editor__characteristics-action b {
  display: inline-grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 0;
  transition: transform .16s ease;
}

.mp-import-editor__characteristics-action b::before {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateX(-2px) rotate(-45deg);
}

.mp-import-editor__characteristics[open] .mp-import-editor__characteristics-action b {
  transform: rotate(90deg);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics dl {
  max-height: none;
  padding: 0 18px 16px;
  overflow: visible;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics dl > div {
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer {
  min-height: 78px;
  margin: 0 22px 16px;
  padding: 10px 14px;
  border: 1px solid #e4e1ef;
  border-radius: 17px;
  background: linear-gradient(105deg, #fdfcff, #faf9ff);
  box-shadow: none;
  backdrop-filter: none;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-ai-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: var(--mp-materials-accent-soft);
  color: var(--mp-materials-accent);
  font-size: 21px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-copy {
  gap: 3px;
  max-width: 760px;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-copy strong {
  color: #111827;
  font-size: 15px;
  font-weight: 650;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-copy span {
  overflow: visible;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-actions {
  display: grid;
  flex: 0 0 clamp(250px, 22vw, 310px);
  gap: 4px;
  width: clamp(250px, 22vw, 310px);
  align-items: center;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__generate {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-radius: 11px;
  background: #111827;
  font-size: 13px;
  font-weight: 650;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__generate:hover:not(:disabled) {
  background: #202939;
  transform: translateY(-1px);
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-meta {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-meta.hidden {
  display: none;
}

@media (min-width: 901px) and (max-width: 1280px) {
  .mp-import-editor {
    --mp-editor-inset: 12px;
    padding: var(--mp-editor-inset);
    backdrop-filter: blur(8px);
  }

  .mp-import-editor__shell {
    width: min(100%, 1680px);
    height: calc(100dvh - (var(--mp-editor-inset) * 2));
    border: 1px solid var(--swaipy-border, #e3e8ef);
    border-radius: 20px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__header {
    padding-inline: 24px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__materials-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, 1fr);
    gap: 18px;
    padding-inline: 22px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
    padding-inline: 20px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data-field {
    padding: 14px 18px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data-field--description > p {
    -webkit-line-clamp: 4;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics summary {
    min-height: 64px;
    padding: 13px 18px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__stage img {
    max-height: min(100%, 390px);
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer {
    margin-inline: 22px;
  }
}

@media (max-width: 900px) {
  .mp-import-editor {
    --mp-editor-inset: 0px;
    padding: 0;
  }

  .mp-import-editor__shell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__source-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 13px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__identity {
    gap: 12px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__header-copy h2 {
    max-width: 56vw;
    font-size: 16px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__header-copy p {
    margin-top: 4px;
    font-size: 12px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mp-import-editor__global-tabs {
    gap: 24px;
    min-height: 48px;
    padding-inline: 14px;
    overflow-x: auto;
  }

  .mp-import-editor__global-tab {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__section-pane,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__materials-grid {
    height: auto;
    min-height: 100%;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__sections,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__panels,
  .mp-import-editor[data-active-section="materials"] #marketplace-import-editor-panel-product,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data {
    height: auto;
    min-height: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .mp-import-editor[data-active-section="materials"] #marketplace-import-editor-panel-product {
    display: block;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__materials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__visual,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__workspace {
    height: auto;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
    grid-template-rows: auto minmax(360px, 52vh) auto auto auto;
    min-height: 600px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__stage img {
    max-height: min(100%, 430px);
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer {
    position: relative;
    bottom: auto;
    display: grid;
    gap: 12px;
    margin: 0 14px 14px;
    padding: 13px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-actions {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__header-copy h2 {
    max-width: 48vw;
    font-size: 14px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__source-link:not(.hidden) {
    display: inline-flex;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__save-status {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__materials-grid {
    padding: 12px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__visual {
    grid-template-rows: auto minmax(320px, 55vh) auto auto auto;
    min-height: 550px;
    padding: 18px 14px;
  }

  .mp-import-editor__gallery-rail {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .mp-import-editor__gallery-next {
    width: 44px;
    height: 44px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__product-data-field,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__characteristics summary {
    padding-inline: 18px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer {
    margin: 0 12px 12px;
    padding: 12px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-info {
    align-items: flex-start;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-ai-mark {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-copy strong {
    font-size: 15px;
  }

  .mp-import-editor[data-active-section="materials"] .mp-import-editor__footer-copy span {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-editor__description-toggle b,
  .mp-import-editor__characteristics-action b,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__generate {
    transition: none;
  }
}

/* Marketplace imported-card improvement results v15. */
.mp-import-analysis__improvement-state,
.mp-import-analysis__comparison {
  margin: 0 12px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #f8fafc;
}

.mp-import-analysis__improvement-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
}

.mp-import-analysis__improvement-state > span {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 800;
}

.mp-import-analysis__improvement-state strong,
.mp-import-analysis__improvement-state p {
  display: block;
  margin: 0;
}

.mp-import-analysis__improvement-state strong {
  color: #182033;
  font-size: 13px;
}

.mp-import-analysis__improvement-state p {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mp-import-analysis__improvement-state--failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.mp-import-analysis__improvement-state--failed > span {
  background: #fee2e2;
  color: #b42318;
}

.mp-import-analysis__improvement-spinner {
  position: relative;
}

.mp-import-analysis__improvement-spinner::after {
  width: 15px;
  height: 15px;
  border: 2px solid rgb(79 70 229 / 22%);
  border-top-color: #4f46e5;
  border-radius: 50%;
  content: "";
  animation: mp-import-result-spin .8s linear infinite;
}

.mp-import-analysis__comparison {
  overflow: hidden;
  background: #fff;
}

.mp-import-analysis__comparison > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e7eaf0;
}

.mp-import-analysis__comparison > header small,
.mp-import-analysis__comparison > header strong {
  display: block;
}

.mp-import-analysis__comparison > header small {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-import-analysis__comparison > header strong {
  margin-top: 2px;
  color: #172033;
  font-size: 13px;
}

.mp-import-analysis__comparison > header button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mp-import-analysis__comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
  padding: 14px;
}

.mp-import-analysis__comparison-grid figure,
.mp-import-results__comparison figure {
  min-width: 0;
  margin: 0;
}

.mp-import-analysis__comparison-grid figure > div,
.mp-import-results__comparison figure > div {
  display: grid;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  place-items: center;
  border: 1px solid #dfe3ea;
  border-radius: 11px;
  background: #f4f6f8;
}

.mp-import-analysis__comparison-grid figure.is-result > div,
.mp-import-results__comparison figure.is-result > div {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgb(99 102 241 / 10%);
}

.mp-import-analysis__comparison-grid img,
.mp-import-results__comparison img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-analysis__comparison-grid figcaption,
.mp-import-results__comparison figcaption {
  margin-top: 6px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.mp-import-editor[data-active-section="series"] #marketplace-import-editor-pane-series .mp-import-editor__result-workspace {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 2.4vw, 34px) 34px;
}

.mp-import-editor[data-active-section="series"] #marketplace-import-editor-pane-series .mp-import-editor__result-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
}

.mp-import-editor__result-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mp-import-editor__result-status b {
  font: inherit;
}

.mp-import-editor__result-status.is-ready {
  background: #ecfdf3;
  color: #067647;
}

.mp-import-editor__result-status.is-processing {
  background: #f5f3ff;
  color: #6d28d9;
}

.mp-import-editor__result-status.is-failed {
  background: #fff1f3;
  color: #c01048;
}

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

.mp-import-results__card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(20 31 55 / 5%);
}

.mp-import-results__card-head,
.mp-import-results__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
}

.mp-import-results__card-head {
  border-bottom: 1px solid #edf0f4;
}

.mp-import-results__card-head small,
.mp-import-results__card-head strong {
  display: block;
}

.mp-import-results__card-head small {
  color: #7a8497;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mp-import-results__card-head strong {
  margin-top: 2px;
  color: #172033;
  font-size: 14px;
}

.mp-import-results__status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
}

.mp-import-results__card.is-ready .mp-import-results__status {
  background: #e8f8ef;
  color: #18794e;
}

.mp-import-results__card.is-failed .mp-import-results__status {
  background: #fff0f0;
  color: #b42318;
}

.mp-import-results__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
}

.mp-import-results__loader,
.mp-import-results__error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #667085;
  text-align: center;
}

.mp-import-results__loader i {
  width: 28px;
  height: 28px;
  border: 3px solid rgb(79 70 229 / 18%);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: mp-import-result-spin .8s linear infinite;
}

.mp-import-results__loader b {
  color: #344054;
  font-size: 12px;
}

.mp-import-results__loader small,
.mp-import-results__error small {
  font-size: 11px;
  line-height: 1.45;
}

.mp-import-results__error b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #b42318;
}

.mp-import-results__card-footer {
  flex-wrap: wrap;
  border-top: 1px solid #edf0f4;
}

.mp-import-results__card-footer > span {
  color: #667085;
  font-size: 10px;
}

.mp-import-results__card-footer a,
.mp-import-results__card-footer button,
.mp-import-results__empty button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #27324a;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 32px;
  text-decoration: none;
  cursor: pointer;
}

.mp-import-results__card-footer button {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.mp-import-results__card-footer .mp-import-results__download {
  border-color: #d7dce5;
  background: #fff;
  color: #27324a;
}

.mp-import-results__card-footer button:disabled,
.mp-reference-results__card > footer button:disabled {
  cursor: wait;
  opacity: .58;
}

.mp-import-results__empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  min-height: 260px;
  padding: 42px 20px;
  border: 1px dashed #cfd6e2;
  border-radius: 16px;
  background: #fff;
  color: #667085;
  text-align: center;
}

.mp-import-results__empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 22px;
}

.mp-import-results__empty strong {
  margin-top: 14px;
  color: #172033;
  font-size: 17px;
}

.mp-import-results__empty p {
  max-width: 420px;
  margin: 6px 0 16px;
  font-size: 13px;
  line-height: 1.55;
}

@keyframes mp-import-result-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .mp-import-results {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .mp-import-analysis__comparison-grid,
  .mp-import-results__comparison {
    gap: 8px;
    padding: 10px;
  }

  .mp-import-editor[data-active-section="series"] #marketplace-import-editor-pane-series .mp-import-editor__result-summary {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
  }

  .mp-import-results__card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-import-results__card-footer a,
  .mp-import-results__card-footer button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-analysis__improvement-spinner::after,
  .mp-import-results__loader i {
    animation: none;
  }
}

/* 2026-07-15: approved own-card analysis reference */
.mp-import-editor[data-active-section="analysis"] {
  --mp-analysis-accent: #6657df;
  --mp-analysis-bg: #f5f7fb;
  --mp-analysis-border: #e5eaf1;
  --mp-analysis-text: #101828;
  --mp-analysis-copy: #344054;
  --mp-analysis-muted: #667085;
  --mp-analysis-radius: 14px;
  --mp-analysis-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__sections {
  min-height: 0;
  overflow: hidden;
  background: var(--mp-analysis-bg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mp-analysis-bg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-workspace {
  display: grid;
  align-content: start;
  gap: 16px;
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 24px 32px 40px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-sidebar,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-ai,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__analysis {
  width: min(100%, 1320px);
  min-width: 0;
  margin-inline: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large {
  gap: 16px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large h3 {
  margin: 0;
  color: var(--mp-analysis-text);
  font-size: clamp(23px, 2vw, 27px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large p:not(.mp-import-editor__eyebrow) {
  max-width: 760px;
  margin-top: 6px;
  color: var(--mp-analysis-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__count {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e9edf5;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-layout {
  display: block;
  width: 100%;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-sidebar {
  position: static;
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-ai:not(.hidden) {
  display: grid;
  gap: 14px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__analysis {
  display: grid;
  gap: 14px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero-cover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-copy,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-card,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__details,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis {
  border: 1px solid var(--mp-analysis-border);
  border-radius: var(--mp-analysis-radius);
  background: #fff;
  box-shadow: var(--mp-analysis-shadow);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr);
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview {
  grid-template-columns: 188px minmax(0, 1fr) minmax(260px, .78fr);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero-cover {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 11px;
  background: #f2f4f7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-media > b {
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-copy,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-head,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-head h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-heading h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title h4 {
  margin: 0;
  color: var(--mp-analysis-text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.012em;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__score,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-score {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 3px;
  color: var(--mp-analysis-accent);
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__score b,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-score b,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-score strong {
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__score small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-score small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-score span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-summary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-copy > p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict p {
  margin: 0;
  color: var(--mp-analysis-copy);
  font-size: 13px;
  line-height: 1.58;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlights {
  display: grid;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlight,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-insight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e8e4fb;
  border-radius: 10px;
  background: #f8f6ff;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlight--strength,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-insight--strength,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis [data-overview-insight="strength"] {
  border-color: #dceee5;
  background: #f5fbf7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlight--improvement,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-insight--improvement,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis [data-overview-insight="improvement"] {
  border-color: #f1e1bd;
  background: #fff9ee;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlight > span:first-child,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-insight > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(102, 87, 223, .10);
  color: var(--mp-analysis-accent);
  font-size: 11px;
  font-weight: 850;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-highlight p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-insight p {
  min-width: 0;
  margin: 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-improve,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-improve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #101828;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font: 800 12px/1.35 var(--body-font, Manrope, "Segoe UI", sans-serif);
  text-align: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button:hover:not(:disabled),
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-improve:hover:not(:disabled),
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-improve:hover:not(:disabled) {
  border-color: #253047;
  background: #253047;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button:disabled,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-improve:disabled,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-improve:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--cover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-improve {
  width: 100%;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  background: linear-gradient(155deg, #fff, #fafbfe);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e7ebf1;
  color: var(--mp-analysis-muted);
  font-size: 11px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__coverage strong {
  flex: 0 0 auto;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic {
  display: flex;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  flex-direction: column;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic-head {
  gap: 10px;
  padding: 15px 15px 11px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic-head span {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic-head h4 {
  font-size: 15px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic > .mp-import-analysis__finding-list {
  flex: 1 1 auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-list {
  gap: 7px;
  padding: 0 12px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding {
  gap: 6px;
  padding: 10px 11px;
  border-radius: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding strong {
  font-size: 13px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding > b,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__empty {
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic > details {
  margin-top: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__show-more {
  min-height: 38px;
  border-radius: 9px;
  font-size: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series {
  min-width: 0;
  overflow: hidden;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 17px 19px;
  border-bottom: 1px solid #e8ecf2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title > span {
  flex: 0 0 auto;
  font-size: 11px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title p {
  margin: 0;
  color: var(--mp-analysis-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series > .mp-import-analysis__source-note {
  margin: 11px 18px 0;
  padding: 9px 11px;
  border: 1px solid #e5eafb;
  border-radius: 9px;
  background: #f7f8ff;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 310px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 100px;
  padding: 12px 18px;
  border-top: 1px solid #edf0f4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources > small {
  font-size: 10px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task strong {
  color: #253047;
  font-size: 14px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task p {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources > div {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card {
  flex: 0 0 124px;
  width: 124px;
  flex-direction: row;
  align-items: flex-start;
  gap: 7px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
  flex-basis: 132px;
  width: 132px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb {
  width: 46px;
  height: 60px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb--primary {
  width: 60px;
  height: 80px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb--supporting {
  width: 46px;
  height: 60px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-role,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources small.mp-import-analysis__source-purpose {
  font-size: 10px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources .mp-import-analysis__source-note {
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f3f5f8;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis {
  min-width: 0;
  overflow: hidden;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head p {
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head h4 {
  color: var(--mp-analysis-text);
  font-size: 18px;
  line-height: 1.3;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head p {
  color: var(--mp-analysis-muted);
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > span,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > b {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7ebf1;
  border-radius: 11px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details[open] {
  border-color: #dce2eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 8px 11px;
  cursor: pointer;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details[open] > summary {
  border-bottom: 1px solid #edf0f4;
  background: #fbfcfe;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f3f7;
  color: #536176;
  font-size: 17px;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis .mp-import-analysis__slide-details > summary::after {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details[open] > summary::after {
  content: "−";
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 76px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  background: #f2f4f7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-heading {
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-heading strong {
  color: #253047;
  font-size: 13px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-heading b {
  color: #475467;
  font-size: 11px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-summary-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-open-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-open-label::after {
  content: "⌄";
  color: #667085;
  font-size: 12px;
  line-height: 1;
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details[open] .mp-import-analysis__slide-open-label::after {
  transform: rotate(180deg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-decision {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0efff;
  color: #5546ca;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision--keep {
  background: #eaf7ef;
  color: #18794e;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision--improve {
  background: #f0efff;
  color: #5546ca;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision--move,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision--merge {
  background: #fff4dc;
  color: #a15c05;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision--remove {
  background: #fff0f1;
  color: #b4233a;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: 16px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
  display: grid;
  place-items: center;
  width: 176px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 11px;
  background: #f2f4f7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large img,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-review,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e7ebf1;
  border-radius: 10px;
  background: #fbfcfe;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p {
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5 {
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p {
  margin-top: 4px;
  color: var(--mp-analysis-copy);
  font-size: 12px;
  line-height: 1.55;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  padding: 9px 10px;
  border: 1px solid #e7ebf1;
  border-radius: 9px;
  background: #f8fafc;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta small {
  color: #7b8799;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta b {
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis--cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  padding: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-summary {
  grid-column: 1 / -1;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--strengths {
  border-color: #dceee5;
  background: #f5fbf7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--improvements {
  border-color: #f1e1bd;
  background: #fff9ee;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--missing {
  border-color: #e3e6fa;
  background: #f8f8ff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover {
  grid-column: 1 / -1;
  border-color: #dce5f6;
  background: #f3f7ff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block h5 {
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block p {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-review > .mp-import-analysis__slide-decision,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content > .mp-import-analysis__decision {
  justify-self: start;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-improve,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content > .mp-import-analysis__improve-button {
  justify-self: end;
  min-width: 184px;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__footer {
  position: relative;
  z-index: 8;
  min-height: 68px;
  border-top: 1px solid var(--mp-analysis-border);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 26px rgba(15, 23, 42, .05);
}

@media (max-width: 980px) {
  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__sections,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-workspace {
    height: 100%;
    min-height: 0;
    padding: 20px 20px 32px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover {
    grid-template-columns: 176px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: end;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover .mp-import-analysis__improve-button--cover {
    align-self: end;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 40px minmax(0, 1fr) minmax(240px, 280px);
    gap: 13px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 15px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: 164px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis--cover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-workspace {
    gap: 13px;
    padding: 14px 12px 24px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large h3 {
    font-size: 22px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover {
    padding: 11px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-copy,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-card,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict {
    padding: 15px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-head h4,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-heading h4,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict h4,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title h4 {
    font-size: 18px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostics {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic {
    min-height: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head {
    align-items: flex-start;
    padding: 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series > .mp-import-analysis__source-note {
    margin: 10px 14px 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 13px 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
    grid-column: 2;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: 160px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis--cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover {
    grid-column: auto;
  }

  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__footer {
    position: relative;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__footer-actions,
  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__generate {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__plan-workspace {
    padding: 12px 10px 20px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-editor__section-head--large h3 {
    font-size: 20px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero-cover .mp-import-analysis__cover-media,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover > .mp-import-analysis__cover-media {
    width: min(180px, 58vw);
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero-cover .mp-import-analysis__improve-button--cover,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-improve {
    width: min(180px, 100%);
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-head,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__cover-heading,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-number {
    width: 32px;
    height: 32px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
    grid-column: 1 / -1;
    padding-left: 42px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
    padding: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-thumb {
    width: 52px;
    height: 68px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__decision,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-decision {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-open-label {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: min(160px, 58vw);
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-improve,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content > .mp-import-analysis__improve-button {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .mp-import-editor[data-active-section="analysis"] .mp-import-editor__footer-copy span {
    display: none;
  }
}

/* 2026-07-15: compact trust-first AI analysis */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__overview-summary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__verdict p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block ul {
  max-width: 820px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic {
  min-height: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-list {
  gap: 5px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding {
  padding: 8px 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding strong {
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series ol {
  margin: 0;
  padding: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-columns,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-column-head,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 420px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 9px 20px;
  border-top: 1px solid #edf0f4;
  background: #fafbfd;
  color: #8791a2;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
  grid-template-columns: 44px minmax(0, 1fr) 420px;
  align-items: start;
  gap: 16px;
  min-height: 0;
  padding: 16px 20px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-number {
  width: 36px;
  height: 36px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task {
  align-content: start;
  gap: 4px;
  padding-top: 2px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task strong {
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-task p {
  max-width: 680px;
  margin-top: 2px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
  align-content: start;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources > small {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources > div {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  flex: 1 1 164px;
  align-items: center;
  gap: 9px;
  width: auto;
  min-width: 160px;
  max-width: 180px;
  min-height: 76px;
  padding: 7px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
  border-color: #d8d9fb;
  background: #fbfaff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb--primary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-thumb--supporting {
  width: 54px;
  height: 70px;
  border-width: 1px;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-role {
  font-size: 10px;
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources small.mp-import-analysis__source-purpose {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > summary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head {
  cursor: pointer;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > summary::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > summary::after,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head::after {
  content: "⌄";
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 2px;
  border: 1px solid #e3e7ee;
  border-radius: 9px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] > summary::after,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] > .mp-import-analysis__source-analysis-head::after {
  transform: rotate(180deg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] > summary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] > .mp-import-analysis__source-analysis-head {
  border-bottom: 1px solid #edf0f4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis:not([open]) > .mp-import-analysis__slide-list {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  gap: 7px;
  padding: 10px 12px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details {
  border-color: #e8ebf0;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details[open] {
  border-color: #dfe4eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .025);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary {
  min-height: 72px;
  padding: 7px 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-heading strong {
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary p {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
  grid-template-columns: clamp(220px, 20vw, 260px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
  width: clamp(220px, 20vw, 260px);
  border: 0;
  border-radius: 12px;
  background: #f5f6f8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-review,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eceff3;
  border-radius: 0;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block h5 {
  color: #344054;
  font-size: 11px;
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p {
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
  line-height: 1.52;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #eceff3;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span {
  padding: 11px 16px;
  border: 0;
  border-right: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
  border-radius: 0;
  background: #fafbfc;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span:nth-child(2n) {
  border-right: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta small {
  font-weight: 650;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta b {
  font-weight: 600;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis--cover {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block {
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block p {
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.48;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block ul {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding: 0;
  color: #475467;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block li {
  position: relative;
  padding-left: 13px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block li::before {
  content: "";
  position: absolute;
  top: .58em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .48;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--strengths {
  background: #f3faf6;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--improvements {
  background: #fff8ec;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px 18px;
  padding: 14px 16px;
  border: 1px solid #d9ddfb;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4f3ff, #f8f7ff);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover h5 {
  grid-column: 1;
  color: #4d43b8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action b,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover b {
  grid-column: 1;
  max-width: 760px;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action > .mp-import-analysis__improve-button,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover > .mp-import-analysis__improve-button {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 172px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content > .mp-import-analysis__improve-button {
  justify-self: end;
  min-width: 172px;
  margin: 0 12px 12px;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__footer {
  min-height: 68px;
}

@media (max-width: 980px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-columns,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-column-head,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-head,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 40px minmax(0, 1fr) minmax(300px, 340px);
    gap: 13px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
    min-width: 146px;
    max-width: 166px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: 220px;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-columns,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-column-head,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-head {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
    grid-column: 2;
    margin-top: 5px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources::before {
    content: "Материалы";
    display: block;
    margin-bottom: 6px;
    color: #8791a2;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
    flex: 1 1 160px;
    max-width: 180px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: min(220px, 62vw);
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span:nth-child(2n),
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #eceff3;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span:last-child {
    border-bottom: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis--cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--action > .mp-import-analysis__improve-button,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block--cover > .mp-import-analysis__improve-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 5px;
  }
}

@media (max-width: 420px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__section-title,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > summary {
    padding: 13px 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series li {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series-sources {
    grid-column: 1 / -1;
    padding-left: 42px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-card--primary {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-details > summary {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    min-height: 66px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded {
    padding: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-preview-large,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-preview {
    width: min(190px, 62vw);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-meta span {
    padding: 11px 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis {
    padding: 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-expanded-content > .mp-import-analysis__improve-button {
    width: calc(100% - 18px);
    margin: 0 9px 9px;
  }
}

/* Compact renderer refinements. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding .mp-import-analysis__finding-action {
  margin: 0;
  color: #475467;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail {
  margin-top: 1px;
  color: #667085;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  color: #7a8596;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail > summary::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail > summary::after {
  content: "+";
  font-size: 12px;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > summary::after {
  content: "−";
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail small {
  display: block;
  margin: 5px 0 0 16px;
  color: #667085;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head::after {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 84px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 0;
  font-weight: 750;
  line-height: 1.25;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::before {
  content: "Показать";
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::before {
  content: "Скрыть";
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::after {
  content: "⌄";
  color: #667085;
  font-size: 12px;
  line-height: 1;
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::after {
  transform: rotate(180deg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-insight {
  padding-bottom: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria {
  margin: 12px -16px 0;
  border-top: 1px solid #eceff3;
  border-bottom: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 11px 16px;
  border-right: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
  background: #fafbfc;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div:nth-child(2n) {
  border-right: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dt,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dt {
  color: #7b8799;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dd {
  max-width: 820px;
  color: #344054;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution {
  margin: 0 12px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy h5 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy h5 small {
  color: #7770bd;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-headline {
  display: grid;
  gap: 2px;
  max-width: 760px;
  margin-top: 3px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-headline small {
  color: #7770bd;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-headline b {
  color: #2f2b66;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div:nth-child(2n),
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #eceff3;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 420px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-count {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle {
    min-width: 70px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria {
    margin-right: -12px;
    margin-left: -12px;
  }
}

/* 2026-07-15: visible source-first slide review */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__series--metadata[hidden],
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis [data-analysis-structure-metadata][hidden],
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis [data-analysis-sequence][hidden] {
  display: none !important;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__structure-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #e3e4fb;
  border-radius: 11px;
  background: #f8f8ff;
  color: #5b6475;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__structure-notice > * {
  min-width: 0;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__structure-notice > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecebff;
  color: #5b50c7;
  font-size: 11px;
  font-weight: 800;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__structure-notice strong {
  color: #344054;
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
  display: grid;
  grid-template-columns: 58px minmax(170px, .72fr) minmax(360px, 1.28fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main {
  display: grid;
  align-content: center;
  gap: 3px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading strong {
  min-width: 0;
  color: #253047;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0f3f7;
  color: #475467;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--strengths {
  background: #f3faf6;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements {
  background: #fff8ec;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  min-width: 0;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small {
  color: #667085;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
  align-self: center;
  min-width: 148px;
  min-height: 40px;
  padding: 8px 13px;
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details {
  overflow: hidden;
  border: 0;
  border-top: 1px solid #edf0f4;
  border-radius: 0;
  background: #fbfcfd;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] {
  border-color: #e8ebf0;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  cursor: pointer;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle::after {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details-toggle > .mp-import-analysis__slide-open-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-content {
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle {
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::before,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] .mp-import-analysis__source-analysis-head > .mp-import-analysis__source-analysis-toggle::before {
  display: none;
  content: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-toggle-open,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-toggle-closed {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis[open] .mp-import-analysis__source-analysis-toggle-open,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis:not([open]) .mp-import-analysis__source-analysis-toggle-closed {
  display: inline;
}

@media (max-width: 1080px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 58px minmax(160px, .72fr) minmax(300px, 1.28fr) auto;
    gap: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
    min-width: 132px;
  }
}

@media (max-width: 900px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
    width: 52px;
    height: 68px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
    min-height: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading b {
    padding: 2px 6px;
  }
}

/* 2026-07-15: concise analysis hierarchy and whole-series action v18. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero-cover {
  grid-template-rows: auto;
  gap: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic {
  min-height: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic-head {
  padding: 14px 14px 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-list {
  gap: 6px;
  padding: 0 11px 11px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding {
  gap: 4px;
  padding: 9px 10px;
  border-radius: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-title {
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail small {
  margin-left: 15px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail .mp-import-analysis__finding-action {
  color: #475467;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail .mp-import-analysis__finding-action b {
  color: #344054;
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic > details {
  margin-top: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__show-more {
  justify-content: flex-start;
  width: auto;
  min-height: 30px;
  margin: 0 12px 10px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
  position: relative;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
  grid-template-columns: 58px minmax(190px, .72fr) minmax(380px, 1.28fr) 148px;
  min-height: 86px;
  padding: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main {
  align-self: stretch;
  align-content: start;
  padding-top: 3px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  min-height: 62px;
  padding: 9px 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] {
  overflow: hidden;
  border: 0;
  background: transparent;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details:not([open]) {
  height: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
  position: static;
  justify-content: flex-start;
  width: auto;
  min-height: 28px;
  padding: 2px 12px 8px 82px;
  border: 0;
  background: transparent;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details-toggle > .mp-import-analysis__slide-open-label {
  gap: 5px;
  color: #667085;
  font-size: 10px;
  font-weight: 650;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-open-label::after {
  content: "⌄";
  display: inline-block;
  color: #667085;
  font-size: 11px;
  line-height: 1;
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details[open] .mp-import-analysis__slide-open-label::after {
  transform: rotate(180deg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details-toggle:focus-visible {
  outline: 2px solid #7667df;
  outline-offset: 3px;
  border-radius: 5px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row:has(> .mp-import-analysis__slide-details[open]) .mp-import-analysis__improve-button--row {
  visibility: hidden;
  pointer-events: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
  grid-template-columns: 240px minmax(0, 880px);
  justify-content: start;
  gap: 20px;
  padding: 18px 20px 20px;
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
  width: 240px;
  border: 1px solid #e7eaf0;
  border-radius: 11px;
  background: #f7f8fa;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-content {
  justify-self: start;
  width: 100%;
  max-width: 880px;
  overflow: hidden;
  border-color: #e7eaf0;
  border-radius: 11px;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context {
  padding: 14px 16px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5 {
  font-size: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p {
  max-width: 760px;
  font-size: 12px;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dd {
  max-width: 760px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-analysis {
  gap: 10px;
  padding: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block {
  padding: 11px 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  margin: 0 12px 12px;
  padding: 14px 15px;
  border-color: #d6d5fb;
  background: linear-gradient(135deg, #f3f1ff, #faf9ff);
  box-shadow: inset 3px 0 0 #7667df;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy {
  max-width: 680px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--solution {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  min-width: 190px;
  border-color: #5a35bd;
  background: #5a35bd;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--solution:hover:not(:disabled) {
  border-color: #48249f;
  background: #48249f;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state--failed {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  max-width: 620px;
  margin: 0 12px 9px;
  padding: 10px 12px;
  border-radius: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state--failed > span {
  width: 28px;
  height: 28px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state--failed strong {
  font-size: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state--failed p {
  font-size: 11px;
}

.mp-import-editor[data-active-section="analysis"] .mp-import-editor__generate {
  white-space: normal;
}

@media (max-width: 1080px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 58px minmax(160px, .72fr) minmax(300px, 1.28fr) 132px;
    gap: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 210px;
  }
}

@media (max-width: 900px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] {
    overflow: hidden;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details:not([open]) {
    height: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    position: static;
    justify-content: flex-start;
    width: auto;
    min-height: 28px;
    padding: 2px 12px 8px 80px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 190px;
  }
}

@media (max-width: 820px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostics {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row:has(> .mp-import-analysis__slide-details[open]) .mp-import-analysis__improve-button--row {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-left: 70px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: min(220px, 62vw);
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--solution {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-open-label {
    display: inline-flex;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-right: 9px;
    padding-left: 70px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution {
    margin: 0 9px 9px;
    padding: 12px;
  }
}

/* Keep the compact cover useful after its former per-slide CTA was removed. */
@media (min-width: 521px) and (max-width: 980px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__overview-card {
    grid-column: 2;
    grid-row: 1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__verdict {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 520px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__overview-card,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__verdict {
    grid-column: 1;
    grid-row: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__hero--overview .mp-import-analysis__hero-cover {
    width: min(212px, 100%);
    justify-self: center;
    grid-template-columns: minmax(0, 1fr);
  }
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0 12px 9px 82px;
  padding: 8px 10px;
  border: 1px solid #d7eadf;
  border-radius: 10px;
  background: #f5fbf7;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumb {
  width: 46px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #dfe7e3;
  border-radius: 7px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready strong,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready p {
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready strong {
  color: #176b45;
  font-size: 12px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready p {
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #cfe3d7;
  border-radius: 8px;
  background: #fff;
  color: #176b45;
  cursor: pointer;
  font: 750 10px/1.3 var(--body-font, Manrope, "Segoe UI", sans-serif);
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready button:hover {
  border-color: #acd2bb;
  background: #edf8f1;
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    grid-template-columns: 42px minmax(0, 1fr);
    margin-left: 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumb {
    width: 42px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* 2026-07-16: cohesive per-slide analysis cards and inline AI comparison v397. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  width: min(1080px, 100%);
  margin-inline: auto;
  gap: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
  border-color: #e2e7ee;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgb(20 31 55 / 2.5%);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
  grid-template-columns: 72px minmax(0, 1fr) 176px;
  grid-template-rows: auto auto;
  align-items: start;
  justify-content: start;
  gap: 7px 16px;
  min-height: 0;
  padding: 14px 16px 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 72px;
  height: 92px;
  border-color: #dfe4eb;
  border-radius: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding: 1px 0 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading strong {
  font-size: 14px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading b {
  padding: 3px 7px;
  background: #f1f3f7;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  max-width: 760px;
  margin-top: 1px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-content: center;
  gap: 1px 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  align-self: center;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--strengths {
  border-color: #e1f0e7;
  background: #f7fbf8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--strengths::before {
  content: "✓";
  background: #e3f5ea;
  color: #18794e;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements {
  border-color: #f4e8d2;
  background: #fffbf4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements::before {
  content: "↗";
  background: #fff0d6;
  color: #b26a00;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  grid-column: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small {
  font-size: 8px;
  line-height: 1.15;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  align-self: center;
  justify-items: stretch;
  width: 176px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
  grid-template-columns: 72px minmax(0, 900px);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-actions {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-ready-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cfe7d8;
  border-radius: 9px;
  background: #f2faf5;
  color: #176b45;
  font-size: 10px;
  font-weight: 800;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-ready-badge > span:first-child {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #dff3e7;
  font-size: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
  padding: 3px 16px 10px 104px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state {
  max-width: 760px;
  margin: 0 192px 9px 104px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
  display: block;
  overflow: hidden;
  width: auto;
  max-width: 900px;
  margin: 0 16px 10px 104px;
  padding: 0;
  border: 1px solid #d7e8de;
  border-radius: 10px;
  background: #f7fbf8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 7px 10px;
  cursor: pointer;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle:focus-visible {
  outline: 2px solid #7667df;
  outline-offset: -3px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #e1f4e8;
  color: #18794e;
  font-size: 12px;
  font-weight: 850;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy strong,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy small {
  display: block;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy strong {
  color: #176b45;
  font-size: 11px;
  line-height: 1.3;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy small {
  margin-top: 1px;
  color: #667085;
  font-size: 9px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs {
  display: flex;
  align-items: center;
  padding-right: 2px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs > span {
  display: block;
  width: 28px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 0 1px #dce3df;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs > span + span {
  margin-left: -7px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #176b45;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready[open] .mp-import-analysis__improvement-ready-label i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-body {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-top: 1px solid #e3ede7;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) > .mp-import-analysis__improvement-ready-body {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
  width: 100%;
  max-width: 500px;
  padding: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions strong {
  display: block;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions small {
  color: #18794e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions strong {
  margin-top: 3px;
  color: #344054;
  font-size: 11px;
  line-height: 1.45;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions a,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font: 750 10px/1.3 var(--body-font, Manrope, "Segoe UI", sans-serif);
  text-align: center;
  text-decoration: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions button {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

@media (max-width: 1080px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 64px minmax(0, 1fr) 154px;
    gap: 7px 13px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
    width: 64px;
    height: 84px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    width: 154px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-left: 93px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    margin-left: 93px;
  }
}

@media (max-width: 820px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
    grid-row: 1 / span 2;
    width: 60px;
    height: 78px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-column: 2;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    width: min(190px, 100%);
    margin-top: 2px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-left: 89px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    margin-right: 12px;
    margin-left: 89px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
    max-width: 470px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
    width: 54px;
    height: 70px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-column: 1 / -1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-row: 3;
    margin-top: 2px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-row: 4;
    width: 100%;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
    -webkit-line-clamp: 2;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding: 2px 10px 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    margin: 0 10px 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1;
  }
}

@media (max-width: 360px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label {
    font-size: 0;
  }
}

/* 2026-07-16: compact current-slide review hierarchy v400. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head {
  padding: 15px 18px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head > div {
  gap: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head h4 {
  font-weight: 750;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  width: min(960px, 100%);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
  grid-template-columns: 72px minmax(0, 660px) 160px;
  justify-content: start;
  gap: 7px 14px;
  padding: 13px 14px 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
  grid-template-columns: 72px minmax(0, 660px);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 660px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  min-height: 44px;
  padding: 6px 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  -webkit-line-clamp: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
  width: 160px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
  padding-left: 100px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state {
  max-width: 640px;
  margin-right: 12px;
  margin-left: 100px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
  width: auto;
  max-width: 640px;
  margin: 0 12px 10px 100px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) {
  width: fit-content;
  min-width: 440px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) .mp-import-analysis__improvement-ready-toggle {
  grid-template-columns: 26px minmax(200px, max-content) auto 16px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle {
  grid-template-columns: 26px minmax(0, 1fr) auto 16px;
  gap: 9px;
  min-height: 48px;
  padding: 7px 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label {
  justify-content: center;
  width: 16px;
  font-size: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-body {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e7ede9;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions a,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions button {
  min-width: 144px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
  width: 220px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-content {
  max-width: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy h5 {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block li,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy p {
  color: #475467;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.52;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dt {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dd {
  max-width: none;
  color: #475467;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.52;
}

@media (max-width: 1080px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview {
    grid-template-columns: 64px minmax(0, 1fr) 150px;
    gap: 7px 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    width: 150px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-left: 93px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    margin-left: 93px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 210px;
  }
}

@media (max-width: 820px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-column: 2;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    width: min(190px, 100%);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding-left: 89px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    margin-right: 12px;
    margin-left: 89px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 190px;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 10px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-column: 1 / -1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
    grid-row: 4;
    width: 100%;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    padding: 2px 10px 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    max-width: none;
    margin: 0 10px 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) {
    width: auto;
    min-width: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1 / -1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions a,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions button {
    width: 100%;
    min-width: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: min(220px, 62vw);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle {
    grid-template-columns: 26px minmax(0, 1fr) 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1;
  }
}

/* 2026-07-17: evidence-led analysis actions and sequence/video boundaries. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail {
  overflow: visible;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding:focus-within {
  position: relative;
  z-index: 6;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] {
  margin: 6px 0 1px 15px;
  padding-left: 11px;
  border-left: 2px solid #d8dee8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail > summary {
  color: #596579;
  font-size: 11px;
  font-weight: 680;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > summary,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > .mp-import-analysis__evidence {
  margin-left: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail[open] > small {
  color: #475467;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail .mp-import-analysis__finding-action {
  color: #475467;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail .mp-import-analysis__finding-action b {
  color: #344054;
  font-weight: 650;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #596579;
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-label {
  font-weight: 600;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #d8deea;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font: inherit;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:hover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:focus-visible {
  border-color: #8c7be7;
  background: #f8f7ff;
  color: #5145ad;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:focus-visible {
  outline: 2px solid #7667df;
  outline-offset: 2px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(230px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid #dce2eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(30 42 68 / 18%);
  color: #344054;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .14s ease, transform .14s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:hover .mp-import-analysis__evidence-popover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:focus .mp-import-analysis__evidence-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover > img,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover > i {
  display: block;
  width: 54px;
  height: 68px;
  overflow: hidden;
  border-radius: 7px;
  background: #f2f4f7;
  object-fit: cover;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover b,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover small {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover small {
  color: #667085;
  font-weight: 450;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #dfe3f6;
  border-radius: 12px;
  background: #f8f8ff;
  box-shadow: var(--mp-analysis-shadow);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-icon,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ecebff;
  color: #5a4dc4;
  font-size: 14px;
  font-weight: 800;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice p {
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice h4,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice h5 {
  color: #344054;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice p {
  margin-top: 3px;
  color: #596579;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 11px 12px;
  border: 1px solid #e1e5f3;
  border-radius: 9px;
  background: #fafaff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__video-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46a8;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-video .mp-import-analysis__slide-thumb::after {
  content: "▶";
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(16 24 40 / 78%);
  color: #fff;
  font-size: 9px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-evidence-target {
  border-color: #8b7be3;
  box-shadow: 0 0 0 3px rgb(118 103 223 / 13%), 0 8px 24px rgb(20 31 55 / 6%);
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence {
    align-items: flex-start;
    flex-direction: column;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover {
    width: min(210px, calc(100vw - 42px));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__sequence-advice {
    padding: 11px 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-sequence-advice {
    margin: 0 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-popover {
    transition: none;
  }
}

/* Paid improvement history and fullscreen comparison */
.mp-import-media-button {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.mp-import-media-button:focus-visible {
  outline: 3px solid #7667df;
  outline-offset: -3px;
}

.mp-import-media-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-import-improvement-variant-switcher {
  display: inline-grid;
  grid-template-columns: 30px auto 30px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mp-import-improvement-variant-switcher button,
.mp-import-improvement-variant-count {
  min-height: 30px;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
}

.mp-import-improvement-variant-switcher button {
  display: grid;
  width: 30px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.mp-import-improvement-variant-switcher button:disabled {
  opacity: .38;
  cursor: default;
}

.mp-import-improvement-variant-switcher span,
.mp-import-improvement-variant-count {
  padding: 7px 9px;
  white-space: nowrap;
}

.mp-import-results__card-head {
  flex-wrap: wrap;
}

.mp-import-results__variant-switcher {
  margin-left: auto;
}

.mp-import-results__attempt-note,
.mp-import-analysis__improvement-attempt-note {
  margin: 0;
  padding: 9px 15px;
  color: #8a4b13;
  font-size: 11px;
  line-height: 1.45;
}

.mp-import-results__attempt-note.is-failed,
.mp-import-analysis__improvement-attempt-note.is-failed {
  border-top: 1px solid #f5dfc0;
  background: #fffbf3;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-controls > button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #27324a;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: zoom-in;
}

.mp-import-improvement-viewer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
  place-items: center;
  background: rgb(15 23 42 / 82%);
  backdrop-filter: blur(8px);
}

.mp-import-improvement-viewer.hidden {
  display: none;
}

body.mp-import-improvement-viewer-open {
  overflow: hidden;
}

.mp-import-improvement-viewer__mount {
  display: contents;
}

.mp-import-improvement-viewer__dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1420px, 100%);
  height: min(94vh, 980px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 20px;
  background: #f7f8fb;
  box-shadow: 0 28px 90px rgb(0 0 0 / 32%);
}

.mp-import-improvement-viewer__dialog.is-source-only {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
}

.mp-import-improvement-viewer__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dfe4ec;
  background: #fff;
}

.mp-import-improvement-viewer__header small,
.mp-import-improvement-viewer__header h3 {
  display: block;
  margin: 0;
}

.mp-import-improvement-viewer__header small {
  color: #7a8497;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mp-import-improvement-viewer__header h3 {
  margin-top: 2px;
  color: #172033;
  font-size: 18px;
  line-height: 1.25;
}

.mp-import-improvement-viewer__counter {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.mp-import-improvement-viewer__counter.is-reference {
  background: #eef1f5;
  color: #30394b;
}

.mp-import-improvement-viewer__close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #d7dce5;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mp-import-improvement-viewer__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  height: 100%;
  min-height: 0;
}

.mp-import-improvement-viewer__comparison.is-source-only {
  grid-template-columns: minmax(0, 1fr);
  width: min(760px, 100%);
  justify-self: center;
}

.mp-import-improvement-viewer__body.is-source-only {
  place-items: stretch center;
}

.mp-import-improvement-viewer__comparison.has-target-product {
  grid-template-rows: minmax(0, 1fr) auto;
}

.mp-import-improvement-viewer__target-product {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-self: center;
  gap: 10px;
  max-width: min(100%, 440px);
  padding: 7px 10px;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  background: #fff;
}

.mp-import-improvement-viewer__target-product img {
  width: 38px;
  height: 50px;
  object-fit: cover;
  border-radius: 7px;
  background: #eef1f5;
}

.mp-import-improvement-viewer__target-product span,
.mp-import-improvement-viewer__target-product b,
.mp-import-improvement-viewer__target-product small {
  display: block;
}

.mp-import-improvement-viewer__target-product b {
  color: #30394b;
  font-size: 11px;
}

.mp-import-improvement-viewer__target-product small {
  margin-top: 2px;
  color: #7a8497;
  font-size: 10px;
}

.mp-import-improvement-viewer__body {
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 2vw, 24px);
}

.mp-import-improvement-viewer__body.has-result-navigation {
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.mp-import-improvement-viewer__body.has-result-navigation .mp-import-improvement-viewer__comparison {
  grid-column: 2;
}

.mp-import-improvement-viewer__result-nav {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid #d7dce5;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
  color: #27324a;
  font: inherit;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
}

.mp-import-improvement-viewer__result-nav.is-previous {
  grid-column: 1;
}

.mp-import-improvement-viewer__result-nav.is-next {
  grid-column: 3;
}

.mp-import-improvement-viewer__result-nav:disabled {
  opacity: .32;
  box-shadow: none;
  cursor: default;
}

.mp-import-improvement-viewer__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.mp-import-improvement-viewer__stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: auto;
  place-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: #eef1f5;
  cursor: zoom-in;
}

.mp-import-improvement-viewer__figure.is-result .mp-import-improvement-viewer__stage {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgb(99 102 241 / 10%);
}

.mp-import-improvement-viewer__stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mp-import-improvement-viewer__figure.is-zoomed .mp-import-improvement-viewer__stage {
  display: block;
  cursor: zoom-out;
}

.mp-import-improvement-viewer__figure.is-zoomed .mp-import-improvement-viewer__stage img {
  position: static;
  width: 160%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
}

.mp-import-improvement-viewer__figure figcaption {
  padding-top: 8px;
  color: #596579;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.mp-import-improvement-viewer__footer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #dfe4ec;
  background: #fff;
}

.mp-import-improvement-viewer__footer button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  background: #fff;
  color: #27324a;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.mp-import-improvement-viewer__footer button:disabled {
  opacity: .35;
  cursor: default;
}

.mp-import-improvement-viewer__footer span {
  color: #667085;
  font-size: 11px;
  text-align: center;
}

.mp-import-improvement-viewer__mobile-tabs {
  display: none;
}

.mp-import-improvement-viewer :is(button, a):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .mp-import-results__card-head {
    align-items: flex-start;
  }

  .mp-import-results__variant-switcher {
    order: 3;
    width: 100%;
    margin: 3px 0 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .mp-import-improvement-viewer {
    padding: 0;
    background: #f7f8fb;
  }

  .mp-import-improvement-viewer__dialog {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mp-import-improvement-viewer__header {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 10px 12px;
  }

  .mp-import-improvement-viewer__header h3 {
    font-size: 16px;
  }

  .mp-import-improvement-viewer__counter {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding: 5px 9px;
    font-size: 10px;
  }

  .mp-import-improvement-viewer__close {
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .mp-import-improvement-viewer__mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 12px 0;
  }

  .mp-import-improvement-viewer__mobile-tabs button {
    min-height: 38px;
    border: 1px solid #d7dce5;
    border-radius: 9px;
    background: #fff;
    color: #667085;
    font: inherit;
    font-size: 12px;
    font-weight: 740;
  }

  .mp-import-improvement-viewer__mobile-tabs button[aria-pressed="true"] {
    border-color: #7667df;
    background: #f2f0ff;
    color: #4338ca;
  }

  .mp-import-improvement-viewer__comparison {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-improvement-viewer__body {
    padding: 10px 12px;
  }

  .mp-import-improvement-viewer__body.has-result-navigation {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: minmax(0, 1fr) 44px;
    gap: 8px 10px;
  }

  .mp-import-improvement-viewer__body.has-result-navigation .mp-import-improvement-viewer__comparison {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mp-import-improvement-viewer__result-nav {
    width: 44px;
    height: 44px;
  }

  .mp-import-improvement-viewer__result-nav.is-previous {
    grid-column: 1;
    grid-row: 2;
  }

  .mp-import-improvement-viewer__result-nav.is-next {
    grid-column: 3;
    grid-row: 2;
  }

  .mp-import-improvement-viewer[data-mobile-pane="source"] .mp-import-improvement-viewer__figure[data-viewer-pane="result"],
  .mp-import-improvement-viewer[data-mobile-pane="result"] .mp-import-improvement-viewer__figure[data-viewer-pane="source"] {
    display: none;
  }

  .mp-import-improvement-viewer__footer {
    padding: 9px 12px max(9px, env(safe-area-inset-bottom));
  }

  .mp-import-improvement-viewer__footer span {
    font-size: 10px;
  }
}

/* 2026-07-16: reference-aligned current-slide cards v402. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis details.mp-import-analysis__source-analysis > .mp-import-analysis__source-analysis-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e9f0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__source-analysis-head h4 {
  color: #172033;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
  --slide-pad: 20px;
  --slide-thumb: 112px;
  --slide-thumb-height: 150px;
  --slide-gap: 22px;

  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e6ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
  display: grid;
  grid-template-columns: var(--slide-thumb) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "thumb main"
    "thumb insights"
    "thumb actions";
  align-items: start;
  justify-content: stretch;
  column-gap: var(--slide-gap);
  row-gap: 13px;
  min-height: 0;
  padding: var(--slide-pad) var(--slide-pad) 10px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-thumb {
  grid-area: thumb;
  align-self: start;
  width: var(--slide-thumb);
  height: var(--slide-thumb-height);
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 10px;
  background: #f7f8fa;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main {
  grid-area: main;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading strong {
  min-width: 0;
  color: #1f293d;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading b {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f3f7;
  color: #526071;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main > p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-summary {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: #5f6c80;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.48;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
  grid-area: insights;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px 10px;
  min-width: 0;
  min-height: 56px;
  padding: 0 26px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid #e5e9ef;
  background: transparent;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  align-self: start;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--strengths::before {
  content: "✓";
  background: #e7f7ed;
  color: #15804f;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements::before {
  content: "↗";
  background: #fff2df;
  color: #c27613;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight small {
  color: #3c7d5b;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements small {
  color: #8d641f;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight p {
  display: -webkit-box;
  overflow: hidden;
  color: #475467;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
  grid-area: actions;
  display: grid;
  justify-self: start;
  width: auto;
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
  width: auto;
  min-width: 166px;
  min-height: 38px;
  padding: 8px 14px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
  width: auto;
  max-width: none;
  margin: 0 var(--slide-pad) 10px calc(var(--slide-pad) + var(--slide-thumb) + var(--slide-gap));
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) {
  display: block;
  overflow: hidden;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 1px solid #d3e6db;
  border-radius: 10px;
  background: #f8fcf9;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready[open] {
  border-color: #d8d2f6;
  background: #faf9ff;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) .mp-import-analysis__improvement-ready-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle::-webkit-details-marker {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle:focus-visible {
  outline: 2px solid #7667df;
  outline-offset: -3px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e4f6eb;
  color: #157c4d;
  font-size: 16px;
  font-weight: 850;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy {
  min-width: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy strong,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy small {
  display: block;
  min-width: 0;
  margin: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy strong {
  color: #177149;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-copy small {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.35;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px 0 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs > span,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs > span + span {
  display: grid;
  gap: 3px;
  width: 48px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs small {
  display: block;
  color: #596579;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs i {
  display: block;
  width: 48px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #dce2e9;
  border-radius: 5px;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #177149;
  font-size: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-label i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready[open] .mp-import-analysis__improvement-ready-label i {
  transform: rotate(45deg) translate(-1px, -1px);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #e6e2f7;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) > .mp-import-analysis__improvement-ready-body {
  display: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding: 0;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid #ece9f8;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions a,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions button {
  width: auto;
  min-width: 144px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 38px;
  margin-right: var(--slide-pad);
  margin-left: calc(var(--slide-pad) + var(--slide-thumb) + var(--slide-gap));
  padding: 9px 0 14px;
  border: 0;
  border-top: 1px solid #edf0f4;
  background: transparent;
  cursor: pointer;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details-toggle > .mp-import-analysis__slide-open-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596579;
  font-size: 11px;
  font-weight: 680;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-open-label::after {
  content: "⌄";
  display: inline-block;
  color: #596579;
  font-size: 12px;
  line-height: 1;
  transition: transform .16s ease;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-details[open] .mp-import-analysis__slide-open-label::after {
  transform: rotate(180deg);
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-top: 1px solid #edf0f4;
  background: #fff;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
  width: 220px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-content {
  max-width: none;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block h5,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy h5 {
  color: #344054;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-context p,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-block li,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-solution-copy p {
  color: #475467;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.52;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dt {
  color: #344054;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-criteria dd {
  max-width: none;
  color: #475467;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.52;
}

@media (max-width: 1080px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
    --slide-pad: 16px;
    --slide-thumb: 88px;
    --slide-thumb-height: 117px;
    --slide-gap: 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 210px;
  }
}

@media (max-width: 820px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
    --slide-thumb: 76px;
    --slide-thumb-height: 101px;
    --slide-gap: 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-comparison {
    max-width: 520px;
    margin-inline: auto;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1 / -1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: 190px;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-list {
    width: min(100% - 20px, 1120px);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
    --slide-pad: 12px;
    --slide-thumb: 64px;
    --slide-thumb-height: 85px;
    --slide-gap: 11px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-overview,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row.is-improvement-ready .mp-import-analysis__slide-row-overview {
    grid-template-areas:
      "thumb main"
      "insights insights"
      "actions actions";
    row-gap: 11px;
    padding: var(--slide-pad) var(--slide-pad) 8px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-heading strong {
    font-size: 14px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-main > p,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-summary {
    font-size: 11px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insights {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight {
    min-height: 52px;
    padding: 8px 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-insight--improvements {
    padding-left: 0;
    border-top: 1px solid #e5e9ef;
    border-left: 0;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improve-button--row {
    width: 100%;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-state,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready {
    max-width: none;
    margin: 0 var(--slide-pad) 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details > .mp-import-analysis__slide-details-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-analysis__slide-details[open] > .mp-import-analysis__slide-details-toggle {
    margin: 0 var(--slide-pad);
    padding: 9px 0 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1 / -1;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row .mp-import-analysis__slide-expanded-preview {
    width: min(220px, 62vw);
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row {
    --slide-thumb: 54px;
    --slide-thumb-height: 72px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-toggle,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready:not([open]) .mp-import-analysis__improvement-ready-toggle {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 9px;
    min-height: 58px;
    padding: 7px 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-mark {
    width: 32px;
    height: 32px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-thumbs {
    display: none;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions > div {
    grid-column: 1;
  }
}

/* Keep evidence previews above the later comparison layer overrides. */
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__diagnostic,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__finding-detail,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chips {
  overflow: visible;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:hover .mp-import-analysis__evidence-popover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:focus .mp-import-analysis__evidence-popover,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__evidence-chip:focus-visible .mp-import-analysis__evidence-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Marketplace link workflows: improve an existing card or create from a reference. */
.mp-import-editor__shell,
.mp-import-editor[data-active-section="materials"] .mp-import-editor__shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.mp-import-workflow-intent {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 24px;
  border-bottom: 1px solid #e7eaf0;
  background: #fbfcfe;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.mp-reference-step__heading h4,
.mp-reference-step__heading p,
.mp-reference-cover__copy h4,
.mp-reference-cover__copy p {
  margin: 0;
}

.mp-import-workflow-intent > strong {
  color: #172033;
  font-weight: 760;
  white-space: nowrap;
}

.mp-import-workflow-intent__caption {
  color: #98a2b3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mp-import-workflow-intent__description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-import-workflow-intent__change {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #6d28d9;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.mp-import-workflow-intent__change:hover,
.mp-import-workflow-intent__change:focus-visible {
  color: #4c1d95;
  text-decoration: underline;
}

.mp-import-workflow-intent__lock {
  flex: 0 0 auto;
  margin-left: auto;
  color: #98a2b3;
  font-size: 10px;
}

.mp-import-workflow-modal {
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .54);
  backdrop-filter: blur(8px);
}

.mp-import-workflow-modal.hidden {
  display: none;
}

body.mp-import-workflow-modal-open {
  overflow: hidden;
}

.mp-import-workflow-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.mp-import-workflow-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 14px;
}

.mp-import-workflow-dialog__header h2,
.mp-import-workflow-dialog__header p {
  margin: 0;
}

.mp-import-workflow-dialog__header h2 {
  margin-top: 4px;
  color: #172033;
  font-size: 20px;
  font-weight: 780;
  line-height: 1.25;
}

.mp-import-workflow-dialog__header #marketplace-import-workflow-description {
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mp-import-workflow-dialog__eyebrow {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mp-import-workflow-dialog__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mp-import-workflow-dialog__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px;
}

.mp-import-workflow-dialog__choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 10px;
  min-height: 124px;
  padding: 16px;
  border: 1px solid #dfe3eb;
  border-radius: 14px;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.mp-import-workflow-dialog__choice:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.mp-import-workflow-dialog__choice.is-selected {
  border-color: #475467;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .06);
}

.mp-import-workflow-dialog__choice > span:nth-child(2) {
  display: grid;
  gap: 7px;
}

.mp-import-workflow-dialog__choice strong {
  color: #172033;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.mp-import-workflow-dialog__choice small {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.48;
}

.mp-import-workflow-dialog__choice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #344054;
  font-size: 16px;
}

.mp-import-workflow-dialog__radio {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: transparent;
  font-size: 12px;
}

.mp-import-workflow-dialog__choice.is-selected .mp-import-workflow-dialog__radio {
  border-color: #172033;
  background: #172033;
  color: #fff;
}

.mp-import-workflow-dialog__choice:focus-visible,
.mp-import-workflow-dialog__close:focus-visible,
.mp-import-workflow-dialog__cancel:focus-visible,
.mp-import-workflow-dialog__continue:focus-visible {
  outline: 3px solid rgba(23, 32, 51, .22);
  outline-offset: 2px;
}

.mp-import-workflow-dialog__note {
  margin: 14px 22px 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f5f7fa;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.mp-import-workflow-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
}

.mp-import-workflow-dialog__cancel,
.mp-import-workflow-dialog__continue {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.mp-import-workflow-dialog__cancel {
  border: 1px solid #d7dce5;
  background: #fff;
  color: #344054;
}

.mp-import-workflow-dialog__continue {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.mp-import-workflow-dialog__continue:disabled {
  border-color: #e4e7ec;
  background: #e4e7ec;
  color: #98a2b3;
  cursor: not-allowed;
}

.mp-reference-context {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 12px 22px 0;
  padding: 9px 12px;
  border: 1px solid #e4def8;
  border-radius: 12px;
  background: #faf9ff;
}

.mp-reference-context.hidden,
.mp-reference-creation.hidden {
  display: none;
}

.mp-reference-context__mark,
.mp-reference-step__number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
}

.mp-reference-context strong,
.mp-reference-context p {
  margin: 0;
}

.mp-reference-context strong {
  color: #28213e;
  font-size: 12px;
}

.mp-reference-context p {
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-active-section="materials"] .mp-import-editor__section-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-active-section="materials"] .mp-import-editor__materials-grid {
  height: auto;
}

.mp-reference-creation {
  width: 100%;
  height: 100%;
  padding: 22px clamp(18px, 3vw, 40px) 28px;
  overflow: auto;
  background: #f7f8fb;
  scrollbar-gutter: stable;
}

.mp-reference-creation__head {
  width: min(100%, 1260px);
  margin: 0 auto 16px;
}

.mp-reference-creation__steps {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr);
  gap: 14px;
  width: min(100%, 1260px);
  margin: 0 auto;
}

.mp-reference-step,
.mp-reference-cover {
  min-width: 0;
  border: 1px solid #e0e5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(35, 44, 66, .04);
}

.mp-reference-step {
  padding: 16px;
}

.mp-reference-step--plan,
.mp-reference-cover {
  grid-column: 1 / -1;
}

.mp-reference-step__heading,
.mp-reference-cover__copy {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.mp-reference-step__heading > div,
.mp-reference-cover__copy > div {
  min-width: 0;
}

.mp-reference-step__heading h4,
.mp-reference-cover__copy h4 {
  margin-top: 2px;
  color: #172033;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.mp-reference-step__heading--actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mp-reference-step__intro {
  margin: 9px 0 0 43px;
  color: #667085;
  font-size: 10px;
  line-height: 1.5;
}

.mp-reference-brief {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.mp-reference-brief__source {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mp-reference-brief__source > img,
.mp-reference-brief__source > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 68px;
  overflow: hidden;
  border: 1px solid #e0e5ed;
  border-radius: 9px;
  background: #f2f4f7;
  color: #667085;
  object-fit: cover;
}

.mp-reference-brief__source div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mp-reference-brief__source small,
.mp-reference-brief__source strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-reference-brief__source small {
  color: #7a8496;
  font-size: 9px;
}

.mp-reference-brief__source strong {
  color: #263043;
  font-size: 12px;
}

.mp-reference-brief__summary {
  margin: 0;
  color: #475467;
  font-size: 11px;
  line-height: 1.5;
}

.mp-reference-brief__principles {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-reference-brief__principles li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f8fb;
}

.mp-reference-brief__principles strong {
  color: #344054;
  font-size: 10px;
}

.mp-reference-brief__principles span {
  color: #667085;
  font-size: 9px;
  line-height: 1.45;
}

.mp-reference-brief__boundary {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #f2dfd0;
  border-radius: 10px;
  background: #fffaf5;
}

.mp-reference-brief__boundary b {
  color: #9a4b18;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mp-reference-brief__boundary span {
  color: #75533b;
  font-size: 9px;
  line-height: 1.45;
}

.mp-reference-creation__target-slot {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.mp-reference-creation__target-slot .mp-import-editor__target-product,
.mp-reference-creation__target-slot .mp-import-editor__product-photos {
  padding: 12px;
  border-radius: 12px;
  box-shadow: none;
}

.mp-reference-creation__target-slot .mp-import-editor__target-product-head p:not(.mp-import-editor__eyebrow) {
  max-width: none;
}

.mp-reference-creation__target-slot .mp-import-editor__target-product-fields {
  gap: 10px;
}

.mp-reference-creation__target-slot .mp-import-field span {
  font-size: 10px;
}

.mp-reference-creation__target-slot .mp-import-field input,
.mp-reference-creation__target-slot .mp-import-field textarea {
  min-height: 40px;
  padding: 9px 11px;
  font-size: 11px;
}

.mp-reference-creation__target-slot .mp-import-field textarea {
  min-height: 68px;
}

.mp-reference-plan {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.mp-reference-plan__item {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fff;
}

.mp-reference-plan__position {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f2f4f7;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.mp-reference-plan__source,
.mp-reference-plan__source img,
.mp-reference-plan__source i {
  width: 50px;
  height: 62px;
  border-radius: 8px;
}

.mp-reference-plan__source {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e3e7ee;
  background: #f6f7f9;
}

.mp-reference-plan__source img {
  object-fit: cover;
}

.mp-reference-plan__source i {
  display: grid;
  place-items: center;
  color: #7a8496;
  font-size: 9px;
  font-style: normal;
}

.mp-reference-plan__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mp-reference-plan__copy small {
  color: #7c3aed;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.mp-reference-plan__copy strong {
  color: #253047;
  font-size: 11px;
  line-height: 1.4;
}

.mp-reference-plan__copy p,
.mp-reference-plan__copy span {
  margin: 0;
  color: #667085;
  font-size: 9px;
  line-height: 1.45;
}

.mp-reference-plan__copy span b {
  color: #475467;
}

.mp-reference-plan__photos {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.mp-reference-plan__photo {
  width: 36px;
  height: 44px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.mp-reference-plan__photo img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.mp-reference-plan__photo.is-selected {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, .14);
}

.mp-reference-plan__skeleton {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #fff;
}

.mp-reference-plan__skeleton i,
.mp-reference-plan__skeleton span,
.mp-reference-plan__skeleton b {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef1f5 20%, #f8f9fb 50%, #eef1f5 80%);
  background-size: 220% 100%;
  animation: mp-reference-skeleton 1.35s ease-in-out infinite;
}

.mp-reference-plan__skeleton i {
  width: 42px;
  height: 52px;
  border-radius: 8px;
}

.mp-reference-plan__skeleton b {
  width: 120px;
}

@keyframes mp-reference-skeleton {
  to { background-position: -220% 0; }
}

.mp-reference-cover {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(180px, auto) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-color: #dcd2f8;
  background: linear-gradient(135deg, #fff 0%, #faf8ff 100%);
}

.mp-reference-cover__copy > div > p:last-child {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
}

.mp-reference-cover__state {
  min-width: 0;
}

.mp-reference-cover__selected-photo,
.mp-reference-cover__progress,
.mp-reference-cover__error,
.mp-reference-cover__empty {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #667085;
  font-size: 9px;
}

.mp-reference-cover__selected-photo img {
  width: 38px;
  height: 48px;
  border: 1px solid #ddd5f6;
  border-radius: 7px;
  object-fit: cover;
}

.mp-reference-cover__progress {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
}

.mp-reference-cover__progress i {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd5f6;
  border-top-color: #7c3aed;
  border-radius: 999px;
  animation: mp-reference-spin .8s linear infinite;
}

.mp-reference-cover__progress b,
.mp-reference-cover__progress small,
.mp-reference-cover__error b,
.mp-reference-cover__error small {
  display: block;
}

.mp-reference-cover__progress b {
  color: #4c1d95;
  font-size: 10px;
}

.mp-reference-cover__error {
  display: grid;
  gap: 2px;
  color: #b42318;
}

@keyframes mp-reference-spin { to { transform: rotate(360deg); } }

.mp-reference-cover__preview {
  display: flex;
  gap: 6px;
}

.mp-reference-cover__preview figure {
  display: grid;
  gap: 2px;
  margin: 0;
}

.mp-reference-cover__preview img {
  width: 42px;
  height: 52px;
  border: 1px solid #ddd5f6;
  border-radius: 7px;
  object-fit: cover;
}

.mp-reference-cover__preview figcaption {
  color: #667085;
  font-size: 7px;
  text-align: center;
}

.mp-reference-results__card {
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #fff;
}

.mp-reference-results__card > header,
.mp-reference-results__card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.mp-reference-results__card > header {
  border-bottom: 1px solid #e8ebf0;
}

.mp-reference-results__card > header div {
  display: grid;
  gap: 2px;
}

.mp-reference-results__card > header small {
  color: #7c3aed;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.mp-reference-results__card > header strong {
  color: #263043;
  font-size: 13px;
}

.mp-reference-results__card > header > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 9px;
  font-weight: 750;
}

.mp-reference-results__card.is-processing > header > span {
  background: #f2f4f7;
  color: #667085;
}

.mp-reference-results__card.is-failed > header > span {
  background: #fff1f3;
  color: #c01048;
}

.mp-reference-results__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.mp-reference-results__comparison figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mp-reference-results__comparison figure > div {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 12px;
  background: #f5f7fa;
}

.mp-reference-results__comparison img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-reference-results__comparison figcaption {
  color: #667085;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.mp-reference-results__comparison .is-result > div {
  border-color: #c4b5fd;
  background: #faf9ff;
}

.mp-reference-results__card > footer {
  justify-content: flex-end;
  border-top: 1px solid #e8ebf0;
}

.mp-reference-results__card > footer button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
  line-height: 36px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .mp-reference-creation__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-step--plan,
  .mp-reference-cover {
    grid-column: auto;
  }

  .mp-reference-cover {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mp-reference-cover__state {
    grid-column: 1;
  }

  .mp-reference-cover > .mp-import-button {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 680px) {
  .mp-import-editor__shell,
  .mp-import-editor[data-active-section="materials"] .mp-import-editor__shell {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .mp-import-workflow-intent {
    gap: 5px;
    padding: 7px 10px;
  }

  .mp-import-workflow-intent__description {
    display: none;
  }

  .mp-import-workflow-intent__caption {
    display: none;
  }

  .mp-import-workflow-intent > strong,
  .mp-import-workflow-intent__change,
  .mp-import-workflow-intent__lock {
    font-size: 10px;
  }

  .mp-import-workflow-intent > strong {
    min-width: 0;
    white-space: normal;
  }

  .mp-import-workflow-intent__lock {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .mp-import-workflow-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .mp-import-workflow-dialog__header {
    padding: 16px 16px 12px;
  }

  .mp-import-workflow-dialog__header h2 {
    font-size: 18px;
  }

  .mp-import-workflow-dialog__close {
    width: 44px;
    height: 44px;
  }

  .mp-import-workflow-dialog__choices {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }

  .mp-import-workflow-dialog__choice {
    min-height: 98px;
    padding: 13px;
  }

  .mp-import-workflow-dialog__note {
    margin: 12px 16px 0;
  }

  .mp-import-workflow-dialog__actions {
    padding: 14px 16px 16px;
  }

  .mp-import-workflow-dialog__cancel,
  .mp-import-workflow-dialog__continue {
    flex: 1 1 0;
  }

  .mp-reference-context {
    margin: 8px 10px 0;
  }

  .mp-reference-context p {
    display: none;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-active-section="materials"] .mp-import-editor__materials-grid {
    height: auto;
  }

  .mp-reference-creation {
    padding: 14px 10px 20px;
  }

  .mp-reference-creation__head {
    align-items: flex-start;
    gap: 9px;
  }

  .mp-reference-creation__head .mp-import-editor__count {
    flex: 0 0 auto;
  }

  .mp-reference-step {
    padding: 13px;
  }

  .mp-reference-step__heading--actions {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mp-reference-step__heading--actions > .mp-import-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .mp-reference-step__intro {
    margin-left: 0;
  }

  .mp-reference-creation__target-slot .mp-import-editor__target-product-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-reference-creation__target-slot .mp-import-editor__target-product-fields .mp-import-field--wide {
    grid-column: auto;
  }

  .mp-reference-plan__item {
    grid-template-columns: 30px 46px minmax(0, 1fr);
    gap: 8px;
  }

  .mp-reference-plan__position {
    width: 28px;
    height: 28px;
  }

  .mp-reference-plan__source,
  .mp-reference-plan__source img,
  .mp-reference-plan__source i {
    width: 44px;
    height: 56px;
  }

  .mp-reference-plan__photos {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .mp-reference-plan__skeleton {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mp-reference-plan__skeleton b {
    display: none;
  }

  .mp-reference-cover {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }

  .mp-reference-cover__state,
  .mp-reference-cover > .mp-import-button {
    grid-column: 1;
    grid-row: auto;
  }

  .mp-reference-cover > .mp-import-button {
    width: 100%;
  }

  .mp-reference-results__comparison {
    gap: 7px;
    padding: 10px;
  }

  .mp-reference-results__comparison figure > div {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-reference-plan__skeleton i,
  .mp-reference-plan__skeleton span,
  .mp-reference-plan__skeleton b,
  .mp-reference-cover__progress i {
    animation: none;
  }
}

/* Final cascade for custom paid variants (keep after all analysis/result layouts). */
.mp-import-results__card-footer {
  justify-content: flex-start;
}

.mp-import-results__card-footer > span {
  margin-right: auto;
}

.mp-import-results__card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-custom-instruction {
  width: auto;
  margin: 0 var(--slide-pad) 10px calc(var(--slide-pad) + var(--slide-thumb) + var(--slide-gap));
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions .mp-import-analysis__improvement-ready-buttons > button {
  width: auto;
  min-width: 132px;
}

@media (max-width: 680px) {
  .mp-import-results__card-actions,
  .mp-import-custom-instruction__footer,
  .mp-import-custom-instruction__footer > div,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-buttons {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .mp-import-results__card-actions {
    margin-left: 0;
  }

  .mp-import-results__card-actions > button,
  .mp-import-custom-instruction__footer button,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions .mp-import-analysis__improvement-ready-buttons > button {
    width: 100%;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__slide-row > .mp-import-custom-instruction {
    margin: 0 var(--slide-pad) 9px;
  }

  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-analysis__improvement-ready-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 2026-07-18: reference remake v2 — quiet target step and explicit AI progress. */
.mp-reference-v2__same-product {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 154px;
  padding: 18px;
}

.mp-reference-v2__same-product-preview {
  width: 104px;
  height: 122px;
}

.mp-reference-v2__same-product-copy > small {
  display: block;
  margin-top: 10px;
  color: #667085;
  font-weight: 500;
}

.mp-reference-v2__target-data {
  min-height: 330px;
}

.mp-reference-v2__target-photos {
  align-self: start;
  min-height: 0;
  padding: 16px 18px 18px;
}

.mp-reference-v2__target-photos .mp-reference-v2__photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 144px));
  justify-content: start;
  gap: 10px;
  margin-top: 14px;
}

.mp-reference-v2__target-photos .mp-reference-v2__photo-grid figure,
.mp-reference-v2__target-photos .mp-reference-v2__photo-add {
  width: 100%;
  max-width: 144px;
}

.mp-reference-v2__target-ready {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid #cfe8da;
  border-radius: 13px;
  background: #f6fcf8;
}

.mp-reference-v2__target-ready > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #daf3e4;
  color: #23845b;
  font-weight: 850;
}

.mp-reference-v2__target-ready small,
.mp-reference-v2__target-ready h4,
.mp-reference-v2__target-ready p,
.mp-reference-v2__target-ready b {
  display: block;
  margin: 0;
}

.mp-reference-v2__target-ready small {
  color: #27835c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.mp-reference-v2__target-ready h4 {
  margin-top: 3px;
  color: #20283a;
  font-size: 16px;
  line-height: 1.35;
}

.mp-reference-v2__target-ready p {
  margin-top: 5px;
  color: #68758a;
  font-size: 12px;
  line-height: 1.5;
}

.mp-reference-v2__target-ready b {
  margin-top: 8px;
  color: #577064;
  font-size: 11px;
}

.mp-reference-v2__target-ready.is-empty {
  border-color: #e0e3eb;
  background: #fafbfc;
}

.mp-reference-v2__target-ready.is-empty > span {
  background: #e9edf2;
  color: #5a6577;
}

.mp-reference-v2__busy-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 17px 18px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  background: linear-gradient(115deg, #f8f9fb, #fff);
  box-shadow: 0 10px 28px rgba(32, 41, 56, .05);
}

.mp-reference-v2__target-data > .mp-reference-v2__busy-card {
  margin-top: 0;
}

.mp-reference-v2__busy-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: #e8ecf1;
  color: #202938;
  font-size: 16px;
  animation: mp-reference-v2-busy-pulse 1.35s ease-in-out infinite;
}

.mp-reference-v2__busy-copy {
  min-width: 0;
}

.mp-reference-v2__busy-copy > span,
.mp-reference-v2__busy-copy h4,
.mp-reference-v2__busy-copy p,
.mp-reference-v2__busy-copy small {
  display: block;
  margin: 0;
}

.mp-reference-v2__busy-copy > span {
  color: #5f6a7c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.mp-reference-v2__busy-copy h4 {
  margin-top: 3px;
  color: #222a3b;
  font-size: 16px;
  line-height: 1.35;
}

.mp-reference-v2__busy-copy p {
  margin-top: 4px;
  color: #667287;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__busy-copy small {
  color: #6e7890;
  font-size: 10px;
}

.mp-reference-v2__busy-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  margin-top: 7px;
}

.mp-reference-v2__busy-meta time {
  color: #566176;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.mp-reference-v2__busy-messages {
  position: relative;
  height: 20px;
  margin-top: 9px;
  overflow: hidden;
  color: #4f5b72;
  font-size: 11px;
  font-weight: 700;
}

.mp-reference-v2__busy-messages span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: mp-reference-v2-busy-message 8s ease-in-out infinite;
}

.mp-reference-v2__busy-messages span:nth-child(2) { animation-delay: 2s; }
.mp-reference-v2__busy-messages span:nth-child(3) { animation-delay: 4s; }
.mp-reference-v2__busy-messages span:nth-child(4) { animation-delay: 6s; }

.mp-reference-v2__busy-progress {
  position: relative;
  width: 100%;
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e9ee;
}

.mp-reference-v2__busy-progress i {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #202938, #667287, #202938);
  background-size: 200% 100%;
  transition: width .35s ease;
  animation: mp-reference-v2-busy-fill 2.4s linear infinite;
}

.mp-reference-v2__busy-progress.is-indeterminate i {
  width: 32% !important;
  animation: mp-reference-v2-busy-bar 1.5s ease-in-out infinite;
}

.mp-reference-v2__plan-error {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #f0c7ca;
  border-radius: 14px;
  background: #fff8f8;
  color: #293146;
}

.mp-reference-v2__plan-error > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #ffe4e5;
  color: #c2373d;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.mp-reference-v2__plan-error strong,
.mp-reference-v2__plan-error p,
.mp-reference-v2__plan-error small {
  display: block;
  margin: 0;
}

.mp-reference-v2__countdown {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf0f4;
  color: #4f5a6d;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.mp-reference-v2__plan-error strong {
  font-size: 15px;
  line-height: 1.35;
}

.mp-reference-v2__plan-error p {
  margin-top: 5px;
  color: #667287;
  font-size: 12px;
  line-height: 1.45;
}

.mp-reference-v2__plan-error small {
  margin-top: 8px;
  color: #8b5c60;
  font-size: 10px;
}

@keyframes mp-reference-v2-busy-pulse {
  50% { transform: scale(.9) rotate(12deg); opacity: .76; }
}

@keyframes mp-reference-v2-busy-message {
  0%, 22% { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-8px); }
}

@keyframes mp-reference-v2-busy-bar {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(420%); }
}

@keyframes mp-reference-v2-busy-fill {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer {
  position: relative;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  align-items: center;
  gap: 24px;
  min-height: 84px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--panel-line, #e1e5ec);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(24, 30, 42, .05);
  backdrop-filter: none;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-info,
.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-copy {
  min-width: 0;
  max-width: none;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-actions {
  display: block;
  width: 100%;
  min-width: 0;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer.is-primary-only {
  grid-template-columns: minmax(290px, 430px);
  justify-content: end;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer.is-primary-only .mp-import-editor__footer-info {
  display: none;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__generate {
  width: 100%;
  min-width: 0;
  min-height: 48px;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__generate:disabled {
  background: #111827;
  color: #fff;
  opacity: 1;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__generate.is-processing::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  border-radius: 999px;
  vertical-align: -2px;
  animation: mp-reference-v2-button-spin .8s linear infinite;
}

.mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer-meta {
  display: none !important;
}

@keyframes mp-reference-v2-button-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__shell {
    display: grid;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__sections {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] #marketplace-import-editor-pane-materials,
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__materials-grid {
    height: auto !important;
    min-height: 100%;
  }
}

@media (max-width: 720px) {
  .mp-reference-v2__same-product,
  .mp-reference-v2__busy-card,
  .mp-reference-v2__plan-error {
    grid-template-columns: minmax(0, 1fr);
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--panel-line, #e1e5ec);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -8px 28px rgba(24, 30, 42, .05);
  }

  .mp-reference-v2__target-photos {
    padding: 13px 14px 14px;
  }

  .mp-reference-v2__visual-control {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
  }

  .mp-reference-v2__visual-control-label {
    grid-column: 1;
  }

  .mp-reference-v2__visual-mode {
    grid-column: 2;
  }

  .mp-reference-v2__visual-help,
  .mp-reference-v2__visual-style {
    grid-column: 1 / -1;
  }

  .mp-reference-v2__visual-mode-list {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 28px));
  }

  .mp-reference-v2__visual-style {
    margin-top: 0;
  }

  .mp-reference-v2__target-photos .mp-reference-v2__photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 104px));
    justify-content: start;
    gap: 9px;
    margin-top: 11px;
  }

  .mp-reference-v2__target-photos .mp-reference-v2__photo-grid figure,
  .mp-reference-v2__target-photos .mp-reference-v2__photo-add {
    width: 100%;
    max-width: 104px;
  }

  .mp-reference-v2__pipeline > header {
    padding: 14px;
  }

  .mp-reference-v2__pipeline li {
    padding: 11px 13px;
  }
}

@media (max-width: 380px) {
  .mp-reference-v2__visual-control {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .mp-reference-v2__visual-style {
    grid-column: 1 / -1;
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .mp-reference-v2__visual-style-thumb {
    width: 42px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-analysis__progress.is-indeterminate i,
  .mp-reference-v2__visual-mode-trigger i,
  .mp-reference-v2__busy-icon,
  .mp-reference-v2__busy-messages span,
  .mp-reference-v2__busy-progress i,
  .mp-reference-v2__busy-progress.is-indeterminate i,
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__generate.is-processing::before {
    animation: none;
  }

  .mp-reference-v2__busy-messages span:first-child {
    opacity: 1;
    transform: none;
  }
}

/* 2026-07-19: compact custom variant action and visible result generation state. */
.mp-import-custom-instruction {
  gap: 8px;
  padding: 12px 14px;
}

.mp-import-custom-instruction textarea {
  min-height: 72px;
  max-height: 144px;
}

.mp-import-custom-instruction__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.mp-import-custom-instruction__footer > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  width: auto;
}

.mp-import-custom-instruction__footer small {
  max-width: 260px;
  font-size: 11px;
  line-height: 1.35;
}

.mp-import-results__card-footer .mp-import-custom-instruction__footer button,
.mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-custom-instruction__footer button {
  width: auto;
  min-height: 36px;
  padding: 8px 13px;
  line-height: 1.2;
}

.mp-import-custom-instruction__submit {
  white-space: nowrap;
}

.mp-import-results__loader {
  position: relative;
  isolation: isolate;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px 16px 22px;
  background: #f7f8fa;
}

.mp-import-results__loader::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 9% 10% 29%;
  border: 1px solid #e5e8ee;
  border-radius: 16px;
  background:
    linear-gradient(#dfe3ea 0 0) 9% 10% / 48% 7% no-repeat,
    linear-gradient(#e5e8ee 0 0) 9% 21% / 34% 5% no-repeat,
    linear-gradient(#e2e6ed 0 0) 50% 79% / 82% 58% no-repeat,
    #fbfcfd;
}

.mp-import-results__loader::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(105deg, transparent 28%, rgb(255 255 255 / 76%) 48%, transparent 68%);
  animation: mp-import-result-skeleton 1.35s ease-in-out infinite;
}

.mp-import-results__loader > * {
  position: relative;
  z-index: 2;
}

.mp-import-results__loader i {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  background: rgb(255 255 255 / 82%);
  border-color: rgb(52 64 84 / 16%);
  border-top-color: #344054;
}

.mp-import-results__loader b,
.mp-import-results__loader small {
  width: 100%;
  max-width: 230px;
  background: rgb(255 255 255 / 88%);
}

.mp-import-results__loader b {
  padding: 10px 12px 2px;
  border-radius: 10px 10px 0 0;
}

.mp-import-results__loader small {
  margin-top: -8px;
  padding: 2px 12px 10px;
  border-radius: 0 0 10px 10px;
}

@keyframes mp-import-result-skeleton {
  to { transform: translateX(115%); }
}

@media (max-width: 680px) {
  .mp-import-custom-instruction {
    padding: 10px;
  }

  .mp-import-custom-instruction textarea {
    min-height: 88px;
    max-height: 160px;
    font-size: 16px;
  }

  .mp-import-custom-instruction__footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
  }

  .mp-import-custom-instruction__footer > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .mp-import-results__card-footer .mp-import-custom-instruction__footer button,
  .mp-import-editor[data-active-section="analysis"] #marketplace-import-editor-pane-analysis .mp-import-custom-instruction__footer button {
    width: 100%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-import-results__loader::after,
  .mp-import-results__loader i {
    animation: none;
  }
}

/* Keep mobile product previews reachable and viewer arrows beside the card. */
@media (max-width: 900px) {
  .mp-import-editor[data-workflow-intent="improve_existing"][data-active-section="materials"] {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .mp-import-editor[data-workflow-intent="improve_existing"] .mp-import-editor__header {
    position: static;
    top: auto;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] {
    overflow: hidden;
    overflow-anchor: none;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__shell {
    height: 100dvh;
    min-height: 0;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__header {
    position: relative;
    top: auto;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__sections {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] #marketplace-import-editor-pane-materials,
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__materials-grid {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer.is-mobile-primary-only {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 8px calc(8px + env(safe-area-inset-bottom));
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"] .mp-import-editor__footer.is-mobile-primary-only .mp-import-editor__footer-info {
    display: none;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__visual {
    grid-template-rows: auto auto auto auto auto;
    min-height: 0;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__stage {
    width: 100%;
    height: min(52svh, 420px);
    min-height: 240px;
  }

  .mp-import-improvement-viewer__body.has-result-navigation {
    position: relative;
    display: block;
    padding-inline: 12px;
  }

  .mp-import-improvement-viewer__body.has-result-navigation .mp-import-improvement-viewer__comparison {
    height: 100%;
  }

  .mp-import-improvement-viewer__result-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 8px 24px rgb(15 23 42 / 16%);
  }

  .mp-import-improvement-viewer__result-nav.is-previous {
    left: max(8px, env(safe-area-inset-left));
  }

  .mp-import-improvement-viewer__result-nav.is-next {
    right: max(8px, env(safe-area-inset-right));
  }
}

/* 2026-07-21: Step 1 uses one page scroll so the product header leaves the viewport. */
@media (max-width: 900px) {
  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__header {
    position: static;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-reference-v2 {
    display: block;
    overflow: visible;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-reference-v2__stepper {
    position: relative;
    top: auto;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__sections {
    overflow: visible;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] #marketplace-import-editor-pane-materials {
    display: block !important;
    height: auto !important;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__materials-grid {
    height: auto !important;
    min-height: 0 !important;
  }

  .mp-import-editor[data-workflow-intent="create_from_reference"][data-reference-flow-version="2"][data-reference-wizard-step="reference"] .mp-import-editor__footer {
    position: relative;
    bottom: auto;
  }
}
