.treatment-explainer {
  container-type: inline-size;
  color: var(--ink, #2d2926);
  background: var(--sand, #f5f3ef);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 38px);
  margin-bottom: 45px;
  min-width: 0;
}
.te-header h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.te-header p { margin-top: 15px; font-size: 14px; line-height: 1.75; max-width: 58ch; }
.te-tabs { display: flex; gap: clamp(18px, 4cqw, 38px); border-bottom: 1px solid var(--line, #e6e0da); margin-top: 26px; }
.te-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 13px 0 14px; font-size: 13px; color: var(--muted, #68605a); min-height: 46px; }
.te-tab:hover { color: var(--orange-dark, #a8441c); }
.te-tab[aria-selected="true"] { color: var(--ink, #2d2926); border-bottom-color: var(--orange-dark, #a8441c); }
.te-panel { padding-top: 28px; }
.te-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 28px; min-height: 255px; }
.te-copy { min-width: 0; }
.te-copy h3 { font-size: 25px; line-height: 1.22; letter-spacing: -.025em; }
.te-copy p { font-size: 14px; line-height: 1.8; margin-top: 17px; }
.te-figure { margin: 0; min-width: 0; }
.te-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.te-figure figcaption { font-size: 12px; line-height: 1.65; color: var(--muted, #68605a); text-align: center; margin: 12px auto 0; max-width: 32ch; }
.te-controls { border-top: 1px solid var(--line, #e6e0da); padding-top: 20px; margin-top: 27px; display: flex; flex-wrap: wrap; gap: 15px 24px; align-items: center; }
.te-play { background: var(--ink, #2d2926); color: #fff; border: 0; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; min-height: 46px; font-size: 13px; line-height: 1.4; flex-shrink: 0; transition: background 150ms; }
.te-play:hover { background: #51453b; }
.te-play svg { width: 19px; height: 19px; flex: none; }
.te-caption { font-size: 11px; line-height: 1.6; max-width: 34ch; margin: 0; }
.te-tab:focus-visible, .te-play:focus-visible, .te-panel:focus-visible { outline: 3px solid var(--orange-dark, #a8441c); outline-offset: 5px; }
.te-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.te-figure svg text { fill: #685646; font: 22px Inter, Arial, sans-serif; letter-spacing: -.02em; }
.te-figure svg .te-svg-small { font-size: 17px; letter-spacing: 0; }
.te-fixed-line { stroke: #a8441c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.te-air-box { fill: #fffaf5; stroke: #c5ab93; stroke-width: 1.5; }
.te-molecules { fill: #a8441c; }
.te-air-route { fill: none; stroke: #c8b4a1; stroke-width: 2; }
.te-mask { stroke: #a8441c; stroke-width: 2; fill: #f8e0ca; stroke-linecap: round; }
.te-mask circle { fill: #fffaf5; }
.te-air-travel { fill: none; stroke: #a8441c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 13; opacity: 0; }
.te-device > rect:first-child, .te-light-source rect { fill: #fffaf5; stroke: #a8441c; stroke-width: 2; }
.te-device > rect:nth-child(2) { fill: #f2e0ce; stroke: #c5ab93; stroke-width: 1.5; }
.te-device circle { fill: #ed7637; }
.te-wire { fill: none; stroke: #b69b83; stroke-width: 2; }
.te-skin, .te-surface-fill { fill: #ebd8c6; }
.te-skin-line { stroke: #b2957c; stroke-width: 1.5; }
.te-electrodes > circle { fill: #fffaf5; stroke: #a8441c; stroke-width: 2; }
.te-electrodes > circle:nth-child(n+3) { fill: #ed7637; stroke: none; }
.te-current { fill: none; stroke: #a8441c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 17; opacity: 0; }
.te-light-source path { stroke: #ed7637; stroke-width: 3; stroke-linecap: round; }
.te-body-surface { stroke: #a8441c; stroke-width: 3; }
.te-light-rays { fill: none; stroke: #a8441c; stroke-width: 1.7; opacity: .65; }
.te-light-motion { fill: #a8441c; opacity: 0; }
.treatment-explainer[data-step="1"] .te-air-box { stroke: #a8441c; fill: #ffe7d2; }
.treatment-explainer[data-step="1"] .te-electrodes > circle:first-child,
.treatment-explainer[data-step="1"] .te-electrodes > circle:nth-child(2) { fill: #ffe7d2; }
.treatment-explainer[data-step="1"] .te-light-rays { opacity: 1; }
/* The only moving sequence is the requested application explanation. One pass, no autoplay. */
.treatment-explainer[data-playback="playing"][data-step="1"] .te-air-travel-lower { animation: te-air-first 2200ms linear 1; }
.treatment-explainer[data-playback="playing"][data-step="1"] .te-air-travel-higher { animation: te-air-second 2200ms linear 1; }
.treatment-explainer[data-playback="playing"][data-step="1"] .te-ihht-lower .te-air-box { animation: te-lower-phase 2200ms linear 1; }
.treatment-explainer[data-playback="playing"][data-step="1"] .te-ihht-higher .te-air-box { animation: te-higher-phase 2200ms linear 1; }
.treatment-explainer[data-playback="playing"][data-step="1"] .te-current { animation: te-current-path 2200ms linear 1; }
.treatment-explainer[data-playback="playing"][data-step="1"] .te-light-motion { animation: te-light-travel 2200ms cubic-bezier(.16,1,.3,1) 1; }
@keyframes te-air-first { 0% { opacity: 0; stroke-dashoffset: 40; } 8%, 44% { opacity: 1; } 49%, 100% { opacity: 0; stroke-dashoffset: -40; } }
@keyframes te-air-second { 0%, 49% { opacity: 0; stroke-dashoffset: 40; } 55%, 93% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -40; } }
@keyframes te-lower-phase { 0%, 48% { fill: #f6b57e; } 52%, 100% { fill: #fffaf5; } }
@keyframes te-higher-phase { 0%, 48% { fill: #fffaf5; } 52%, 100% { fill: #f6b57e; } }
@keyframes te-current-path { 0% { opacity: 0; stroke-dashoffset: 44; } 15%, 85% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -44; } }
@keyframes te-light-travel { 0% { opacity: 0; transform: translateX(0); } 12%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(220px); } }
@container (max-width: 610px) {
  .te-layout { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .te-copy h3 { font-size: 25px; }
  .te-figure { max-width: 440px; width: 100%; margin-inline: auto; }
  .te-figure svg { max-height: 240px; }
  .te-copy p { max-width: 62ch; }
}
@container (max-width: 330px) {
  .te-header h2 { font-size: 28px; }
  .te-tabs { gap: 0; justify-content: space-between; }
  .te-tab { font-size: 12px; }
  .te-copy h3 { font-size: 23px; }
  .te-copy p { font-size: 13px; }
  .te-controls { gap: 14px; }
  .te-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .treatment-explainer *, .treatment-explainer *::before, .treatment-explainer *::after { animation: none !important; transition: none !important; }
}
