/* Publishing typography is scoped so catalogue, auth and other workspaces retain their layout. */
html body.app-ready :is(#product, #wbAssetImport) {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .015em;
}
html body.app-ready :is(#product, #wbAssetImport) :is(p, label, input, select, textarea) {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .015em;
}
html body.app-ready :is(#product, #wbAssetImport) :is(small, .field-note, .muted, .helper-text) {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--color-muted);
}
html body.app-ready :is(#product, #wbAssetImport) :is(h2, h3, h4) {
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: .01em;
}
html body.app-ready :is(#product, #wbAssetImport) h2 { font-size: 24px; line-height: 1.4; }
html body.app-ready :is(#product, #wbAssetImport) h3 { font-size: 20px; line-height: 1.5; }
html body.app-ready :is(#product, #wbAssetImport) h4 { font-size: 18px; line-height: 1.5; }
html body.app-ready :is(#product, #wbAssetImport) :is(.btn, .action-link) {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .02em;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body.app-ready :is(#product, #wbAssetImport) :is(input:not([type=checkbox]):not([type=radio]), select) {
  min-height: 44px;
  padding: 9px 12px;
}
html body.app-ready :is(#product, #wbAssetImport) textarea { padding: 12px; }
html body.app-ready :is(#product, #wbAssetImport) :is(.visual-actions, .form-actions) { gap: 12px; flex-wrap: wrap; }
html body.app-ready :is(#product, #wbAssetImport) .output-block > span {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}
html body.app-ready :is(#product, #wbAssetImport) summary {
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  padding-block: 6px;
}
html body.app-ready :is(#product, #wbAssetImport) :is([role=status], .visual-actions > span, .ozon-name-tools span) {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
html body.app-ready :is(#product, #wbAssetImport) :is(.form-grid, .publish-grid, .draft-editor) { gap: 20px; }
html body.app-ready :is(#product, #wbAssetImport) :is(label, .field-note, .output-block, .visual-actions > span) { min-width: 0; }
html body.app-ready :is(#product, #wbAssetImport) summary:focus-visible { outline: 3px solid #f9b888; outline-offset: 3px; }
html body.app-ready :is(#product, #wbAssetImport) :is(.quality-score, .copy-btn, .tag-list > span) { font-size: 14px; line-height: 1.6; }
html body.app-ready :is(#product, #wbAssetImport) .copy-btn { min-height: 36px; padding: 6px 12px; }
html body.app-ready #product #keywordTags > span { font-size: 14px; padding: 6px 10px; }
html body.app-ready #product #ozonCategoryResults strong { font-size: 16px; line-height: 1.6; }
html body.app-ready #wbAssetImport #wbPhotoEvidence { font-size: 14px; line-height: 1.7; }
html body.app-ready #wbAssetImport :is(.notice > span, .flow-step-head strong, .wb-prompt-card-head strong) { font-size: 16px; line-height: 1.65; }
html body.app-ready #wbAssetImport .notice > strong { font-size: 18px; line-height: 1.5; }
html body.app-ready #wbAssetImport :is(.chip, .source-card > span, .step-num, .flow-step-num, .wb-charc-head > span, th, td) { font-size: 14px; line-height: 1.6; }
html body.app-ready #wbAssetImport #wbFlowStepper strong { font-size: 16px; line-height: 1.5; }
html body.app-ready #wbAssetImport .own-preview-badge { font-size: 14px; line-height: 1.5; }
html body.app-ready #wbAssetImport .own-preview-remove { font-size: 18px; width: 32px; height: 32px; }
html body.app-ready #wbAssetImport #wbAssetImportStatus { font-size: 15px; line-height: 1.7; }
html body.app-ready #wbAssetImport #wbAssetImageProgress :is(strong, span, li) { font-size: 14px; line-height: 1.6; }
html body.app-ready #wbAssetImport #wbAssetImageGrid :is(p, small, span, a, strong) { font-size: 14px; line-height: 1.7; }
html body.app-ready #wbAssetImport :is(.analysis-strip, .sync-error, .wb-store-default) { font-size: 14px; line-height: 1.7; }
html body.app-ready #wbAssetImport .wb-store-select > strong { font-size: 16px; line-height: 1.6; }

html body.app-ready #product .ozon-workspace-heading { margin-bottom: 28px; }
html body.app-ready #product #ozonFlowStepper { gap: 12px; margin-bottom: 28px; }
html body.app-ready #product #ozonFlowStepper button { min-height: 64px; gap: 10px; padding: 14px; }
html body.app-ready #product #ozonFlowStepper strong { font-size: 16px; line-height: 1.5; }
html body.app-ready #product #ozonFlowStepper span { width: 30px; height: 30px; font-size: 14px; }
html body.app-ready #product .ozon-stage-heading { margin-bottom: 24px; }
html body.app-ready #product .ozon-stage-heading h3 { margin-bottom: 8px; }
html body.app-ready #product .ozon-stage-heading p { font-size: 16px; }
html body.app-ready #product .ozon-stage { max-width: 1160px; padding: 28px; }
html body.app-ready #product .ozon-step-actions { max-width: 1160px; margin-block: 24px; }
html body.app-ready #product .ozon-secondary { padding: 12px 18px; margin-block: 20px; }
html body.app-ready #product .ozon-activity { padding: 20px; gap: 14px; }
html body.app-ready #product .ozon-activity strong { font-size: 16px; }
html body.app-ready #product .ozon-activity p { font-size: 15px; margin-block: 8px; }
html body.app-ready #product .ozon-spinner { margin-top: 3px; }
html body.app-ready #product #ozonStage-images > .output-block {
  padding: 0 0 24px;
  margin: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html body.app-ready #product #ozonStage-images > .output-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
html body.app-ready #product #ozonStage-images > .output-block > :is(h3, h4) { margin: 0 0 18px; }
html body.app-ready #product #ozonStage-images > .output-block > p.field-note { margin: 0 0 16px; }
html body.app-ready #product #visualCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
html body.app-ready #product #visualCards .visual-card {
  display: block;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: none;
}
html body.app-ready #product .visual-card-heading { display: flex; gap: 12px; align-items: center; }
html body.app-ready #product #visualCards h3 { margin: 0; font-size: 18px; line-height: 1.5; }
html body.app-ready #product .visual-card-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff3e8;
  color: #a64008;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html body.app-ready #product #visualCards .visual-frame {
  margin: 16px 0;
  height: 180px;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  background: #f7f8fa;
}
html body.app-ready #product #visualCards .visual-frame img { width: 100%; height: 100%; object-fit: contain; }
html body.app-ready #product .visual-card-details { margin: 0; }
html body.app-ready #product .visual-card-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; list-style: none; }
html body.app-ready #product .visual-card-details summary::-webkit-details-marker { display: none; }
html body.app-ready #product .visual-card-details summary::after { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: rotate(45deg); margin-right: 4px; }
html body.app-ready #product .visual-card-details[open] > summary::after { transform: rotate(225deg); }
html body.app-ready #product #visualCards p { font-size: 16px; line-height: 1.7; margin: 0 0 12px; color: var(--color-text); }
html body.app-ready #product #visualCards small { display: block; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
html body.app-ready #product .ozon-creative-details:has(#ozonCreativeSummary:empty) { display: none; }
html body.app-ready #product #ozonCreativeSummary { margin-bottom: 0; font-size: 16px; }
html body.app-ready #product #aiImageStatus:empty { display: none; }
html body.app-ready #product #imageGenerationProgress { margin-top: 20px; }
html body.app-ready #product #imageGenerationProgress :is(strong, span, li) { font-size: 14px; line-height: 1.6; }
html body.app-ready #product #aiImageGrid:empty { display: none; }
html body.app-ready #product #aiImageGrid :is(p, small, span, a, strong) { font-size: 14px; line-height: 1.7; }
html body.app-ready #product #ozonVideoStatus:empty { display: none; }
html body.app-ready #product #ozonVideoPreview { margin-top: 16px; }

@media (max-width: 900px) {
  html body.app-ready #product #ozonFlowStepper button { padding: 12px 8px; flex-direction: column; }
  html body.app-ready #product #ozonFlowStepper strong { font-size: 14px; }
  html body.app-ready #product .ozon-stage { padding: 20px; }
}
@media (max-width: 600px) {
  html body.app-ready :is(#product, #wbAssetImport) h2 { font-size: 22px; }
  html body.app-ready #product #ozonFlowStepper { gap: 8px; }
  html body.app-ready #product .ozon-stage { padding: 16px; }
  html body.app-ready #product #visualCards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html body.app-ready #product #visualCards .visual-card { padding: 0 14px; }
  html body.app-ready #product .ozon-secondary { padding: 12px; }
  html body.app-ready #product .ozon-step-actions .btn { padding-inline: 14px; }
  html body.app-ready #product #aiImageStatus { flex-basis: 100%; }
}
