/* REQVARIS terminal layout v11
   Responsive 2x2 process map with non-overlapping cards and contextual instrumentation. */

.terminal-v11-ready{
  --v11-accent:var(--cyan,#75d8ff);
  --v11-line:rgba(108,231,255,.32);
}
body.ru .terminal-v11-ready{
  --v11-accent:var(--phosphor,#a7ff8a);
  --v11-line:rgba(167,255,138,.28);
}

.terminal-v11-ready .terminal-body{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-areas:"stage0 stage1" "stage2 stage3"!important;
  grid-auto-rows:minmax(166px,auto)!important;
  align-items:stretch!important;
  gap:clamp(28px,3vw,46px) clamp(42px,4vw,70px)!important;
  min-height:0!important;
  padding:54px 52px 84px!important;
  isolation:isolate;
}

.terminal-v11-ready .node{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:166px!important;
  height:auto!important;
  margin:0!important;
  padding:18px 19px 15px!important;
  overflow:hidden!important;
  transform:none!important;
  z-index:3!important;
  --v11-node-accent:var(--v11-accent);
}
.terminal-v11-ready .node[data-stage-index="0"]{grid-area:stage0}
.terminal-v11-ready .node[data-stage-index="1"]{grid-area:stage1}
.terminal-v11-ready .node[data-stage-index="2"]{grid-area:stage2}
.terminal-v11-ready .node[data-stage-index="3"]{grid-area:stage3}

.terminal-v11-ready .node small{
  padding-right:66px!important;
  font-size:8px!important;
  line-height:1.35!important;
}
.terminal-v11-ready .node strong{
  max-width:100%!important;
  margin-top:10px!important;
  font-size:clamp(14px,1.15vw,18px)!important;
  line-height:1.18!important;
  letter-spacing:.01em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
.terminal-v11-ready .node p{
  max-width:100%!important;
  margin-top:8px!important;
  font-size:10.5px!important;
  line-height:1.48!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body.ru .terminal-v11-ready .node strong{
  font-size:clamp(13px,1.02vw,16px)!important;
  line-height:1.22!important;
  letter-spacing:.012em!important;
}
body.ru .terminal-v11-ready .node p{font-size:10px!important;line-height:1.5!important}

/* The old miniature instruments are replaced by semantic visuals. */
.terminal-v11-ready .node>.mini-bars,
.terminal-v11-ready .node>.core,
.terminal-v11-ready .node>.outputs{display:none!important}

.terminal-v11-ready .node.is-active{
  transform:translateY(-3px)!important;
  border-color:var(--v11-node-accent)!important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--v11-node-accent) 22%,transparent),
             0 18px 42px rgba(0,0,0,.34),
             0 0 26px color-mix(in srgb,var(--v11-node-accent) 19%,transparent)!important;
}
.terminal-v11-ready .node.is-complete{opacity:.78!important}
.terminal-v11-ready .node[data-visual="telemetry"],
.terminal-v11-ready .node[data-visual="sensor"],
.terminal-v11-ready .node[data-visual="equipment"]{--v11-node-accent:#68d8ff}
.terminal-v11-ready .node[data-visual="ai"]{--v11-node-accent:#a98cff}
body.ru .terminal-v11-ready .node[data-visual="ai"]{--v11-node-accent:#f0c66d}
.terminal-v11-ready .node[data-visual="knowledge"]{--v11-node-accent:#78e8b5}
.terminal-v11-ready .node[data-visual="execution"],
.terminal-v11-ready .node[data-visual="logic"]{--v11-node-accent:#ffb65e}
.terminal-v11-ready .node[data-visual="feedback"],
.terminal-v11-ready .node[data-visual="report"]{--v11-node-accent:#79efab}
.terminal-v11-ready .node[data-visual="vision"]{--v11-node-accent:#72d9ff}
.terminal-v11-ready .node[data-visual="integration"],
.terminal-v11-ready .node[data-visual="network"]{--v11-node-accent:#8da7ff}
.terminal-v11-ready .node[data-visual="risk"]{--v11-node-accent:#ff8a75}

.node-visual-v11{
  position:relative;
  display:block;
  width:100%;
  height:48px;
  margin-top:13px;
  color:var(--v11-node-accent);
  opacity:.44;
  transition:opacity .35s ease,filter .35s ease,transform .35s ease;
  pointer-events:none;
}
.node.is-active .node-visual-v11{
  opacity:1;
  filter:drop-shadow(0 0 6px color-mix(in srgb,var(--v11-node-accent) 55%,transparent));
  transform:translateY(-1px);
}
.node.is-complete .node-visual-v11{opacity:.64}
.node-visual-v11 svg{display:block;width:100%;height:100%;overflow:visible}
.node-visual-v11 svg *{vector-effect:non-scaling-stroke}
.v11-stroke{fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.v11-faint{fill:none;stroke:currentColor;stroke-width:1;opacity:.28}
.v11-fill{fill:currentColor;opacity:.78}
.v11-soft{fill:currentColor;opacity:.18}

/* Semantic instrument animation */
.node.is-active .v11-flow{stroke-dasharray:8 9;animation:v11Flow 1.9s linear infinite}
.node.is-active .v11-pulse{animation:v11Pulse 1.55s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.node.is-active .v11-pulse:nth-child(2){animation-delay:.18s}
.node.is-active .v11-pulse:nth-child(3){animation-delay:.36s}
.node.is-active .v11-pulse:nth-child(4){animation-delay:.54s}
.node.is-active .v11-bar{animation:v11Bar 1.65s ease-in-out infinite;transform-box:fill-box;transform-origin:center bottom}
.node.is-active .v11-bar:nth-child(2){animation-delay:.14s}
.node.is-active .v11-bar:nth-child(3){animation-delay:.28s}
.node.is-active .v11-bar:nth-child(4){animation-delay:.42s}
.node.is-active .v11-gear-a{animation:v11Gear 7s linear infinite;transform-box:fill-box;transform-origin:center}
.node.is-active .v11-gear-b{animation:v11GearReverse 5.2s linear infinite;transform-box:fill-box;transform-origin:center}
.node.is-active .v11-scan{animation:v11Scan 2.1s ease-in-out infinite}
.node.is-active .v11-orbit{animation:v11Orbit 4.4s linear infinite;transform-box:fill-box;transform-origin:center}
.node.is-active .v11-needle-wrap{animation:v11NeedleSweep 2.6s ease-in-out infinite;transform-box:view-box;transform-origin:48px 43px}
.node.is-active .v11-needle-dot{animation:v11NeedleGlow 2.6s ease-in-out infinite}
.node.is-active .v11-blink{animation:v11Blink 1.5s steps(1) infinite}

@keyframes v11Flow{to{stroke-dashoffset:-34}}
@keyframes v11Pulse{50%{opacity:.28;transform:scale(.72)}75%{opacity:1;transform:scale(1.25)}}
@keyframes v11Bar{50%{transform:scaleY(.42);opacity:.45}}
@keyframes v11Gear{to{transform:rotate(360deg)}}
@keyframes v11GearReverse{to{transform:rotate(-360deg)}}
@keyframes v11Scan{0%,100%{transform:translateX(0);opacity:.3}50%{transform:translateX(112px);opacity:1}}
@keyframes v11Orbit{to{transform:rotate(360deg)}}
@keyframes v11NeedleSweep{0%,100%{transform:rotate(-26deg)}50%{transform:rotate(14deg)}}
@keyframes v11NeedleGlow{0%,100%{opacity:.72}50%{opacity:1}}
@keyframes v11Blink{0%,54%{opacity:.25}55%,100%{opacity:1}}

/* Process connectors now occupy only the gaps between cards. */
.terminal-v11-ready .loop{
  inset:14% 12% 18%!important;
  z-index:0!important;
  opacity:.52!important;
  pointer-events:none!important;
}
.terminal-v11-ready .wire{
  z-index:1!important;
  height:1px!important;
  pointer-events:none!important;
  opacity:.74!important;
  background:linear-gradient(90deg,transparent,var(--v11-line),transparent)!important;
  box-shadow:none!important;
}
.terminal-v11-ready .wire::after{
  content:"";
  position:absolute;
  inset:-1px 100% -1px 0;
  background:var(--v11-accent);
  box-shadow:0 0 9px var(--v11-accent);
  transition:inset .55s linear;
}
.terminal-v11-ready .wire.is-active::after{inset:-1px 0}
.terminal-v11-ready .wire.w1,
.terminal-v11-ready .w1{left:46%!important;top:28%!important;width:8%!important;transform:none!important}
.terminal-v11-ready .wire.w2,
.terminal-v11-ready .w2{left:73%!important;top:42%!important;width:56%!important;transform:rotate(145deg)!important;transform-origin:left center!important}
.terminal-v11-ready .wire.w3,
.terminal-v11-ready .w3{left:46%!important;top:72%!important;width:8%!important;transform:none!important}
.terminal-v11-ready .packet{display:none!important}

.terminal-v11-ready .cycle-readout{
  left:24px!important;
  right:24px!important;
  bottom:18px!important;
  min-width:0!important;
}

/* Mid-size screens keep the 2x2 engineering map, but with tighter spacing. */
@media(max-width:1050px){
  .terminal-v11-ready .terminal-body{
    gap:24px 34px!important;
    padding:42px 30px 80px!important;
    grid-auto-rows:minmax(158px,auto)!important;
  }
  .terminal-v11-ready .node{min-height:158px!important;padding:16px 17px 14px!important}
  .terminal-v11-ready .node strong{font-size:14px!important}
  body.ru .terminal-v11-ready .node strong{font-size:13px!important}
  .terminal-v11-ready .wire.w1,.terminal-v11-ready .w1,
  .terminal-v11-ready .wire.w3,.terminal-v11-ready .w3{left:47%!important;width:6%!important}
}

/* Phones and narrow tablets use a clear sequential stack. */
@media(max-width:760px){
  .terminal-v11-ready .terminal-body{
    grid-template-columns:1fr!important;
    grid-template-areas:"stage0" "stage1" "stage2" "stage3"!important;
    grid-auto-rows:auto!important;
    gap:13px!important;
    padding:20px 16px 76px!important;
  }
  .terminal-v11-ready .node{
    min-height:138px!important;
    padding:16px 16px 13px!important;
  }
  .terminal-v11-ready .node small{padding-right:60px!important;font-size:7px!important}
  .terminal-v11-ready .node strong,
  body.ru .terminal-v11-ready .node strong{font-size:14px!important;line-height:1.22!important}
  .terminal-v11-ready .node p,
  body.ru .terminal-v11-ready .node p{font-size:10px!important;line-height:1.48!important}
  .node-visual-v11{height:42px;margin-top:10px}
  .terminal-v11-ready .loop,
  .terminal-v11-ready .wire,
  .terminal-v11-ready .packet{display:none!important}
  .terminal-v11-ready .cycle-readout{left:16px!important;right:16px!important;bottom:14px!important}
}

@media(max-width:420px){
  .terminal-v11-ready .terminal-body{padding:15px 12px 72px!important;gap:10px!important}
  .terminal-v11-ready .node{min-height:132px!important;padding:14px 14px 12px!important}
  .node-visual-v11{height:38px}
  .terminal-v11-ready .cycle-readout{left:12px!important;right:12px!important;font-size:7px!important;gap:8px!important}
  .terminal-v11-ready .cycle-lamps i{width:13px!important}
}

@media(prefers-reduced-motion:reduce){
  .node-visual-v11 *,
  .terminal-v11-ready .wire::after{animation:none!important;transition:none!important}
  .node-visual-v11{opacity:.72!important;filter:none!important;transform:none!important}
}
