@font-face {
  font-family: "Amazon Ember";
  src: url("assets/fonts/AmazonEmberDisplay_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("assets/fonts/AmazonEmberDisplay_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amazon Ember Mono";
  src: url("assets/fonts/AmazonEmberMono_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amazon Ember Mono";
  src: url("assets/fonts/AmazonEmberMono_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #101820;
  --ink-2: #293640;
  --ink-3: #586872;
  --paper: #ffffff;
  --canvas: #eef2f2;
  --panel: #f8fafa;
  --line: #d5dddd;
  --line-dark: #9ba9aa;
  --nav: #101820;
  --orange: #ff9900;
  --orange-dark: #9a5800;
  --green: #237a57;
  --green-soft: #dff1e8;
  --cyan: #007f8b;
  --cyan-soft: #dceff1;
  --blue: #2563a6;
  --blue-soft: #e0ebf7;
  --pink: #b53d62;
  --pink-soft: #f7e2e9;
  --yellow: #8b6500;
  --yellow-soft: #fff1bf;
  --red: #b42318;
  --red-soft: #fde8e6;
  --shadow: 0 18px 42px rgba(16, 24, 32, 0.13);
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Amazon Ember", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(0, 127, 139, 0.38);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 4px;
  color: var(--paper);
  background: var(--nav);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  height: var(--header-h);
  padding: 0 28px;
  border-bottom: 4px solid var(--orange);
  color: var(--paper);
  background: var(--nav);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}

.brand-mark img {
  width: 28px;
  height: 28px;
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: #bfc9ce;
  font-size: 12px;
}

.header-context {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  color: #d7e0e3;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.context-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(35, 122, 87, 0.18);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
}

.mode-badge {
  margin-right: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #d6e0e4;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.icon-button,
.dialog-close {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.icon-button svg,
.dialog-close svg {
  width: 20px;
  height: 20px;
}

.icon-button[data-tooltip]::after {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: 170px;
  padding: 6px 8px;
  border-radius: 3px;
  color: var(--paper);
  background: #05080b;
  content: attr(data-tooltip);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: 140ms ease;
}

.icon-button[data-tooltip]:hover::after,
.icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

main {
  min-height: calc(100vh - var(--header-h));
}

.view {
  display: none;
  min-height: calc(100vh - var(--header-h));
}

.view.is-active {
  display: block;
  animation: view-in 220ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  padding: 11px 17px;
  border: 1px solid var(--orange);
  color: var(--ink);
  background: var(--orange);
}

.primary-button:hover {
  border-color: #ffac2f;
  background: #ffac2f;
}

.primary-button:disabled {
  border-color: #d5dadb;
  color: #8a969b;
  background: #e5e9e9;
  cursor: not-allowed;
}

.secondary-button {
  padding: 11px 16px;
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: var(--paper);
}

.secondary-button:hover {
  border-color: var(--ink-2);
  background: var(--panel);
}

.text-button {
  padding: 8px 5px;
  border: 0;
  color: var(--cyan);
  background: transparent;
}

.text-button:hover {
  color: var(--ink);
}

.text-button:disabled {
  color: var(--line-dark);
  cursor: not-allowed;
}

.primary-button svg,
.secondary-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
}

/* Welcome */

.welcome-view {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--nav);
}

.welcome-view::before,
.welcome-view::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.welcome-view::before {
  top: 0;
  bottom: 0;
  left: 52%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-view::after {
  top: 54%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.welcome-view.is-active {
  display: flex;
  flex-direction: column;
}

.welcome-main {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1500px, 100%);
  flex: 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  align-content: center;
  gap: 70px;
  margin: 0 auto;
  padding: 56px 54px 42px;
}

.welcome-copy {
  align-self: center;
}

.welcome-copy .eyebrow {
  color: #65ccd0;
}

.welcome-copy h1 {
  max-width: 720px;
  margin-bottom: 19px;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1;
}

.welcome-copy h1 span {
  color: var(--orange);
}

.welcome-lede {
  max-width: 680px;
  margin: 0 0 28px;
  color: #c9d3d7;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.45;
}

.mission-brief {
  display: grid;
  max-width: 700px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid #34434d;
  background: #34434d;
}

.mission-brief span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 10px 13px;
  color: #dce4e7;
  background: #16222b;
  font-size: 13px;
}

.mission-brief svg {
  width: 18px;
  height: 18px;
  color: #65ccd0;
}

.mission-brief b {
  color: var(--paper);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.welcome-view .secondary-button {
  border-color: #687782;
  color: var(--paper);
  background: transparent;
}

.welcome-view .secondary-button:hover {
  border-color: #aab8bd;
  background: rgba(255, 255, 255, 0.06);
}

.evidence-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: #aab8bd;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

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

.challenge-count {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(101, 204, 208, 0.45);
  border-radius: 50%;
  color: #9de3e5;
  background: rgba(101, 204, 208, 0.08);
  font-size: 10px;
}

.evidence-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.evidence-dot.measured {
  background: var(--orange);
}

.evidence-dot.modeled {
  background: #65ccd0;
}

.launch-visual {
  position: relative;
  width: 100%;
  height: clamp(500px, 58vh, 620px);
  min-height: 530px;
  align-self: center;
  overflow: hidden;
  border: 1px solid #34434d;
  background: #131e26;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.visual-grid::before,
.visual-grid::after {
  position: absolute;
  content: "";
  background: #40515b;
}

.visual-grid::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.visual-grid::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.visual-eks-marker {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 5px;
  place-items: center;
  transform: translateX(-50%);
  background: #131e26;
}

.visual-eks-marker img {
  width: 48px;
  height: 48px;
}

.visual-label {
  position: absolute;
  left: 25px;
  color: #7f929c;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.visual-label-top {
  top: 24px;
}

.visual-label-bottom {
  bottom: 24px;
}

.visual-node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 152px;
  min-height: 116px;
  place-items: center;
  padding: 14px 12px;
  border: 1px solid #52636d;
  border-top: 4px solid var(--cyan);
  background: #19262f;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.visual-node > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #77d8da;
  background: #253640;
}

.visual-node svg {
  width: 22px;
  height: 22px;
}

.visual-node b {
  font-size: 15px;
}

.visual-node small {
  color: #9fadb4;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
}

.visual-train {
  top: 14%;
  left: 9%;
}

.visual-artifact {
  top: calc(50% - 58px);
  left: calc(50% - 76px);
  border-top-color: var(--orange);
}

.visual-artifact > span {
  color: var(--orange);
}

.visual-serve {
  right: 9%;
  bottom: 14%;
  border-top-color: var(--green);
}

.visual-serve > span {
  color: #79d0ad;
}

.visual-line {
  position: absolute;
  z-index: 1;
  height: 2px;
  transform-origin: 0 50%;
  background: #53656f;
}

.visual-line::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #53656f;
  content: "";
}

.visual-line i {
  position: absolute;
  top: -4px;
  left: 0;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 153, 0, 0.16);
  animation: visual-flow 3.2s ease-in-out infinite;
}

.line-two i {
  animation-delay: 1.6s;
}

@keyframes visual-flow {
  0%,
  12% {
    opacity: 0;
    transform: translate(0, 0);
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0;
    transform: translateX(calc(var(--line-length, 140px) - 11px));
  }
}

.visual-metric {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 10px 12px;
  border-left: 3px solid var(--orange);
  color: var(--paper);
  background: #23313a;
}

.visual-metric b,
.visual-metric span {
  display: block;
}

.visual-metric b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 11px;
}

.visual-metric span {
  margin-top: 3px;
  color: #9eacb3;
  font-size: 11px;
}

.metric-a {
  top: 9%;
  right: 7%;
}

.metric-b {
  bottom: 8%;
  left: 7%;
  border-left-color: #65ccd0;
}

.metric-c {
  right: 31%;
  bottom: 7%;
  border-left-color: var(--green);
}

.join-strip {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) 88px minmax(180px, auto);
  align-items: center;
  gap: 24px;
  padding: 14px max(54px, calc((100vw - 1392px) / 2));
  border-top: 1px solid #33424c;
  background: #15212a;
}

.join-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 153, 0, 0.13);
}

.join-copy .eyebrow {
  margin-bottom: 3px;
  color: #65ccd0;
}

.join-copy h2 {
  margin-bottom: 2px;
  font-size: 19px;
}

.join-copy p:last-child {
  margin: 0;
  color: #9eacb3;
  font-size: 13px;
}

.qr-frame {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  padding: 5px;
  background: var(--paper);
}

.qr-frame img,
.qr-frame canvas {
  width: 74px !important;
  height: 74px !important;
}

.join-url {
  max-width: 380px;
  margin: 0;
  overflow: hidden;
  color: #dbe3e6;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.is-participant .stage-only {
  display: none !important;
}

body.is-participant .welcome-main {
  min-height: calc(100vh - var(--header-h));
}

/* Mission shell */

.mission-view {
  padding: 25px 30px 32px;
}

.mission-view.is-active {
  display: block;
}

.mission-topbar {
  display: flex;
  max-width: 1600px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 15px;
}

.mission-topbar h1 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 42px);
}

.mission-contract {
  display: grid;
  width: min(520px, 45%);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 9px;
  padding: 10px 13px;
  border-left: 4px solid var(--orange);
  background: var(--paper);
  box-shadow: 0 4px 18px rgba(16, 24, 32, 0.06);
}

.mission-contract span {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  color: var(--orange-dark);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.mission-contract svg {
  width: 14px;
  height: 14px;
}

.mission-contract b {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.35;
}

.round-nav {
  display: grid;
  max-width: 1600px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.round-nav button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.round-nav button:last-child {
  border-right: 0;
}

.round-nav button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.round-nav button.is-active {
  color: var(--ink);
  background: #f3f7f7;
}

.round-nav button.is-active::after {
  background: var(--orange);
}

.round-nav button.is-complete::after {
  background: var(--green);
}

.round-nav button > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
  background: var(--canvas);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.round-nav button.is-active > span:first-child {
  color: var(--ink);
  background: var(--orange);
}

.round-nav button.is-complete > span:first-child {
  color: var(--paper);
  background: var(--green);
}

.round-nav button > span:last-child {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-ribbon {
  display: grid;
  max-width: 1600px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto 13px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.score-meter {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(45px, 1fr) 28px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-right: 1px solid var(--line);
}

.score-meter:last-child {
  border-right: 0;
}

.score-meter > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
}

.score-meter svg {
  width: 15px;
  height: 15px;
}

.score-meter > b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 11px;
  text-align: right;
}

.meter-track {
  height: 6px;
  overflow: hidden;
  background: #e1e7e7;
}

.meter-track i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--cyan);
  transition: width 400ms ease, background 200ms ease;
}

.score-meter[data-score="cost"] .meter-track i {
  background: var(--green);
}

.score-meter[data-score="isolation"] .meter-track i {
  background: var(--blue);
}

.score-meter[data-score="operability"] .meter-track i {
  background: var(--pink);
}

.mission-layout {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(620px, 1.28fr) minmax(420px, 0.72fr);
  gap: 13px;
  margin: 0 auto;
}

/* Architecture map */

.platform-map,
.decision-console {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(16, 24, 32, 0.07);
}

.map-toolbar,
.console-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #d5dfe2;
  background: var(--nav);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
}

.map-toolbar > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-toolbar > span {
  overflow: hidden;
  color: #94a4ac;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.map-canvas {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  background: #f4f7f7;
}

.map-canvas::before,
.map-canvas::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.map-canvas::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #d9e0e0;
}

.map-canvas::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #e3e8e8;
}

.eks-boundary {
  position: absolute;
  z-index: 0;
  inset: 24px 26px 22px;
  border: 2px dashed #87a4aa;
  pointer-events: none;
}

.eks-boundary > span {
  position: absolute;
  top: -16px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  color: var(--cyan);
  background: #f4f7f7;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.eks-boundary img {
  width: 18px;
  height: 18px;
}

.map-lane {
  position: absolute;
  z-index: 2;
  right: 7%;
  left: 7%;
  display: grid;
  grid-template-columns: 128px minmax(30px, 1fr) 144px minmax(30px, 1fr) 128px;
  align-items: center;
}

.training-lane {
  top: 16%;
}

.serving-lane {
  bottom: 15%;
  grid-template-columns: 116px minmax(24px, 1fr) 120px minmax(24px, 1fr) 142px minmax(24px, 1fr) 116px;
}

.lane-label {
  position: absolute;
  top: -25px;
  left: 0;
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.map-node {
  position: relative;
  z-index: 3;
  display: grid;
  min-width: 0;
  min-height: 90px;
  place-items: center;
  padding: 9px 8px;
  border: 1px solid #b9c6c7;
  border-top: 4px solid #809296;
  background: var(--paper);
  text-align: center;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.map-node.is-live {
  border-color: var(--cyan);
  border-top-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 127, 139, 0.12);
  transform: translateY(-2px);
}

.map-node.is-confirmed,
.map-storage.is-confirmed {
  animation: node-confirm 780ms ease-out 1;
}

@keyframes node-confirm {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.5);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(255, 153, 0, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
  }
}

.map-node.is-good {
  border-top-color: var(--green);
}

.map-node.is-warning {
  border-top-color: var(--orange);
}

.map-node.is-risk {
  border-top-color: var(--red);
}

.map-node > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.map-node svg {
  width: 17px;
  height: 17px;
}

.map-node b {
  min-width: 0;
  font-size: 12px;
}

.map-node small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpu-job,
.gpu-fleet {
  min-height: 112px;
  padding-bottom: 23px;
  border-top-color: var(--orange);
}

.gpu-job::after,
.gpu-fleet::after {
  position: absolute;
  bottom: 9px;
  left: calc(50% - 31px);
  display: block;
  width: 16px;
  height: 7px;
  background: #dfe6e6;
  box-shadow:
    23px 0 0 #dfe6e6,
    46px 0 0 #dfe6e6;
  content: "";
}

.gpu-job.is-good::after,
.gpu-fleet.is-good::after {
  background: #8bc7aa;
  box-shadow:
    23px 0 0 #8bc7aa,
    46px 0 0 #8bc7aa;
}

.map-edge {
  position: relative;
  z-index: 1;
  height: 2px;
  background: #93a3a6;
}

.map-edge::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #93a3a6;
  content: "";
}

.map-edge i {
  position: absolute;
  top: -3px;
  left: 0;
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: edge-flow 1.8s linear infinite;
}

.map-edge.is-flowing {
  background: var(--orange);
}

.map-edge.is-flowing::after {
  border-left-color: var(--orange);
}

.map-edge.is-flowing i {
  display: block;
  animation: edge-flow 620ms ease-out 1 forwards;
}

@keyframes edge-flow {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 8px);
  }
}

.artifact-bridge {
  position: absolute;
  z-index: 4;
  top: calc(50% - 32px);
  left: calc(50% - 42px);
  width: 84px;
}

.artifact-node {
  min-height: 64px;
  padding: 5px 6px;
  border-top-color: var(--orange);
}

.artifact-node > span {
  width: 24px;
  height: 24px;
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.artifact-node svg {
  width: 14px;
  height: 14px;
}

.artifact-node b {
  font-size: 11px;
}

.artifact-node small {
  font-size: 7px;
}

.map-bridge-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  min-width: 100%;
  pointer-events: none;
}

.map-bridge-line {
  position: absolute;
  height: 2px;
  transform-origin: 0 50%;
  background: #93a3a6;
}

.map-bridge-line::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #93a3a6;
  content: "";
}

.map-bridge-line i {
  position: absolute;
  top: -3px;
  left: 0;
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.map-bridge-line.is-flowing {
  background: var(--orange);
}

.map-bridge-line.is-flowing::after {
  border-left-color: var(--orange);
}

.map-bridge-line.is-flowing i {
  display: block;
  animation: edge-flow 620ms ease-out 1 forwards;
}

.map-bridge-line.vertical {
  width: 2px;
  transform: none !important;
}

.map-bridge-line.vertical::after {
  top: auto;
  right: -4px;
  bottom: -1px;
  border-top: 7px solid #93a3a6;
  border-right: 5px solid transparent;
  border-bottom: 0;
  border-left: 5px solid transparent;
}

.map-bridge-line.vertical.is-flowing::after {
  border-top-color: var(--orange);
}

.map-bridge-line.vertical i {
  top: 0;
  left: -3px;
}

.map-bridge-line.vertical.is-flowing i {
  animation: bridge-flow-vertical 620ms ease-out 1 forwards;
}

@keyframes bridge-flow-vertical {
  from {
    top: 0;
  }
  to {
    top: calc(100% - 8px);
  }
}

.map-storage {
  position: absolute;
  z-index: 5;
  right: 7%;
  bottom: 3%;
  display: flex;
  width: 174px;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--paper);
}

.map-storage img {
  width: 28px;
  height: 28px;
}

.map-storage span,
.map-storage b,
.map-storage small {
  display: block;
  min-width: 0;
}

.map-storage b {
  font-size: 11px;
}

.map-storage small {
  overflow: hidden;
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--nav);
}

.telemetry-strip > div {
  min-width: 0;
  padding: 9px 11px;
  border-right: 1px solid #35444d;
}

.telemetry-strip > div:last-child {
  border-right: 0;
}

.telemetry-strip span,
.telemetry-strip b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-strip span {
  color: #81939c;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
}

.telemetry-strip b {
  margin-top: 3px;
  color: #dce4e7;
  font-size: 11px;
}

/* Decision console */

.decision-console {
  display: flex;
  min-height: 584px;
  flex-direction: column;
}

.console-head span:last-child {
  color: #8cced2;
}

.decision-body {
  flex: 1;
  padding: 20px;
}

.decision-situation {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.decision-body h2 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.2;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-card:hover {
  border-color: var(--line-dark);
  background: #f7fafa;
  transform: translateX(2px);
}

.option-card.is-selected {
  border-color: var(--cyan);
  background: #edf8f8;
  box-shadow: inset 4px 0 0 var(--cyan);
}

.option-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.option-icon svg {
  width: 18px;
  height: 18px;
}

.option-copy {
  min-width: 0;
}

.option-copy strong,
.option-copy small {
  display: block;
}

.option-copy strong {
  margin: 1px 0 3px;
  font-size: 14px;
}

.option-copy small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.35;
}

.option-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  align-self: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: transparent;
}

.option-card.is-selected .option-check {
  border-color: var(--cyan);
  color: var(--paper);
  background: var(--cyan);
}

.option-check svg {
  width: 13px;
  height: 13px;
}

.option-badge {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 5px;
  border-radius: 2px;
  color: var(--orange-dark);
  background: var(--yellow-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.option-badge.modeled {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.decision-feedback {
  display: none;
  margin-top: 12px;
  padding: 12px 13px;
  border-left: 4px solid var(--cyan);
  background: #f0f5f5;
}

.decision-feedback.is-visible {
  display: block;
  animation: feedback-in 180ms ease both;
}

@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.decision-feedback > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.decision-feedback h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.decision-feedback p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}

.impact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.impact-chips span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-3);
  background: var(--paper);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.impact-chips .positive {
  border-color: #9acdb4;
  color: var(--green);
  background: var(--green-soft);
}

.impact-chips .negative {
  border-color: #e6aaa5;
  color: var(--red);
  background: var(--red-soft);
}

.console-actions {
  display: grid;
  min-height: 65px;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #f5f8f8;
}

.console-actions > span {
  color: var(--ink-3);
  font-size: 10px;
  text-align: center;
}

/* Results */

.results-view,
.lab-view {
  padding: 38px 42px 52px;
}

.results-view.is-active,
.lab-view.is-active {
  display: block;
}

.result-heading,
.lab-heading {
  display: flex;
  max-width: 1420px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 auto 24px;
}

.result-heading h1,
.lab-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.02;
}

.result-heading > div:first-child > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1.45;
}

.result-seal {
  display: grid;
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.result-seal.is-risk {
  border-color: var(--orange-dark);
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.result-seal svg {
  width: 44px;
  height: 44px;
  margin-bottom: -18px;
}

.result-seal span {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.results-layout {
  display: grid;
  max-width: 1420px;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
  margin: 0 auto 16px;
}

.final-scorecard,
.contract-review,
.decision-review {
  border: 1px solid var(--line);
  background: var(--paper);
}

.profile-heading {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-heading > span {
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.profile-heading h2 {
  margin: 6px 0;
  font-size: 28px;
}

.profile-heading p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}

.final-meters {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.final-meter {
  display: grid;
  grid-template-columns: 105px minmax(100px, 1fr) 34px;
  align-items: center;
  gap: 12px;
}

.final-meter span {
  font-size: 12px;
  font-weight: 700;
}

.final-meter > div {
  height: 12px;
  background: #e1e7e7;
}

.final-meter i {
  display: block;
  width: var(--score);
  height: 100%;
  background: var(--meter-color);
}

.final-meter b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 12px;
  text-align: right;
}

.section-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
}

.review-status {
  padding: 5px 8px;
  border-radius: 3px;
  color: var(--green);
  background: var(--green-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.review-status.has-risks {
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.constraint-list {
  display: grid;
}

.constraint-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}

.constraint-row:last-child {
  border-bottom: 0;
}

.constraint-row > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.constraint-row.is-risk > span:first-child {
  color: var(--red);
  background: var(--red-soft);
}

.constraint-row svg {
  width: 16px;
  height: 16px;
}

.constraint-row b,
.constraint-row small {
  display: block;
}

.constraint-row b {
  font-size: 12px;
}

.constraint-row small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
}

.constraint-row > em {
  color: var(--green);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.constraint-row.is-risk > em {
  color: var(--red);
}

.decision-review {
  max-width: 1420px;
  margin: 0 auto;
}

.decision-record {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-height: 105px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-item:nth-child(3n) {
  border-right: 0;
}

.record-item:nth-child(n + 4) {
  border-bottom: 0;
}

.record-item > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
}

.record-item b,
.record-item small,
.record-item em {
  display: block;
}

.record-item b {
  margin-bottom: 3px;
  font-size: 12px;
}

.record-item small {
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.35;
}

.record-item em {
  margin-top: 6px;
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.result-actions {
  display: flex;
  max-width: 1420px;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px auto 0;
}

/* Labs */

.lab-heading {
  align-items: end;
}

.lab-heading h1 {
  max-width: 970px;
  margin: 0;
}

.lab-tabs {
  display: grid;
  max-width: 1420px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.lab-tabs button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.lab-tabs button:last-child {
  border-right: 0;
}

.lab-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: transparent;
  content: "";
}

.lab-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #f4f8f8;
}

.lab-tabs button[aria-selected="true"]::after {
  background: var(--orange);
}

.lab-tabs svg {
  width: 18px;
  height: 18px;
}

.lab-panel {
  display: none;
  max-width: 1420px;
  margin: 14px auto 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
}

.lab-panel.is-active {
  display: block;
  animation: view-in 180ms ease both;
}

.lab-panel-heading {
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.lab-panel-heading h2 {
  margin: 6px 0 3px;
  font-size: 24px;
}

.lab-panel-heading p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.evidence-label {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 2px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.evidence-label.measured {
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.evidence-label.mixed {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Sandbox incident drill */

.drill-score {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #9acdb4;
  border-radius: 3px;
  color: var(--green);
  background: var(--green-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.training-drill-stage {
  min-height: 480px;
}

.drill-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.training-reference {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #101820;
}

.training-reference span {
  flex: 1 1 150px;
  padding: 10px 13px;
  border-right: 1px solid #34434d;
  color: #c9d3d7;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
}

.training-reference span:last-child {
  border-right: 0;
}

.training-reference b {
  color: #ffb84d;
}

.drill-nav button {
  position: relative;
  display: grid;
  min-height: 61px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.drill-nav button:last-child {
  border-right: 0;
}

.drill-nav button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: transparent;
  content: "";
}

.drill-nav button.is-active {
  color: var(--ink);
  background: #f4f8f8;
}

.drill-nav button.is-active::after {
  background: var(--orange);
}

.drill-nav button.is-complete::after {
  background: var(--green);
}

.drill-nav button.is-risk::after {
  background: var(--orange);
}

.drill-nav button > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.drill-nav button.is-complete > span:first-child {
  background: var(--green);
}

.drill-nav button.is-risk > span:first-child {
  background: var(--orange-dark);
}

.drill-nav b,
.drill-nav small {
  display: block;
}

.drill-nav b {
  font-size: 11px;
}

.drill-nav small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 9px;
}

.drill-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
}

.drill-observation {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #f4f7f7;
}

.drill-contract {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
  padding: 5px 7px;
  border-radius: 2px;
  color: var(--blue);
  background: var(--blue-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.drill-contract svg {
  width: 14px;
  height: 14px;
}

.drill-observation h3 {
  margin-bottom: 7px;
  font-size: 24px;
  line-height: 1.15;
}

.drill-observation > p {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.drill-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.drill-signal {
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal-color, var(--cyan));
  background: var(--paper);
}

.drill-signal span,
.drill-signal b,
.drill-signal small {
  display: block;
}

.drill-signal span {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.drill-signal b {
  margin-top: 4px;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 15px;
}

.drill-signal small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 9px;
}

.drill-decision {
  min-width: 0;
  padding: 22px;
}

.drill-decision > span {
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.drill-decision h3 {
  margin: 6px 0 13px;
  font-size: 20px;
}

.drill-choice-list {
  display: grid;
  gap: 8px;
}

.drill-choice {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.drill-choice:hover {
  border-color: var(--line-dark);
  background: #f7fafa;
}

.drill-choice.is-selected {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.drill-choice > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: var(--paper);
}

.drill-choice svg {
  width: 17px;
  height: 17px;
}

.drill-choice b,
.drill-choice small {
  display: block;
}

.drill-choice b {
  font-size: 12px;
}

.drill-choice small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.35;
}

.drill-choice > i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: transparent;
  font-style: normal;
}

.drill-choice.is-selected > i {
  border-color: var(--cyan);
  color: var(--paper);
  background: var(--cyan);
}

.drill-choice > i svg {
  width: 12px;
  height: 12px;
}

.drill-feedback {
  display: none;
  margin-top: 11px;
  padding: 11px 12px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.drill-feedback.is-visible {
  display: block;
  animation: feedback-in 180ms ease both;
}

.drill-feedback.is-risk {
  border-left-color: var(--orange);
  background: var(--yellow-soft);
}

.drill-feedback b {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.drill-feedback p {
  margin: 0;
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.4;
}

.drill-footer {
  display: grid;
  min-height: 66px;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: #f5f8f8;
}

.drill-footer > span {
  color: var(--ink-3);
  font-size: 10px;
  text-align: center;
}

.drill-summary {
  padding: 24px;
}

.drill-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drill-summary-heading > span {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.drill-summary-heading > span.has-risks {
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.drill-summary-heading svg {
  width: 30px;
  height: 30px;
}

.drill-summary-heading h3 {
  margin-bottom: 5px;
  font-size: 25px;
}

.drill-summary-heading p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
}

.drill-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.drill-review-item {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.drill-review-item:last-child {
  border-right: 0;
}

.drill-review-item > span {
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.drill-review-item h4 {
  margin: 6px 0 4px;
  font-size: 13px;
}

.drill-review-item p {
  margin: 0;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.4;
}

.drill-review-item em {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 5px;
  border-radius: 2px;
  color: var(--green);
  background: var(--green-soft);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.drill-review-item em.is-risk {
  color: var(--orange-dark);
  background: var(--yellow-soft);
}

.drill-summary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
}

.fit-lab-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.65fr) minmax(0, 1.35fr);
}

.fit-controls {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #f7f9f9;
}

.fit-controls fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.fit-controls legend {
  margin-bottom: 7px;
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}

.segmented-control button {
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

.formula-box {
  padding: 14px;
  border-left: 4px solid var(--cyan);
  background: var(--paper);
}

.formula-box span,
.formula-box code,
.formula-box p {
  display: block;
}

.formula-box span {
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.formula-box code {
  margin: 7px 0;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.formula-box p {
  margin: 0;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.35;
}

.fit-result {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  grid-template-rows: 1fr auto;
  min-height: 470px;
}

.math-rows {
  align-self: center;
  padding: 22px;
}

.math-row {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) auto;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.math-row:last-child {
  border-bottom: 3px double var(--line-dark);
}

.math-row span {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.math-row b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 13px;
}

.gpu-bay {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 10px;
  padding: 28px;
  border-left: 1px solid var(--line);
  background: #f3f6f6;
}

.gpu-card {
  position: relative;
  display: grid;
  min-height: 112px;
  align-items: end;
  overflow: hidden;
  border: 1px solid #aab8ba;
  background: #dce3e3;
}

.gpu-card i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--fill);
  background: var(--cyan);
  transition: height 350ms ease;
}

.gpu-card.is-idle i {
  height: 0;
}

.gpu-card span,
.gpu-card b {
  position: relative;
  z-index: 1;
  display: block;
  padding: 5px;
  color: var(--paper);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  text-align: center;
}

.gpu-card.is-idle span,
.gpu-card.is-idle b {
  color: var(--ink-3);
}

.gpu-card b {
  padding-bottom: 0;
  font-size: 12px;
}

.fit-verdict {
  grid-column: 1 / -1;
  min-height: 92px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-left: 5px solid var(--green);
  background: var(--green-soft);
}

.fit-verdict b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.fit-verdict p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
}

/* Incident lab */

.incident-console {
  background: #f4f7f7;
}

.incident-phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.incident-phases button {
  display: grid;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.incident-phases button:last-child {
  border-right: 0;
}

.incident-phases button.is-active {
  background: var(--yellow-soft);
  box-shadow: inset 0 -4px 0 var(--orange);
}

.incident-phases b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
}

.incident-phases span {
  font-size: 11px;
  font-weight: 700;
}

.incident-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(180px, 0.75fr) minmax(300px, 1.5fr);
  gap: 14px;
  padding: 22px;
}

.signal-card,
.trigger-formula {
  min-height: 200px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  background: var(--paper);
}

.ttft-signal {
  border-top-color: var(--blue);
}

.signal-card > span,
.trigger-formula > span {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.signal-card > b {
  display: block;
  margin: 17px 0 12px;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 48px;
  line-height: 1;
}

.signal-card > b em {
  margin-left: 3px;
  color: var(--ink-3);
  font-size: 15px;
  font-style: normal;
}

.signal-card > small {
  display: block;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 10px;
}

.signal-track {
  position: relative;
  height: 13px;
  overflow: hidden;
  background: #e0e6e6;
}

.signal-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 550ms ease;
}

.ttft-signal .signal-track i {
  background: var(--blue);
}

.signal-track.has-threshold {
  overflow: visible;
}

.signal-track u {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 25%;
  border-left: 2px dashed var(--red);
  text-decoration: none;
}

.trigger-formula {
  display: grid;
  align-content: center;
  border-top-color: var(--green);
}

.trigger-formula code {
  display: block;
  margin: 16px 0;
  padding: 12px;
  color: #dce7e9;
  background: var(--ink);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 12px;
}

.trigger-formula > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.trigger-formula > div b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 35px;
}

.trigger-formula > div small {
  color: var(--ink-3);
}

.incident-verdicts {
  display: grid;
  grid-template-columns: 185px 185px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.incident-verdicts > div {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.incident-verdicts > div span {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.incident-verdicts > div b {
  color: var(--ink-3);
  font-size: 17px;
}

.incident-verdicts > div.is-go {
  background: var(--green-soft);
}

.incident-verdicts > div.is-go b {
  color: var(--green);
}

.incident-verdicts > div.is-miss {
  background: var(--red-soft);
}

.incident-verdicts > div.is-miss b {
  color: var(--red);
}

.incident-verdicts p {
  align-self: center;
  margin: 0;
  padding: 16px 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}

.fleet-phases {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fleet-workloads {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.fleet-workload {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.1fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr);
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.fleet-workload:last-child {
  border-bottom: 0;
}

.fleet-workload > * {
  min-width: 0;
  padding: 10px 14px;
}

.fleet-workload > * + * {
  border-left: 1px solid var(--line);
}

.fleet-workload b {
  font-size: 12px;
}

.fleet-workload code {
  color: var(--cyan);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
}

.fleet-workload span {
  color: var(--ink-3);
  font-size: 10px;
}

.fleet-workload em {
  color: var(--orange-dark);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.fleet-workload em.is-ready {
  color: var(--green);
}

.fleet-workload-header {
  min-height: 34px;
  color: var(--ink-3);
  background: #f4f7f7;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.fleet-workload-header span {
  color: inherit;
  font-size: inherit;
}

/* Evidence lab */

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
}

.experiment-list {
  border-right: 1px solid var(--line);
}

.experiment-button {
  display: grid;
  width: 100%;
  min-height: 78px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.experiment-button:last-child {
  border-bottom: 0;
}

.experiment-button.is-active {
  background: #f2f7f7;
  box-shadow: inset 4px 0 0 var(--cyan);
}

.experiment-button > span:first-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
}

.experiment-button b,
.experiment-button small {
  display: block;
}

.experiment-button b {
  font-size: 12px;
}

.experiment-button small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 9px;
}

.experiment-button em {
  padding: 4px 5px;
  border-radius: 2px;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.experiment-button em.good {
  color: var(--green);
  background: var(--green-soft);
}

.experiment-button em.bad {
  color: var(--red);
  background: var(--red-soft);
}

.experiment-button em.flat {
  color: var(--yellow);
  background: var(--yellow-soft);
}

.experiment-result {
  padding: 22px;
}

.experiment-bars {
  display: grid;
  gap: 14px;
}

.experiment-bar {
  display: grid;
  grid-template-columns: 145px minmax(150px, 1fr) 170px;
  align-items: center;
  gap: 13px;
}

.experiment-bar > span {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.experiment-track {
  position: relative;
  height: 18px;
  background: #e1e7e7;
}

.experiment-track::before {
  position: absolute;
  z-index: 2;
  top: -3px;
  bottom: -3px;
  left: 50%;
  border-left: 2px solid var(--ink-3);
  content: "";
}

.experiment-track i {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: var(--bar-color);
  transition: width 450ms ease;
}

.experiment-bar > b {
  font-family: "Amazon Ember Mono", monospace;
  font-size: 10px;
}

.experiment-verdict {
  margin-top: 21px;
  padding: 15px 17px;
  border-left: 5px solid var(--green);
  background: var(--green-soft);
}

.experiment-verdict.bad {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.experiment-verdict.flat {
  border-left-color: var(--yellow);
  background: var(--yellow-soft);
}

.experiment-verdict h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.experiment-verdict p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.cold-start-strip {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 25px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #f5f8f8;
}

.cold-start-strip h3 {
  margin: 7px 0 0;
  font-size: 19px;
}

.cold-bars {
  display: grid;
  gap: 8px;
}

.cold-bars > span {
  display: grid;
  grid-template-columns: 120px minmax(100px, 1fr) 70px;
  align-items: center;
  gap: 10px;
}

.cold-bars b,
.cold-bars em {
  font-size: 10px;
}

.cold-bars i {
  display: block;
  width: var(--bar);
  height: 10px;
  background: var(--orange);
}

.cold-bars em {
  color: var(--ink-3);
  font-family: "Amazon Ember Mono", monospace;
  font-style: normal;
  text-align: right;
}

/* Dialogs and toast */

.app-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(10, 18, 24, 0.72);
}

.dialog-shell {
  padding: 22px;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.dialog-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.dialog-close {
  color: var(--ink);
}

.dialog-close:hover {
  background: var(--canvas);
}

.dialog-shell label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.dialog-shell input {
  width: 100%;
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
}

.field-note,
.source-note {
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.source-list {
  display: grid;
  border: 1px solid var(--line);
}

.source-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-list a:last-child {
  border-bottom: 0;
}

.source-list a:hover {
  background: #f4f8f8;
}

.source-list strong,
.source-list small {
  display: block;
}

.source-list strong {
  font-size: 13px;
}

.source-list small {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 10px;
}

.source-list svg {
  color: var(--cyan);
}

.source-note {
  margin-top: 13px;
}

.toast {
  position: fixed;
  z-index: 210;
  right: 20px;
  bottom: 20px;
  max-width: min(370px, calc(100vw - 40px));
  padding: 11px 14px;
  border-left: 4px solid var(--orange);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Agentic AI arena adaptations */

.gpu-job,
.gpu-fleet {
  padding-bottom: 12px;
}

.gpu-job::after,
.gpu-fleet::after {
  display: none;
}

.architecture-bay {
  grid-template-columns: repeat(3, minmax(64px, 1fr));
}

.architecture-card {
  min-height: 96px;
}

.architecture-card i {
  opacity: 0.92;
}

.architecture-card span {
  overflow-wrap: anywhere;
}

#queueSignal {
  font-size: 32px;
}

#formulaValue {
  font-size: 24px;
}

.boundary-rule-strip .cold-bars > span {
  grid-template-columns: 96px minmax(100px, 1fr) 92px;
}

/* Responsive */

@media (max-width: 1220px) {
  .welcome-main {
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: 35px;
    padding-right: 34px;
    padding-left: 34px;
  }

  .mission-layout {
    grid-template-columns: minmax(560px, 1.18fr) minmax(370px, 0.82fr);
  }

  .map-lane {
    right: 5%;
    left: 5%;
  }

  .training-lane {
    grid-template-columns: 112px minmax(22px, 1fr) 128px minmax(22px, 1fr) 112px;
  }

  .serving-lane {
    grid-template-columns: 94px minmax(18px, 1fr) 100px minmax(18px, 1fr) 120px minmax(18px, 1fr) 94px;
  }

  .round-nav button {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    padding: 7px 6px;
  }

  .round-nav button > span:last-child {
    font-size: 10px;
  }

  .score-meter {
    grid-template-columns: auto minmax(35px, 1fr) 24px;
    padding: 8px;
  }

  .score-meter > span {
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 66px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .header-context {
    display: none;
  }

  .brand small,
  .mode-badge {
    display: none;
  }

  .welcome-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 28px;
  }

  .welcome-copy h1 {
    max-width: 800px;
  }

  .launch-visual {
    height: clamp(440px, 72vw, 560px);
    min-height: 0;
  }

  .join-strip {
    padding-right: 28px;
    padding-left: 28px;
  }

  .mission-view {
    padding: 20px 16px 30px;
  }

  .mission-topbar {
    align-items: start;
  }

  .mission-contract {
    width: 44%;
  }

  .round-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .round-nav button:nth-child(3) {
    border-right: 0;
  }

  .round-nav button:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .mission-layout {
    grid-template-columns: 1fr;
  }

  .decision-console {
    min-height: auto;
  }

  .results-view,
  .lab-view {
    padding: 30px 22px 44px;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .drill-layout,
  .fit-lab-layout,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .drill-observation,
  .fit-controls,
  .experiment-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fit-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  .fit-controls fieldset {
    margin: 0;
  }

  .formula-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .app-header {
    padding: 0 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand strong {
    font-size: 14px;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .icon-button {
    width: 36px;
    height: 36px;
  }

  .welcome-main {
    min-height: auto !important;
    padding: 38px 18px 28px;
  }

  .welcome-copy h1 {
    font-size: 44px;
  }

  .welcome-lede {
    font-size: 18px;
  }

  .mission-brief {
    grid-template-columns: 1fr;
  }

  .welcome-actions {
    display: grid;
  }

  .welcome-actions button {
    width: 100%;
  }

  .launch-visual {
    min-height: 430px;
  }

  .visual-node {
    width: 116px;
    min-height: 102px;
  }

  .visual-artifact {
    left: calc(50% - 58px);
  }

  .visual-metric {
    min-width: 110px;
  }

  .metric-c {
    right: 29%;
  }

  .mission-topbar {
    display: block;
  }

  .mission-topbar h1 {
    font-size: 28px;
  }

  .mission-contract {
    width: 100%;
    margin-top: 13px;
  }

  .round-nav {
    display: flex;
    overflow-x: auto;
  }

  .round-nav button {
    min-width: 115px;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }

  .score-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-meter:nth-child(2) {
    border-right: 0;
  }

  .score-meter:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .platform-map {
    overflow: hidden;
  }

  .map-canvas {
    min-height: 455px;
    overflow-x: auto;
  }

  .eks-boundary {
    min-width: 570px;
  }

  .map-lane {
    right: auto;
    left: 40px;
    width: 520px;
  }

  .artifact-bridge {
    left: 290px;
  }

  .map-storage {
    right: auto;
    left: 390px;
  }

  .telemetry-strip {
    grid-template-columns: repeat(5, 115px);
    overflow-x: auto;
  }

  .decision-body {
    padding: 16px;
  }

  .console-actions {
    grid-template-columns: 1fr 1fr;
  }

  .console-actions > span {
    display: none;
  }

  .console-actions .text-button,
  .console-actions .primary-button {
    width: 100%;
  }

  .result-heading,
  .lab-heading {
    display: block;
  }

  .result-seal {
    width: 92px;
    height: 92px;
    margin-top: 18px;
  }

  .result-seal svg {
    width: 31px;
    height: 31px;
    margin-bottom: -13px;
  }

  .lab-heading .secondary-button {
    width: 100%;
    margin-top: 16px;
  }

  .decision-record {
    grid-template-columns: 1fr;
  }

  .record-item,
  .record-item:nth-child(3n),
  .record-item:nth-child(n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .record-item:last-child {
    border-bottom: 0;
  }

  .result-actions {
    display: grid;
  }

  .result-actions button {
    width: 100%;
  }

  .lab-tabs button {
    min-height: 58px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
  }

  .lab-panel-heading {
    display: block;
  }

  .lab-panel-heading .primary-button {
    width: 100%;
    margin-top: 14px;
  }

  .drill-score {
    display: inline-flex;
    margin-top: 12px;
  }

  .drill-nav {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .drill-nav button {
    min-height: 68px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
    padding: 7px 6px;
  }

  .drill-nav button > span:first-child {
    width: 23px;
    height: 23px;
    font-size: 8px;
  }

  .drill-nav b {
    font-size: 9px;
  }

  .drill-nav small {
    font-size: 7px;
  }

  .training-reference span {
    flex-basis: 50%;
    border-bottom: 1px solid #34434d;
  }

  .drill-observation,
  .drill-decision {
    padding: 16px;
  }

  .drill-observation h3 {
    font-size: 21px;
  }

  .drill-footer {
    grid-template-columns: 1fr 1fr;
  }

  .drill-footer > span {
    display: none;
  }

  .drill-footer button {
    width: 100%;
  }

  .drill-summary-heading {
    align-items: start;
  }

  .drill-review-grid {
    grid-template-columns: 1fr;
  }

  .drill-review-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .drill-review-item:last-child {
    border-bottom: 0;
  }

  .drill-summary-actions .secondary-button {
    width: 100%;
  }

  .fit-controls {
    display: block;
  }

  .fit-controls fieldset {
    margin-bottom: 15px;
  }

  .fit-result {
    grid-template-columns: 1fr;
  }

  .gpu-bay {
    grid-column: 1;
    grid-template-columns: repeat(4, minmax(36px, 1fr));
    padding: 19px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .architecture-bay {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }

  .fit-verdict {
    grid-column: 1;
  }

  .incident-phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incident-phases button:nth-child(2) {
    border-right: 0;
  }

  .incident-phases button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .incident-body {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .signal-card,
  .trigger-formula {
    min-height: 160px;
  }

  .incident-verdicts {
    grid-template-columns: 1fr 1fr;
  }

  .incident-verdicts p {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .experiment-button {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .experiment-button em {
    grid-column: 2;
    justify-self: start;
  }

  .experiment-bar {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .experiment-bar > b {
    text-align: right;
  }

  .cold-start-strip {
    grid-template-columns: 1fr;
  }

  .cold-bars > span {
    grid-template-columns: 90px minmax(75px, 1fr) 62px;
  }

  .final-meter {
    grid-template-columns: 82px minmax(80px, 1fr) 28px;
  }
}

@media (max-width: 430px) {
  .brand-copy {
    max-width: 128px;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stage-only.icon-button,
  #sourcesButton {
    display: none;
  }

  .welcome-copy h1 {
    font-size: 39px;
  }

  .launch-visual {
    height: 390px;
    min-height: 390px;
  }

  .visual-node {
    width: 104px;
    min-height: 94px;
    padding: 9px 7px;
  }

  .visual-node b {
    font-size: 12px;
  }

  .visual-artifact {
    left: calc(50% - 52px);
  }

  .visual-metric {
    min-width: 98px;
    padding: 7px 8px;
  }

  .metric-c {
    display: none;
  }

  .score-meter {
    grid-template-columns: 78px minmax(30px, 1fr) 24px;
  }

  .score-meter > span {
    font-size: 9px;
  }

  .option-card {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    padding: 10px;
  }

  .option-icon {
    width: 31px;
    height: 31px;
  }

  .constraint-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .constraint-row > em {
    grid-column: 2;
  }

  .lab-tabs button {
    padding: 6px 3px;
    font-size: 9px;
  }

  .drill-signal-grid {
    grid-template-columns: 1fr;
  }

  .drill-choice {
    grid-template-columns: 30px minmax(0, 1fr) 19px;
    padding: 9px;
  }

  .drill-choice > span:first-child {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 700px) {
  .lab-tabs {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .fleet-phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fleet-phases button {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .fleet-phases button:nth-child(3n) {
    border-right: 0;
  }

  .fleet-phases button:nth-child(n + 4) {
    border-bottom: 0;
  }

  .fleet-workload {
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  }

  .fleet-workload > * {
    padding: 8px 10px;
  }

  .fleet-workload > *:nth-child(3) {
    border-left: 0;
  }

  .fleet-workload-header {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .visual-line i,
  .map-edge i {
    display: none !important;
  }
}

/* Agent-native architecture diagrams */

.launch-visual {
  height: clamp(500px, 58vh, 620px);
  min-height: 520px;
  overflow-x: auto;
  overflow-y: hidden;
}

.launch-visual .visual-grid::before {
  top: 50%;
}

.launch-visual .visual-grid::after {
  left: 31%;
}

.visual-entry-path {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 14px;
  display: grid;
  width: 176px;
  grid-template-columns: 74px 20px 82px;
  align-items: center;
  transform: translateY(-50%);
}

.launch-visual .visual-node {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  min-height: 94px;
  padding: 10px 7px;
  border-top-color: var(--cyan);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.launch-visual .visual-node > span {
  width: 34px;
  height: 34px;
}

.launch-visual .visual-node svg {
  width: 18px;
  height: 18px;
}

.launch-visual .visual-node b {
  font-size: 12px;
}

.launch-visual .visual-node small {
  max-width: 100%;
  font-size: 8px;
  line-height: 1.25;
}

.visual-customers {
  border-top-color: #65ccd0 !important;
}

.visual-auth {
  border-top-color: var(--blue) !important;
}

.visual-auth > span {
  color: #83b8ef;
}

.visual-eks-system {
  position: absolute;
  z-index: 2;
  top: 32px;
  bottom: 32px;
  left: 210px;
  width: calc(100% - 228px);
  min-width: 390px;
  border: 2px dashed #5d7a84;
  background: rgba(20, 33, 42, 0.72);
}

.visual-eks-heading {
  position: absolute;
  top: -18px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  color: #9de3e5;
  background: #131e26;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.visual-eks-heading img {
  width: 28px;
  height: 28px;
}

.visual-primary-path {
  position: absolute;
  top: 78px;
  right: 17px;
  left: 17px;
  display: grid;
  grid-template-columns: minmax(82px, 1fr) 24px minmax(82px, 1fr) 24px minmax(82px, 1fr);
  align-items: center;
}

.visual-agent {
  border-top-color: var(--cyan) !important;
}

.visual-gateway {
  border-top-color: var(--orange) !important;
}

.visual-gateway > span {
  color: var(--orange) !important;
}

.visual-models {
  border-top-color: var(--green) !important;
}

.visual-models > span {
  color: #79d0ad !important;
}

.visual-arrow {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: #5b707b;
}

.visual-arrow::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #5b707b;
  content: "";
}

.visual-arrow i {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.14);
  animation: visual-path-flow 2.7s ease-in-out infinite;
}

.visual-primary-path .visual-arrow:nth-of-type(2) i {
  animation-delay: 1.35s;
}

.visual-boundary-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 190px;
  width: 38px;
  visibility: hidden;
  transform-origin: 0 50%;
}

@keyframes visual-path-flow {
  0%,
  18% {
    opacity: 0;
    transform: translateX(0);
  }
  35%,
  72% {
    opacity: 1;
  }
  88%,
  100% {
    opacity: 0;
    transform: translateX(calc(100% - 10px));
  }
}

.visual-capability-row {
  position: absolute;
  right: 17px;
  bottom: 28px;
  left: 17px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.visual-capability-row > div {
  display: grid;
  min-width: 0;
  min-height: 84px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: 1px solid #3f525c;
  background: #19262f;
  text-align: center;
}

.visual-capability-row svg {
  width: 17px;
  height: 17px;
  color: #77d8da;
}

.visual-capability-row span,
.visual-capability-row b,
.visual-capability-row small {
  display: block;
  min-width: 0;
}

.visual-capability-row b {
  font-size: 10px;
  line-height: 1.08;
}

.visual-capability-row small {
  margin-top: 2px;
  overflow: hidden;
  color: #91a1a9;
  font-family: "Amazon Ember Mono", monospace;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: normal;
}

.map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  background: #f4f7f7;
  overscroll-behavior-inline: contain;
}

.map-canvas {
  width: 100%;
  min-width: 760px;
  min-height: 470px;
  overflow: hidden;
}

.map-canvas::before,
.map-canvas::after {
  display: none;
}

.map-external-path {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 20px;
  display: grid;
  width: 202px;
  grid-template-columns: 90px 98px;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
}

.map-external-path .lane-label {
  top: -31px;
}

.eks-boundary {
  inset: 24px 22px 22px 246px;
  min-width: 480px;
}

.eks-primary-row {
  position: absolute;
  z-index: 2;
  top: 62px;
  right: 26px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  align-items: center;
  gap: 46px;
}

.eks-primary-row .lane-label {
  top: -27px;
}

.eks-support-grid {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 48px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  grid-template-rows: 112px;
  gap: 10px;
}

.eks-support-grid .lane-label {
  top: auto;
  bottom: -31px;
}

.support-tools {
  grid-column: 1;
  grid-row: 1;
}

.support-sandbox {
  grid-column: 2;
  grid-row: 1;
}

.support-memory {
  grid-column: 3;
  grid-row: 1;
}

.support-agent-sandbox {
  grid-column: 4;
  grid-row: 1;
}

.support-telemetry {
  grid-column: 5;
  grid-row: 1;
}

.map-canvas .map-node {
  min-height: 84px;
}

.eks-support-grid .map-node {
  min-height: 0;
  height: 100%;
  gap: 4px;
  padding: 7px 5px;
}

.eks-support-grid .map-node > span,
.map-canvas .artifact-node > span,
.map-canvas .map-storage > span {
  width: 31px;
  height: 31px;
}

.eks-support-grid .map-node svg,
.map-canvas .artifact-node svg,
.map-canvas .map-storage svg {
  width: 17px;
  height: 17px;
}

.eks-support-grid .map-node b,
.map-canvas .artifact-node b,
.map-canvas .map-storage b {
  font-size: 11px;
  line-height: 1.08;
}

.eks-support-grid .map-node small,
.map-canvas .artifact-node small,
.map-canvas .map-storage small {
  font-size: 7px;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.map-canvas .artifact-node {
  min-height: 0;
  padding: 7px 5px;
}

.map-canvas .map-storage {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  background: var(--paper);
  text-align: center;
}

.map-canvas .map-storage > span {
  display: grid;
  min-width: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #e7effa;
}

.map-canvas .map-storage b,
.map-canvas .map-storage small {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.map-bridge-layer {
  z-index: 1;
}

.map-bridge-line {
  z-index: 1;
}

.map-bridge-line.is-optional:not(.is-flowing) {
  background: repeating-linear-gradient(
    to right,
    #93a3a6 0,
    #93a3a6 7px,
    transparent 7px,
    transparent 12px
  );
}

@media (max-width: 1220px) {
  .visual-entry-path {
    width: 158px;
    grid-template-columns: 68px 18px 72px;
  }

  .visual-eks-system {
    left: 190px;
    width: calc(100% - 208px);
  }

  .visual-boundary-arrow {
    left: 172px;
    width: 36px;
  }

  .visual-primary-path {
    grid-template-columns: minmax(74px, 1fr) 17px minmax(74px, 1fr) 17px minmax(74px, 1fr);
  }

  .visual-capability-row > div {
    padding: 6px;
  }

  .visual-capability-row b {
    font-size: 9px;
  }
}

@media (max-width: 980px) {
  .visual-entry-path {
    width: 196px;
    grid-template-columns: 82px 26px 88px;
  }

  .visual-eks-system {
    left: 232px;
    width: calc(100% - 252px);
    min-width: 430px;
  }

  .visual-boundary-arrow {
    left: 210px;
    width: 40px;
  }
}

@media (max-width: 700px) {
  .launch-visual {
    height: 430px;
    min-height: 430px;
  }

  .visual-entry-path {
    top: 52%;
    left: 12px;
    width: 164px;
    grid-template-columns: 70px 18px 76px;
  }

  .visual-eks-system {
    top: 27px;
    bottom: 27px;
    left: 196px;
    width: 404px;
    min-width: 404px;
  }

  .visual-boundary-arrow {
    top: 52%;
    left: 176px;
    width: 38px;
  }

  .visual-primary-path {
    top: 68px;
  }

  .visual-capability-row {
    bottom: 22px;
  }

  .map-scroll {
    overflow-x: auto;
  }

  .map-canvas {
    min-width: 760px;
    min-height: 470px;
  }

  .eks-boundary {
    min-width: 480px;
  }
}

@media (max-width: 430px) {
  .launch-visual {
    height: 410px;
    min-height: 410px;
  }

  .launch-visual .visual-node {
    min-height: 86px;
  }

  .visual-capability-row > div {
    min-height: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-arrow i,
  .map-bridge-line i {
    display: none !important;
  }
}
