/* Isolated holographic architecture panel. No shared-site overrides. */
.runtime-architecture-wrap {
  margin-top: 28px;
}
.runtime-architecture {
  --ra-text: var(--diagram-text);
  --ra-muted: var(--diagram-muted);
  --ra-lime: var(--diagram-action);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
  color: var(--ra-text);
  background: var(--diagram-surface);
  border: 1px solid var(--beams-outline);
  border-radius: var(--beams-radius-panel, 4px);
  font-family: var(--beams-font-body, sans-serif);
  isolation: isolate;
}
.runtime-architecture * {
  box-sizing: border-box;
}
.runtime-architecture .ra-overline {
  font: 500 10px/1.5 var(--beams-font-mono, monospace);
  letter-spacing: 0.14em;
  color: var(--ra-muted);
}
.runtime-architecture .ra-stage {
  position: relative;
  height: 377px;
}
.runtime-architecture .ra-beam-title {
  position: absolute;
  left: 50%;
  top: -44px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  white-space: nowrap;
}
.runtime-architecture .ra-beam-title strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.runtime-architecture .ra-viewport {
  position: absolute;
  left: 29%;
  top: 62px;
  width: 42%;
  height: 282px;
}
.runtime-architecture .ra-viewport::before {
  content: "";
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #6853cf23, transparent 68%);
  pointer-events: none;
}
.runtime-architecture .ra-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.runtime-architecture .ra-canvas[hidden] {
  display: none;
}
.runtime-architecture .ra-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--beams-outline);
  border-radius: var(--beams-radius-panel, 4px);
}
.runtime-architecture .ra-source {
  left: 4%;
  top: 66px;
  width: 19%;
  padding: 16px;
  background: var(--diagram-inset);
  transition: border-color 0.2s;
}
.runtime-architecture[data-source-active="true"] .ra-source {
  border-color: var(--ra-lime);
}
.runtime-architecture .ra-spec {
  margin: 12px 0 0;
  color: var(--diagram-text);
  font: 400 9px/1.5 var(--beams-font-mono, monospace);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.runtime-architecture .ra-spec code {
  font: inherit;
  color: inherit;
  background: none;
  padding: 0;
}
.runtime-architecture .ra-spec-key {
  color: #a7b5ce;
}
.runtime-architecture .ra-spec-package {
  color: var(--diagram-purple);
}
.runtime-architecture .ra-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.runtime-architecture .ra-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ra-muted);
  line-height: 1.6;
}
.runtime-architecture .ra-infrastructure {
  position: absolute;
  right: 3%;
  top: 26px;
  width: 29%;
  padding: 16px 14px 16px 102px;
  border: 1px solid #79d9ff44;
  border-radius: var(--beams-radius-panel, 4px);
  background: color-mix(in srgb, var(--diagram-inset) 40%, transparent);
  z-index: 2;
}
.runtime-architecture .ra-infrastructure-title {
  position: relative;
  display: block;
  margin: 0 0 14px -88px;
  color: var(--diagram-text);
  font: 500 14px/1.5 var(--beams-font-body, sans-serif);
}
.runtime-architecture .ra-infrastructure-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.runtime-architecture .ra-connector {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 76px;
  padding: 12px 6px;
  text-align: center;
  color: #79d9ff;
  border-color: #79d9ff66;
  font: 500 11px/1.4 var(--beams-font-mono, monospace);
}
.runtime-architecture .ra-endpoints {
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 1;
}
.runtime-architecture .ra-tunnel-label {
  position: absolute;
  transform: translate(-100%, -100%);
  font: 400 10px/1.5 var(--beams-font-mono, monospace);
  color: #79d9ff;
  white-space: nowrap;
  z-index: 3;
}
.runtime-architecture:not([data-ready="true"]) .ra-connections,
.runtime-architecture:not([data-ready="true"]) .ra-infrastructure-routes,
.runtime-architecture:not([data-ready="true"]) .ra-tunnel-label {
  visibility: hidden;
}
.runtime-architecture .ra-endpoint {
  position: relative;
  min-height: 79px;
  padding: 12px 12px 12px 55px;
  background: var(--diagram-inset);
}
.runtime-architecture .ra-icon {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--diagram-purple);
  background: color-mix(in srgb, var(--diagram-purple) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--diagram-purple) 14%, transparent);
  border-radius: var(--beams-radius-button, 2px);
}
.runtime-architecture .ra-icon svg {
  width: 19px;
  height: 19px;
}
.runtime-architecture .ra-mcp .ra-icon {
  color: var(--diagram-network);
}
.runtime-architecture .ra-llm .ra-icon {
  color: var(--diagram-positive);
}
.runtime-architecture .ra-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.runtime-architecture .ra-route {
  fill: none;
  stroke: var(--diagram-network);
  stroke-width: 1.1;
  opacity: 0.5;
}
.runtime-architecture .ra-route-source {
  stroke: var(--diagram-action);
}
.runtime-architecture .ra-tunnel-sleeve {
  fill: none;
  stroke: color-mix(in srgb, var(--diagram-network) 15%, transparent);
  stroke-width: 10;
  stroke-linecap: round;
}
.runtime-architecture .ra-route-tunnel,
.runtime-architecture .ra-tunnel-direction {
  fill: none;
  stroke: #79d9ff;
  stroke-width: 1.5;
}
.runtime-architecture .ra-branch {
  fill: none;
  stroke: #79d9ff;
  stroke-width: 1;
}
.runtime-architecture .ra-branch-llm {
  stroke: var(--diagram-positive);
  stroke-dasharray: 4 4;
}
.runtime-architecture .ra-signal {
  fill: var(--diagram-network);
  filter: drop-shadow(0 0 3px var(--diagram-network));
}
.runtime-architecture .ra-signal-source {
  fill: var(--diagram-action);
}
.runtime-architecture .ra-signal-tunnel {
  fill: #79d9ff;
  filter: drop-shadow(0 0 3px #79d9ff);
}
.runtime-architecture .ra-state-label {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.runtime-architecture .ra-network-title,
.runtime-architecture .ra-network-service {
  position: absolute;
  z-index: 3;
  color: #79d9ff;
  font: 500 9px/1.35 var(--beams-font-mono, monospace);
  text-align: center;
  background: var(--diagram-surface);
}
.runtime-architecture .ra-network-title {
  transform: translateX(-50%);
  white-space: nowrap;
}
.runtime-architecture .ra-network-service {
  width: 130px;
  padding: 2px 0;
}
.runtime-architecture .ra-network-service::before {
  content: "";
  position: absolute;
  left: var(--ra-leader-x);
  bottom: 100%;
  height: var(--ra-leader-height);
  border-left: 1px solid currentColor;
  opacity: 0.35;
  z-index: -1;
}
.runtime-architecture .ra-network-service strong,
.runtime-architecture .ra-network-service small {
  display: block;
  font: inherit;
}
.runtime-architecture .ra-network-service small {
  color: var(--ra-muted);
}
.runtime-architecture .ra-network-title[hidden],
.runtime-architecture .ra-network-service[hidden] {
  display: none;
}
.runtime-architecture .ra-label {
  position: absolute;
  font: 500 9px/1.4 var(--beams-font-mono, monospace);
  letter-spacing: 0.1em;
  pointer-events: none;
  color: var(--diagram-text);
  z-index: 2;
  white-space: nowrap;
}
.runtime-architecture .ra-layer-callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
  fill: none;
  stroke: color-mix(in srgb, var(--diagram-purple) 60%, transparent);
  stroke-width: 1.25;
  stroke-linecap: round;
}
.runtime-architecture .ra-layer-callouts [data-callout="state"] {
  stroke: #d8fdb099;
}
.runtime-architecture .ra-compute-label {
  position: absolute;
  color: var(--diagram-text);
  z-index: 2;
  font: 600 10px/1.4 var(--beams-font-mono, monospace);
  letter-spacing: 0.12em;
  pointer-events: none;
}
.runtime-architecture .ra-label-state {
  color: #d8fdb0;
}
.runtime-architecture .ra-footer {
  min-height: 50px;
  padding: 10px 24px;
  border-top: 1px solid var(--beams-outline);
  background: var(--diagram-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.runtime-architecture .ra-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--diagram-muted);
}
.runtime-architecture .ra-capabilities span {
  white-space: nowrap;
}
.runtime-architecture .ra-capabilities b {
  color: var(--diagram-purple);
  margin-right: 6px;
}
.runtime-architecture .ra-fallback {
  position: absolute;
  inset: 30px 10% 10px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--diagram-purple) 40%, transparent);
  border-radius: var(--beams-radius-panel, 4px);
  background: var(--diagram-inset);
  text-align: center;
}
.runtime-architecture .ra-fallback span {
  display: block;
  padding: 9px;
  font: 500 10px/1.5 var(--beams-font-mono, monospace);
  letter-spacing: 0.1em;
  border: 1px solid color-mix(in srgb, var(--diagram-purple) 40%, transparent);
  background: color-mix(in srgb, var(--diagram-compute) 20%, transparent);
}
.runtime-architecture .ra-fallback span:nth-child(2) {
  color: var(--diagram-purple);
}
.runtime-architecture .ra-fallback span:nth-child(3) {
  color: #79d9ff;
  border-color: #79d9ff88;
  background: color-mix(in srgb, var(--diagram-network) 13%, transparent);
}
.runtime-architecture .ra-fallback span:nth-child(4) {
  color: #d8fdb0;
}
.runtime-architecture .ra-fallback svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: 5px auto;
}
.runtime-architecture .ra-fallback small {
  font-size: 10px;
  color: var(--ra-muted);
}
.runtime-architecture .ra-fallback[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .runtime-architecture .ra-stage {
    height: 440px;
  }
  .runtime-architecture .ra-viewport {
    left: 24%;
    width: 40%;
    top: 72px;
    height: 250px;
  }
  .runtime-architecture .ra-beam-title,
  .runtime-architecture .ra-state-label {
    left: 50%;
  }
  .runtime-architecture .ra-source {
    padding: 16px;
  }
  .runtime-architecture .ra-infrastructure {
    width: 36%;
    right: 2%;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .runtime-architecture .ra-infrastructure-title {
    margin-bottom: 10px;
  }
  .runtime-architecture .ra-endpoint {
    padding-left: 44px;
  }
  .runtime-architecture .ra-endpoint .ra-icon {
    left: 10px;
    width: 24px;
  }
  .runtime-architecture .ra-endpoint strong {
    font-size: 13px;
  }
  .runtime-architecture .ra-source {
    left: 2%;
    width: 21%;
  }
  .runtime-architecture .ra-footer {
    flex-wrap: wrap;
    justify-content: center;
  }
  .runtime-architecture .ra-label {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .runtime-architecture .ra-stage {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  .runtime-architecture .ra-beam-title {
    left: 50%;
    top: -36px;
  }
  .runtime-architecture .ra-viewport {
    position: relative;
    grid-row: 2;
    left: auto;
    top: auto;
    width: 100%;
    height: 278px;
    margin: 38px 0 32px;
  }
  .runtime-architecture .ra-state-label {
    left: 50%;
    top: 100%;
  }
  .runtime-architecture .ra-source {
    position: relative;
    grid-row: 1;
    left: auto;
    top: auto;
    width: 100%;
    padding: 12px 14px;
  }
  .runtime-architecture .ra-spec {
    font-size: 10px;
  }
  .runtime-architecture .ra-source strong {
    font-size: 14px;
  }
  .runtime-architecture .ra-infrastructure {
    position: relative;
    grid-row: 3;
    top: auto;
    right: auto;
    width: 100%;
    padding: 14px 10px 12px;
  }
  .runtime-architecture .ra-infrastructure-title {
    margin: 0;
  }
  .runtime-architecture .ra-connector {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 12px auto 20px;
    width: 82px;
  }
  .runtime-architecture .ra-tunnel-label {
    transform: translateY(-100%);
    font-size: 9px;
  }
  .runtime-architecture .ra-endpoints {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .runtime-architecture .ra-endpoint {
    padding: 10px 8px;
    min-height: 127px;
    border-radius: var(--beams-radius-panel, 4px);
  }
  .runtime-architecture .ra-icon {
    position: static;
    margin-bottom: 8px;
    width: 25px;
    height: 25px;
  }
  .runtime-architecture .ra-endpoint strong {
    font-size: 12px;
  }
  .runtime-architecture .ra-endpoint p {
    font-size: 10px;
  }
  .runtime-architecture .ra-footer {
    padding: 14px 12px;
    gap: 12px;
  }
  .runtime-architecture .ra-capabilities {
    justify-content: center;
    gap: 7px 14px;
    font-size: 8px;
  }
}
/* Shared navigation structure, in the existing footer rather than over the canvas. */
.runtime-architecture .ra-footer.walkthrough-navigation {
  --scene-columns: 2;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  align-items: center;
}
.runtime-architecture .walkthrough-steps {
  flex: 1 1 260px;
}
.runtime-architecture .ra-runtime-pick {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}
.runtime-architecture .ra-runtime-pick:focus-visible {
  outline: 2px solid var(--diagram-action);
  outline-offset: 2px;
}
.runtime-architecture .ra-runtime-pick[hidden] {
  display: none;
}
.runtime-architecture [data-action][hidden] {
  display: none;
}
.runtime-architecture[data-scene="fleet"] .ra-fallback-detail {
  display: none;
}
.runtime-architecture[data-scene="detail"] .ra-fallback-fleet {
  display: none;
}
.runtime-architecture .ra-fallback-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.runtime-architecture .ra-fallback-detail span {
  padding: 6px;
  font-size: 8px;
}
.runtime-architecture .ra-fallback-detail span:nth-child(3),
.runtime-architecture .ra-fallback-detail span:nth-child(4) {
  grid-column: 1 / -1;
}
.runtime-architecture .ra-fallback-fleet small {
  display: block;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .runtime-architecture .walkthrough-steps {
    flex-basis: 100%;
  }
  .runtime-architecture .ra-footer .walkthrough-steps > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .runtime-architecture .ra-footer button {
    min-height: 44px;
  }
}
