.stm-swf {
    --swf-ink: #102b47;
    --swf-blue: #126cbc;
    --swf-text: #3c556e;
    --swf-line: #d7e2ea;
    color: var(--swf-ink);
    padding-block: clamp(52px, 6.2vw, 104px);
}
.swf-challenges {
    padding-block: clamp(54px, 6.12vw, 104px);
    background: #f2f6f9;
}
.swf-challenge-backdrop { display: none; }
.swf-flow { background: #fff; }
.swf-wrap {
    width: var(--stm-content-width, 92%);
    max-width: var(--stm-container, none);
    margin-inline: auto;
}
.swf-heading {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 8px clamp(24px, 3vw, 52px);
    margin-block-end: clamp(24px, 3vw, 46px);
}
.swf-heading h2 {
    grid-row: 1 / 3;
    margin: 0;
    color: var(--swf-ink);
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 750;
    line-height: 1.15;
}
.swf-heading h2::after {
    display: inline-block;
    content: '';
    width: .46em;
    height: 3px;
    margin-inline-start: .32em;
    background: #168bd7;
    transform: translateY(-.28em) skew(-34deg);
}
.swf-heading .swf-subtitle, .swf-intro { margin: 0; }
.stm-swf .swf-heading .swf-subtitle {
    align-self: end;
    color: var(--swf-ink);
    font-size: clamp(18px, 1.55vw, 25px) !important;
    font-weight: 700;
    line-height: 1.45;
}
.swf-intro {
    align-self: start;
    max-width: 80ch;
    font-size: clamp(15px, 1.04vw, 17px);
    line-height: 1.72;
    color: var(--swf-text);
}
.swf-challenges .swf-challenge-heading {
    position: relative;
    isolation: isolate;
    grid-template-columns: clamp(176px, 21.5%, 312px) minmax(0, 1fr);
    align-items: baseline;
    gap: 0;
    margin-block-end: 32px;
}
.swf-challenge-heading h2 { grid-row: auto; }
.swf-challenge-intro { padding-inline-end: clamp(16px, 4vw, 70px); }
.swf-challenge-intro .swf-intro { margin-top: 4px; max-width: 53em; }

.swf-diagnoses {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: clamp(18px, 1.38vw, 20px);
}
.swf-diagnoses:is([data-layout="single"], [data-layout="list"]) .swf-diagnosis-primary { grid-column: 1 / -1; }
.swf-diagnosis {
    --swf-card-pad: clamp(22px, 2.06vw, 32px);
    --swf-support-bg: #e5eff7;
    --swf-photo-contrast: 1.09;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: var(--swf-card-pad);
    overflow: hidden;
    border: 1px solid #bfd1e0;
    border-radius: 8px;
    background: var(--swf-support-bg);
    color: #0d2843;
    transition: border-color .3s ease;
}
.swf-diagnosis-primary {
    --swf-photo-contrast: 1;
    justify-content: space-between;
    gap: 34px;
    border-color: #234b6e;
    background: #123a5d;
    color: #fff;
}
.swf-number {
    color: #204d72;
    font-size: clamp(48px, 3.47vw, 56px);
    font-weight: 720;
    line-height: .98;
    font-variant-numeric: tabular-nums;
}
.swf-diagnosis-primary .swf-number {
    color: #c9e6ff;
    font-size: clamp(64px, 4.85vw, 76px);
}
.swf-diagnosis-content {
    flex: 0 1 auto;
    position: relative;
    z-index: 1;
    width: 55%;
    min-width: 0;
    overflow-wrap: anywhere;
}
.swf-diagnosis-primary .swf-diagnosis-content { width: 100%; max-width: 31em; }
.swf-diagnosis-content h3 { color: inherit; margin: 0; }
.swf-diagnosis-content p { margin: 0; color: #314f68; }
.swf-diagnosis-content h3 + p { margin-top: 7px; }
.swf-diagnosis-primary .swf-diagnosis-content p { color: #f0f8ff; }
.swf-diagnosis-media {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 43%;
    overflow: hidden;
}
.swf-diagnosis-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 57% center;
    filter: contrast(var(--swf-photo-contrast));
    transition: filter .3s ease, scale .3s ease;
}
.swf-diagnosis-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--swf-support-bg) 3.5%, #e5eff7e8 14%, #e5eff799 30%, transparent 47.5%);
}
.swf-diagnoses[data-layout="featured"] > .swf-diagnosis:nth-child(2) { --swf-photo-contrast: 1.15; }
.swf-diagnosis-primary .swf-diagnosis-media { inset: 0; }
.swf-diagnosis-primary .swf-diagnosis-media img { object-position: center; }
.swf-diagnosis-primary .swf-diagnosis-media::after {
    background:
        linear-gradient(0deg, #092944 0%, #0e3252df 20%, #123a5d29 48%, #123a5d0a 76%),
        linear-gradient(121deg, #0f365b70, transparent 38%);
}
.swf-diagnosis-texture {
    background:
        radial-gradient(ellipse at 91% 91%, transparent 39%, #497fa339 39.5% 40%, transparent 40.5% 48%, #497fa32f 48.5% 49%, transparent 49.5% 57%, #497fa32a 57.5% 58%, transparent 58.5% 66%, #497fa326 66.5% 67%, transparent 67.5%),
        linear-gradient(130deg, var(--swf-support-bg), #ccdfef);
}
.swf-diagnosis-primary .swf-diagnosis-texture {
    background:
        radial-gradient(ellipse at 89% 63%, transparent 23%, #9bd2fb57 23.5% 24%, transparent 24.5% 34%, #9bd2fb48 34.5% 35%, transparent 35.5% 45%, #9bd2fb41 45.5% 46%, transparent 46.5% 55%, #9bd2fb38 55.5% 56%, transparent 56.5%),
        linear-gradient(130deg, #123a5d, #245e88);
}

@layer stm-chinese {
    html[lang^="zh"] body .swf-challenges .swf-challenge-heading h2 {
        margin: 0 !important;
        font-size: clamp(30px, 2.85vw, 48px) !important;
        line-height: 1.2 !important;
        font-weight: 730 !important;
    }
    html[lang^="zh"] body .swf-challenges .swf-challenge-intro .swf-subtitle {
        font-size: clamp(19px, 1.62vw, 27px) !important;
        line-height: 1.4 !important;
        font-weight: 680 !important;
    }
    html[lang^="zh"] body .swf-challenges .swf-number { font-weight: 710 !important; }
    html[lang^="zh"] body .swf-challenges .swf-diagnosis h3 {
        margin: 0 !important;
        font-size: clamp(22px, 1.6vw, 24px) !important;
        line-height: 1.3 !important;
        font-weight: 710 !important;
        text-wrap: pretty !important;
    }
    html[lang^="zh"] body .swf-challenges .swf-diagnosis-primary h3 {
        font-size: clamp(24px, 2.18vw, 37px) !important;
    }
    html[lang^="zh"] body .swf-challenges :is(.swf-intro, .swf-diagnosis-content p) {
        font-size: clamp(14px, 1.05vw, 16px) !important;
        line-height: 1.66 !important;
    }
}

@media (min-width: 851px) {
    .swf-challenge-heading .swf-challenge-backdrop {
        display: block;
        position: absolute;
        z-index: -1;
        inset: -5px 0 0 auto;
        width: min(24%, 375px);
        height: calc(100% + 5px);
        object-fit: cover;
        object-position: 61% 50%;
        opacity: .15;
        filter: contrast(.84);
        mask-image: linear-gradient(to right, transparent, #000 56%, #000 87%, #0006), linear-gradient(to bottom, transparent, #000 21%, #000 56%, transparent);
        mask-composite: intersect;
    }
    .swf-diagnoses[data-layout="featured"] .swf-diagnosis-primary { grid-row: span 2; }
    .swf-diagnoses[data-layout="featured"] > .swf-diagnosis { min-height: 211px; }
    .swf-diagnoses[data-layout="pair"] > .swf-diagnosis { min-height: 360px; }
    .swf-diagnoses:is([data-layout="quad"], [data-layout="list"]) > .swf-diagnosis { min-height: 218px; }
    .swf-diagnoses:is([data-layout="single"], [data-layout="list"]) > .swf-diagnosis-primary { min-height: 310px; }
    .swf-diagnoses[data-layout="quad"] > .swf-diagnosis-primary { gap: 22px; }
    .swf-diagnoses[data-layout="quad"] > .swf-diagnosis-primary .swf-number { font-size: clamp(55px, 4.4vw, 70px); }
}
@media (max-width: 850px) {
    .swf-challenges .swf-challenge-heading { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-block-end: 28px; }
    .swf-challenge-intro { padding-inline-end: 0; }
    .swf-diagnoses { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .swf-diagnosis { --swf-card-pad: clamp(17px, 4.5vw, 28px); }
    .swf-diagnosis-primary { min-height: clamp(318px, 63vw, 400px); }
    .swf-diagnosis-primary .swf-number { font-size: clamp(56px, 13vw, 68px); }
    .swf-diagnosis-content { width: 100%; }
    .swf-diagnosis:not(.swf-diagnosis-primary) .swf-diagnosis-media {
        position: relative;
        inset: auto;
        order: 1;
        align-self: stretch;
        margin: 2px calc(-1 * var(--swf-card-pad)) calc(-1 * var(--swf-card-pad));
        height: clamp(125px, 40vw, 235px);
    }
    .swf-diagnosis:not(.swf-diagnosis-primary) .swf-diagnosis-media::after {
        background: linear-gradient(var(--swf-support-bg), transparent 24%);
    }
    .swf-diagnosis:not(.swf-diagnosis-primary) .swf-diagnosis-texture { height: 78px; }
}
@media (hover: hover) {
    .swf-diagnosis:hover { border-color: #1479c8; }
    .swf-diagnosis:hover .swf-diagnosis-media img { filter: contrast(calc(var(--swf-photo-contrast) + .04)); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .swf-diagnosis:hover .swf-diagnosis-media img { scale: 1.02; }
}
.stm-swf summary { list-style: none; cursor: pointer; }
.stm-swf summary::-webkit-details-marker { display: none; }
.stm-swf :is(summary,button):focus-visible { outline: 2px solid #147bc5; outline-offset: 3px; }
.swf-flow .swf-heading { grid-template-columns:clamp(176px,21.5%,312px) minmax(0,1fr); column-gap:0; }
.swf-flow-grid { display:grid; gap:clamp(16px,1.6vw,26px); align-items:start; }
.swf-flow.swf-interactive .swf-flow-grid { grid-template-columns:minmax(0,42fr) minmax(0,58fr); align-items:stretch; }
.swf-flow .swf-phase[hidden], .swf-stage[hidden] { display:none; }
.swf-flow.swf-ready .swf-phase-fallback { display:none; }
.swf-step-group + .swf-step-group { margin-top:7px; }
.swf-phase-fallback { margin:0 0 6px; color:#50677a; }
.swf-flow .swf-phase {
    position:relative;
    align-self:stretch;
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border:1px solid #d9e4ec;
    border-inline-start:3px solid #b8cbd9;
    border-radius:6px;
    background:#f2f6f9;
    color:#3d576e;
    text-align:start;
    cursor:pointer;
}
.swf-flow .swf-phase:hover { border-color:#1479c8; }
.swf-flow .swf-phase[aria-current="true"] {
    border-inline-start-color:#1479c8;
    background:#e4f1fa;
    color:#123a5d;
}
.swf-interactive .swf-steps {
    --swf-phase-width:clamp(74px, 8.1vw, 132px);
    --swf-rail-gap:16px;
    position:relative;
    isolation:isolate;
    display:grid;
    grid-template-rows:repeat(3,auto);
    row-gap:7px;
}
.swf-interactive .swf-steps::before {
    content:'';
    position:absolute;
    inset:0 auto 0 calc(var(--swf-phase-width) + 7px);
    z-index:-1;
    width:1px;
    background:#c7d9e6;
}
.swf-interactive .swf-step-group {
    display:grid;
    grid-template-columns:var(--swf-phase-width) minmax(0,1fr);
    column-gap:var(--swf-rail-gap);
    margin:0;
}
.swf-interactive .swf-phase {
    justify-content:flex-start;
    padding-inline:clamp(6px,.75vw,13px);
    border:0;
    border-radius:5px 0 0 5px;
    background:#f5f8fb;
    transition:background .25s,color .25s;
}
.swf-interactive .swf-phase:hover { background:#edf5fb; }
.swf-interactive .swf-phase[aria-current="true"] { color:#0d426b; background:#e0eef8; box-shadow:inset -2px 0 #1479c8; }
.swf-interactive .swf-phase-steps { display:grid; grid-template-rows:repeat(2,auto); gap:7px; }
.swf-step + .swf-step { margin-top:7px; }
.swf-interactive .swf-step + .swf-step { margin-top:0; }
.swf-step summary {
    position:relative;
    display:grid;
    grid-template-columns:clamp(34px,2.55vw,44px) minmax(0,1fr);
    align-items:center;
    column-gap:clamp(10px,1.05vw,16px);
    min-height:70px;
    padding:6px 12px;
    border:1px solid #d9e4ec;
    border-inline-start:3px solid #d9e4ec;
    border-radius:6px;
    background:#f8fbfd;
    color:#123a5d;
    transition:border-color .25s, background-color .25s, box-shadow .25s;
}
.swf-interactive .swf-step summary { height:100%; }
.swf-interactive .swf-step summary::before {
    content:'';
    position:absolute;
    z-index:1;
    width:5px;
    height:5px;
    inset:calc(50% - 3px) auto auto -15px;
    border-radius:50%;
    background:#9bb5c9;
}
.swf-interactive .swf-step[open] summary::before { background:#1479c8; box-shadow:0 0 0 2px #e4f1fa; }
.swf-step summary:hover { border-color:#72a9d0; box-shadow:0 2px 6px #163e5d12; }
.swf-step[open] summary { border-color:#123a5d; border-inline-start-color:#2c9bea; background:#123a5d; color:white; }
.swf-step { min-width:0; }
.swf-step-number { color:#507796; font-size:clamp(27px,2.15vw,34px); line-height:1; font-variant-numeric:tabular-nums; }
.swf-step-copy { min-width:0; }
.swf-step-copy strong { display:block; color:#123a5d; font-size:clamp(15px,1.16vw,19px); line-height:1.27; }
.swf-step-copy small { display:block; margin-top:3px; color:#50677a; font-size:clamp(13px,1vw,15px); line-height:1.4; }
.swf-step[open] :is(strong,small,.swf-step-number) { color:inherit; }
.swf-step[open] .swf-step-number { color:#bce4ff; }
.swf-interactive .swf-stage { min-width:0; align-self:stretch; }
.swf-stage-media {
    min-width:0;
    overflow:hidden;
    border:1px solid #d9e4ec;
    border-radius:8px;
    background:#fff;
    box-shadow:0 6px 18px #163e5d12;
}
.swf-step .swf-stage-media { margin-top:6px; }
.swf-interactive .swf-stage-media {
    display:grid;
    height:100%;
    min-height:clamp(500px,35.5vw,535px);
    grid-template-rows:auto minmax(306px,1fr) auto;
}
.swf-stage-top {
    display:flex;
    align-items:center;
    gap:6px 12px;
    min-height:58px;
    padding:9px clamp(12px,1.25vw,22px);
    background:#123a5d;
    color:#fff;
    text-align:start;
}
.swf-stage-number { color:#bce4ff; font-size:clamp(23px,2.06vw,36px); line-height:1; }
.swf-stage-top h3 { margin:0; color:inherit; font-size:clamp(17px,1.37vw,24px); line-height:1.3; }
.swf-stage-meta {
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    align-items:center;
    gap:6px 10px;
    margin-inline-start:auto;
}
.swf-stage-label {
    padding:3px 8px;
    border:1px solid #7798b4;
    border-radius:4px;
    font-size:clamp(11px,.82vw,14px);
    line-height:1.4;
    color:#e4f4ff;
    white-space:nowrap;
}
.swf-stage-image, .swf-stage-note {
    position:relative;
    display:grid;
    place-items:center;
    aspect-ratio:16 / 10;
    overflow:hidden;
    background:#e9f0f5;
}
.swf-interactive :is(.swf-stage-image,.swf-stage-note) { aspect-ratio:auto; min-height:0; }
.swf-stage-image[data-media-type="result"] { background:#142a3d; }
.swf-stage-image[data-media-type="site"] { background:#e8edf1; }
.swf-stage-image[data-media-type="delivery"] { background:#edf3f7; }
.swf-stage-image > .swf-stage-photo {
    position:absolute;
    inset:10px;
    width:calc(100% - 20px);
    max-width:var(--swf-source-width);
    height:calc(100% - 20px);
    margin:auto;
    object-fit:contain;
}
.swf-stage-note {
    padding:clamp(16px,4vw,64px);
    border-bottom:1px solid #d9e4ec;
    border-inline-start:3px solid #b3d7f0;
    background:#f2f6f9;
}
.swf-stage-note p { max-width:30em; margin:0; color:#36546c; }
.stm-swf .swf-stage-zoom {
    min-height:36px;
    padding:4px 9px;
    border:1px solid #a8c0d1;
    border-radius:5px;
    background:#ffffff13;
    color:#fff;
    cursor:pointer;
    white-space:nowrap;
}
.stm-swf .swf-stage-zoom:hover { background:#075b96; }
.swf-stage-output { padding:14px clamp(14px,1.4vw,25px) 16px; border-top:1px solid #d9e4ec; }
.swf-stage-output .swf-stage-caption { margin:0 0 8px; color:#50677a; }
.swf-stage-delivery { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 14px; }
.swf-stage-delivery > strong { color:#105688; font-size:16px; }
.swf-stage-output ul { display:flex; flex-wrap:wrap; gap:4px 10px; margin:0; padding:0; list-style:none; }
.swf-stage-output li { display:flex; align-items:baseline; gap:10px; color:#28465e; }
.swf-stage-output li > span { color:#487592; }

@layer stm-chinese {
    html[lang^="zh"] body .swf-flow .swf-heading h2 { font-size:clamp(30px,2.85vw,48px) !important; font-weight:730 !important; line-height:1.2 !important; }
    html[lang^="zh"] body .swf-flow .swf-heading .swf-subtitle { font-size:clamp(19px,1.62vw,27px) !important; font-weight:680 !important; line-height:1.4 !important; }
    html[lang^="zh"] body .swf-flow .swf-intro { line-height:1.68 !important; }
    html[lang^="zh"] body .swf-flow .swf-phase { font-size:clamp(13px,1.06vw,17px) !important; font-weight:670 !important; line-height:1.35 !important; }
    html[lang^="zh"] body .swf-flow .swf-step-number,
    html[lang^="zh"] body .swf-flow .swf-stage-number { font-weight:710 !important; }
    html[lang^="zh"] body .swf-flow .swf-step-copy strong { font-weight:690 !important; }
    html[lang^="zh"] body .swf-flow .swf-stage-top h3 { margin:0 !important; color:inherit !important; line-height:1.3 !important; font-size:clamp(17px,1.37vw,24px) !important; font-weight:680 !important; }
    html[lang^="zh"] body .swf-flow .swf-stage-output .swf-stage-caption { font-size:13px !important; line-height:1.5 !important; }
    html[lang^="zh"] body .swf-flow .swf-stage-output li { font-size:clamp(14px,1.08vw,16px) !important; line-height:1.55 !important; }
    html[lang^="zh"] body .swf-flow .swf-stage-output strong { font-size:16px !important; }
    html[lang^="zh"] body .swf-flow .swf-stage-zoom { font-size:12px !important; line-height:1.3 !important; }
}
@media (min-width:901px) and (max-width:1120px) {
    .swf-flow.swf-interactive .swf-flow-grid { grid-template-columns:minmax(0,45fr) minmax(0,55fr); }
}
@media (max-width:900px) {
    .swf-flow .swf-heading { grid-template-columns:minmax(0,1fr); }
    .swf-flow .swf-heading h2 { grid-row:auto; }
    .swf-flow .swf-phase { width:100%; margin-bottom:5px; }
    .swf-stage-output ul { column-gap:12px; }
}
@media (max-width:480px) {
    .swf-step summary { padding:8px 9px; gap:8px; }
    .swf-stage-top { flex-wrap:wrap; gap:6px 8px; }
    .swf-stage-meta { justify-content:flex-start; }
    .stm-swf .swf-stage-zoom { min-height:40px; }
}

@media (prefers-reduced-motion:no-preference) {
    .swf-stage .swf-stage-photo, .swf-ready:not(.swf-interactive) .swf-step[open] .swf-stage-photo {
        animation:swf-stage-enter .3s ease-out both;
    }
    @keyframes swf-stage-enter { from { opacity:.28; } }
}
@media (prefers-reduced-motion:reduce) {
    .swf-step summary { transition:none; }
}


@media (prefers-reduced-motion: no-preference) {
    .swf-reveal { animation: swf-rise .44s ease-out both; }
    .swf-challenges .swf-reveal { animation: swf-challenge-enter .3s ease-out both; }
    .swf-diagnosis:nth-child(2).swf-reveal { animation-delay: .08s; }
    .swf-diagnosis:nth-child(3).swf-reveal { animation-delay: .16s; }
    @keyframes swf-challenge-enter { from { opacity: 0; transform: translateY(8px); } }
    @keyframes swf-rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
    .swf-diagnosis, .swf-diagnosis-media img { transition: none; }
}
