/* Copy fit only: keep the Chinese product grid, screenshots and diagram geometry. */
html[lang="en"] body.products-page .product-overview-copy .tag {
  font-size: 12px;
  line-height: 1.3;
}

html[lang="en"] body.products-page .product-overview-copy strong {
  font-size: 27px;
  line-height: 1.12;
}

html[lang="en"] body.products-page .product-overview-copy p {
  font-size: 14px;
  line-height: 1.45;
}

html[lang="en"] body.products-page .product-engine-app-links small {
  white-space: normal;
  line-height: 1.35;
}

/* English copy inside the unchanged Chinese engine composition. */
html[lang="en"] .engine-loop-center :is(h3, p, .engine-loop-output) {
  max-width: 88%;
  white-space: normal;
}
html[lang="en"] .engine-loop-center h3 { font-size: 27px; line-height: 1.12; margin: 12px 0 8px; }
html[lang="en"] .engine-loop-center h3 span { display: block; }
html[lang="en"] .engine-loop-center p { font-size: 11px; line-height: 1.35; }
html[lang="en"] .engine-loop-output { font-size: 10px; line-height: 1.25; margin-top: 12px; }
html[lang="en"] .engine-loop-kicker { font-size: 10px; }
html[lang="en"] .engine-cycle-step h4 { font-size: 20px; line-height: 1.2; margin: 8px 0 6px; }
html[lang="en"] .engine-cycle-step p { font-size: 12px; line-height: 1.4; }
html[lang="en"] .engine-app-point { padding: 12px 18px; }
html[lang="en"] .engine-app-point h4 { white-space: normal; font-size: 18px; line-height: 1.15; margin: 6px 0; }
html[lang="en"] .engine-app-point p { white-space: normal; font-size: 11px; line-height: 1.3; }
html[lang="en"] .engine-app-name { font-size: 11px; }
@media (min-width: 1231px) {
  html[lang="en"] .engine-cycle-step { min-height: 146px; }
}
@media (min-width: 1081px) and (max-width: 1230px) {
  html[lang="en"] .engine-cycle-step { min-height: 126px; }
  html[lang="en"] .engine-cycle-step h4 { font-size: 18px; }
  html[lang="en"] .engine-cycle-step p { font-size: 11px; }
  html[lang="en"] .engine-loop-center h3 { font-size: 23px; }
  html[lang="en"] .engine-loop-center p { font-size: 10px; }
  html[lang="en"] .engine-loop-output { font-size: 9px; }
  html[lang="en"] .engine-app-point { padding: 10px 14px; }
  html[lang="en"] .engine-app-point h4 { font-size: 16px; margin: 4px 0; }
  html[lang="en"] .engine-app-point p { font-size: 10.5px; line-height: 1.2; }
  html[lang="en"] .engine-app-name { font-size: 10.5px; }
}
@media (max-width: 1080px) {
  html[lang="en"] .engine-cycle-step h4 { font-size: 18px; }
  html[lang="en"] .engine-cycle-step p { font-size: 11px; }
}
@media (max-width: 600px) {
  html[lang="en"] .engine-cycle-step { padding: 12px 10px; }
  html[lang="en"] .engine-cycle-step h4 { font-size: 17px; }
  html[lang="en"] .engine-app-point { padding: 18px; }
  html[lang="en"] .engine-app-point h4 { font-size: 19px; }
  html[lang="en"] .engine-app-point p { font-size: 12px; line-height: 1.5; }
  html[lang="en"] .engine-adoption-checks span { font-size: 10px; padding: 4px 6px; }
}

html[lang="en"] body.products-page .product-task-panel :is(p, small, strong, span, em, b) {
  white-space: normal;
  word-break: normal;
}

html[lang="en"] body.products-page .matrix-overview-card strong {
  font-size: 14px;
  line-height: 1.3;
}

html[lang="en"] body.products-page .matrix-signal-card strong,
html[lang="en"] body.products-page .matrix-route span,
html[lang="en"] body.products-page .matrix-action-row em {
  font-size: 11px;
  line-height: 1.25;
}

html[lang="en"] body.products-page .app-skill-item b {
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

html[lang="en"] body.products-page .app-skill-item small,
html[lang="en"] body.products-page .skill-source-grid div,
html[lang="en"] body.products-page .skill-stack small {
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

@media (min-width: 761px) {

  html[lang="en"] body.products-page .product-task-panel h3 {
    font-size: 25px;
    line-height: 1.12;
  }

  html[lang="en"] body.products-page .product-task-panel p {
    font-size: 12px;
    line-height: 1.45;
  }

  html[lang="en"] body.products-page .benchmark-card h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  html[lang="en"] body.products-page .benchmark-card p {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  html[lang="en"] body.products-page .product-overview-copy strong[data-mobile-title] {
    font-size: 0;
  }

  html[lang="en"] body.products-page .product-overview-copy strong[data-mobile-title]::before {
    font-size: 24px;
    line-height: 1.15;
  }

  html[lang="en"] body.products-page .product-task-panel h3 {
    font-size: 25px;
    line-height: 1.15;
  }

  html[lang="en"] body.products-page .product-task-panel p {
    font-size: 13px;
    line-height: 1.45;
  }

  html[lang="en"] body.products-page .shot-button {
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
  }
}
