.stream-flow{--wire:#bb7280;--flow-ink:#f2ecee;--flow-line:#383135;--flow-row:58px}
.flow-head{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:clamp(24px,6vw,92px);align-items:end;margin-bottom:clamp(23px,3vw,45px)}
.flow-head h2{max-width:19ch}.flow-head p{max-width:44ch;margin:0;color:#d2cdd1;font-size:clamp(16px,1.35vw,21px);font-weight:500;line-height:1.5;letter-spacing:-.017em;text-wrap:pretty}
.flow-console{position:relative;border:1px solid #41363b;border-top:2px solid #a86673;border-radius:11px;overflow:hidden;background:#121113;color:var(--flow-ink)}
.flow-source-switch,.flow-targets{padding:0;margin:0;border:0;min-width:0}
.flow-source-switch{display:flex;align-items:center;gap:3px;margin:19px clamp(14px,3vw,47px) 0}
.flow-source-switch legend{float:left;padding:6px 14px 6px 0;color:#c5bcc1;font-size:12px;font-weight:600;line-height:24px}
.flow-source-switch label,.flow-targets label{position:relative;display:block;cursor:pointer}
.flow-source-switch input,.flow-targets input{position:absolute;left:0;top:50%;width:1px;height:1px;opacity:0;margin:0}
.flow-source-switch label span{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 11px;color:#beb5bc;background:#1b181b;border:1px solid transparent;border-radius:5px;font-weight:600;font-size:13px;line-height:1.3}
.flow-source-switch input:checked+span{background:#33282e;color:#fff3f3;border-color:#84616c}.flow-source-switch label:hover span,.flow-targets label:hover .flow-target{border-color:#81616d}.flow-source-switch input:focus-visible+span,.flow-targets input:focus-visible+.flow-target{outline:2px solid #ff8290;outline-offset:2px}
.flow-map{display:grid;align-items:center;grid-template-columns:minmax(92px,.82fr) minmax(22px,.43fr) minmax(90px,.55fr) minmax(43px,.59fr) minmax(220px,1.24fr);padding:12px clamp(14px,3vw,47px) 16px;isolation:isolate}
.flow-origin{position:relative;z-index:0;display:flex;align-items:center;justify-content:center;min-width:0;height:151px}
.flow-origin::after{content:'';position:absolute;top:50%;height:1px;left:50%;right:-1px;background:var(--wire);z-index:-1}
.flow-device{position:relative;width:74px;height:123px;border:3px solid #565055;border-radius:13px;background:#17151a;box-shadow:0 0 0 2px #161417,0 5px 15px #05040580}
.flow-device img{width:100%;height:100%;display:block;object-fit:cover;object-position:51% 48%;border-radius:9px}
.flow-device::after{content:'';position:absolute;top:2px;left:50%;width:17px;height:4px;transform:translateX(-50%);background:#282327;border-radius:3px}
.flow-origin-name{position:absolute;top:calc(50% + 75px);inset-inline:0;text-align:center;color:#c7bec3;font-size:12px;font-weight:600}
.flow-console[data-source=obs] .flow-device{width:min(100%,150px);height:auto;aspect-ratio:16/10;border-radius:6px;border-width:4px}
.flow-console[data-source=obs] .flow-device img{border-radius:2px}.flow-console[data-source=obs] .flow-device::after{top:auto;bottom:-9px;width:32px;height:4px;background:#787078}
.flow-console[data-source=obs] .flow-origin-name{top:calc(50% + 56px)}
.flow-junction{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px 6px;min-width:0;color:#ece4e7;text-align:center}
.flow-junction img{display:block;max-width:100%;height:auto}.flow-junction>span{font-size:13px;font-weight:700;letter-spacing:.02em}
.flow-junction::before,.flow-junction::after{content:'';height:1px;width:6px;background:var(--wire);position:absolute;top:50%}.flow-junction::before{left:-1px}.flow-junction::after{right:-1px}
.flow-wire-in,.flow-wire-out,.flow-wire-mobile{width:100%;overflow:visible;pointer-events:none}.flow-wire-in{height:10px}.flow-wire-out{height:calc(var(--flow-row) * 5)}.flow-wire-mobile{display:none}
.flow-line,.flow-current{fill:none;stroke:var(--wire);stroke-width:1;stroke-linecap:round}.flow-map svg path,.flow-map svg use{vector-effect:non-scaling-stroke}.flow-current{stroke:#ffced4;stroke-width:2.6;opacity:0;stroke-dasharray:.11 1;stroke-dashoffset:.14}
.flow-targets{display:grid;grid-template-rows:repeat(5,var(--flow-row));align-items:center}.flow-targets label{display:flex;align-items:center;min-height:44px}
.flow-target{box-sizing:border-box;display:flex;gap:12px;align-items:center;width:100%;padding:6px 10px 6px 12px;border:1px solid #493b40;border-radius:6px;background:#191619;line-height:1.14}
.flow-target>img{display:block;width:25px;height:25px;object-fit:contain;flex:none}.flow-target>span{min-width:0}.flow-target strong,.flow-target small{display:block}.flow-target strong{font-weight:700;font-size:15px}.flow-target small{margin-top:3px;color:#c3b9c0;font-size:12px;font-weight:500}
.flow-targets input:checked+.flow-target{border-color:#b47c89;background:#292025}.flow-info{margin:0 clamp(14px,3vw,47px);border-top:1px solid var(--flow-line);min-height:77px;display:grid;align-items:center}
.flow-info p{display:flex;gap:clamp(12px,2.2vw,34px);align-items:baseline;margin:0;padding:15px 0;color:#cdc5cb;font-size:14px;line-height:1.45;max-width:90ch}.flow-info strong{min-width:9ch;color:#fcf2f4;font-weight:700}
.flow-after{display:flex;align-items:baseline;justify-content:space-between;gap:20px 34px;margin-top:14px}.flow-after>p{margin:0;font-size:14px;color:#cabfc6;line-height:1.55}.flow-after>p strong{color:var(--ink)}.flow-after>p a{display:inline-block;margin-left:4px;text-decoration:underline;text-underline-offset:3px;color:#e7dce2}.flow-after .aside-note{margin:0;max-width:37ch}
@keyframes travel-packet{0%{opacity:0;stroke-dashoffset:.14}12%{opacity:1}82%{opacity:1}100%{opacity:0;stroke-dashoffset:-1}}
@keyframes arrive-packet{0%,100%{box-shadow:none}45%{box-shadow:inset 2px 0 #f596a4}}
@media(prefers-reduced-motion:no-preference){.flow-console[data-travel] .flow-wire-in .flow-current{animation:travel-packet .6s ease-in-out both}.flow-console[data-travel] .flow-wire-out .flow-current,.flow-console[data-travel] .flow-wire-mobile .flow-current{animation:travel-packet .98s .54s ease-out both}.flow-console[data-travel] .flow-target{animation:arrive-packet .6s 1.2s ease-out both}}
@media(max-width:1024px){.flow-head{grid-template-columns:minmax(0,1fr);gap:12px}.flow-head p{font-size:17px;max-width:58ch}.flow-after{align-items:start}.flow-target{gap:8px}.flow-junction>span{font-size:12px}}
@media(max-width:650px){
  .stream-flow{--flow-row:48px}.flow-head{gap:9px;margin-bottom:18px}.flow-head h2{max-width:15ch}.flow-head p{font-size:15px}
  .flow-map{grid-template-columns:minmax(0,1fr) minmax(16px,.28fr) minmax(0,.83fr);grid-template-rows:108px 24px auto;padding:6px 12px 9px}
  .flow-source-switch{margin:11px 12px 6px}.flow-source-switch legend{padding-right:8px;font-size:11px}.flow-source-switch label span{min-height:33px;font-size:12px;padding:0 8px}
  .flow-origin{height:92px}.flow-device{width:47px;height:77px;border-width:2px;border-radius:9px}.flow-device img{border-radius:6px}.flow-device::after{height:3px;width:11px}.flow-origin-name{top:calc(50% + 42px);font-size:10px}
  .flow-console[data-source=obs] .flow-device{width:88px;border-width:3px}.flow-console[data-source=obs] .flow-origin-name{top:calc(50% + 40px)}
  .flow-junction{align-self:stretch;gap:2px;padding:11px}.flow-junction img{width:90px}.flow-junction::after{top:auto;bottom:0;height:20px;width:1px;left:50%;right:auto}.flow-junction>span{font-size:11px}
  .flow-wire-out{display:none}.flow-wire-mobile{display:block;grid-column:1/-1;height:24px}
  .flow-targets{position:relative;grid-column:1/-1;padding-left:8%;grid-template-rows:repeat(5,var(--flow-row))}.flow-targets::before{content:'';position:absolute;left:3%;top:0;bottom:calc(var(--flow-row) / 2);width:1px;background:var(--wire)}
  .flow-targets label::before{content:'';position:absolute;left:-5.44%;top:50%;width:5.44%;height:1px;background:var(--wire)}
  .flow-target{border-radius:5px;padding:6px 9px;gap:8px}.flow-target>img{width:21px;height:21px}.flow-target>span{display:flex;flex-flow:row wrap;align-items:baseline;gap:2px 7px}.flow-target strong{font-size:13px}.flow-target small{font-size:11px;margin:0}
  .flow-info{margin:0 12px;min-height:96px}.flow-info p{display:block;font-size:13px;padding:12px 0}.flow-info strong{display:block;margin-bottom:4px}
  .flow-after{display:block;margin-top:10px}.flow-after>p{font-size:13px}.flow-after .aside-note{max-width:100%;margin-top:2px}
}
@media(max-width:370px){.flow-target>span{display:block}.flow-target small{margin-top:2px}.flow-source-switch legend{font-size:10.5px}}
