@media (max-width: 767px) {
    @layer stm-chinese {
        html[lang^="zh"] body.stm-reference-home.stm-ui-refined.stm-shared-navigation .stm-rh-header-inner {
            gap: 8px !important;
        }

        html[lang^="zh"] body.stm-reference-home.stm-ui-refined.stm-shared-navigation .stm-rh-header-actions {
            gap: 0 !important;
            margin-inline-start: auto;
        }

        html[lang^="zh"] body.stm-reference-home.stm-ui-refined.stm-shared-navigation .stm-rh-header
        :is(.stm-rh-menu, [data-rh-search-open], a[aria-label="English homepage"]) {
            display: inline-grid !important;
            place-items: center;
            min-inline-size: 44px;
            min-block-size: 44px;
            padding: 0 !important;
            font-size: 15px !important;
            line-height: 1 !important;
        }

        html[lang^="zh"] body.stm-reference-home.stm-ui-refined.stm-shared-navigation .stm-rh-menu {
            margin-inline-start: 0 !important;
        }

        html[lang^="zh"] body.stm-reference-home.stm-ui-refined.stm-shared-navigation
        .stm-rh-nav.is-open {
            max-block-size: calc(100dvh - 76px);
            overscroll-behavior-y: contain;
        }

        html[lang^="zh"] body.stm-ui-refined.stm-reference-pages.rp-page-gallery .stm-gallery-grid .stm-gallery-card .stm-gallery-photo {
            height: auto !important;
            min-height: 0 !important;
            aspect-ratio: auto;
            background: #f3f8fc;
        }

        html[lang^="zh"] body.stm-ui-refined.stm-reference-pages.rp-page-gallery .stm-gallery-grid .stm-gallery-card .stm-gallery-photo img {
            max-height: clamp(190px, 66vw, 300px) !important;
            object-fit: contain !important;
        }

        html[lang^="zh"] body.stm-ui-refined.rp-page-gallery .stm-gallery-caption {
            padding: 12px 14px 14px !important;
        }

        html[lang^="zh"] body.stm-contact-design .stm-contact .ct-form button.ct-primary {
            min-height: 44px !important;
        }

        html[lang^="zh"] body.stm-news-page .stm-news-heading h1 {
            font-size: clamp(30px, 8vw, 36px) !important;
        }

        html[lang^="zh"] body.stm-news-page .stm-news-card h2 {
            font-size: clamp(17px, 4.6vw, 20px) !important;
            line-height: 1.48 !important;
        }

        html[lang^="zh"] body.stm-news-page .stm-news-card p {
            font-size: 14px !important;
            line-height: 1.65 !important;
        }

        html[lang^="zh"] body.stm-news-page .stm-news-article-head h1 {
            font-size: clamp(24px, 6vw, 30px) !important;
            line-height: 1.45 !important;
        }
    }

    html[lang^="zh"] body.stm-news-page .stm-news-card-copy {
        gap: 10px;
        padding: 16px;
    }

    html[lang^="zh"] .dc-toolbar .dc-types {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        min-height: 44px;
    }

    html[lang^="zh"] .dc-toolbar .dc-types [data-dc-type] {
        justify-content: center;
        gap: 4px;
        min-block-size: 44px;
        padding: 0;
        font-size: 13px;
    }

    html[lang^="zh"] :is(.dc-card-actions, .ph3-actions) a {
        display: inline-flex;
        align-items: center;
        min-height: 44px !important;
    }

    html[lang^="en"] .stm-header-manual-actions
    :is(.stm-header-manual-search, .stm-header-manual-menu) {
        min-inline-size: 44px !important;
        min-block-size: 44px !important;
    }

    html[lang^="en"] .stm-header-manual-actions
    :is(.stm-header-manual-search, .stm-header-manual-menu):is(:hover, :focus, .is-open) {
        background-color: #e5f1fc !important;
        border-color: #a9c9e7 !important;
        color: #07558f !important;
    }

    html[lang^="en"] .stm-header-manual-mobile.is-open {
        max-block-size: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    html[lang^="en"] .stm-header-manual-lang-mobile a {
        display: inline-flex;
        min-inline-size: 44px;
        min-block-size: 44px;
        align-items: center;
        justify-content: center;
        color: #07558f !important;
    }

    html[lang^="en"] .stm-header-manual-mobile a.stm-header-manual-mobile-demo {
        color: #fff !important;
        background-color: #006cc7 !important;
    }

    html[lang^="en"] .stm-hero-carousel-panel .stm-hero-carousel-btn {
        min-inline-size: 44px;
        min-block-size: 44px;
    }

    html[lang^="en"] body .stm-pdhero-section .stm-pdhero-container {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        row-gap: 12px;
        padding-top: 0;
    }

    html[lang^="en"] .stm-pdhero-container .stm-pdhero-copy {
        display: contents;
    }

    html[lang^="en"] .stm-pdhero-copy > * {
        min-width: 0;
        margin-block: 0;
    }

    html[lang^="en"] .stm-pdhero-copy > .stm-pdhero-breadcrumb { order: 1; }
    html[lang^="en"] .stm-pdhero-copy > .stm-pdhero-kicker { order: 2; }
    html[lang^="en"] .stm-pdhero-copy > .stm-pdhero-title-unit { order: 3; }
    html[lang^="en"] .stm-pdhero-copy > .stm-pdhero-subtitle { order: 4; }
    html[lang^="en"] .stm-pdhero-copy > .stm-en-configurations { order: 5; }

    html[lang^="en"] body .stm-pdhero-container .stm-pdhero-visual {
        order: 6;
        min-height: 0;
        height: clamp(185px, 58vw, 260px);
    }

    html[lang^="en"] body .stm-pdhero-visual > img.stm-pdhero-product-img {
        width: min(100%, 260px);
        height: 100%;
        object-fit: contain;
    }

    html[lang^="en"] body .stm-pdhero-copy > .stm-pdhero-actions {
        order: 7;
        margin-block: 4px 0;
        gap: 8px;
    }

    html[lang^="en"] body .stm-pdhero-copy > .stm-pdhero-desc {
        order: 8;
        margin-block: 6px 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
    }

    html[lang^="en"] .stm-pdhero-copy > .stm-pdhero-meta {
        order: 9;
    }

    html[lang^="en"] .stm-rgauto-filter-panel {
        padding: 14px;
    }

    html[lang^="en"] .stm-rgauto-filter-grid {
        gap: 10px;
    }

    html[lang^="en"] .stm-rgauto-filter-grid .stm-rgauto-field select,
    html[lang^="en"] .stm-en-document-controls input[type="search"],
    html[lang^="en"] .stm-contactpage-form :is(input, textarea, select),
    html[lang^="en"] .stm-contactg-form :is(input, textarea, select) {
        min-inline-size: 0;
        max-inline-size: 100%;
        font-size: 16px;
    }

    html[lang^="en"] .stm-rgauto-filter-grid .stm-rgauto-reset {
        justify-self: start;
    }
}

@media (min-width: 360px) and (max-width: 767px) {
    html[lang^="en"] .stm-rgauto-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[lang^="en"] .stm-rgauto-filter-grid .stm-rgauto-field select {
        padding-inline-start: 10px;
        padding-inline-end: 4px;
    }

    html[lang^="en"] .stm-rgauto-filter-grid .stm-rgauto-reset {
        grid-column: 1 / -1;
    }
}
