.lab-close-actions,
.lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lab-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: var(--shadow);
}

.lab-workspace {
  display: block;
  min-height: calc(100vh - 74px);
  align-items: start;
  background: #efeee8;
}

.lab-controls {
  position: static;
  max-width: 880px;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}

.lab-results {
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  min-width: 0;
}

.lab-controls,
.lab-results {
  scroll-margin-top: 86px;
}

.lab-panel {
  padding: 22px;
}

.lab-panel-header {
  margin-bottom: 18px;
}

.lab-panel-header.compact {
  margin-top: 28px;
}

.lab-panel-header h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.graph-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.control-heading-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 18px;
}

.control-heading-row .lab-panel-header {
  margin: 0;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.text-button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(17, 19, 25, 0.14);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  border-color: rgba(24, 75, 255, 0.42);
  outline: none;
}

.status-pill[data-severity="high"] {
  border-color: rgba(180, 50, 50, 0.2);
  color: var(--red);
  background: #fff4f0;
}

.status-pill[data-severity="medium"] {
  border-color: rgba(162, 106, 0, 0.26);
  color: var(--amber);
  background: #fff8e7;
}

.status-pill[data-severity="low"] {
  border-color: rgba(24, 75, 255, 0.18);
  color: var(--blue-dark);
  background: #f5f7ff;
}

.scenario-list,
.capability-list {
  display: grid;
  gap: 10px;
}

.scenario-button,
.capability-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.scenario-button {
  padding: 15px;
}

.capability-button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
}

.scenario-button:hover,
.capability-button:hover,
.scenario-button:focus-visible,
.capability-button:focus-visible {
  border-color: rgba(24, 75, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(24, 75, 255, 0.1);
  outline: none;
}

.scenario-button[aria-pressed="true"],
.capability-button[aria-pressed="true"] {
  border-color: rgba(24, 75, 255, 0.5);
  background: #f5f7ff;
}

.scenario-button strong,
.capability-button strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.2;
}

.scenario-button span,
.capability-button span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.capability-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.capability-button[aria-pressed="true"] .capability-check {
  border-color: var(--blue);
  background:
    linear-gradient(135deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
    var(--blue);
}

.agent-picker {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.agent-picker label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.graph-area {
  min-height: 0;
  background: var(--paper);
}

.graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d7d4c9;
}

.legend-dot.active {
  background: var(--blue);
}

.legend-dot.warn {
  background: var(--amber);
}

.legend-dot.risk {
  background: var(--red);
}

.graph-stage {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin: 12px 0 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.graph-column {
  flex: 1 1 96px;
  display: grid;
  grid-template-rows: 34px minmax(116px, 1fr);
  gap: 8px;
  min-width: 96px;
}

.graph-column-label {
  display: flex;
  align-items: flex-end;
  min-height: 34px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-node-card {
  display: grid;
  align-content: center;
  height: 116px;
  min-height: 116px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--soft);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.graph-arrow-step {
  flex: 0 0 22px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
  min-height: 116px;
}

.graph-arrow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.graph-node-card strong {
  font-size: 14px;
  line-height: 1.17;
}

.graph-node-card span {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.3;
}

.graph-node-card.active {
  border-color: rgba(24, 75, 255, 0.38);
  color: var(--blue-dark);
  background: #f5f7ff;
  transform: translateY(-1px);
}

.graph-node-card.warn {
  border-color: rgba(162, 106, 0, 0.34);
  color: #5d3b00;
  background: #fff8e7;
}

.graph-node-card.risk {
  border-color: rgba(180, 50, 50, 0.28);
  color: #742020;
  background: #fff4f0;
}

.finding-panel {
  display: grid;
  gap: 10px;
}

.finding-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.finding-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.finding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.finding-card.high {
  border-color: rgba(180, 50, 50, 0.24);
  background: #fff4f0;
}

.finding-card.medium {
  border-color: rgba(162, 106, 0, 0.26);
  background: #fff8e7;
}

.bom-area {
  position: static;
}

.bom-card {
  padding: 18px;
  border: 1px solid rgba(24, 75, 255, 0.18);
  border-radius: 8px;
  background: #f5f7ff;
}

.bom-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.bom-alert {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(180, 50, 50, 0.2);
  border-radius: 8px;
  background: #fff4f0;
}

.bom-alert span {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bom-alert strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.bom-alert p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.bom-alert code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.bom-field {
  padding: 12px 0;
  border-top: 1px solid rgba(24, 75, 255, 0.14);
}

.bom-field:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bom-field span {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bom-field strong,
.bom-field p {
  display: block;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
}

.bom-subtitle {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.lab-actions {
  margin-top: 14px;
}

.lab-actions .button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.lab-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.lab-close h2 {
  max-width: 820px;
}

.lab-close p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1180px) {
  .lab-controls {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .lab-close {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lab-close-actions {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .graph-heading {
    flex-direction: column;
  }

  .graph-stage {
    flex-direction: column;
    gap: 8px;
    overflow-x: visible;
  }

  .graph-column {
    flex: none;
    grid-template-columns: minmax(88px, 0.28fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    min-width: 0;
  }

  .graph-column-label {
    display: flex;
    align-items: center;
    min-height: 76px;
  }

  .graph-node-card {
    height: auto;
    min-height: 76px;
  }

  .graph-arrow-step {
    display: none;
  }
}

@media (max-width: 680px) {
  .lab-close-actions,
  .lab-actions,
  .lab-actions .button {
    width: 100%;
  }

}

/* Arcade trace mission skin */
.lab-page {
  --lab-ink: #eef5ff;
  --lab-muted: #9aa8c2;
  --lab-soft: #63708d;
  --lab-bg: #05070d;
  --lab-panel: rgba(10, 15, 30, 0.92);
  --lab-panel-strong: rgba(15, 22, 42, 0.96);
  --lab-line: rgba(125, 159, 255, 0.24);
  --lab-blue: #6e8dff;
  --lab-cyan: #5ef2ff;
  --lab-green: #64f4b2;
  --lab-amber: #ffd166;
  --lab-red: #ff657b;
  --lab-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  color: var(--lab-ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #070d18 48%, #0a0d16 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.lab-page [hidden] {
  display: none !important;
}

.lab-page .site-header,
.lab-page .site-footer {
  border-color: rgba(125, 159, 255, 0.18);
  background: rgba(5, 7, 13, 0.86);
  color: var(--lab-muted);
}

.lab-page .brand,
.lab-page .site-footer a:not(.brand),
.lab-page .nav-cta {
  color: var(--lab-ink) !important;
}

.lab-page .nav-cta,
.lab-page .nav-toggle {
  border-color: rgba(94, 242, 255, 0.28);
  color: var(--lab-ink);
  background: rgba(94, 242, 255, 0.06);
  box-shadow: 0 0 24px rgba(94, 242, 255, 0.08);
}

.lab-page .nav-links a:hover,
.lab-page .nav-links a[aria-current="page"] {
  color: var(--lab-cyan);
}

.lab-page h1,
.lab-page h2,
.lab-page h3 {
  color: var(--lab-ink);
}

.lab-page .lab-close p,
.lab-page .field-help,
.lab-page .scenario-button span,
.lab-page .capability-button span,
.lab-page .finding-card p,
.lab-page .bom-subtitle {
  color: var(--lab-muted);
}

.lab-page .eyebrow {
  color: var(--lab-cyan);
  text-shadow: 0 0 18px rgba(94, 242, 255, 0.24);
}

.lab-page .button,
.lab-page .text-button {
  border-color: rgba(94, 242, 255, 0.32);
  color: var(--lab-ink);
  background: rgba(10, 15, 30, 0.72);
  box-shadow: 0 0 0 1px rgba(94, 242, 255, 0.05);
}

.lab-page .button.primary {
  border-color: rgba(94, 242, 255, 0.62);
  color: #031018;
  background: linear-gradient(135deg, var(--lab-cyan), var(--lab-blue));
  box-shadow: 0 0 28px rgba(94, 242, 255, 0.2);
}

.lab-page .button.secondary {
  background: rgba(255, 255, 255, 0.02);
}

.lab-page .lab-panel {
  border-color: var(--lab-line);
  background: var(--lab-panel);
  box-shadow: var(--lab-shadow);
}

.lab-page .lab-workspace {
  min-height: calc(100vh - 74px);
  padding-top: clamp(22px, 4.5vw, 64px);
  padding-bottom: clamp(22px, 4.5vw, 64px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #05070d;
  background-size: 42px 42px, 42px 42px, auto;
}

.lab-page .lab-welcome,
.lab-page .lab-controls,
.lab-page .lab-results {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.lab-page .lab-welcome {
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 190px);
  align-content: center;
  padding: clamp(24px, 5vw, 54px);
  background:
    radial-gradient(circle at 16% 18%, rgba(94, 242, 255, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(110, 141, 255, 0.12), transparent 52%),
    var(--lab-panel-strong);
}

.lab-page .lab-controls {
  display: grid;
  max-width: 760px;
  min-height: calc(100vh - 190px);
  align-content: center;
}

.lab-page .lab-results {
  max-width: 1280px;
  min-height: calc(100vh - 150px);
  align-content: start;
}

.lab-page .guide-briefing {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}

.lab-page .guide-briefing h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 68px);
}

.lab-page .guide-briefing .eyebrow {
  font-size: 13px;
}

.lab-page .guide-briefing p {
  max-width: 820px;
  color: var(--lab-muted);
  font-size: clamp(17px, 2vw, 22px);
}

.lab-page .guide-unit {
  position: relative;
  display: grid;
  justify-items: center;
  width: 110px;
  filter: drop-shadow(0 0 22px rgba(94, 242, 255, 0.2));
}

.lab-page .guide-unit::before,
.lab-page .guide-unit::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 28px;
  height: 2px;
  background: rgba(94, 242, 255, 0.58);
}

.lab-page .guide-unit::before {
  left: 2px;
  transform: rotate(28deg);
}

.lab-page .guide-unit::after {
  right: 2px;
  transform: rotate(-28deg);
}

.lab-page .guide-head {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 78px;
  border: 1px solid rgba(94, 242, 255, 0.5);
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(94, 242, 255, 0.16), rgba(110, 141, 255, 0.08)),
    #08111f;
}

.lab-page .guide-head span {
  display: block;
  width: 54px;
  height: 20px;
  border: 1px solid rgba(94, 242, 255, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--lab-cyan) 0 42%, transparent 42% 58%, var(--lab-green) 58% 100%),
    rgba(94, 242, 255, 0.08);
  box-shadow: 0 0 18px rgba(94, 242, 255, 0.24);
}

.lab-page .guide-head i {
  position: absolute;
  bottom: 10px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(154, 168, 194, 0.45);
}

.lab-page .guide-body {
  display: grid;
  place-items: center;
  width: 70px;
  height: 46px;
  margin-top: -1px;
  border: 1px solid rgba(125, 159, 255, 0.38);
  border-radius: 10px 10px 18px 18px;
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .guide-body b {
  width: 30px;
  height: 14px;
  border: 1px solid rgba(100, 244, 178, 0.48);
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(100, 244, 178, 0.7) 0 3px, transparent 3px 7px);
}

.lab-page .guide-unit.small {
  width: 50px;
  transform: scale(0.48);
  transform-origin: center;
}

.lab-page .guide-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(94, 242, 255, 0.22);
  border-radius: 8px;
  background: rgba(94, 242, 255, 0.055);
}

.lab-page .guide-card span {
  color: var(--lab-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lab-page .guide-card p {
  margin: 4px 0 0;
  color: var(--lab-muted);
  font-size: 13px;
  line-height: 1.4;
}

.lab-page .briefing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lab-page .briefing-grid article {
  min-height: 164px;
  padding: 18px;
  border: 1px solid rgba(125, 159, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .briefing-grid span {
  color: var(--lab-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-page .briefing-grid strong {
  display: block;
  margin-top: 24px;
  color: var(--lab-ink);
  font-size: 20px;
  line-height: 1.15;
}

.lab-page .briefing-grid p,
.lab-page .briefing-footer p {
  margin: 10px 0 0;
  color: var(--lab-muted);
}

.lab-page .briefing-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lab-page .briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lab-page .mission-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}

.lab-page .mission-node {
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(125, 159, 255, 0.18);
  border-radius: 6px;
  color: var(--lab-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-page .mission-node[data-state="active"] {
  border-color: rgba(94, 242, 255, 0.62);
  color: var(--lab-cyan);
  box-shadow: 0 0 24px rgba(94, 242, 255, 0.1);
}

.lab-page .mission-node[data-state="complete"] {
  border-color: rgba(100, 244, 178, 0.38);
  color: var(--lab-green);
}

.lab-page .mission-step {
  padding-top: 2px;
}

.lab-page .mission-action {
  width: 100%;
  margin-top: 16px;
}

.lab-page .scenario-button,
.lab-page .capability-button,
.lab-page .agent-picker select {
  border-color: rgba(125, 159, 255, 0.22);
  color: var(--lab-ink);
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .scenario-button {
  position: relative;
  overflow: hidden;
}

.lab-page .scenario-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--lab-soft);
}

.lab-page .scenario-button[aria-pressed="true"],
.lab-page .capability-button[aria-pressed="true"] {
  border-color: rgba(94, 242, 255, 0.62);
  background: rgba(94, 242, 255, 0.075);
  box-shadow: inset 0 0 24px rgba(94, 242, 255, 0.035), 0 0 24px rgba(94, 242, 255, 0.08);
}

.lab-page .scenario-button[aria-pressed="true"]::before {
  background: var(--lab-cyan);
  box-shadow: 0 0 18px rgba(94, 242, 255, 0.72);
}

.lab-page .scenario-button em {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(94, 242, 255, 0.14);
  color: var(--lab-amber);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.lab-page .scenario-meta {
  margin-bottom: 8px;
  color: var(--lab-cyan) !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-page .capability-check {
  border-color: rgba(125, 159, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

.lab-page .capability-button[aria-pressed="true"] .capability-check {
  border-color: var(--lab-cyan);
  background:
    linear-gradient(135deg, transparent 42%, #06101a 42%, #06101a 58%, transparent 58%),
    var(--lab-cyan);
}

.lab-page .scan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(94, 242, 255, 0.28);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(94, 242, 255, 0.08) 0 1px, transparent 1px 12px),
    rgba(94, 242, 255, 0.055);
  box-shadow: 0 0 32px rgba(94, 242, 255, 0.08);
}

.lab-page .scan-banner span {
  color: var(--lab-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-page .scan-banner strong {
  color: var(--lab-ink);
  font-size: 14px;
}

.lab-page .scan-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.lab-page .scan-actions .button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.lab-page .result-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 1.35fr;
  gap: 12px;
}

.lab-page .result-strip article {
  min-height: 94px;
  padding: 15px;
  border: 1px solid rgba(94, 242, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .result-strip span {
  display: block;
  margin-bottom: 12px;
  color: var(--lab-cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lab-page .result-strip strong {
  display: block;
  color: var(--lab-ink);
  font-size: 16px;
  line-height: 1.25;
}

.lab-page .graph-area {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(110, 141, 255, 0.08), transparent 38%),
    var(--lab-panel);
}

.lab-page .graph-area::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(94, 242, 255, 0.06) 49%, transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.lab-page .graph-stage,
.lab-page .finding-panel,
.lab-page .graph-heading,
.lab-page .graph-legend {
  position: relative;
  z-index: 1;
}

.lab-page .graph-legend {
  color: var(--lab-muted);
}

.lab-page .legend-dot.active {
  background: var(--lab-blue);
}

.lab-page .legend-dot.warn {
  background: var(--lab-amber);
}

.lab-page .legend-dot.risk {
  background: var(--lab-red);
}

.lab-page .legend-dot {
  background: rgba(255, 255, 255, 0.25);
}

.lab-page .graph-column-label {
  color: var(--lab-soft);
}

.lab-page .graph-node-card {
  border-color: rgba(125, 159, 255, 0.22);
  color: var(--lab-soft);
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .graph-node-card.active {
  border-color: rgba(110, 141, 255, 0.54);
  color: #b9c8ff;
  background: rgba(110, 141, 255, 0.11);
}

.lab-page .graph-node-card.warn {
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--lab-amber);
  background: rgba(255, 209, 102, 0.09);
}

.lab-page .graph-node-card.risk {
  border-color: rgba(255, 101, 123, 0.5);
  color: #ffabb8;
  background: rgba(255, 101, 123, 0.09);
}

.lab-page .graph-arrow-step span {
  border-color: rgba(94, 242, 255, 0.3);
  color: var(--lab-cyan);
  background: #08111f;
}

.lab-page .finding-card {
  border-color: rgba(125, 159, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.lab-page .finding-card.high {
  border-color: rgba(255, 101, 123, 0.34);
  background: rgba(255, 101, 123, 0.08);
}

.lab-page .finding-card.medium {
  border-color: rgba(255, 209, 102, 0.32);
  background: rgba(255, 209, 102, 0.07);
}

.lab-page .status-pill[data-severity="high"] {
  border-color: rgba(255, 101, 123, 0.4);
  color: #ffd7dc;
  background: rgba(255, 101, 123, 0.1);
}

.lab-page .status-pill[data-severity="medium"] {
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--lab-amber);
  background: rgba(255, 209, 102, 0.09);
}

.lab-page .status-pill[data-severity="low"] {
  border-color: rgba(94, 242, 255, 0.3);
  color: var(--lab-cyan);
  background: rgba(94, 242, 255, 0.075);
}

.lab-page .bom-card {
  border-color: rgba(94, 242, 255, 0.26);
  background: rgba(94, 242, 255, 0.055);
}

.lab-page .bom-alert {
  border-color: rgba(255, 101, 123, 0.38);
  background: rgba(255, 101, 123, 0.14);
}

.lab-page .bom-alert span {
  color: #ff9aaa;
}

.lab-page .bom-alert strong {
  color: var(--lab-ink);
}

.lab-page .bom-alert p {
  color: var(--lab-muted);
}

.lab-page .bom-alert code,
.lab-page .bom-field strong,
.lab-page .bom-field p {
  color: var(--lab-ink);
}

.lab-page .bom-field {
  border-top-color: rgba(94, 242, 255, 0.16);
}

.lab-page .bom-field span {
  color: var(--lab-cyan);
}

.lab-page .text-button:hover,
.lab-page .button:hover {
  box-shadow: 0 0 28px rgba(94, 242, 255, 0.16);
}

.lab-page .lab-close {
  border-top-color: rgba(125, 159, 255, 0.18);
  background: #070a12;
}

@media (max-width: 980px) {
  .lab-page .briefing-grid,
  .lab-page .result-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-page .result-strip article:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .lab-page .site-header[data-nav-ready][data-nav-open] .nav-links {
    border-color: rgba(125, 159, 255, 0.18);
    background: rgba(10, 15, 30, 0.94);
  }

  .lab-page .guide-briefing,
  .lab-page .briefing-grid,
  .lab-page .result-strip {
    grid-template-columns: 1fr;
  }

  .lab-page .result-strip article:first-child {
    grid-column: auto;
  }

  .lab-page .guide-unit {
    width: 88px;
  }

  .lab-page .mission-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-page .scan-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-page .scan-actions,
  .lab-page .scan-actions .button,
  .lab-page .briefing-actions,
  .lab-page .briefing-actions .button {
    width: 100%;
  }
}
