/* Compact typography is the final application-wide type system. */
@layer compactTypography {
  html body, html body * {
    font-family: "Source Han Sans SC", "思源黑体", "Microsoft YaHei", "微软雅黑", sans-serif !important;
    font-size: 13px !important;
    letter-spacing: normal !important;
  }
  html body :is(h1, h2, h3, h4, h5, h6) { font-size: 14px !important; line-height: 1.45 !important; }
  html body #pageTitle { font-size: 22px !important; font-weight: 700 !important; }
  html body :is(.catalog-toolbar h3, .workspace-hero h2) { font-size: 20px !important; font-weight: 500 !important; }
  html body :is(.catalog-product-info h4, .platform-workspace-card h2) { font-size: 14px !important; }
  html body .unified-primary-nav button { font-size: 14px !important; }
  html body :is(.catalog-product-category, .catalog-cost + small, #catalogCount, .catalog-toolbar p, .catalog-footnote) { font-size: 10px !important; }
  html body :is(button, input, textarea, select, th, label, summary) { font-size: 12px !important; }
  html body :is(small, .field-note, .helper-text, .eyebrow, .muted, .copyright, .auth-footer),
  html body :is(small, .field-note, .helper-text, .copyright, .auth-footer) * { font-size: 10px !important; line-height: 1.5 !important; }
  html body :is([role="alert"], [role="status"], .ozon-activity, .ozon-activity p) { font-size: 12px !important; }
}
body { line-height: 1.5; }
body :is(button.btn, .btn) { min-height: 32px; padding: 7px 12px; }
body :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 34px; padding: 7px 10px; }
body textarea { padding: 9px 10px; line-height: 1.5; }
body .ozon-workspace :is(.panel, .output-block, .ozon-secondary) { padding: 14px; }
body .ozon-workspace .publish-grid { gap: 12px; }
body .ozon-workspace-heading { margin-bottom: 14px; }
body .ozon-stage-heading { margin: 12px 0; }
html body #mainContent { padding: 108px 28px 36px !important; }
html body #ozonFlowStepper { margin-bottom: 14px; }
html body #ozonFlowStepper button { min-height: 42px; padding: 10px; }
html body .ozon-workspace .store-row { padding: 10px; min-height: 48px; }
html body .ozon-workspace-heading { min-height: 34px; }
body .ozon-workspace :is(.field-note, .helper-text) { margin: 5px 0; }
/* Remove only duplicate introductions, retaining labels and live feedback. */
#ozonStepDescription, .ozon-workspace .eyebrow,
.ozon-workspace .output-block > label + #generatedTitle + p,
.ozon-workspace .output-block > #generatedDescription + p { display: none; }
@media (max-width: 640px) {
  html body #mainContent { padding: 96px 12px 24px !important; }
  body .ozon-workspace :is(.panel, .output-block, .ozon-secondary) { padding: 10px; }
  body .ozon-workspace .btn { min-height: 36px; }
}
