:root {
  color-scheme: dark;
  --ink: #f3f6ff;
  --muted: #8d98ad;
  --faint: #59647a;
  --void: #070a0f;
  --surface: #0c111a;
  --surface-2: #111824;
  --surface-3: #151e2c;
  --line: rgba(169, 187, 219, 0.14);
  --line-strong: rgba(169, 187, 219, 0.28);
  --blue: #78aaff;
  --cyan: #63e6ff;
  --green: #5ef0b1;
  --amber: #ffca68;
  --red: #ff6f82;
  --purple: #b295ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 8%, rgba(67, 103, 170, 0.16), transparent 27rem),
    radial-gradient(circle at 12% 29%, rgba(85, 224, 206, 0.05), transparent 24rem),
    var(--void);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--void);
  background: var(--cyan);
  font-weight: 800;
}

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

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.22em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
  clip-path: polygon(50% 0, 93% 20%, 84% 75%, 50% 100%, 16% 75%, 7% 20%);
  background: linear-gradient(145deg, var(--cyan), var(--blue));
}

.brand-mark::before {
  position: absolute;
  inset: 2px;
  content: "";
  clip-path: inherit;
  background: var(--void);
}

.brand-mark span {
  z-index: 1;
  width: 3px;
  height: 12px;
  transform: rotate(30deg);
  border-radius: 2px;
  background: var(--cyan);
}

.brand-mark span:first-child {
  transform: translate(4px, 3px) rotate(30deg);
}

.brand-mark span:nth-child(2) {
  height: 19px;
  transform: translate(0, -1px) rotate(30deg);
  background: var(--blue);
}

.brand-mark span:last-child {
  transform: translate(-4px, -3px) rotate(30deg);
}

.topbar-meta {
  display: flex;
  gap: 8px;
}

.status-pill,
.scope-chip,
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.status-pill--local {
  color: var(--green);
}

.status-pill--pending {
  color: var(--amber);
}

main {
  overflow: hidden;
}

.hero,
.mission-shell,
.evidence-section {
  width: min(1380px, 90vw);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: 5vw;
  padding: 90px 0 78px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 19px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--cyan);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.2vw, 88px);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 em {
  color: transparent;
  background: linear-gradient(90deg, #9cc4ff 0%, #63e6ff 52%, #7cf2c0 100%);
  background-clip: text;
  font-style: normal;
}

.hero-lede {
  max-width: 630px;
  margin-bottom: 32px;
  color: #adb7c9;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.button--primary {
  border-color: rgba(99, 230, 255, 0.44);
  color: #031118;
  background: linear-gradient(135deg, #83efff, #7da6ff);
  box-shadow: 0 10px 35px rgba(91, 188, 255, 0.18);
}

.button--quiet {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button--quiet:hover {
  border-color: rgba(99, 230, 255, 0.45);
  background: rgba(99, 230, 255, 0.07);
}

.button--danger {
  border-color: rgba(255, 111, 130, 0.35);
  color: #ffafba;
  background: rgba(255, 111, 130, 0.08);
}

.button--approve {
  border-color: rgba(94, 240, 177, 0.35);
  color: #072219;
  background: var(--green);
}

.button--full {
  width: 100%;
}

.button--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 10px;
}

.button-icon {
  font-size: 9px;
}

.boundary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 23px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.boundary-note span {
  color: var(--green);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: 470px;
  height: 470px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 144, 255, 0.13), transparent 67%);
  filter: blur(8px);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(127, 175, 255, 0.12);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.orbit--outer {
  width: 480px;
  height: 480px;
  animation: orbit-spin 24s linear infinite;
}

.orbit--outer::before {
  top: 14%;
  right: 13%;
}

.orbit--outer::after {
  bottom: 9%;
  left: 24%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.orbit--inner {
  width: 390px;
  height: 390px;
  border-style: dashed;
  animation: orbit-spin 30s linear infinite reverse;
}

.orbit--inner::before {
  top: 48%;
  right: -3px;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
}

.orbit--inner::after {
  display: none;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.telemetry-card {
  position: relative;
  z-index: 2;
  width: min(420px, 92%);
  overflow: hidden;
  border: 1px solid rgba(142, 180, 247, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(23, 34, 52, 0.93), rgba(8, 13, 21, 0.96)),
    var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
}

.telemetry-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.telemetry-card__topline {
  display: flex;
  justify-content: space-between;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.telemetry-card__topline span:last-child {
  color: var(--cyan);
}

.telemetry-core {
  display: grid;
  min-height: 215px;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(rgba(99, 230, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 230, 255, 0.03) 1px, transparent 1px);
  background-size: 25px 25px;
}

.core-ring {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid rgba(99, 230, 255, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 230, 255, 0.12), transparent 67%);
  box-shadow:
    0 0 0 13px rgba(99, 230, 255, 0.025),
    0 0 0 26px rgba(99, 230, 255, 0.018),
    inset 0 0 33px rgba(99, 230, 255, 0.08);
}

.core-ring span {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
}

.telemetry-core p {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.telemetry-grid div {
  display: flex;
  flex-direction: column;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.telemetry-grid div:nth-child(even) {
  border-right: 0;
}

.telemetry-grid span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.telemetry-grid strong {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
}

.mission-shell,
.evidence-section {
  padding: 82px 0;
}

.mission-shell {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

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

h2 {
  margin-bottom: 0;
  font-size: clamp(31px, 3vw, 46px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.mission-state {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.mission-state span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-state strong {
  margin-top: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 24, 36, 0.94), rgba(10, 15, 23, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.pipeline-panel {
  overflow: hidden;
}

.task-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.task-id {
  display: grid;
  min-width: 73px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(99, 230, 255, 0.22);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(99, 230, 255, 0.055);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.task-strip > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.task-strip span:not(.scope-chip) {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-strip strong {
  overflow: hidden;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-chip {
  color: var(--blue);
}

.pipeline {
  margin: 0;
  padding: 25px 26px 28px;
  list-style: none;
}

.pipeline-stage {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  min-height: 172px;
}

.stage-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.stage-index {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--faint);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 9px;
  transition: all 200ms ease;
}

.stage-line {
  width: 1px;
  flex: 1;
  min-height: 88px;
  margin-block: 7px;
  background: var(--line);
}

.pipeline-stage article {
  min-width: 0;
  padding: 2px 0 26px;
}

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

.role-kicker,
.panel-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.stage-heading h3 {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.stage-status {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.pipeline-stage article > p {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.artifact-line {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.17);
}

.artifact-line span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.artifact-line code {
  overflow: hidden;
  color: #aeb8ca;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-stage[data-state="complete"] .stage-index,
.pipeline-stage[data-state="passed"] .stage-index {
  border-color: rgba(94, 240, 177, 0.45);
  color: var(--green);
  background: rgba(94, 240, 177, 0.08);
  box-shadow: 0 0 18px rgba(94, 240, 177, 0.08);
}

.pipeline-stage[data-state="failed"] .stage-index {
  border-color: rgba(255, 111, 130, 0.45);
  color: var(--red);
  background: rgba(255, 111, 130, 0.08);
}

.pipeline-stage[data-state="blocked-on-approval"] .stage-index,
.pipeline-stage[data-state="approved-to-apply"] .stage-index {
  border-color: rgba(255, 202, 104, 0.42);
  color: var(--amber);
  background: rgba(255, 202, 104, 0.07);
}

.pipeline-stage[data-state="active"] .stage-index {
  color: var(--cyan);
  border-color: var(--cyan);
  animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  50% { box-shadow: 0 0 0 5px rgba(99, 230, 255, 0.07); }
}

.mission-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approval-card,
.boundary-card {
  padding: 22px;
}

.approval-card {
  position: relative;
  overflow: hidden;
}

.approval-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--line-strong);
  transition: background 200ms ease;
}

.approval-card[data-state="pending"] {
  border-color: rgba(255, 202, 104, 0.31);
  box-shadow: 0 18px 60px rgba(255, 164, 55, 0.06);
}

.approval-card[data-state="pending"]::before {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.approval-card[data-state="approved"] {
  border-color: rgba(94, 240, 177, 0.29);
}

.approval-card[data-state="approved"]::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.approval-card[data-state="denied"]::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-transform: uppercase;
}

.gate-icon {
  color: var(--amber);
  font-size: 17px;
}

.approval-card h3 {
  margin: 17px 0 8px;
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.025em;
}

.approval-card > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.gate-scope {
  margin: 0 0 17px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.gate-scope div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.gate-scope dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.gate-scope dd {
  margin: 0;
  color: #b3bdcd;
  font-size: 10px;
}

.gate-actions {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 8px;
}

[hidden] {
  display: none !important;
}

.gate-receipt {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin-top: 14px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
}

.gate-receipt span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.gate-receipt code {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boundary-list {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-list b {
  font-size: 11px;
  font-weight: 600;
}

.boundary-list em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.role-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px currentColor;
}

.role-dot--builder { background: var(--purple); }
.role-dot--reviewer { background: var(--green); }
.role-dot--human { background: var(--amber); }

.fail-closed-copy {
  margin-top: 17px;
  padding: 12px;
  border: 1px solid rgba(99, 230, 255, 0.11);
  border-radius: 8px;
  background: rgba(99, 230, 255, 0.025);
}

.fail-closed-copy strong {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.fail-closed-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.evidence-section {
  padding-top: 50px;
  padding-bottom: 110px;
}

.outcome-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 84px;
  margin-bottom: 16px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(72, 105, 165, 0.08), rgba(255, 255, 255, 0.018));
}

.outcome-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--blue);
}

.outcome-banner > div {
  display: flex;
  flex-direction: column;
}

.outcome-banner > div span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.outcome-banner > div strong {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 610;
}

.outcome-banner > code {
  max-width: 300px;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-banner[data-state="awaiting-approval"] {
  border-color: rgba(255, 111, 130, 0.24);
  background: linear-gradient(90deg, rgba(255, 111, 130, 0.08), transparent);
}

.outcome-banner[data-state="awaiting-approval"] .outcome-icon {
  color: var(--red);
  border-color: rgba(255, 111, 130, 0.4);
}

.outcome-banner[data-state="approved"] {
  border-color: rgba(255, 202, 104, 0.26);
  background: linear-gradient(90deg, rgba(255, 202, 104, 0.07), transparent);
}

.outcome-banner[data-state="complete"] {
  border-color: rgba(94, 240, 177, 0.28);
  background: linear-gradient(90deg, rgba(94, 240, 177, 0.09), transparent);
  box-shadow: 0 18px 60px rgba(94, 240, 177, 0.04);
}

.outcome-banner[data-state="complete"] .outcome-icon {
  color: var(--green);
  border-color: rgba(94, 240, 177, 0.45);
}

.outcome-banner[data-state="denied"],
.outcome-banner[data-state="error"] {
  border-color: rgba(255, 111, 130, 0.25);
}

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

.evidence-card {
  min-width: 0;
  overflow: hidden;
}

.evidence-card__heading {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
}

.evidence-card__heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.evidence-card__heading > div > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.evidence-card__heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 640;
}

.evidence-badge {
  padding: 5px 8px;
  font-size: 8px;
}

.evidence-badge[data-state="failed"] {
  color: var(--red);
}

.evidence-badge[data-state="passed"] {
  color: var(--green);
}

.evidence-badge[data-state="pending"],
.evidence-badge--pending {
  color: var(--amber);
}

.code-stack,
.proof-stack {
  max-height: 540px;
  overflow: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 30px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
}

.code-block + .code-block {
  border-top: 1px solid var(--line);
}

.code-block__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.18);
}

.code-block__label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.code-block__label code {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.code-block[data-state="failed"] .code-block__label code { color: var(--red); }
.code-block[data-state="passed"] .code-block__label code { color: var(--green); }
.code-block[data-state="pending"] .code-block__label code { color: var(--amber); }

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #080c12;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
  tab-size: 2;
}

.diff-add { color: #83e5b8; }
.diff-remove { color: #ff8f9e; }
.diff-hunk { color: #9bbcff; }

.proof-run {
  padding: 16px;
}

.proof-run + .proof-run {
  border-top: 1px solid var(--line);
}

.proof-run__heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.proof-run__heading > div {
  display: flex;
  flex-direction: column;
}

.proof-run__heading span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.proof-run__heading strong {
  margin-top: 2px;
  font-size: 11px;
}

.proof-run__heading b {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
}

.proof-run[data-state="passed"] .proof-run__heading b {
  color: var(--green);
}

.proof-run ul {
  margin: 13px 0;
  padding: 0;
  list-style: none;
}

.proof-run li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.proof-run li > span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(94, 240, 177, 0.08);
  font-size: 10px;
}

.proof-run li[data-state="failed"] > span {
  color: var(--red);
  background: rgba(255, 111, 130, 0.08);
}

.proof-run li div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.proof-run li strong {
  font-size: 10px;
  font-weight: 590;
}

.proof-run li small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.proof-run > p {
  margin: 0;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
}

.provenance-list {
  margin: 0;
  padding: 8px 17px 16px;
}

.provenance-list div {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.provenance-list div:last-child {
  border-bottom: 0;
}

.provenance-list dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.provenance-list dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #b1bbcc;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list {
  max-height: 410px;
  margin: 0;
  padding: 14px 17px;
  overflow: auto;
  list-style: none;
  scrollbar-color: var(--line-strong) transparent;
}

.event-list li {
  position: relative;
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 16px;
}

.event-list li::before {
  position: absolute;
  top: 12px;
  bottom: -2px;
  left: 4px;
  width: 1px;
  content: "";
  background: var(--line);
}

.event-list li:last-child::before {
  display: none;
}

.event-node {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.35);
}

.event-list li[data-type*="failed"] .event-node,
.event-list li[data-type*="denied"] .event-node {
  background: var(--red);
}

.event-list li[data-type*="passed"] .event-node,
.event-list li[data-type*="completed"] .event-node,
.event-list li[data-type*="granted"] .event-node {
  background: var(--green);
}

.event-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-body > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.event-body code,
.event-body time,
.event-body span,
.event-body small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.event-body strong {
  margin: 3px 0 2px;
  font-size: 10px;
  font-weight: 590;
}

.event-body small {
  margin-top: 3px;
  overflow: hidden;
  opacity: 0.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  display: flex;
  width: min(1380px, 90vw);
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.brand--footer {
  flex: 0 0 auto;
}

.brand--footer .brand-mark {
  width: 23px;
  height: 26px;
}

.brand--footer strong {
  color: var(--muted);
  font-size: 10px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a {
  flex: 0 0 auto;
  text-underline-offset: 3px;
}

body[data-phase="complete"] .core-ring {
  border-color: rgba(94, 240, 177, 0.52);
  background: radial-gradient(circle, rgba(94, 240, 177, 0.15), transparent 67%);
  box-shadow:
    0 0 0 13px rgba(94, 240, 177, 0.025),
    0 0 0 26px rgba(94, 240, 177, 0.018),
    inset 0 0 33px rgba(94, 240, 177, 0.09);
}

body[data-phase="complete"] .telemetry-card__topline span:last-child {
  color: var(--green);
}

@media (max-width: 1050px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 75px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    min-height: 520px;
  }

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

  .mission-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    padding-inline: 5vw;
  }

  .topbar-meta .status-pill:not(.status-pill--local) {
    display: none;
  }

  .hero,
  .mission-shell,
  .evidence-section,
  footer {
    width: min(92vw, 680px);
  }

  .hero {
    gap: 10px;
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 70px);
  }

  .hero-lede {
    font-size: 16px;
  }

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

  .orbit--outer {
    width: min(430px, 105vw);
    height: min(430px, 105vw);
  }

  .orbit--inner {
    width: min(350px, 86vw);
    height: min(350px, 86vw);
  }

  .telemetry-card {
    transform: none;
  }

  .section-heading {
    align-items: start;
  }

  .mission-state {
    display: none;
  }

  .task-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scope-chip {
    display: none;
  }

  .task-strip strong {
    white-space: normal;
  }

  .mission-sidebar,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .outcome-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .outcome-banner > code {
    display: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 470px) {
  .hero-actions .button {
    width: 100%;
  }

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

  .telemetry-card {
    width: 100%;
  }

  .pipeline {
    padding: 22px 16px;
  }

  .pipeline-stage {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
  }

  .stage-heading {
    gap: 8px;
  }

  .stage-status {
    max-width: 105px;
    text-align: center;
  }

  .task-strip {
    padding: 14px;
  }

  .task-id {
    min-width: 60px;
  }

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

  .provenance-list div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

@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;
  }
}
