.vb-shell {
  display: grid;
  gap: 18px;
}

.vb-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.vb-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    rgba(9, 16, 28, 0.76);
}

.vb-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%);
  pointer-events: none;
}

.vb-stack {
  display: grid;
  gap: 12px;
}

.vb-metric-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(8, 14, 24, 0.84);
}

.vb-metric-card.is-degraded {
  border-color: rgba(245, 158, 11, 0.22);
}

.vb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-text-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vb-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v3-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.vb-metric-card.is-degraded .vb-kicker::before,
.vb-state-dot.is-degraded {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.vb-metric-card strong {
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.vb-metric-card span,
.vb-copy {
  color: var(--v3-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.vb-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vb-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.9), rgba(59, 130, 246, 0.75));
}

.vb-metric-card.is-degraded .vb-bar > i {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.9), rgba(234, 179, 8, 0.75));
}

.vb-topology-stage {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--v3-text-soft);
  font-size: 12px;
}

.vb-topology-shell {
  display: grid;
  gap: 20px;
}

.vb-topology-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vb-topology-title {
  margin: 0;
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.vb-topology-subhead {
  margin: 8px 0 0;
  color: var(--v3-text-soft);
  font-size: 15px;
  line-height: 1.7;
}

.vb-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.vb-state-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v3-text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v3-green);
}

.vb-diagram-frame {
  position: relative;
  min-height: 420px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  background: rgba(5, 10, 18, 0.94);
  overflow: hidden;
}

.vb-diagram-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.vb-node-label {
  fill: var(--v3-text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-node-box {
  fill: rgba(17, 24, 37, 0.92);
  stroke: rgba(59, 130, 246, 0.22);
  stroke-width: 1.5;
}

.vb-node-box.is-output {
  stroke: rgba(34, 197, 94, 0.3);
}

.vb-node-box.is-warning {
  stroke: rgba(245, 158, 11, 0.28);
}

.vb-core-ring {
  fill: rgba(9, 16, 28, 0.92);
  stroke: rgba(34, 197, 94, 0.75);
  stroke-width: 2.5;
}

.vb-core-pulse {
  fill: none;
  stroke: rgba(34, 197, 94, 0.18);
  stroke-width: 1.5;
}

.vb-path {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.8;
}

.vb-path.is-input-a { stroke: #5eead4; }
.vb-path.is-input-b { stroke: #60a5fa; }
.vb-path.is-input-c { stroke: #f59e0b; }
.vb-path.is-input-d { stroke: #f87171; }
.vb-path.is-input-e { stroke: #facc15; }
.vb-path.is-output { stroke: #22c55e; }
.vb-path.is-warning { stroke: #f59e0b; }

.vb-packet {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.28));
}

.vb-packet,
.vb-packet circle {
  fill: var(--v3-green);
  background: var(--v3-green);
}

.vb-packet.is-warning,
.vb-packet.is-warning circle {
  fill: #f59e0b;
  background: #f59e0b;
}

.vb-topology-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--v3-text-soft);
  font-size: 12px;
}

.vb-compare-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.vb-compare-rail {
  display: grid;
  gap: 12px;
}

.vb-compare-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(7, 12, 22, 0.82);
}

.vb-compare-card strong {
  color: var(--v3-text);
  font-size: 16px;
}

.vb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vb-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 24, 38, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: var(--v3-text-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-chip.is-fragile {
  border-color: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.vb-core-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.vb-core-stage::before {
  content: '';
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.16), transparent 36%);
  filter: blur(24px);
}

.vb-core-ring-shell {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(8, 14, 24, 0.88);
  box-shadow: inset 0 0 48px rgba(34, 197, 94, 0.08);
}

.vb-core-ring-shell::before,
.vb-core-ring-shell::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 197, 94, 0.18);
}

.vb-core-ring-shell::after {
  inset: -14px;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.12);
}

.vb-core-center {
  display: grid;
  gap: 10px;
  width: 164px;
  height: 164px;
  place-items: center;
  border-radius: 50%;
  background: rgba(4, 9, 16, 0.98);
  border: 2px solid rgba(34, 197, 94, 0.32);
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: 34px;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.05em;
}

.vb-core-caption {
  color: var(--v3-text-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vb-ring-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: var(--v3-text-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-ring-label:nth-child(2) { top: -16px; left: 50%; transform: translateX(-50%); }
.vb-ring-label:nth-child(3) { right: -22px; top: 48px; }
.vb-ring-label:nth-child(4) { right: -8px; bottom: 54px; }
.vb-ring-label:nth-child(5) { bottom: -16px; left: 50%; transform: translateX(-50%); }
.vb-ring-label:nth-child(6) { left: -10px; bottom: 54px; }
.vb-ring-label:nth-child(7) { left: -24px; top: 48px; }

.vb-sticky-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
  align-items: start;
}

.vb-sticky-visual {
  position: sticky;
  top: 112px;
}

.vb-flow-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: 24px;
}

.vb-flow-track {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(34, 197, 94, 0.18));
  transform: translateY(-50%);
}

.vb-flow-track::before {
  content: '';
  position: absolute;
  inset: -12px 0;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  filter: blur(18px);
}

.vb-flow-node-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vb-flow-node {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(7, 12, 22, 0.9);
  color: var(--v3-text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.vb-flow-node.is-core {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border-color: rgba(34, 197, 94, 0.26);
  box-shadow: inset 0 0 40px rgba(34, 197, 94, 0.08);
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: 28px;
  letter-spacing: -0.04em;
  text-transform: none;
}

.vb-step-list {
  display: grid;
  gap: 14px;
}

.vb-step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(8, 14, 24, 0.78);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.vb-step.is-active {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(10, 18, 30, 0.92);
  transform: translateX(6px);
}

.vb-step-index {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(59, 130, 246, 0.14));
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: 16px;
  font-weight: 800;
}

.vb-step h3 {
  margin: 0 0 8px;
  color: var(--v3-text);
  font-size: 19px;
}

.vb-step p {
  margin: 0;
  color: var(--v3-text-soft);
  font-size: 14px;
  line-height: 1.68;
}

.vb-flow-visual[data-active-step="1"] .vb-flow-node:nth-child(1),
.vb-flow-visual[data-active-step="2"] .vb-flow-node:nth-child(2),
.vb-flow-visual[data-active-step="3"] .vb-flow-node:nth-child(3),
.vb-flow-visual[data-active-step="4"] .vb-flow-node:nth-child(4) {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
  color: var(--v3-text);
}

.vb-flow-pulse {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--v3-green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.38);
  transform: translateY(-50%);
  opacity: 0;
}

.vb-flow-visual[data-active-step="1"] .vb-flow-pulse { left: 17%; opacity: 1; }
.vb-flow-visual[data-active-step="2"] .vb-flow-pulse { left: 39%; opacity: 1; }
.vb-flow-visual[data-active-step="3"] .vb-flow-pulse { left: 61%; opacity: 1; }
.vb-flow-visual[data-active-step="4"] .vb-flow-pulse { left: 83%; opacity: 1; }

.vb-tile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.vb-tile-main,
.vb-tile-stack > a {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(9, 16, 28, 0.8);
  text-decoration: none;
  overflow: hidden;
}

.vb-tile-main::before,
.vb-tile-stack > a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(34, 197, 94, 0.12), transparent 30%);
  pointer-events: none;
}

.vb-tile-main strong,
.vb-tile-stack strong {
  color: var(--v3-text);
  font-family: var(--v3-font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.vb-tile-main p,
.vb-tile-stack p,
.vb-tile-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--v3-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.vb-tile-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vb-tile-stack {
  display: grid;
  gap: 16px;
}

.vb-tile-stack > a strong {
  font-size: 24px;
}

.vb-grid-matrix {
  display: grid;
  gap: 10px;
}

.vb-explorer-shell {
  display: grid;
  gap: 18px;
}

.vb-explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vb-explorer-tab {
  appearance: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(9, 16, 28, 0.68);
  color: var(--v3-text-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.vb-explorer-tab.is-active {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.vb-explorer-panel {
  display: grid;
  gap: 18px;
}

.vb-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vb-layer-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vb-layer-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vb-layer-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(8, 14, 24, 0.84);
}

.vb-layer-card strong {
  color: var(--v3-text);
  font-size: 16px;
}

.vb-layer-card span {
  color: var(--v3-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.vb-layer-card code,
.vb-inline-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.14);
  color: #c8d7f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.vb-matrix-head,
.vb-matrix-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.vb-matrix-head span,
.vb-matrix-row span {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.82);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--v3-text-soft);
  font-size: 13px;
}

.vb-matrix-head span {
  color: var(--v3-text);
  font-weight: 700;
}

.vb-matrix-row span.is-allowed {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.24);
}

.vb-matrix-row span.is-scoped {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.22);
}

.vb-matrix-row span.is-blocked {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.22);
}

.vb-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vb-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(8, 14, 24, 0.84);
  color: var(--v3-text-soft);
  font-size: 12px;
}

.vb-meta-pill strong {
  color: var(--v3-text);
  font-size: 12px;
}

.vb-audit-list {
  display: grid;
  gap: 10px;
}

.vb-audit-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(8, 14, 24, 0.82);
}

.vb-audit-item strong {
  color: var(--v3-text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-audit-item span {
  color: var(--v3-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.vb-section-note {
  margin: 0;
  color: var(--v3-text-soft);
  font-size: 14px;
  line-height: 1.72;
}

@keyframes vb-pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes vb-float-packet {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .vb-core-pulse {
    animation: vb-pulse-ring 4.6s ease-in-out infinite;
    transform-origin: center;
  }

  .vb-packet {
    animation: vb-float-packet 4.6s linear infinite;
    offset-rotate: 0deg;
  }

  .vb-packet.is-slow {
    animation-duration: 6.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vb-packet,
  .vb-core-pulse {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .vb-split,
  .vb-compare-shell,
  .vb-sticky-grid,
  .vb-tile-grid {
    grid-template-columns: 1fr;
  }

  .vb-sticky-visual {
    position: relative;
    top: auto;
  }

  .vb-diagram-frame,
  .vb-flow-visual {
    min-height: 320px;
  }

  .vb-flow-node {
    width: 88px;
    height: 88px;
    font-size: 10px;
  }

  .vb-flow-node.is-core {
    width: 126px;
    height: 126px;
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .vb-panel {
    padding: 20px;
  }

  .vb-matrix-head,
  .vb-matrix-row {
    grid-template-columns: 1fr;
  }

  .vb-layer-grid {
    grid-template-columns: 1fr;
  }

  .vb-layer-grid.is-two,
  .vb-layer-grid.is-three {
    grid-template-columns: 1fr;
  }

  .vb-audit-item {
    grid-template-columns: 1fr;
  }

  .vb-flow-track {
    left: 26px;
    right: 26px;
  }

  .vb-flow-node-row {
    gap: 10px;
  }

  .vb-core-ring-shell {
    width: 220px;
    height: 220px;
  }

  .vb-core-center {
    width: 132px;
    height: 132px;
    font-size: 28px;
  }
}
