/* ---- DeviceManager — Network monitoring (NMS) page ---- */

.nms-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* core reveal clip-path clips small text */
html.motion [data-reveal].is-in:not([data-reveal="clip"]) { clip-path: none; }
.nms-head { margin-bottom: 0; padding-top: calc(var(--space-section) * .55); }
.nms-head .h2 { max-width: 20ch; }
.story__panel .h3 { margin-bottom: 14px; max-width: 18ch; }
.story__panel .body { font-size: clamp(.98rem, .94rem + .2vw, 1.1rem); }
.story__panel .eyebrow { color: var(--text-3); }
.story__panel .eyebrow::before { display: none; }

.scan, .nmap, .hb, .prn, .cfg, .term, .tfeed {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%),
    #080b12;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(0,0,0,.55),
    0 40px 100px -40px rgba(0,0,0,.9),
    0 30px 80px -50px rgba(var(--pa-rgb), .45);
}

/* ---- 1. HERO ---- */
.nms-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(16px, 4vw, 56px));
  padding-bottom: clamp(48px, 6vw, 96px);
}
.nms-hero__glow { right: -22%; top: -35%; }
.nms-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}
.nms-hero__title { font-size: clamp(2.5rem, 1.45rem + 4vw, 5rem); }
.nms-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--pa);
  margin-bottom: 22px;
}
.nms-hero__kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(var(--pa-rgb), .15), 0 0 14px currentColor;
}
.nms-hero__h { display: block; }
.nms-hero__lead { margin-top: 24px; }
.nms-hero__cta { margin-top: 30px; }
.nms-hero__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }

/* topology visual */
.nms-hero__visual { position: relative; }
.topo {
  --hp: 0;
  position: relative;
  aspect-ratio: 6 / 5;
  container-type: inline-size;
  color: var(--text-2);
  transform-origin: 50% 0;
  transform: perspective(1400px) rotateX(calc(var(--hp) * 16deg)) translate3d(0, calc(var(--hp) * -24px), 0) scale(calc(1 - var(--hp) * .06));
}
.topo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.topo__rings { stroke: rgba(255,255,255,.06); stroke-dasharray: 2 7; }
.topo__links path, .topo__flaky {
  fill: none;
  stroke: rgba(var(--pa-rgb), .5);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.topo__mgmt { fill: none; stroke: var(--pa); stroke-width: 1.8; stroke-linecap: round; opacity: .9; }
.topo__down { fill: none; stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 6; opacity: 0; }
.pk { fill: #dff7ff; filter: drop-shadow(0 0 4px rgba(var(--pa-rgb), 1)); }
.pk--poll { fill: var(--pa); }
.pk--back { fill: var(--ok); filter: drop-shadow(0 0 5px rgba(62,230,154,.9)); }
html:not(.motion) .topo__pkts { display: none; }

.topo__nodes { position: absolute; inset: 0; }
.tn {
  position: absolute;
  left: calc(var(--x) / 600 * 100%);
  top: calc(var(--y) / 500 * 100%);
  width: 0; height: 0;
}
.tn__in {
  --ic: clamp(26px, 7.2cqw, 44px);
  position: absolute;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, calc(var(--ic) / -2));
}
.tn__ic {
  position: relative;
  width: var(--ic); height: var(--ic);
  display: grid; place-items: center;
  border-radius: 30%;
  color: var(--pa);
  background: linear-gradient(180deg, #151b2c, #0a0e17);
  border: 1px solid rgba(var(--pa-rgb), .38);
  box-shadow: 0 0 0 4px rgba(5,7,11,.92), 0 10px 26px -8px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.07);
}
.tn__ic svg { width: 52%; height: 52%; }
.tn__ic::after {
  content: "";
  position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 2px #05070b, 0 0 8px rgba(62,230,154,.9);
}
.tn__lb { font-family: var(--font-mono); font-size: clamp(10px, 1.85cqw, 11px); line-height: 1.1; color: var(--text); white-space: nowrap; letter-spacing: .02em; }
.tn__id { font-family: var(--font-mono); font-size: clamp(7.5px, 1.55cqw, 9.5px); line-height: 1; color: var(--text-3); white-space: nowrap; margin-top: -2px; }
.tn--dm .tn__in { --ic: clamp(34px, 9cqw, 56px); }
.tn--dm .tn__ic { color: #05070b; background: linear-gradient(160deg, var(--pa), #6f53e6); border-color: transparent; box-shadow: 0 0 0 5px rgba(5,7,11,.9), 0 0 40px -4px rgba(var(--pa-rgb), .8); }
.tn--dm .tn__ic::after { display: none; }
.tn--dm .tn__lb { color: var(--pa); font-weight: 600; }
@container (max-width: 440px) { .tn__id { display: none; } }
.tn__pulse { position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--pa); opacity: 0; }
html.motion .tn__pulse { animation: tn-pulse 4s var(--ease-out) infinite; }
@keyframes tn-pulse { 0% { opacity: .8; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(2.1); } }
.tn--core .tn__in { --ic: clamp(30px, 8cqw, 50px); }

.topo__lbl {
  position: absolute;
  left: calc(var(--x) / 600 * 100%); top: calc(var(--y) / 500 * 100%);
  transform: translate(-50%, -100%);
  font: 500 clamp(10px, 1.6cqw, 10.5px)/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--pa);
  padding: 3px 6px; border-radius: 5px;
  background: rgba(5,7,11,.8);
  border: 1px solid rgba(var(--pa-rgb), .3);
  white-space: nowrap;
}
.topo__tag, .topo__t {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10,14,22,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.9cqw, 11px);
  letter-spacing: .04em;
  color: var(--text-2);
  white-space: nowrap;
}
.topo__tag { position: absolute; left: 0; top: 1%; color: var(--pa); }
.topo__tag .dot { color: var(--pa); }
.topo__toast { position: absolute; left: 0; top: calc(1% + clamp(30px, 7cqw, 40px)); display: grid; }
.topo__t { grid-area: 1 / 1; opacity: 0; }
.topo__t svg { width: 13px; height: 13px; flex: none; }
.topo__t--down { color: var(--bad); border-color: rgba(255,107,107,.45); }
.topo__t--up { color: var(--ok); border-color: rgba(62,230,154,.45); }

/* down / recover cycle (12s, ambient) */
html.motion .topo__down { animation: topo-down 12s linear infinite; }
html.motion .topo__flaky { animation: topo-flaky 12s linear infinite; }
html.motion .pk-flaky { animation: topo-flaky 12s linear infinite; }
html.motion .tn--flaky .tn__ic { animation: topo-node 12s linear infinite; }
html.motion .tn--flaky .tn__ic::after { animation: topo-dot 12s linear infinite; }
html.motion .topo__t--down { animation: topo-t-down 12s linear infinite; }
html.motion .topo__t--up { animation: topo-t-up 12s linear infinite; }
@keyframes topo-down { 0%, 52% { opacity: 0; } 54%, 82% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes topo-flaky { 0%, 52% { opacity: 1; } 54%, 82% { opacity: .08; } 84%, 100% { opacity: 1; } }
@keyframes topo-node {
  0%, 52%, 84%, 100% { color: var(--pa); border-color: rgba(var(--pa-rgb), .38); box-shadow: 0 0 0 4px rgba(5,7,11,.92), 0 10px 26px -8px rgba(0,0,0,.9); }
  54%, 82% { color: var(--bad); border-color: rgba(255,107,107,.7); box-shadow: 0 0 0 4px rgba(5,7,11,.92), 0 0 28px -2px rgba(255,107,107,.6); }
}
@keyframes topo-dot { 0%, 52%, 84%, 100% { background: var(--ok); } 54%, 82% { background: var(--bad); } }
@keyframes topo-t-down { 0%, 53% { opacity: 0; transform: translateY(6px); } 56%, 81% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes topo-t-up { 0%, 84% { opacity: 0; transform: translateY(6px); } 87%, 97% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
html:not(.motion) .topo__t--up { opacity: 1; }

/* ---- 2. COVERAGE ---- */
.nms-cover { overflow: clip; padding-top: calc(var(--space-section) * .5); padding-bottom: calc(var(--space-section) * .4); }
.nms-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.nms-cover__copy .lead { margin-top: 18px; }
.nms-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.nms-stats .stat__num { font-size: clamp(2rem, 1.35rem + 2.2vw, 3.25rem); }
.nms-stats .stat__num .unit { font-size: .55em; letter-spacing: -.02em; }
.nms-cover__shot { position: relative; transform-origin: 50% 100%; }
html.motion .nms-cover__shot { --q: clamp(0, calc((var(--p) - .25) * 1.6), 1); transform: perspective(1600px) rotateX(calc((1 - var(--q)) * 16deg)) translate3d(0, calc((1 - var(--q)) * 48px), 0) scale(calc(.94 + var(--q) * .06)); opacity: calc(.25 + var(--q) * .75); }
.nms-callout {
  position: absolute;
  z-index: 2;
  background: rgba(8,11,18,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
}
.nms-callout--a { left: 24%; top: 44%; }
.nms-callout--b { right: 4%; bottom: 8%; }
.nms-types { margin-top: clamp(48px, 6vw, 88px); }
.nms-types .marquee__track { list-style: none; padding: 0; margin: 0; }
.nms-type {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
}
.nms-type svg { width: 18px; height: 18px; color: var(--pa); flex: none; }

/* ---- Stories (shared) ---- */
.nms-story { --step-h: 80svh; }
html.motion .nms-story .story__stage { width: min(100%, calc(66svh * (var(--ratio)))); }
@media (max-width: 900px) {
  .nms-story { --step-h: 60svh; }
  html.motion .nms-story .story__stage { width: min(100%, calc(42svh * (var(--ratio)))); }
}
html:not(.motion) .nms-story .story__stage { aspect-ratio: auto; width: 100%; max-width: 760px; margin-inline: 0; }

/* ---- 3. DISCOVERY — scan console ---- */
.scan {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  container-type: inline-size;
}
html:not(.motion) .scan { position: relative; }
.scan__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.scan__title { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan__title svg { width: 16px; height: 16px; color: var(--pa); flex: none; }
.scan__state { display: inline-flex; align-items: center; gap: 7px; color: var(--pa); white-space: nowrap; }
.scan__state .dot { color: var(--pa); }
.scan__done { display: none; }
.nms-story--disc[data-step="3"] .scan__run { display: none; }
.nms-story--disc[data-step="3"] .scan__done { display: inline; }
.nms-story--disc[data-step="3"] .scan__state { color: var(--ok); }
.nms-story--disc[data-step="3"] .scan__state .dot { color: var(--ok); animation: none; }
.scan__prog { height: 2px; background: rgba(255,255,255,.05); }
.scan__prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--pa), var(--pa-2)); transform-origin: 0 50%; transform: scaleX(calc(.06 + var(--p, 1) * .94)); box-shadow: 0 0 10px rgba(var(--pa-rgb), .8); }
.scan__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 4cqw;
  padding: 4cqw;
  align-items: center;
}
.radar { position: relative; width: 100%; aspect-ratio: 1; max-height: 100%; margin-inline: auto; }
.radar__disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--pa-rgb), .28);
  background: radial-gradient(circle, rgba(var(--pa-rgb), .12), rgba(var(--pa-rgb), .03) 62%, transparent 72%);
  overflow: hidden;
}
.radar__ring { position: absolute; inset: calc((1 - var(--r)) * 50%); border-radius: 50%; border: 1px solid rgba(var(--pa-rgb), .16); }
.radar__cross {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(var(--pa-rgb), .14), rgba(var(--pa-rgb), .14)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(var(--pa-rgb), .14), rgba(var(--pa-rgb), .14)) center / 100% 1px no-repeat;
}
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(var(--pa-rgb), .04) 76%, rgba(var(--pa-rgb), .5) 99.6%, rgba(220,210,255,.95) 100%);
}
html.motion .radar__sweep { animation: radar-sweep 4.2s linear infinite; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; left: calc(var(--bx) * 1%); top: calc(var(--by) * 1%); width: 0; height: 0; z-index: 1; }
.blip i {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c, var(--ok));
  box-shadow: 0 0 0 3px rgba(5,7,11,.7), 0 0 12px var(--c, var(--ok));
  transition: background-color .5s, box-shadow .5s, transform .6s var(--ease-spring);
}
.blip b {
  position: absolute; left: 9px; top: -7px;
  font: 500 clamp(8px, 1.9cqw, 10px)/1.3 var(--font-mono);
  color: var(--text);
  padding: 0 4px; border-radius: 4px;
  background: rgba(5,7,11,.75);
  white-space: nowrap;
  transition: opacity .5s;
}
.blip.b-hi { --c: var(--ok); }
.blip.b-md { --c: var(--info); }
.blip.b-lo { --c: var(--warn); }
.blip.b-out { --c: var(--bad); }
.blip.b-out i { border-radius: 2px; transform: rotate(45deg); }
.blip.b-conf { --c: var(--warn); }
.blip.b-repl { --c: var(--info); }
.blip.b-out b { color: var(--bad); }
.blip.b-l b { left: auto; right: 9px; }
/* step-driven states (motion only) */
html.motion .nms-story--disc .blip { opacity: 0; transform: scale(.3); transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring); transition-delay: calc(var(--bx) * 6ms); }
html.motion .nms-story--disc[data-step="0"] .blip:not(.b-out) { opacity: .45; transform: scale(.6); }
html.motion .nms-story--disc[data-step="0"] .blip i { --c: var(--text-3); }
html.motion .nms-story--disc:not([data-step="0"]) .blip { opacity: 1; transform: none; }
html.motion .nms-story--disc .blip b { opacity: 0; }
html.motion .nms-story--disc[data-step="1"] .blip i { --c: var(--ok); }
html.motion .nms-story--disc[data-step="1"] .blip.b-out i { --c: var(--bad); }
html.motion .nms-story--disc[data-step="1"] .blip.b-out b { opacity: 1; }
html.motion .nms-story--disc[data-step="2"] .blip:not(.b-out) b,
html.motion .nms-story--disc[data-step="3"] .blip.b-conf b,
html.motion .nms-story--disc[data-step="3"] .blip.b-repl b { opacity: 1; }
html.motion .nms-story--disc[data-step="2"] .blip.b-conf i,
html.motion .nms-story--disc[data-step="2"] .blip.b-repl i { --c: var(--ok); }
html.motion .nms-story--disc[data-step="2"] .blip.b-out,
html.motion .nms-story--disc[data-step="3"] .blip.b-out { opacity: 0; }
html.motion .nms-story--disc[data-step="3"] .blip:not(.b-conf):not(.b-repl) { opacity: .3; }
.nms-story--disc[data-step="3"] .blip.b-conf i,
.nms-story--disc[data-step="3"] .blip.b-repl i { animation: blip-ring 1.6s ease-out infinite; }
@keyframes blip-ring { 0% { box-shadow: 0 0 0 0 var(--c), 0 0 12px var(--c); } 100% { box-shadow: 0 0 0 12px transparent, 0 0 12px var(--c); } }
.nms-story--disc[data-step="3"] .blip.b-repl b::after { content: " replaced?"; color: var(--info); }
.nms-story--disc[data-step="3"] .blip.b-conf b::after { content: " conflict"; color: var(--warn); }

.scan__cards { position: relative; height: 100%; min-height: 0; }
.scan__foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.scan__foot div { padding: 10px 14px; border-left: 1px solid var(--line); transition: opacity .6s var(--ease-out); }
.scan__foot div:first-child { border-left: 0; }
.scan__foot dt { font-size: clamp(.95rem, .8rem + 1.2cqw, 1.35rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.scan__foot dt.warn { color: var(--warn); }
.scan__foot dd { font: 400 10px/1.3 var(--font-mono); color: var(--text-3); letter-spacing: .04em; }
html.motion .scan__foot div:not(.is-on) { opacity: .18; }
.scard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
html:not(.motion) .scan__cards { height: auto; display: grid; gap: 18px; }
html:not(.motion) .scard { position: relative; }
html.motion .scard { transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transform: translate3d(0, 14px, 0); }
html.motion .scard.is-on { transform: none; }
.scard__h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-bottom: 10px;
  font: 500 10.5px/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pa);
}
.scard__h span { color: var(--text-3); letter-spacing: .04em; text-transform: none; }
.scard__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.scard__rows li {
  display: flex; align-items: center; gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  font-size: 12.5px;
}
html.motion .scard__rows li { opacity: 0; transform: translate3d(10px, 0, 0); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
html.motion .scard.is-on .scard__rows li { opacity: 1; transform: none; }
html.motion .scard.is-on .scard__rows li:nth-child(2) { transition-delay: .1s; }
html.motion .scard.is-on .scard__rows li:nth-child(3) { transition-delay: .2s; }
html.motion .scard.is-on .scard__rows li:nth-child(4) { transition-delay: .3s; }
.scard__rows code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
.scard__rows li.is-dim { opacity: .6; border-style: dashed; }
html.motion .scard.is-on .scard__rows li.is-dim { opacity: .6; }
.scard__rows li.is-bad { border-color: rgba(255,107,107,.32); background: rgba(255,107,107,.06); }
.scard__rows li.is-act { border-color: rgba(var(--pa-rgb), .35); background: rgba(var(--pa-rgb), .08); }
.scard__n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 550; color: var(--text); line-height: 1.25; }
.scard__n small { font: 400 10px/1.35 var(--font-mono); color: var(--text-3); overflow-wrap: anywhere; }
.scard__p {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  font: 600 11px/1 var(--font-mono);
  color: var(--pa);
  background: rgba(var(--pa-rgb), .12);
  border: 1px solid rgba(var(--pa-rgb), .25);
}
.scard .chip { flex: none; font-size: 9.5px; padding: 3px 8px; }
.scard__f { margin-top: 10px; font: 400 10.5px/1.4 var(--font-mono); color: var(--text-3); }

@container (max-width: 470px) {
  .scan__bar { padding: 9px 12px; font-size: 10px; }
  .scan__body { display: block; position: relative; padding: 12px; }
  .radar { position: absolute; width: 74%; left: 13%; top: 50%; transform: translateY(-50%); opacity: .4; }
  .blip b { display: none; }
  .scan__cards { position: relative; z-index: 1; }
  .scan__foot div { padding: 7px 9px; }
  .scan__foot div { padding: 6px 7px; }
  .scan__foot dd { font-size: 10px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .scard { justify-content: flex-start; }
  .scard__rows li { padding: 5px 9px; }
  .scard__h { font-size: 10px; margin-bottom: 7px; }
  .scard__h span { display: none; }
  .scard__rows { gap: 6px; }
  .scard__rows li { min-height: 0; padding: 6px 9px; gap: 8px; font-size: 12px; border-radius: 9px; background: rgba(10,13,21,.88); }
  .scard__rows code { font-size: 11.5px; }
  .scard__n small { font-size: 10px; }
  .scard__p { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
  .scard .chip { font-size: 10px; padding: 2px 7px; }
  .scard__f { font-size: 10px; margin-top: 7px; }
}

/* ---- 4. TOPOLOGY MAP story ---- */
.nmap {
  --mi: clamp(20px, 6.4cqw, 36px);
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 20px;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(110% 80% at 50% 45%, rgba(var(--pa-rgb), .08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%),
    #080b12;
}
.nmap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 80%);
}
.nmap > * { position: relative; z-index: 1; }
html:not(.motion) .nmap { position: relative; }
.nmap__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,18,.6);
}
.nmap__lays { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.nmap__lay {
  font: 500 10.5px/1 var(--font-mono);
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--text-3);
  white-space: nowrap;
  transition: background-color .45s, color .45s;
}
.nmap[data-layout="0"] .nmap__lay[data-lay="0"],
.nmap[data-layout="1"] .nmap__lay[data-lay="1"],
.nmap[data-layout="2"] .nmap__lay[data-lay="2"] { background: var(--pa); color: #05070b; }
.nmap__btn { flex: none; font: 500 10.5px/1 var(--font-mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.nmap__area { position: relative; container-type: size; display: grid; place-items: center; min-height: 0; }
html:not(.motion) .nmap__area { aspect-ratio: 400 / 250; }
.nmap__canvas { position: relative; aspect-ratio: 400 / 220; width: min(90cqw, calc(80cqh * 400 / 220)); }
@container (max-width: 470px) { .nmap__canvas { width: min(90cqw, calc((100cqh - 46px) * 400 / 220)); margin-bottom: 26px; } }
.nmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ml { fill: none; stroke: rgba(var(--pa-rgb), .6); stroke-width: 1.5; stroke-linecap: round; transition: stroke .5s, opacity .5s; }
html.motion .nms-story--map .ml {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--p, 1) * 4 + .1 - var(--k) * .05) * 2.4, 1));
}
.ml--unm { stroke: rgba(255,255,255,.35); }
html.motion .nms-story--map .ml--unm { opacity: 0; }
html.motion .nms-story--map:is([data-step="2"], [data-step="3"]) .ml--unm { opacity: 1; stroke-dasharray: .03 .03; stroke-dashoffset: 0; }
html.motion .nms-story--map:is([data-step="2"], [data-step="3"]) .ml--down { stroke: var(--bad); stroke-dasharray: .06 .045; stroke-dashoffset: 0; }
html:not(.motion) .ml--down { stroke: var(--bad); stroke-dasharray: 4 4; }
html:not(.motion) .ml--unm { stroke-dasharray: 3 3; }

.mn { position: absolute; width: 0; height: 0; }
.mn__ic {
  position: absolute;
  left: calc(var(--mi) / -2); top: calc(var(--mi) / -2);
  width: var(--mi); height: var(--mi);
  display: grid; place-items: center;
  border-radius: 28%;
  color: var(--pa);
  background: linear-gradient(180deg, #151b2c, #0b0f19);
  border: 1px solid rgba(var(--pa-rgb), .45);
  box-shadow: 0 0 0 3px #080b12, 0 8px 20px -8px rgba(0,0,0,.9);
  transition: color .5s, border-color .5s, box-shadow .5s;
}
.mn__ic svg { width: 54%; height: 54%; }
.mn__lb {
  position: absolute; left: 0; top: calc(var(--mi) / 2 + 4px);
  transform: translateX(-50%);
  font: 500 clamp(7.5px, 2.25cqw, 10px)/1.2 var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(8,11,18,.7);
}
.mn__scan {
  position: absolute; left: 0; top: calc(var(--mi) / 2 + 4px + 1.6em);
  transform: translateX(-50%);
  font: 600 clamp(7px, 2cqw, 9.5px)/1 var(--font-mono);
  color: #05070b; background: var(--pa);
  padding: 4px 6px; border-radius: 5px; white-space: nowrap;
  box-shadow: 0 0 18px -2px rgba(var(--pa-rgb), .8);
}
.mn--unm .mn__ic { color: var(--text-2); border-style: dashed; border-color: rgba(255,255,255,.4); background: rgba(8,11,18,.9); }
html.motion .nms-story--map .mn--unm { opacity: 0; transition: opacity .6s var(--ease-out); }
html.motion .nms-story--map:is([data-step="2"], [data-step="3"]) .mn--unm { opacity: 1; }
html.motion .nms-story--map .mn__scan { opacity: 0; transform: translate(-50%, 6px); transition: opacity .5s .3s, transform .6s .3s var(--ease-out); }
html.motion .nms-story--map:is([data-step="2"], [data-step="3"]) .mn__scan { opacity: 1; transform: translate(-50%, 0); }
html:not(.motion) .mn--down .mn__ic,
html.motion .nms-story--map:is([data-step="2"], [data-step="3"]) .mn--down .mn__ic { color: var(--bad); border-color: rgba(255,107,107,.75); box-shadow: 0 0 0 3px #080b12, 0 0 22px -2px rgba(255,107,107,.7); }

.nmap__strip { position: relative; border-top: 1px solid var(--line); min-height: 74px; background: rgba(8,11,18,.6); }
.nstrip { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 14px; }
html:not(.motion) .nmap__strip { display: grid; }
html:not(.motion) .nstrip { position: relative; }
html.motion .nstrip { transform: translate3d(0, 8px, 0); }
html.motion .nstrip.is-on { transform: none; }
.nstrip__h { font: 500 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pa); }
.nstrip__row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; row-gap: 4px; }
.nstrip__row code { font-family: var(--font-mono); font-size: 11.5px; color: var(--text); }
.nstrip__row .chip { font-size: 9px; padding: 2px 7px; }
.nstrip__legend { gap: 14px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid currentColor; }
.lg--up { color: var(--ok); }
.lg--down { color: var(--bad); }
.lg--unm { color: var(--text-2); }
.lg--unm::before { border-style: dashed; }
.lg--ldown { color: var(--bad); }
.lg--ldown::before { width: 16px; height: 0; border-radius: 0; border-width: 1.5px 0 0; border-style: dashed; }
.nmap__shot {
  position: absolute !important;
  inset: 0;
  z-index: 3 !important;
  border-radius: 20px;
  margin: 0;
}
.nmap__shot img { aspect-ratio: auto; height: calc(100% - 34px); object-fit: cover; object-position: 38% 72%; transform: scale(1.45); transform-origin: 34% 78%; }
.nmap__shot .frame__bar { position: relative; z-index: 2; }
html.motion .nms-story--map[data-step="3"] .nmap > :not(.nmap__shot) { visibility: hidden; transition: visibility 0s .5s; }
html.motion .nmap__shot { transform: scale(.94) translate3d(0, 20px, 0); }
html.motion .nmap__shot.is-on { transform: none; }
html:not(.motion) .nmap__shot { position: relative !important; margin-top: 18px; }
html:not(.motion) .nmap__shot img { height: auto; aspect-ratio: 16 / 10; }
@container (max-width: 470px) {
  .nmap__bar { padding: 7px 8px; }
  .nmap__lay { font-size: 10px; padding: 5px 6px; }
  .nmap__x, .nmap__btn { display: none; }
  .mn__lb { font-size: 10px; letter-spacing: -.02em; }
  .mn__sfx { display: none; }
  .nmap__area { --mi: 17px; }
  .mn__lb { top: calc(var(--mi) / 2 + 2px); line-height: 1.1; }
  .mn__ic { box-shadow: 0 0 0 2px #080b12; }
  .mn__scan { font-size: 10px; }
  .nmap__strip { min-height: 62px; }
  .nstrip { padding: 7px 10px; gap: 5px; }
  .nstrip__h { font-size: 10px; letter-spacing: .06em; }
  .nstrip__row { font-size: 11px; gap: 7px; }
  .nstrip__row code { font-size: 10.5px; }
  .nstrip__row .chip { font-size: 10px; padding: 1px 6px; }
  .lg { font-size: 10px; }
  .nstrip__legend { gap: 10px; }
  .nmap__shot .frame__bar { height: 24px; }
  .nmap__shot img { height: calc(100% - 24px); }
}

/* ---- 5. STATUS — heartbeat panel ---- */
.hb { border-radius: var(--radius-l); padding: clamp(16px, 2.6vw, 34px); }
.hb__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hb__dev { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hb__dev strong { display: block; font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.hb__dev .mono { display: block; font-size: 12px; color: var(--text-3); }
.hb__ic, .prn__ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--pa); background: rgba(var(--pa-rgb), .1); border: 1px solid rgba(var(--pa-rgb), .28);
}
.hb__ic svg, .prn__ic svg { width: 22px; height: 22px; }
.hb__status { display: grid; flex: none; }
.hb__s { grid-area: 1 / 1; justify-self: end; font-size: 11px; padding: 6px 12px; transition: opacity .4s, transform .5s var(--ease-out); }
.hb__s--down { opacity: 0; transform: translateY(6px); }
.hb.is-down .hb__s--down { opacity: 1; transform: none; }
.hb.is-down .hb__s--up { opacity: 0; transform: translateY(-6px); }

.hb__track { position: relative; margin-top: clamp(22px, 3vw, 34px); }
.hb__ticks {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: clamp(3px, .55vw, 8px);
  height: clamp(64px, 8vw, 96px);
  align-items: end;
}
.t { position: relative; height: 100%; border-radius: 6px; background: rgba(255,255,255,.045); }
.t::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(62,230,154,.95), rgba(62,230,154,.25));
  transform-origin: 50% 100%;
}
.t--miss::after { height: 26%; background: linear-gradient(180deg, rgba(255,107,107,.95), rgba(255,107,107,.35)); }
.t--down::before, .t--inc::before, .t--back::before {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  font: 600 9.5px/1 var(--font-mono); letter-spacing: .08em;
  padding: 4px 6px; border-radius: 5px; white-space: nowrap;
}
.t--down::before { content: "DOWN"; color: var(--bad); background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); }
.t--inc::before { content: "TICKET"; color: var(--warn); background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.4); }
.t--back::before { content: "UP"; color: var(--ok); background: rgba(62,230,154,.1); border: 1px solid rgba(62,230,154,.4); }
html.motion .hb .t::after { transform: scaleY(0); opacity: 0; transition: transform .45s var(--ease-out), opacity .25s; }
html.motion .hb .t.is-past::after { transform: none; opacity: 1; }
html.motion .hb .t::before { opacity: 0; transform: translate(-50%, 6px); transition: opacity .4s, transform .5s var(--ease-out); }
html.motion .hb .t.is-past::before { opacity: 1; transform: translate(-50%, 0); }
.hb__head-line {
  position: absolute; top: 24px; bottom: 18px; left: 0;
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, var(--pa) 20%, var(--pa) 80%, transparent);
  box-shadow: 0 0 12px rgba(var(--pa-rgb), .9);
  transform: translateX(calc(var(--pp, 1) * (100cqw)));
  opacity: 0;
}
.hb__track { container-type: inline-size; }
html.motion .hb__head-line { opacity: 1; }
.hb__axis { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px/1 var(--font-mono); color: var(--text-3); }

.hb__lower { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(22px, 3vw, 34px); padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.hb__lbl { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.hb__lbl svg { width: 15px; height: 15px; color: var(--pa); }
.hb__log ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--text); line-height: 1.35; }
.ev::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ev time { flex: none; font: 400 12px/1 var(--font-mono); color: var(--text-3); }
.ev--ok { --c: var(--ok); }
.ev--warn { --c: var(--warn); }
.ev--bad { --c: var(--bad); }
html.motion .ev { opacity: .12; transform: translate3d(-6px, 0, 0); transition: opacity .45s, transform .6s var(--ease-out); }
html.motion .ev.is-on { opacity: 1; transform: none; }
.inc { border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); padding: 16px 18px; transition: border-color .5s, background-color .5s; }
.inc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.inc__top strong { font-weight: 600; letter-spacing: -.01em; }
.inc__state { display: grid; }
.inc__s { grid-area: 1 / 1; justify-self: end; transition: opacity .4s, transform .5s var(--ease-out); opacity: 0; transform: translateY(6px); }
.hb[data-inc="none"] .inc__s--none,
.hb[data-inc="open"] .inc__s--open,
.hb[data-inc="closed"] .inc__s--closed { opacity: 1; transform: none; }
.hb[data-inc="open"] .inc { border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.06); }
.hb[data-inc="closed"] .inc { border-color: rgba(62,230,154,.35); background: rgba(62,230,154,.04); }
html:not(.motion) .inc__s--closed { opacity: 1; transform: none; }
.inc p { margin-top: 8px; font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.inc .inc__more { font-size: .82rem; color: var(--text-3); }
.inc__more b { color: var(--text-2); font-weight: 550; }

.hb__states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(18px, 2.4vw, 26px); padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid var(--line); }
.hb__states div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb__states dt { flex: none; line-height: 1; }
.hb__states dd { font-size: .85rem; color: var(--text-2); line-height: 1.35; }
.wi { margin-top: clamp(14px, 1.6vw, 20px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 48px); align-items: center; }
.wi__copy p { max-width: 52ch; }
.wi__rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.wi__rows li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-size: .86rem;
}
.wi__rows code { font-family: var(--font-mono); font-size: .82rem; color: var(--text); }
.wi__d { flex: 1; color: var(--text-2); min-width: 0; }
.wi__rows .chip { font-size: 9.5px; padding: 3px 8px; }
.wi__box { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); }
.wi__box.is-on { border-color: var(--pa); background: var(--pa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305070b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.wi__alert { border-color: rgba(255,107,107,.35) !important; background: rgba(255,107,107,.06) !important; }
.wi__muted { opacity: .6; }

/* ---- 6. PRINTER SUPPLIES ---- */
.nms-prn .split { align-items: center; }
.nms-prn .lead { margin-top: 18px; }
.prn-legend { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--text-2); }
.prn-legend li { display: inline-flex; align-items: center; gap: 9px; }
.sw { width: 22px; height: 8px; border-radius: 99px; }
.sw--ok { background: var(--ok); }
.sw--warn { background: var(--warn); }
.sw--bad { background: var(--bad); }
.prn { border-radius: var(--radius-l); padding: clamp(18px, 2.4vw, 30px); position: relative; overflow: hidden; }
.prn__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prn__head > div { flex: 1; min-width: 0; }
.prn__head strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.prn__head .mono { display: block; font-size: 12px; color: var(--text-3); }
.sup { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 15px; }
.sup__row { --c: var(--ok); display: grid; grid-template-columns: 116px minmax(0, 1fr) 46px; align-items: center; gap: 14px; font-size: .9rem; color: var(--text-2); }
.sup--ok { --c: var(--ok); }
.sup--warn { --c: var(--warn); }
.sup--bad { --c: var(--bad); }
.sup__bar {
  position: relative; height: 12px; border-radius: 99px;
  background:
    linear-gradient(90deg, transparent calc(10% - 1px), rgba(255,255,255,.22) calc(10% - 1px) 10%, transparent 10%),
    linear-gradient(90deg, transparent calc(20% - 1px), rgba(255,255,255,.22) calc(20% - 1px) 20%, transparent 20%),
    rgba(255,255,255,.06);
}
.sup__bar i {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c));
  clip-path: inset(0 calc((1 - var(--v)) * 100%) 0 0 round 99px);
  box-shadow: 0 0 14px -2px var(--c);
  transition: clip-path .3s linear, background-color .3s;
}
.sup__row.is-swap .sup__bar i { transition: clip-path 1s var(--ease-out); }
.sup__pct { font: 500 13px/1 var(--font-mono); text-align: right; color: var(--c); font-variant-numeric: tabular-nums; }
.prn__ticket { display: grid; margin-top: 22px; }
.prn__t {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  font-size: .86rem; line-height: 1.35;
  border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.prn__t svg { width: 17px; height: 17px; flex: none; }
.prn__t--watch { color: var(--text-2); background: rgba(255,255,255,.025); }
.prn__t--open { color: var(--bad); border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.07); }
.prn__t--closed { color: var(--ok); border-color: rgba(62,230,154,.38); background: rgba(62,230,154,.06); }
.prn__ticket[data-state="watch"] .prn__t--watch,
.prn__ticket[data-state="open"] .prn__t--open,
.prn__ticket[data-state="closed"] .prn__t--closed { opacity: 1; transform: none; }

/* ---- 7. CONFIG BACKUP ---- */
.nms-cfg { overflow: clip; isolation: isolate; }
.nms-cfg__glow { left: -25%; top: 10%; opacity: .7; }
.cfg { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 2fr); border-radius: var(--radius-l); overflow: hidden; }
.cfg__side { padding: clamp(16px, 2vw, 24px); border-right: 1px solid var(--line); background: rgba(255,255,255,.018); display: flex; flex-direction: column; }
.cfg__lbl { display: flex; align-items: center; gap: 8px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.cfg__lbl svg { width: 15px; height: 15px; color: var(--pa); }
.ver { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ver__row {
  --vo: 1;
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
html.motion .ver__row {
  --vo: clamp(0, calc((var(--p, 1) - .32) * 10 - (4 - var(--j)) * .95), 1);
  opacity: var(--vo);
  transform: translate3d(0, calc((1 - var(--vo)) * 10px), 0);
}
.ver__d { font: 500 12.5px/1.2 var(--font-mono); color: var(--text); }
.ver__m { font-size: 12px; color: var(--text-3); }
.ver__row--new { border-color: rgba(var(--pa-rgb), .45); background: rgba(var(--pa-rgb), .09); }
.ver__row--new .ver__m { color: var(--text-2); }
.ver__row--skip { border-style: dashed; background: transparent; }
.ver__row--skip .ver__d { color: var(--text-3); }
.ins { color: var(--ok); font-weight: 600; }
.del { color: var(--bad); font-weight: 600; }
.cfg__keep { margin-top: auto; padding-top: 16px; font: 400 11px/1.5 var(--font-mono); color: var(--text-3); }
.cfg__diff { min-width: 0; display: flex; flex-direction: column; background: #05080e; }
.cfg__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.cfg__bar .mono { font-size: 12px; }
.cfg__sum { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.diff { margin: 0; padding: 14px 0 18px; font: 400 13px/1.8 var(--font-mono); color: var(--text-2); overflow: hidden; }
.diff code { font: inherit; display: block; white-space: normal; }
.dl { --o: 1; display: block; padding: 0 18px 0 8px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
html.motion .cfg .dl {
  --o: clamp(0, calc((var(--p, 1) - .36) * 26 - var(--i)), 1);
  opacity: calc(.08 + var(--o) * .92);
  transform: translate3d(calc((1 - var(--o)) * -10px), 0, 0);
}
.dl b { display: inline-block; width: 2.2em; margin-right: .5em; text-align: right; font-weight: 400; color: rgba(255,255,255,.22); user-select: none; }
.dl--add, .dl--del {
  background-repeat: no-repeat;
  background-size: calc(var(--o) * 100%) 100%;
}
.dl--add { color: #a6f5cb; background-image: linear-gradient(90deg, rgba(62,230,154,.16), rgba(62,230,154,.05)); }
.dl--del { color: #ffb3b3; background-image: linear-gradient(90deg, rgba(255,107,107,.16), rgba(255,107,107,.05)); }
.cfg__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(20px, 2.4vw, 28px); }
.cfg__vlbl { font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cfg__vendors { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfg__vendors .chip { text-transform: none; letter-spacing: .02em; font-size: 11.5px; padding: 6px 12px; color: var(--text); }
.cfg__vendors .chip--pa { color: var(--pa); }
.cfg__facts { list-style: none; padding: 0; margin-top: clamp(24px, 3vw, 40px); }
.cfg__facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--line); }
.cfg__facts li svg { width: 20px; height: 20px; color: var(--pa); flex: none; margin-top: 1px; }
.cfg__facts b { color: var(--text); font-weight: 600; }

/* ---- 8. TERMINAL ---- */
.nms-term__copy .lead { margin-top: 18px; }
.tfacts { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 18px; }
.tfacts li { display: flex; gap: 14px; align-items: flex-start; }
.tfacts .icon-box { margin: 2px 0 0; }
.tfacts h3 { margin-bottom: 4px; }
.tfacts p { color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.tlimits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.tlimits div { padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tlimits dt { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--text); white-space: nowrap; }
.tlimits dd { margin-top: 6px; font-size: .78rem; color: var(--text-3); line-height: 1.35; }
.term { border-radius: 18px; overflow: hidden; font-family: var(--font-mono); background: #04070c; }
.term__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #121826, #0d121c); }
.term__title { flex: 1; min-width: 0; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.term__rec { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; color: var(--bad); }
.term__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
html.motion .term__rec i { animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.term__body { padding: 18px 20px 16px; font-size: 13px; line-height: 1.75; min-height: 13.6em; }
.tl { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.tl--sys { color: var(--text-3); }
.tl--ok { color: var(--ok); }
.tl--out { color: #c8d0dc; }
.tl__p { color: var(--pa); }
.tl__in { color: var(--text); }
.tl__in--pw { letter-spacing: .1em; color: var(--text-3); }
.term__tx { padding: 14px 20px 18px; border-top: 1px dashed var(--line-strong); background: rgba(var(--pa-rgb), .05); font-size: 12px; line-height: 1.7; }
.term__txh { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--pa); margin-bottom: 6px; }
.term__txh svg { width: 13px; height: 13px; }
.tl--tx { color: var(--text-2); }
.tl--tx mark { background: rgba(255,181,71,.14); color: var(--warn); padding: 1px 5px; border-radius: 4px; }
html.motion .term.is-armed .tl { visibility: hidden; }
html.motion .term.is-armed .tl.is-shown { visibility: visible; }
html.motion .term.is-armed .term__tx { opacity: .25; transition: opacity .6s; }
html.motion .term.is-armed .term__tx .tl { visibility: visible; }
html.motion .term.is-armed.is-done .term__tx { opacity: 1; }
.tl.is-typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--pa); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- 9. TRAPS + TOOLS bento ---- */
.tbento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "feed feed act" "feed feed flood" "tools tools tools";
  gap: clamp(12px, 1.6vw, 20px);
}
.tfeed { grid-area: feed; border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tfeed__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tfeed__t { display: inline-flex; align-items: center; gap: 9px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.tfeed__t .dot { color: var(--ok); }
.tfeed__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tfeed__meta .chip { font-size: 9.5px; }
.tfeed__head, .tr {
  display: grid;
  grid-template-columns: 76px 104px minmax(0, 1fr) 76px;
  column-gap: 14px;
  align-items: center;
  padding: 0 18px;
}
.tfeed__head { padding-block: 10px; font: 500 9.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line); }
.tfeed__win {
  position: relative; flex: none; height: clamp(250px, 25vw, 340px); overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
}
.tfeed__list { list-style: none; padding: 0; margin: 0; }
html.motion .tr { transition: opacity .45s; }
html.motion .tr.is-out { visibility: hidden; opacity: 0; }
html.motion .tr.is-leaving { opacity: 0; }
html:not(.motion) .tfeed__win { height: auto; }
html:not(.motion) .tfeed__win { mask-image: none; }
.tr { padding-block: 11px; border-bottom: 1px solid rgba(255,255,255,.05); row-gap: 3px; }
.tr time { font: 400 11.5px/1.3 var(--font-mono); color: var(--text-3); grid-row: 1 / 3; }
.tr__src { font-size: 12.5px; font-weight: 550; color: var(--pa); grid-row: 1 / 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr code { font: 500 12.5px/1.3 var(--font-mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .chip { grid-column: 4; grid-row: 1 / 3; justify-self: start; font-size: 9px; padding: 3px 8px; }
.tr__sum { grid-column: 3; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb { display: flex; flex-direction: column; }
.nms-traps__note { margin-top: 18px; max-width: 80ch; }
.tb--act { grid-area: act; }
.tb--flood { grid-area: flood; }
.tb--tools { grid-area: tools; }
.tb h3 { margin-bottom: 6px; }
.tb .icon-box { margin-bottom: 12px; }
.tb__flow { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--font-mono); color: var(--text-2); }
.tb__flow code { padding: 6px 9px; border-radius: 7px; background: rgba(255,181,71,.1); color: var(--warn); border: 1px solid rgba(255,181,71,.3); }
.tb__flow svg { width: 16px; height: 16px; color: var(--pa); }
html.motion .tb__flow svg { animation: nudge 1.8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.tb__flow span { padding: 6px 9px; border-radius: 7px; background: rgba(var(--pa-rgb), .12); color: var(--pa); border: 1px solid rgba(var(--pa-rgb), .3); }
.tb__meter { position: relative; margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; }
.tb__meter i {
  position: relative; flex: 1; height: 8px; border-radius: 99px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 70%, rgba(255,107,107,.16) 70%),
    rgba(255,255,255,.06);
}
.tb__meter i::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--ok) 0 70%, var(--bad) 70% 100%);
  clip-path: inset(0 30% 0 0 round 99px);
}
html.motion .tb__meter i::before { animation: flood 3.2s var(--ease-in-out) infinite; }
@keyframes flood {
  0% { clip-path: inset(0 100% 0 0 round 99px); }
  55% { clip-path: inset(0 30% 0 0 round 99px); }
  70%, 85% { clip-path: inset(0 0 0 0 round 99px); }
  100% { clip-path: inset(0 100% 0 0 round 99px); }
}
.tb__meter i::after { content: ""; position: absolute; left: 70%; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .7; }
.tb__meter span { font: 500 11px/1 var(--font-mono); color: var(--bad); white-space: nowrap; }
.tb__toolshead { display: flex; gap: 14px; align-items: flex-start; }
.tb__toolshead .icon-box { margin: 0; }
.tb--tools { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.ports { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 56%; }
.ports li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
  font: 500 11.5px/1 var(--font-mono); color: var(--text);
}
.ports li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pa); box-shadow: 0 0 8px var(--pa); }

/* ---- 10. SECURITY + CONNECTED ---- */
.secgrid { gap: 0 clamp(20px, 3vw, 48px); }
.secgrid .sc { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 28px; overflow: visible; }
.secgrid .sc h3 { margin-bottom: 6px; }
.secgrid .sc p { font-size: .92rem; max-width: 34ch; }
.secgrid .icon-box { background: none; border-color: rgba(var(--pa-rgb), .3); }
.nms-conn {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(var(--pa-rgb), .12), transparent 55%),
    rgba(255,255,255,.015);
}
.nms-conn__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.nms-conn__head .link-arrow { font-size: inherit; font-weight: 600; letter-spacing: inherit; }
.nms-conn__head .link-arrow svg { width: .8em; height: .8em; }
.conn {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8,11,18,.7);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out);
}
.conn h4 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.conn p { font-size: .88rem; color: var(--text-2); line-height: 1.5; }
.conn__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--pa); background: rgba(var(--pa-rgb), .1); border: 1px solid rgba(var(--pa-rgb), .22); margin-bottom: 6px; }
.conn__ic svg { width: 17px; height: 17px; }
.conn--link { position: relative; }
.conn--link h4::after {
  content: ""; width: 14px; height: 14px; margin-left: auto;
  background: var(--pa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.conn--link:hover { border-color: rgba(var(--pa-rgb), .5); background: rgba(var(--pa-rgb), .07); transform: translateY(-2px); }
.conn__net { font-size: 9px; padding: 1px 6px; vertical-align: 1px; }


/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .tfeed__head, .tr { grid-template-columns: 70px 96px minmax(0, 1fr) 72px; column-gap: 10px; }
}
@media (max-width: 900px) {
  .nms-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nms-hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .nms-cover__grid { grid-template-columns: minmax(0, 1fr); }
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .ver { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ver__row:nth-child(n + 4) { display: none; }
  html.motion .ver__row { --vo: 1; }
  .nms-story .story__stage { --ratio: 1 / 1 !important; }
  .cfg__keep { padding-top: 12px; }
  .tbento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "feed feed" "act flood" "tools tools"; }
  .tb--tools { flex-direction: column; align-items: stretch; }
  .ports { max-width: none; justify-content: flex-start; }
  .hb__lower { grid-template-columns: minmax(0, 1fr); }
  .hb__states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nms-hero { padding-top: calc(var(--header-h) + 22px); padding-bottom: 40px; }
  .nms-hero__title { font-size: clamp(2.35rem, 1.2rem + 6vw, 3rem); }
  .nms-hero__kicker { margin-bottom: 16px; font-size: 10.5px; }
  .nms-hero__lead { margin-top: 18px; font-size: 1.02rem; }
  .nms-hero__cta { margin-top: 22px; }
  .nms-hero__cta .btn--lg { min-height: 50px; padding: 14px 20px; font-size: .95rem; }
  .nms-hero__chips { margin-top: 20px; }
  .nms-stats { gap: 18px 16px; margin-top: 26px; padding-top: 22px; }
  .nms-stats .stat__label { font-size: .8rem; }
  .nms-cover__shot img { aspect-ratio: 4 / 3; object-position: 0 0; transform: scale(1.32); transform-origin: 0 24%; }
  .nms-callout { font-size: 9px; padding: 4px 8px; }
  .nms-callout--a { left: 4%; top: auto; bottom: 22%; }
  .nms-callout--b { right: 4%; bottom: 6%; }
  .nms-types { margin-top: 36px; }
  .nms-type { padding: 10px 15px; font-size: .9rem; }
  .story__panel .h3 { font-size: 1.4rem; margin-bottom: 8px; }
  .story__panel .body { font-size: .95rem; line-height: 1.5; }
  .story__panel .eyebrow { margin-bottom: 10px; }
  .hb { padding: 16px; }
  .hb__dev .mono { font-size: 10.5px; }
  .hb__ic { width: 38px; height: 38px; border-radius: 11px; }
  .hb__ticks { height: 54px; gap: 3px; margin-top: 26px; }
  .t { border-radius: 4px; }
  .t--down::before, .t--inc::before, .t--back::before { font-size: 10px; padding: 2px 3px; letter-spacing: .02em; }
  .tr .chip, .tfeed__meta .chip { font-size: 10px; }
  .hb__axis { font-size: 10px; }
  .ev { font-size: .86rem; gap: 10px; }
  .inc { padding: 14px; }
  .hb__track { margin-top: 10px; }
  .hb__lower { margin-top: 16px; padding-top: 16px; gap: 18px; }
  .hb__states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; margin-top: 16px; padding-top: 14px; }
  .hb__states div { flex-direction: column; align-items: flex-start; gap: 5px; }
  .hb__states dd { font-size: .76rem; }
  .wi__rows li { padding: 8px 10px; font-size: .8rem; gap: 8px; }
  .inc p { font-size: .84rem; }
  .secgrid .sc { padding: 16px 0 18px; }
  .secgrid .sc .icon-box { float: left; margin: 0 8px 0 0; width: 26px; height: 26px; border-radius: 8px; }
  .secgrid .sc .icon-box svg { width: 14px; height: 14px; }
  .secgrid .sc h3 { min-height: 26px; display: flex; align-items: center; line-height: 1.15; }
  .secgrid .sc p { clear: both; padding-top: 4px; }
  .conn__ic { display: none; }
  .nms-conn__grid .conn { gap: 4px; }
  .sup__row { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 10px; font-size: .84rem; }
  .prn__t { font-size: .8rem; padding: 10px 12px; }
  .diff { font-size: 11px; line-height: 1.7; padding: 10px 0 12px; }
  .dl { padding: 0 10px 0 2px; }
  .dl b { width: 1.8em; margin-right: .35em; }
  .cfg__bar { padding: 10px 12px; }
  .cfg__bar .mono, .cfg__sum { font-size: 10.5px; }
  .cfg__side { padding: 14px; }
  .ver { gap: 6px; }
  .ver__row { padding: 8px; }
  .ver__d { font-size: 10.5px; }
  .ver__m { font-size: 10px; }
  .cfg__vendors .chip { font-size: 10.5px; padding: 5px 10px; }
  .cfg__facts { gap: 14px 12px; }
  .cfg__facts li { font-size: .82rem; gap: 8px; padding-top: 12px; }
  .cfg__facts li svg { width: 17px; height: 17px; }
  .term__body { padding: 14px 14px 12px; font-size: 11.5px; min-height: 12.6em; }
  .term__tx { padding: 12px 14px 14px; font-size: 11px; }
  .tlimits { gap: 6px; margin-top: 22px; }
  .tlimits div { padding: 11px 9px; border-radius: 12px; }
  .tlimits dt { font-size: 1.15rem; }
  .tlimits dd { font-size: .7rem; }
  .tfacts { margin-top: 22px; gap: 14px; }
  .tfacts p { font-size: .88rem; }
  .tfeed__bar { padding: 12px 14px; }
  .tfeed__head { display: none; }
  .tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "src sev" "code time" "sum sum";
    padding: 10px 14px; row-gap: 2px;
  }
  .tr time { grid-area: time; font-size: 10px; justify-self: end; }
  .tr__src { grid-area: src; font-size: 12px; }
  .tr code { grid-area: code; font-size: 11.5px; }
  .tr .chip { grid-area: sev; justify-self: end; }
  .tr__sum { grid-area: sum; font-size: 11px; }
  .tfeed__win { height: 250px; }
  .tb .icon-box { width: 30px; height: 30px; margin-bottom: 10px; }
  .tb p { font-size: .8rem; }
  .tb__flow { font-size: 10px; gap: 6px; }
  .tb__flow code, .tb__flow span { padding: 5px 6px; }
  .ports li { padding: 6px 10px; font-size: 10.5px; }
  .secgrid .sc h3 { font-size: .95rem; }
  .secgrid .sc p { font-size: .8rem; }
  .secgrid .icon-box { width: 30px; height: 30px; margin-bottom: 10px; }
  .nms-conn { padding: 16px; border-radius: var(--radius-l); }
  .nms-conn__head { margin-bottom: 14px; }
  .nms-conn__head .h3 { font-size: 1.25rem; }
  .conn { padding: 13px; }
  .conn h4 { font-size: .9rem; }
  .conn p { font-size: .8rem; }
  .conn__ic { width: 30px; height: 30px; }
  .nms-faq .faq__item dt { font-size: 1.02rem; }
  .nms-faq .faq__item dd { font-size: .92rem; }
}

@media (min-width: 901px) and (max-height: 780px) {
  .nms-hero { padding-top: calc(var(--header-h) + 18px); padding-bottom: 56px; }
  .nms-hero__title { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.1rem); }
  .nms-hero__kicker { margin-bottom: 14px; }
  .nms-hero__lead { margin-top: 16px; font-size: 1.05rem; }
  .nms-hero__cta { margin-top: 22px; }
  .nms-hero__chips { margin-top: 18px; }
}
html:not(.motion) .hb__head-line { display: none; }
