/* Общий вид живых схем: рамка, панель управления под схемой, крупные кнопки для пальца */
.live{margin:24px 0;border:1px solid var(--line);border-radius:var(--r);background:#fff;padding:12px;overflow:hidden}
.live svg{display:block;width:100%;height:auto}
.live__ctl{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:10px;font-size:15px}
.live__btn{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font:500 15px var(--body);cursor:pointer;min-height:40px}
.live__btn[aria-pressed="true"]{background:#e30613;border-color:#e30613;color:#fff}
.live__rng{display:flex;flex-direction:column;min-width:200px;flex:1}
.live__rng input{width:100%}
.live__out{margin-top:10px;padding:10px 12px;background:var(--alt);border-radius:8px;font-size:15px}
.live__note{margin-top:6px;color:var(--muted);font-size:13px}
@media (prefers-reduced-motion: reduce){.live *{animation:none!important;transition:none!important}}
/* Модули живых схем (12.11.2026): обёртка с прокруткой для режима «Крупнее», табло, группы кнопок, ползунки под палец */
.live__wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:6px}
.live__svg{touch-action:pan-x pan-y pinch-zoom}
.live--zoom .live__wrap svg{width:640px;max-width:none}
.live__zoom{display:block;margin:6px 0 0 auto;border:1px solid var(--line);background:#fff;border-radius:6px;padding:4px 12px;font:500 14px var(--body);color:var(--muted);cursor:pointer;min-height:34px}
.live__ctl{gap:8px}
.live__ctl--rng{gap:10px 18px}
.live__ctl--rng:empty{display:none}
.live__btn{min-height:44px;padding:9px 15px;color:#222;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;line-height:1.2;text-align:left}
.live__btn::before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px;background:#b9bec7;vertical-align:0}
.live__btn[aria-pressed="true"]::before{background:#fff}
.live__btn:focus-visible,.live__zoom:focus-visible{outline:3px solid #0b6fc4;outline-offset:2px}
.live__seg{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%}
.live__segl{font-size:14px;color:var(--muted);margin-right:4px}
.live__btn--seg::before{border-radius:2px}
.live__rng>span{display:flex;justify-content:space-between;gap:10px;font-size:15px}
.live__rng b{white-space:nowrap}
.live__rng input{height:36px;margin:2px 0 0;accent-color:#e30613;cursor:pointer}
.live__out{line-height:1.5;min-height:3em}
.live__out .is-ok{color:#13703a}
.live__out .is-warn{color:#8a5a00}
.live__out .is-bad{color:#b0000b;font-weight:500}
.live__print{font-size:14px;margin:-14px 0 24px}
.live__rng>span>span{min-width:0}
@media (max-width:480px){.live{padding:8px}.live__btn{flex:1 1 40%;font-size:15px}.live__segl{width:100%}.live__rng{min-width:100%}}

/* контраст подписей схем 12.11.2026: светлые цвета потоков (жёлтый, оранжевый, бирюза, серый) в тексте темнее до 4.6:1 на белом; линии не трогаем */
svg text[fill="#D49500"],svg tspan[fill="#D49500"],svg text[fill="#d49500"],svg tspan[fill="#d49500"]{fill:#986b00}
svg text[fill="#F07800"],svg tspan[fill="#F07800"],svg text[fill="#f07800"],svg tspan[fill="#f07800"]{fill:#b65b00}
svg text[fill="#0F9488"],svg tspan[fill="#0F9488"],svg text[fill="#0f9488"],svg tspan[fill="#0f9488"]{fill:#0d8277}
svg text[fill="#B07FD0"],svg tspan[fill="#B07FD0"],svg text[fill="#b07fd0"],svg tspan[fill="#b07fd0"]{fill:#8c65a6}
svg text[fill="#8592A6"],svg tspan[fill="#8592A6"],svg text[fill="#8592a6"],svg tspan[fill="#8592a6"]{fill:#6a7484}
svg text[fill="#9AA0A8"],svg tspan[fill="#9AA0A8"],svg text[fill="#9aa0a8"],svg tspan[fill="#9aa0a8"]{fill:#6e7378}
svg text[fill="#3D8B3D"],svg tspan[fill="#3D8B3D"],svg text[fill="#3d8b3d"],svg tspan[fill="#3d8b3d"]{fill:#398239}
svg text[fill="#8A8F98"],svg tspan[fill="#8A8F98"],svg text[fill="#8a8f98"],svg tspan[fill="#8a8f98"]{fill:#71757c}
svg text[fill="#94A3B8"],svg tspan[fill="#94A3B8"],svg text[fill="#94a3b8"],svg tspan[fill="#94a3b8"]{fill:#6a7584}
svg text[fill="#F59E0B"],svg tspan[fill="#F59E0B"],svg text[fill="#f59e0b"],svg tspan[fill="#f59e0b"]{fill:#a16807}
svg text[fill="#F97316"],svg tspan[fill="#F97316"],svg text[fill="#f97316"],svg tspan[fill="#f97316"]{fill:#bd5710}
svg text[fill="#D97706"],svg tspan[fill="#D97706"],svg text[fill="#d97706"],svg tspan[fill="#d97706"]{fill:#ad5f04}
