/* byteomi-runtime-atlas/network-stream-pipeline.html — transport flow observatory */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--network-stream {
  max-width: min(100%, 72rem);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  border: 1px solid rgba(55, 75, 110, 0.32);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(4, 8, 16, 0.99) 0%, rgba(3, 6, 12, 0.99) 100%);
  padding: 0.65rem 0.75rem 0.85rem;
}

.doc-byteomi-preset--network-stream .doc-byteomi-preset__tag {
  color: rgba(100, 200, 230, 0.9);
  letter-spacing: 0.14em;
}

.doc-byteomi-preset--network-stream .doc-byteomi-preset__lead {
  color: rgba(155, 180, 215, 0.88);
}

.doc-atlas-guide__read-list {
  --atlas-label-grad: linear-gradient(
    108deg,
    #6ee7f2 0%,
    #5ec8ff 28%,
    #8890ff 58%,
    #7ee8d8 92%
  );
  margin: 0.5rem 0 0;
  padding-left: 0;
  list-style: none;
  color: rgba(175, 192, 215, 0.92);
}

.doc-atlas-guide__read-list li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  line-height: 1.58;
}

.doc-atlas-guide__read-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ec8ff 0%, #8890ff 100%);
}

.doc-atlas-guide__label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--atlas-label-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8ec5ff;
}

.doc-atlas-guide__steps {
  margin: 0.65rem 0;
  padding-left: 1.25rem;
  list-style: none;
  counter-reset: atlas-step;
}

.doc-atlas-guide__steps li {
  position: relative;
  margin-bottom: 0.45rem;
  padding-left: 0.35rem;
  line-height: 1.5;
  color: rgba(175, 200, 230, 0.92);
}

.doc-atlas-guide__steps li::before {
  counter-increment: atlas-step;
  content: counter(atlas-step);
  position: absolute;
  left: -1.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(100, 200, 230, 0.9);
}

.doc-atlas-guide__stage-map {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .doc-atlas-guide__stage-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-atlas-guide__stage-map li {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 95, 140, 0.22);
  background: rgba(5, 9, 16, 0.65);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__stage-map strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(102deg, #7ee8d8 0%, #5ec8ff 50%, #9890ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.doc-atlas-guide__insight {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid rgba(80, 170, 200, 0.5);
  border-radius: 0 8px 8px 0;
  background: rgba(5, 9, 16, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(190, 210, 235, 0.92);
}

.doc-atlas-guide__controls {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.doc-atlas-guide__controls div {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 95, 140, 0.22);
  background: rgba(5, 9, 16, 0.55);
}

.doc-atlas-guide__controls dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(102deg, #7ee8d8 0%, #5ec8ff 45%, #9890ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.doc-atlas-guide__controls dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(165, 190, 225, 0.88);
}

.doc-atlas-guide__control-insight {
  display: block;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(60, 95, 140, 0.28);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(150, 175, 210, 0.88);
}

.doc-atlas-guide__control-insight em {
  font-style: normal;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: rgba(100, 200, 230, 0.92);
}

.doc-atlas-guide__plain {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 80, 120, 0.28);
  background: rgba(4, 8, 14, 0.85);
}

.doc-atlas-guide__plain--under-demo {
  margin-top: 0.55rem;
}

.doc-atlas-guide__plain .doc-h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.doc-atlas-guide__plain p {
  font-size: 0.86rem;
  line-height: 1.58;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__plain a {
  color: #6ee7f2;
}

.doc-atlas-guide__signals {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .doc-atlas-guide__signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-atlas-guide__signal {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(55, 80, 120, 0.35);
  background: rgba(5, 9, 16, 0.7);
}

.doc-atlas-guide__signal .doc-h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.doc-atlas-guide__signal ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(165, 190, 220, 0.88);
}

.doc-atlas-guide__signal--ok {
  border-color: rgba(80, 200, 180, 0.35);
}

.doc-atlas-guide__signal--warn {
  border-color: rgba(230, 180, 90, 0.35);
}

.doc-atlas-guide__signal--bad {
  border-color: rgba(255, 120, 110, 0.35);
}

.doc-atlas-guide__crosslink {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: rgba(150, 175, 210, 0.88);
}

.doc-nsp-lab__runtime-note {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-left: 2px solid rgba(70, 150, 190, 0.45);
  border-radius: 0 6px 6px 0;
  background: rgba(4, 8, 14, 0.85);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(150, 175, 210, 0.88);
}

.doc-nsp-lab__runtime-note-label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(90, 170, 210, 0.8);
}

.doc-nsp-lab__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.45);
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.98) 0%, rgba(5, 9, 16, 0.95) 100%);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-nsp-lab__broadcast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  flex: 1;
  min-width: 0;
}

.doc-nsp-lab__rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6ee7f2;
}

.doc-nsp-lab__rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ec8ff;
  animation: nsp-rec-pulse 1.4s ease-in-out infinite;
}

.doc-nsp-lab__rec.is-paused {
  color: rgba(130, 150, 170, 0.8);
}

.doc-nsp-lab__rec.is-paused .doc-nsp-lab__rec-dot {
  animation: none;
  background: rgba(120, 130, 150, 0.6);
}

.doc-nsp-lab__live-badge {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 110, 100, 0.96);
  padding: 0.16rem 0.38rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 90, 80, 0.42);
  background: rgba(255, 60, 60, 0.1);
}

.doc-nsp-lab__live-badge.is-dim {
  opacity: 0.38;
  border-color: rgba(120, 130, 150, 0.35);
  color: rgba(140, 155, 175, 0.85);
  background: rgba(40, 45, 55, 0.35);
}

.doc-nsp-lab__stream-status {
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 205, 240, 0.88);
}

.doc-nsp-lab__stream-status.is-standby {
  color: rgba(130, 150, 170, 0.78);
}

@keyframes nsp-rec-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.doc-nsp-lab__pause-btn {
  padding: 0.26rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(70, 95, 130, 0.4);
  background: rgba(6, 10, 18, 0.95);
  color: rgba(175, 200, 230, 0.9);
  font-family: inherit;
  font-size: 0.54rem;
  cursor: pointer;
}

.doc-nsp-lab__hud-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(40, 60, 90, 0.35);
  background: rgba(3, 6, 12, 0.75);
}

.doc-nsp-lab__metric {
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(50, 70, 100, 0.4);
  background: rgba(4, 8, 14, 0.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-nsp-lab__metric-label {
  display: block;
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(95, 125, 160, 0.75);
  margin-bottom: 0.1rem;
}

.doc-nsp-lab__metric strong {
  font-size: 0.68rem;
  color: rgba(210, 225, 245, 0.95);
}

.doc-nsp-lab__metric--hol strong {
  color: #ff9a90;
}

.doc-nsp-lab__insight {
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border-left: 2px solid rgba(70, 160, 200, 0.4);
  border-radius: 0 6px 6px 0;
  background: rgba(3, 6, 12, 0.9);
  font-size: 0.64rem;
  line-height: 1.52;
  color: rgba(168, 192, 218, 0.94);
}

.doc-nsp-lab__insight-label {
  display: block;
  margin-bottom: 0.12rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(105, 180, 210, 0.85);
}

.doc-nsp-lab__mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.32rem;
  margin-bottom: 0.45rem;
}

.doc-nsp-lab__mode-btn {
  padding: 0.32rem 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(55, 75, 110, 0.45);
  background: rgba(5, 9, 16, 0.92);
  color: rgba(160, 185, 220, 0.88);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.48rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.doc-nsp-lab__mode-btn.is-active {
  border-color: rgba(90, 200, 220, 0.55);
  color: #6ee7f2;
  background: rgba(8, 18, 28, 0.95);
}

.doc-nsp-lab__stage {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

@media (min-width: 720px) {
  .doc-nsp-lab__stage {
    grid-template-columns: 1fr minmax(160px, 240px);
  }
}

.doc-nsp-lab__pipeline-wrap {
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.5);
  background: #040810;
  overflow: hidden;
  min-height: 380px;
}

.doc-nsp-lab__pipeline {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.doc-nsp-lab__side {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-left: 0.15rem;
}

.doc-nsp-lab__parser-panel {
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.45);
  background: rgba(3, 6, 12, 0.95);
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-nsp-lab__parser-title {
  margin: 0 0 0.35rem;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136, 144, 255, 0.85);
}

.doc-nsp-lab__parser-chunks {
  margin: 0;
  padding: 0 0 0 0.35rem;
  list-style: none;
  font-size: 0.52rem;
  line-height: 1.72;
  color: rgba(185, 220, 255, 0.92);
  max-height: 100px;
  overflow-y: auto;
}

.doc-nsp-lab__parser-chunks li {
  padding: 0.22rem 0 0.22rem 0.15rem;
  border-bottom: 1px solid rgba(40, 60, 90, 0.2);
}

.doc-nsp-lab__parser-chunks .nsp-parser-line {
  color: rgba(185, 220, 255, 0.92);
}

.doc-nsp-lab__parser-chunks .nsp-parser-line.is-active {
  color: var(--nsp-stream-color, rgba(185, 220, 255, 0.95));
  background: rgba(20, 35, 55, 0.35);
  border-radius: 3px;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.doc-nsp-lab__parser-chunks .nsp-tok-tag {
  color: rgba(80, 220, 255, 0.98);
}

.doc-nsp-lab__parser-chunks .nsp-tok-attr {
  color: rgba(255, 190, 110, 0.96);
}

.doc-nsp-lab__parser-chunks .nsp-tok-val {
  color: rgba(190, 150, 255, 0.96);
}

.doc-nsp-lab__parser-chunks .nsp-tok-caret {
  display: inline-block;
  margin-left: 1px;
  color: rgba(110, 230, 255, 0.95);
  animation: nsp-caret-blink 0.85s step-end infinite;
}

@keyframes nsp-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.doc-nsp-lab__log-panel {
  border-radius: 8px;
  border: 1px solid rgba(45, 65, 95, 0.45);
  background: rgba(3, 6, 12, 0.95);
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  flex: 1;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.doc-nsp-lab__log-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(60, 100, 140, 0.04) 2px,
    rgba(60, 100, 140, 0.04) 3px
  );
  z-index: 0;
}

.doc-nsp-lab__log-title {
  margin: 0 0 0.35rem;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(90, 170, 210, 0.8);
  position: relative;
  z-index: 1;
}

.doc-nsp-lab__log {
  margin: 0;
  padding: 0 0 0 0.2rem;
  list-style: none;
  font-size: 0.52rem;
  line-height: 1.68;
  color: rgba(152, 180, 210, 0.92);
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.doc-nsp-lab__log li {
  padding: 0.24rem 0 0.24rem 0.12rem;
  border-bottom: 1px solid rgba(40, 60, 90, 0.25);
}

.doc-nsp-lab__log li.is-fresh {
  color: rgba(110, 220, 240, 0.95);
  animation: nsp-log-flicker 0.55s ease-out 1;
}

.doc-nsp-lab__log li.is-log-warning {
  color: rgba(255, 195, 110, 0.96);
}

.doc-nsp-lab__log li.is-log-congestion {
  color: rgba(255, 120, 105, 0.96);
}

.doc-nsp-lab__log li.is-log-recovery {
  color: rgba(90, 220, 245, 0.96);
}

.doc-nsp-lab__log li.is-log-parser {
  color: rgba(190, 155, 255, 0.96);
}

.doc-nsp-lab__log li.is-log-warning .doc-nsp-lab__log-ts {
  color: rgba(255, 180, 90, 0.88);
}

.doc-nsp-lab__log li.is-log-congestion .doc-nsp-lab__log-ts {
  color: rgba(255, 140, 120, 0.88);
}

.doc-nsp-lab__log li.is-log-recovery .doc-nsp-lab__log-ts {
  color: rgba(100, 210, 235, 0.88);
}

.doc-nsp-lab__log li.is-log-parser .doc-nsp-lab__log-ts {
  color: rgba(170, 140, 230, 0.88);
}

@keyframes nsp-log-flicker {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}

.doc-nsp-lab__log-ts {
  color: rgba(105, 165, 200, 0.82);
  letter-spacing: 0.02em;
}

.doc-nsp-lab__log li.is-fresh .doc-nsp-lab__log-ts {
  color: rgba(115, 210, 235, 0.95);
}

.doc-nsp-lab__readout {
  margin: 0 0 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  line-height: 1.48;
  color: rgba(185, 220, 255, 0.92);
}

.doc-nsp-lab__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  color: rgba(160, 205, 240, 0.88);
}

.doc-nsp-lab__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.doc-nsp-lab__legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  font-style: normal;
}

.doc-nsp-lab__legend i[data-c="hdr"] {
  background: #ffb347;
}

.doc-nsp-lab__legend i[data-c="css"] {
  background: #8890ff;
}

.doc-nsp-lab__legend i[data-c="js"] {
  background: #3ecfd6;
}

.doc-nsp-lab__legend i[data-c="img"] {
  background: #7ee8d8;
}

.doc-nsp-lab__hint {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.5;
  color: rgba(185, 220, 255, 0.9);
}

.doc-nsp-lab__life-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.48rem;
}

.doc-nsp-lab__life-pill {
  --nsp-fill: 0.5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(55, 80, 120, 0.35);
  background: rgba(5, 9, 16, 0.8);
  color: rgba(185, 220, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.doc-nsp-lab__life-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  width: calc(var(--nsp-fill) * 100%);
  background: rgba(90, 180, 220, 0.18);
  box-shadow: inset 0 0 12px rgba(90, 200, 255, 0.12);
  pointer-events: none;
  animation: nsp-life-pulse 2.4s ease-in-out infinite;
}

@keyframes nsp-life-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-nsp-lab__rec-dot,
  .doc-nsp-lab__log li.is-fresh,
  .doc-nsp-lab__parser-chunks .nsp-tok-caret,
  .doc-nsp-lab__life-pill::before {
    animation: none;
  }
}
