/* byteomi-runtime-atlas/browser-process-topology.html */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--browser-topology {
  max-width: min(100%, 72rem);
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.doc-byteomi-preset--browser-topology .doc-byteomi-preset__tag {
  color: rgba(46, 231, 242, 0.92);
}

.doc-atlas-guide__insight {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid rgba(46, 231, 242, 0.45);
  border-radius: 0 8px 8px 0;
  background: rgba(8, 18, 28, 0.55);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(190, 210, 235, 0.92);
}

.doc-atlas-guide__node-map {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .doc-atlas-guide__node-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .doc-atlas-guide__node-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.doc-atlas-guide__node-map li {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 100, 150, 0.25);
  background: rgba(4, 10, 20, 0.75);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__node-map strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  background: linear-gradient(102deg, #2ee7f2 0%, #5ec8ff 45%, #b56cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.doc-atlas-guide__control-insight {
  display: block;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(60, 100, 140, 0.3);
  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;
  color: rgba(46, 231, 242, 0.9);
}

.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, 100, 150, 0.22);
  background: rgba(4, 10, 20, 0.65);
}

.doc-atlas-guide__controls dt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: rgba(46, 231, 242, 0.9);
}

.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__signals {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

@media (min-width: 640px) {
  .doc-atlas-guide__signals {
    grid-template-columns: 1fr 1fr;
  }
}

.doc-atlas-guide__signal {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(60, 100, 150, 0.22);
  background: rgba(4, 10, 20, 0.55);
}

.doc-atlas-guide__signal .doc-h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.doc-atlas-guide__signal ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  line-height: 1.52;
  color: rgba(165, 190, 220, 0.9);
}

.doc-atlas-guide__signal-hint {
  margin: 0.45rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(60, 100, 140, 0.25);
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(130, 160, 200, 0.82);
  font-style: italic;
}

.doc-atlas-guide__signal--ok {
  border-color: rgba(46, 231, 242, 0.3);
  background: rgba(6, 20, 28, 0.55);
}

.doc-atlas-guide__signal--ok .doc-h3 {
  color: rgba(46, 231, 242, 0.95);
}

.doc-atlas-guide__signal--warn {
  border-color: rgba(255, 175, 95, 0.32);
  background: rgba(24, 14, 6, 0.5);
}

.doc-atlas-guide__signal--warn .doc-h3 {
  color: rgba(255, 190, 120, 0.95);
}

.doc-atlas-guide__signal--iso {
  border-color: rgba(255, 100, 140, 0.28);
}

.doc-atlas-guide__signal--bad {
  border-color: rgba(255, 90, 80, 0.35);
  background: rgba(24, 8, 10, 0.5);
}

.doc-atlas-guide__signal--bad .doc-h3 {
  color: rgba(255, 130, 110, 0.95);
}

.doc-btop-lab__runtime-note {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-left: 2px solid rgba(46, 231, 242, 0.45);
  border-radius: 0 6px 6px 0;
  background: rgba(6, 14, 24, 0.7);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(155, 185, 220, 0.88);
}

.doc-btop-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(46, 231, 242, 0.75);
}

.doc-btop-lab__scene {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(46, 231, 242, 0.18);
  background: #04080f;
  min-height: min(72vh, 560px);
  height: clamp(420px, 68vh, 640px);
}

.doc-btop-lab__graph {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: grab;
}

.doc-btop-lab__graph.is-panning {
  cursor: grabbing;
}

.doc-btop-lab__tooltip {
  position: absolute;
  z-index: 5;
  max-width: 240px;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 242, 0.35);
  background: rgba(6, 12, 22, 0.96);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  line-height: 1.45;
  color: rgba(190, 215, 240, 0.92);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.doc-btop-lab__tooltip[hidden] {
  display: none;
}

.doc-btop-lab__event-terminal {
  position: absolute;
  right: 0.5rem;
  bottom: 0.45rem;
  z-index: 6;
  width: min(220px, 42%);
  max-height: 118px;
  overflow: hidden;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 242, 0.22);
  background: rgba(4, 10, 18, 0.88);
  backdrop-filter: blur(6px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  line-height: 1.45;
  pointer-events: none;
}

.doc-btop-lab__event-line {
  margin: 0 0 0.2rem;
  color: rgba(150, 180, 220, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: btop-feed-in 0.35s ease-out;
}

.doc-btop-lab__event-line--spawn {
  color: rgba(94, 200, 255, 0.9);
}

.doc-btop-lab__event-line--crash {
  color: rgba(255, 120, 100, 0.95);
}

.doc-btop-lab__event-line--discard {
  color: rgba(255, 175, 120, 0.88);
}

.doc-btop-lab__event-line--gpu {
  color: rgba(255, 185, 110, 0.9);
}

@keyframes btop-feed-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-btop-lab__scene-hint {
  position: absolute;
  left: 0.55rem;
  bottom: 0.4rem;
  z-index: 5;
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  color: rgba(90, 120, 160, 0.55);
  pointer-events: none;
}

.doc-btop-lab__metric--focus strong {
  color: #2ee7f2;
}

.doc-btop-lab__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.doc-btop-lab__rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2ee7f2;
}

.doc-btop-lab__rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee7f2, #b56cff);
  animation: btop-rec-pulse 1.2s ease-in-out infinite;
}

.doc-btop-lab__rec.is-paused::before {
  animation: none;
  opacity: 0.4;
}

@keyframes btop-rec-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.doc-btop-lab__pause-btn {
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(80, 140, 180, 0.35);
  background: rgba(8, 16, 28, 0.9);
  color: rgba(190, 215, 245, 0.92);
  font-size: 0.55rem;
  cursor: pointer;
}

.doc-btop-lab__hud-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.doc-btop-lab__metric {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(60, 100, 150, 0.22);
  background: rgba(4, 10, 20, 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.doc-btop-lab__metric-label {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(120, 160, 200, 0.75);
  margin-bottom: 0.15rem;
}

.doc-btop-lab__metric strong {
  font-size: 0.75rem;
  color: rgba(200, 230, 255, 0.95);
}

.doc-btop-lab__metric--vram strong.is-hot {
  color: #ffb56a;
}

.doc-btop-lab__metric--vram strong.is-critical {
  color: #ff6a6a;
}

.doc-btop-lab__insight {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.6rem;
  border-left: 2px solid rgba(46, 231, 242, 0.4);
  border-radius: 0 8px 8px 0;
  background: rgba(6, 14, 26, 0.8);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(165, 190, 225, 0.92);
}

.doc-btop-lab__insight-label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(46, 231, 242, 0.8);
}

.doc-btop-lab__toast {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 100, 80, 0.4);
  background: rgba(28, 10, 14, 0.85);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  color: #ff9a7a;
  line-height: 1.45;
}

.doc-btop-lab__toast[hidden] {
  display: none;
}

.doc-btop-lab__console {
  margin-top: 0.55rem;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 231, 242, 0.15);
  background: rgba(4, 10, 18, 0.85);
}

.doc-btop-lab__console-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(46, 231, 242, 0.85);
}

.doc-btop-lab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.doc-btop-lab__action {
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(70, 110, 160, 0.35);
  background: rgba(8, 16, 30, 0.9);
  color: rgba(180, 210, 240, 0.9);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.doc-btop-lab__action:hover {
  border-color: rgba(46, 231, 242, 0.5);
  background: rgba(12, 24, 40, 0.95);
}

.doc-btop-lab__action--danger {
  border-color: rgba(255, 80, 70, 0.45);
  color: rgba(255, 150, 130, 0.95);
}

.doc-btop-lab__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(160, 190, 220, 0.82);
}

@media (prefers-reduced-motion: reduce) {
  .doc-btop-lab__rec::before {
    animation: none;
  }
}
