.wt-flow {
  --wt-ink:#203a53; --wt-feed:#3860ac; --wt-product:#237a73; --wt-drain:#96623a;
  --wt-rule:#c5d7e3; --wt-tint:#eff5fb; color:var(--wt-ink);
  container:treatment-flow / inline-size;
}
.wt-flow-heading {display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px 18px; margin-bottom:16px}
.wt-flow .wt-flow-heading h2 {margin:0; font-size:clamp(24px,2vw,32px); line-height:1.15; letter-spacing:-.025em}
.wt-flow .wt-flow-heading p {margin:6px 0 0; color:#4c6579; font-size:14px; line-height:1.45}
.wt-flow-modes {display:flex; gap:3px; padding:3px; border:1px solid var(--wt-rule); border-radius:6px; background:white}
.wt-flow button,.wt-flow-zoom button {font:inherit; cursor:pointer}
.wt-flow-modes button,.wt-tabs button {border:0; background:transparent; padding:7px 12px; border-radius:4px; color:#38556c; font-size:14px; line-height:1.3}
.wt-flow-modes button[aria-pressed=true],.wt-tabs button[aria-pressed=true] {background:#213f60;color:white}
.wt-flow :is(button,summary):focus-visible {outline:3px solid #558ed1;outline-offset:2px}
.wt-flow-sheet {border:1px solid #b9cddd; border-radius:8px;overflow:hidden}
.wt-board-bar {min-height:44px;display:flex;align-items:center;color:#385469; background:#fff;border-bottom:1px solid var(--wt-rule)}
.wt-board-brand {align-self:stretch;display:inline-flex;align-items:center;gap:7px;padding:7px 17px;background:#213f67;color:white;font-size:17px;letter-spacing:-.045em}
.wt-board-brand img,.wt-flow-zoom header img {width:25px;height:25px;object-fit:contain;border-radius:50%;background:white}
.wt-model-ref {margin:0 15px;color:#213f60;font-weight:700;font-size:13px}
.wt-legend {display:flex;gap:10px 16px;border-left:1px solid #d6dfe7;padding-left:15px;align-items:center;flex-wrap:wrap}
.wt-legend span {display:inline-flex;align-items:center;gap:5px;font-size:12px}
.wt-legend span:before {content:"";width:20px;border-top:2px solid var(--wt-feed)}
.wt-legend .wt-product:before {border-color:var(--wt-product)}
.wt-legend .wt-drain:before {border-color:var(--wt-drain);border-top-style:dashed}
.wt-run {--wt-art-height:clamp(139px,14cqi,187px);--wt-gap:clamp(13px,2.7cqi,42px);--wt-edge:clamp(21px,3.5cqi,55px);position:relative;padding:15px var(--wt-edge) 17px;background:var(--wt-tint);border-left:3px solid var(--wt-feed)}
.wt-run + .wt-run {border-top:1px solid var(--wt-rule)}
.wt-run.wt-back {--wt-feed:#277b73;--wt-tint:#f0f8f5}
.wt-flow[data-mode=regeneration] .wt-run {--wt-feed:#8a6745;--wt-tint:#faf6ef}
.wt-run-head {height:28px;display:flex;align-items:center;gap:12px}
.wt-run-head h3 {font-size:clamp(16px,1.5cqi,21px);font-weight:700;margin:0;color:var(--wt-ink)}
.wt-run-head > span {font-size:12px;color:var(--wt-feed);font-weight:600}
.wt-run-head > span:not(:empty)::before {content:"→ ";font-weight:800}
.wt-flow .wt-stages {--wt-total:var(--wt-cols);list-style:none;padding:0;margin:7px 0 0;display:grid;grid-template-columns:repeat(var(--wt-total),minmax(0,1fr));gap:var(--wt-gap)}
.wt-back .wt-stages {direction:rtl}
.wt-stages .wt-item {list-style:none;direction:ltr;min-width:0;position:relative;text-align:center;margin:0;padding:0}
.wt-item:not(:first-child):before,.wt-item:not(:first-child):after {content:"";position:absolute;z-index:1;pointer-events:none;top:calc(var(--wt-art-height) / 2)}
.wt-item:not(:first-child):before {left:calc(-1 * var(--wt-gap) - 3px);width:calc(var(--wt-gap) + 6px);border-top:1px solid var(--wt-feed)}
.wt-item:not(:first-child):after {left:-1px;width:0;height:0;border-left:5px solid var(--wt-feed);border-block:3px solid transparent;transform:translateY(-2.5px)}
.wt-back .wt-item:not(:first-child):before {left:auto;right:calc(-1 * var(--wt-gap) - 3px)}
.wt-back .wt-item:not(:first-child):after {left:auto;right:-1px;transform:translateY(-2.5px) rotate(180deg)}
.wt-run.wt-turn-out:after,.wt-run.wt-turn-in:after {content:"";position:absolute;width:calc(var(--wt-edge) * .55);right:calc(var(--wt-edge) * .25);border-right:1px solid #478399;pointer-events:none}
.wt-turn-out:after {top:calc(50px + var(--wt-art-height) / 2);bottom:-1px;border-top:1px solid #478399;border-top-right-radius:5px}
.wt-turn-in:after {top:0;height:calc(50px + var(--wt-art-height) / 2);border-bottom:1px solid #478399;border-bottom-right-radius:5px}
.wt-flow-step {width:100%;display:grid;grid-template-rows:var(--wt-art-height) auto;justify-items:center;align-items:center;gap:7px;padding:0 3px;border:0;color:var(--wt-ink);background:transparent;border-radius:6px}
.wt-art {position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding:7px 5px 2px;box-sizing:border-box}
.wt-art > img,.wt-art .wt-pair {display:block;width:100%;height:100%;max-width:270px;object-fit:contain}
.wt-art > .wt-pair,.wt-pair,.wt-big-art > .wt-pair {display:flex;gap:2px;align-items:center;justify-content:center}
.wt-pair img {display:block;object-fit:contain;max-width:48%;width:48%;height:100%}
.wt-flow-step:hover .wt-step-title,.wt-flow-step[aria-pressed=true] .wt-step-title {color:#155598;text-decoration:underline;text-underline-offset:4px}
.wt-flow-step:hover .wt-art {transform:translateY(-2px)}
.wt-step-title {display:block;text-align:center;font-size:clamp(15px,1.3cqi,19px);line-height:1.3;font-weight:720}
.wt-step-title small {font-size:11px;margin-right:6px;color:var(--wt-feed);font-weight:700;font-variant-numeric:tabular-nums}
.wt-flow .wt-step-note {max-width:32ch;margin:6px auto 0;color:#415d72;font-size:13px;line-height:1.5;text-wrap:pretty}
.wt-actions {display:flex;justify-content:center;gap:0 12px;flex-wrap:wrap}
.wt-actions button,.wt-maintain {border:0;background:transparent;color:#22588a;padding:5px 0;font-size:12px;line-height:1.4}
.wt-actions button:hover,.wt-maintain:hover {text-decoration:underline}
.wt-out-row {display:flex;justify-content:flex-end;align-items:center;gap:8px 20px;flex-wrap:wrap;margin:16px 0 0;padding:10px 0 0;border-top:1px solid #c9d9e3}
.wt-back .wt-out-row {justify-content:flex-start}
.wt-port-origin {color:#2d4a61;font-size:12px}
.wt-port-branches {display:grid;gap:5px;position:relative;padding-left:18px;min-width:0}
.wt-port-branches:before {content:"";position:absolute;left:-13px;width:14px;top:50%;border-top:1px solid #647f8f}
.wt-port {display:flex;align-items:center;position:relative;gap:6px;line-height:1.35;flex-wrap:wrap}
.wt-port:before {content:"";position:absolute;width:12px;left:-18px;height:calc(50% + 3px);top:50%;border-top:1px solid currentColor;border-left:1px solid currentColor}
.wt-port:last-child:before {top:auto;bottom:50%;border-top:0;border-bottom:1px dashed currentColor}
.wt-port > span,.wt-port > b {font-size:12px}
.wt-port > b:before {content:"→ ";font-weight:650}
.wt-port.wt-product {color:var(--wt-product)}
.wt-port.wt-drain {color:var(--wt-drain)}
.wt-out-label {display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650}
.wt-out-label:before {content:"→";color:var(--wt-product)}
.wt-out-label.wt-product {color:var(--wt-product)}
.wt-out-label.wt-drain,.wt-out-label.wt-drain:before {color:var(--wt-drain)}
.wt-mini,.wt-out-module {display:inline-flex;align-items:center;gap:6px;border:1px solid #c6d6df;color:#294759;background:white;border-radius:5px;padding:4px 8px;line-height:1.25}
.wt-flow .wt-mini,.wt-flow .wt-out-module {font-size:13px}
.wt-mini:hover,.wt-out-module:hover {border-color:#557c9f}
.wt-mini > span,.wt-out-module > span {width:54px;height:38px;display:grid;place-items:center}
.wt-mini img,.wt-out-module img {width:100%;height:38px;object-fit:contain}
.wt-flow-side {display:flex;align-items:center;gap:8px 20px;padding:12px clamp(16px,3cqi,45px);border-top:1px solid var(--wt-rule);background:#f5f8fa}
.wt-flow-side h4 {min-width:7.6em;margin:0;color:#36546a;font-size:14px}
.wt-flow-side > div {display:flex;flex-wrap:wrap;gap:6px}
.wt-flow .wt-source {margin:0;padding:10px clamp(16px,3cqi,45px);font-size:12px;color:#52677a;border-top:1px solid var(--wt-rule);line-height:1.5}
.wt-flow-zoom {position:fixed;inset:0;margin:auto;padding:0;max-width:calc(100vw - 24px);width:800px;border:1px solid #afc5d4;border-radius:10px;max-height:90dvh;overflow:auto;color:#233d57;background:white;box-shadow:0 24px 80px #112b4840}
.wt-flow-zoom::backdrop {background:#142b42a6}
.wt-flow-zoom header {display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-bottom:1px solid var(--wt-rule,#c5d7e3)}
.wt-flow-zoom header div {display:flex;align-items:center;gap:7px;font-size:15px;color:#294b81}
.wt-flow-zoom header span {border-left:1px solid #bdcdd9;font-size:13px;font-weight:650;padding-left:10px;margin-left:5px;color:#486075}
.wt-close {background:#fff;border:1px solid #bdcdd9;border-radius:50%;width:36px;height:36px;font-size:23px;color:#273f54}
.wt-pop {padding:18px clamp(15px,3vw,28px) 24px}
.wt-pop h3 {margin:0 0 12px;font-size:clamp(21px,2.4vw,30px)}
.wt-tabs {display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}
.wt-tabs button {border:1px solid #c3d4df;font-size:13px}
.wt-popup-body {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
.wt-view-media {margin:0}
.wt-big-art {display:grid;place-items:center;border:1px solid #d6e1e8;border-radius:6px;background:#f4f8fb;height:clamp(225px,36vh,370px);padding:10px}
.wt-big-art > :is(img,svg,.wt-pair) {object-fit:contain;width:100%;height:100%;min-height:0}
.wt-view-media figcaption {font-size:12px;color:#4e687a;line-height:1.45;margin-top:5px}
.wt-size-keys {display:grid;grid-template-columns:max-content 1fr;gap:3px 12px;margin-block:5px;color:#314e65}
.wt-size-art {height:clamp(190px,30vh,280px);padding:5px}
.wt-flow-detail p {margin:0 0 12px;color:#385367;line-height:1.6;font-size:15px}
.wt-flow-detail .wt-flow-choice {font-weight:650;color:#215c69}
.wt-fact {border-block:1px solid #d3e0e7;padding:10px 0 0;margin-bottom:10px}
.wt-fact small {color:#456680;font-size:12px}
.wt-fact h4 {margin:4px 0;font-size:16px}
.wt-maintain {font-size:14px}
.wt-zoom-locator {fill:#6b94d415;stroke:#154e97;stroke-width:3}
@container treatment-flow (max-width: 760px) {
  .wt-run {--wt-art-height:130px;--wt-gap:12px;--wt-edge:18px}
  .wt-step-title {font-size:15px}
  .wt-flow .wt-step-note {font-size:12px}
  .wt-run-head {height:auto;min-height:26px}
}
@container treatment-flow (max-width: 615px) {
  .wt-flow-heading {margin-bottom:11px}
  .wt-board-bar {flex-wrap:wrap}
  .wt-board-brand {font-size:15px;padding:7px 12px}
  .wt-model-ref {margin-inline:auto 12px}
  .wt-legend {width:100%;padding:7px 12px;border:0;border-top:1px solid var(--wt-rule);gap:8px 12px}
  .wt-legend span {font-size:11px}
  .wt-legend span:before {width:12px}
  .wt-run {--wt-art-height:97px;padding:12px 13px 14px}
  .wt-run-head h3 {font-size:16px}
  .wt-run-head > span {font-size:11px}
  .wt-flow .wt-stages {grid-template-columns:1fr;gap:10px;margin-top:9px}
  .wt-back .wt-stages {direction:ltr}
  .wt-stages .wt-item {display:grid;grid-template-columns:clamp(87px,30cqi,145px) 1fr;grid-template-rows:1fr auto 1fr;column-gap:10px;text-align:start;align-items:center;min-height:100px}
  .wt-item .wt-flow-step {grid-column:1 / -1;grid-row:1 / -1;grid-template-columns:clamp(87px,30cqi,145px) 1fr;grid-template-rows:1fr;gap:10px;align-self:stretch;justify-items:start;padding:0}
  .wt-item .wt-flow-step .wt-step-title {grid-column:2;align-self:start;text-align:start;padding-top:5px}
  .wt-item .wt-art {grid-column:1;height:var(--wt-art-height);align-self:center;max-height:100%}
  .wt-item:not(:first-child):before,.wt-back .wt-item:not(:first-child):before {top:-10px;left:clamp(43px,15cqi,72px);width:0;height:11px;border-top:0;border-left:1px solid var(--wt-feed)}
  .wt-item:not(:first-child):after,.wt-back .wt-item:not(:first-child):after {top:-2px;left:clamp(43px,15cqi,72px);right:auto;border:0;border-top:4px solid var(--wt-feed);border-inline:3px solid transparent;transform:translateX(-2.5px)}
  .wt-flow .wt-step-note {grid-column:2;grid-row:2;margin:28px 0 0;font-size:12px;pointer-events:none;z-index:1}
  .wt-actions {grid-column:2;grid-row:3;justify-content:start;align-self:start;z-index:1}
  .wt-actions button {font-size:11px}
  .wt-run.wt-turn-out:after,.wt-run.wt-turn-in:after {display:none}
  .wt-flow-side {display:block;padding:10px 13px}
  .wt-flow-side h4 {margin-bottom:6px}
  .wt-out-row,.wt-back .wt-out-row {justify-content:start;gap:8px 12px}
  .wt-flow .wt-source {padding:9px 12px}
}
@media(max-width:620px) {
  .wt-popup-body {grid-template-columns:1fr;gap:13px}
  .wt-big-art {height:clamp(180px,30dvh,245px)}
  .wt-pop {padding:14px}
  .wt-tabs button {padding:6px 8px;font-size:12px}
}
@media(prefers-reduced-motion:no-preference) {.wt-art {transition:transform .15s ease}}

