/* Prognex C hero. Scoped to the graphic only; no global layout rules. */
#prognex-site .hero-interface{height:434.5px;width:100%;max-width:620px;min-width:0;justify-self:end;display:grid;grid-template-rows:12px minmax(0,1fr) 17px;gap:16px;padding:14px 16px 8px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(#343c4240 1px,transparent 1px),linear-gradient(90deg,#343c4240 1px,transparent 1px),var(--bg);background-size:24px 24px;overflow:hidden}
#prognex-site .hi-header,#prognex-site .hi-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font:9px/12px 'IBM Plex Mono',monospace;white-space:nowrap}
#prognex-site .hi-header>span:last-child{flex-shrink:0}
#prognex-site .hi-footer{font-size:8px;border-top:1px solid var(--line);padding-top:5px}
#prognex-site .hi-footer>span:last-child{font-family:Arial,sans-serif;font-size:12px}
#prognex-site .hi-system{--hi-gap:14px;display:grid;grid-template-rows:minmax(0,1fr) 22px 94px 40px 103px;min-width:0;min-height:0}
#prognex-site .hi-hmi{min-height:0;border:1px solid #505a61;border-radius:4px;background:#161b1e;display:grid;grid-template-rows:30px minmax(0,1fr)}
#prognex-site .hi-hmi-title{display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid var(--line)}
#prognex-site .hi-hmi-title strong{font-size:17px;font-weight:600;line-height:1}
#prognex-site .hi-hmi-title span{font:9px/12px 'IBM Plex Mono',monospace;color:var(--muted)}
#prognex-site .hi-hmi-led{display:block;width:4px;height:4px;background:var(--orange);border-radius:50%;margin-left:auto;flex-shrink:0}
#prognex-site .hi-screen{padding:10px 12px;min-width:0;min-height:0;display:flex;align-items:center}
#prognex-site .hi-screen-svg{display:block;width:100%;height:100%}
#prognex-site .hi-plc{width:78%;margin:auto;height:94px;min-width:0;border:1px solid #66727c;border-radius:4px;background:var(--panel);display:grid;grid-template-columns:36% minmax(0,1fr);padding:12px 14px;gap:12px}
#prognex-site .hi-cpu{border-right:1px solid #505a61;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
#prognex-site .hi-cpu>span{max-width:10ch;overflow-wrap:anywhere;font:9px/12px 'IBM Plex Mono',monospace;color:var(--orange)}
#prognex-site .hi-cpu>strong{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.025em}
#prognex-site .hi-modules{display:flex;align-items:center;min-width:0;min-height:0}
#prognex-site .hi-module-svg{display:block;width:100%;height:100%}
#prognex-site .hi-uplink,#prognex-site .hi-bus{min-height:0;min-width:0}
#prognex-site .hi-bus{margin-inline:calc(var(--hi-gap)*-.5)}
#prognex-site .hi-route{display:block;width:100%;height:100%;overflow:visible}
#prognex-site .hi-endpoints{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--hi-gap);min-width:0}
#prognex-site .hi-device{border:1px solid #505a61;border-radius:4px;background:var(--panel);padding:6px 10px;min-width:0;position:relative;display:grid;grid-template-rows:60px 17px 11px;align-content:center}
#prognex-site .hi-device>i{position:absolute;width:3px;height:3px;right:8px;top:8px;border-radius:50%;background:var(--orange)}
#prognex-site .hi-device-icon{height:60px;width:100%;max-width:100%;display:block;margin:0}
#prognex-site .hi-device>strong{font-size:14px;font-weight:500;line-height:17px;white-space:nowrap}
#prognex-site .hi-device>small{font:8px/11px 'IBM Plex Mono',monospace;color:var(--muted);white-space:nowrap}
#prognex-site .hi-packet{opacity:0}
/* A single 8 s cycle. Signals describe commands, outputs, input feedback, then HMI feedback. */
#prognex-site .hero-interface.motion-ready .hi-packet--command{animation:hi-command 8s linear 1 both}
#prognex-site .hero-interface.motion-ready .hi-packet--output{animation:hi-output 8s linear 1 both}
#prognex-site .hero-interface.motion-ready .hi-packet--input{animation:hi-input 8s linear 1 both}
#prognex-site .hero-interface.motion-ready .hi-packet--return{animation:hi-return 8s linear 1 both}
#prognex-site .hero-interface.motion-ready .hi-led{animation:hi-cpu 8s ease-in-out 1 both}
#prognex-site .hero-interface.motion-ready .hi-hmi-led{animation:hi-hmi 8s ease-in-out 1 both}
#prognex-site .hero-interface.motion-ready :is(.hi-device--robot,.hi-device--drive){animation:hi-active-output 8s ease-in-out 1 both}
#prognex-site .hero-interface.motion-ready .hi-device--sensor{animation:hi-active-input 8s ease-in-out 1 both}
#prognex-site .hero-interface:not(.is-visible) *,#prognex-site .hero-interface.motion-paused *{animation-play-state:paused!important}
@keyframes hi-command{0%,5%{opacity:0;stroke-dashoffset:6}7%{opacity:.8}20%{opacity:.8;stroke-dashoffset:-100}22%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes hi-output{0%,28%{opacity:0;stroke-dashoffset:6}30%{opacity:.75}48%{opacity:.75;stroke-dashoffset:-100}50%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes hi-input{0%,53%{opacity:0;stroke-dashoffset:6}55%{opacity:.75}72%{opacity:.75;stroke-dashoffset:-100}74%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes hi-return{0%,78%{opacity:0;stroke-dashoffset:6}80%{opacity:.8}93%{opacity:.8;stroke-dashoffset:-100}95%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes hi-cpu{0%,18%,32%,70%,82%,100%{opacity:1}24%,76%{opacity:.3}}
@keyframes hi-hmi{0%,78%,100%{opacity:1}88%{opacity:.35}}
@keyframes hi-active-output{0%,36%,65%,100%{border-color:#505a61}45%,56%{border-color:#f7931e}}
@keyframes hi-active-input{0%,50%,80%,100%{border-color:#505a61}58%,72%{border-color:#f7931e}}
@container(max-width:1050px){#prognex-site .hi-plc{width:88%;padding:12px 10px;gap:10px}#prognex-site .hi-system{--hi-gap:8px}#prognex-site .hi-device{padding:6px 8px}}
@container(max-width:600px){#prognex-site .hero-interface{height:426.5px;max-width:340px;margin:auto;padding-left:12px;padding-right:12px}#prognex-site .hi-header{font-size:8.5px}#prognex-site .hi-footer{font-size:7px}#prognex-site .hi-device{padding:6px 7px}#prognex-site .hi-device>small{font-size:7.5px}#prognex-site .hi-plc{width:88%}}
@media(prefers-reduced-motion:reduce){#prognex-site .hero-interface *{animation:none!important;transition:none!important}#prognex-site .hero-interface .hi-packet{opacity:0!important}}
