/*
 * This is a manifest file that'll be compiled into application.css.
 */

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-page-start: #020617;
  --color-page-end: #05030f;
  --color-surface: rgba(8, 18, 38, 0.74);
  --color-surface-soft: rgba(11, 27, 58, 0.58);
  --color-surface-muted: rgba(18, 39, 80, 0.7);
  --color-border: rgba(125, 249, 255, 0.2);
  --color-border-strong: rgba(77, 208, 255, 0.58);
  --color-text: #eff6ff;
  --color-muted: #b8c7e6;
  --color-subtle: #7e91b8;
  --color-link: #67e8f9;
  --color-link-hover: #a5f3fc;
  --color-accent: #0891b2;
  --color-accent-strong: #22d3ee;
  --color-accent-deep: #0e7490;
  --color-accent-text: #020617;
  --hud-line: rgba(34, 211, 238, 0.68);
  --hud-line-soft: rgba(34, 211, 238, 0.18);
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.58), 0 0 34px rgba(34, 211, 238, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 38%, rgba(103, 232, 249, 0.16), transparent 22rem),
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.16), transparent 27rem),
    radial-gradient(circle at 85% 4%, rgba(14, 116, 144, 0.2), transparent 25rem),
    radial-gradient(circle at 72% 72%, rgba(8, 47, 73, 0.24), transparent 28rem),
    linear-gradient(180deg, var(--color-page-start) 0%, var(--color-page-end) 100%);
  color: var(--color-text);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(103, 232, 249, 0.6) 0 1px, transparent 1px);
  background-position: 0 0, 43px 71px;
  background-size: 110px 110px, 170px 170px;
  opacity: 0.18;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(rgba(125, 249, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 72%);
}

a {
  color: var(--color-link);
  text-decoration-color: rgba(103, 232, 249, 0.48);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-link-hover);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(8, 28, 48, 0.68));
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.topbar-brand {
  color: var(--color-link-hover);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.65);
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.topbar-nav a {
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.topbar-nav a:hover {
  border-color: var(--color-border);
  background: rgba(34, 211, 238, 0.055);
  color: var(--color-accent-strong);
}

.flash-shell {
  position: fixed;
  top: clamp(0.75rem, 2vh, 1.25rem);
  right: clamp(0.7rem, 2vw, 1.6rem);
  left: clamp(12rem, 15vw, 14.5rem);
  z-index: 70;
  display: grid;
  gap: 0.65rem;
  pointer-events: none;
}

body:not(.with-side-hud) .flash-shell {
  right: auto;
  left: 50%;
  width: min(34rem, calc(100vw - 1.1rem));
  transform: translateX(-50%);
}

.flash {
  --flash-accent: var(--hud-cyan, #67e8f9);
  --flash-secondary: #34d399;
  --flash-deep: rgba(1, 10, 22, 0.86);
  --flash-glow: rgba(34, 211, 238, 0.28);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: min(34rem, 100%);
  min-height: 4.35rem;
  margin: 0;
  padding: 0.82rem 0.82rem 0.95rem 0.9rem;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--flash-accent) 52%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(circle at 9% 20%, color-mix(in srgb, var(--flash-accent) 28%, transparent), transparent 7rem),
    linear-gradient(115deg, color-mix(in srgb, var(--flash-accent) 14%, transparent), transparent 42%, color-mix(in srgb, var(--flash-secondary) 9%, transparent)),
    var(--flash-deep);
  color: #eff6ff;
  line-height: 1.45;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--flash-accent) 10%, transparent),
    0 0 34px var(--flash-glow),
    0 18px 54px rgba(0, 0, 0, 0.42),
    inset 0 0 26px color-mix(in srgb, var(--flash-accent) 8%, transparent);
  backdrop-filter: blur(24px) saturate(1.22);
  animation: flash-orbital-arrival 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
  clip-path: polygon(0.8rem 0, 100% 0, 100% calc(100% - 0.8rem), calc(100% - 0.8rem) 100%, 0 100%, 0 0.8rem);
}

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

.flash::before {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.2px),
    radial-gradient(circle, color-mix(in srgb, var(--flash-accent) 70%, white 30%) 0 1px, transparent 1.2px),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--flash-accent) 13%, transparent), transparent);
  background-position: 0 0, 31px 17px, center;
  background-size: 96px 96px, 132px 132px, 100% 100%;
  opacity: 0.22;
}

.flash::after {
  inset: -45% -20%;
  z-index: -1;
  background: linear-gradient(115deg, transparent 34%, color-mix(in srgb, var(--flash-accent) 26%, transparent) 48%, color-mix(in srgb, var(--flash-secondary) 20%, transparent) 52%, transparent 66%);
  opacity: 0;
  transform: translateX(-44%) rotate(4deg);
  animation: flash-cosmic-sweep 2.6s ease-out 180ms both;
}

.flash-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: color-mix(in srgb, var(--flash-accent) 78%, white 22%);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px color-mix(in srgb, var(--flash-accent) 42%, transparent);
}

.flash-label::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--flash-accent);
  box-shadow: 0 0 12px var(--flash-accent);
}

.flash-copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.flash-message {
  color: rgba(239, 246, 255, 0.92);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.flash-orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid color-mix(in srgb, var(--flash-accent) 64%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 34%, #eff6ff 0 0.12rem, transparent 0.13rem),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--flash-accent) 68%, transparent), transparent 54%),
    rgba(1, 10, 22, 0.58);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--flash-accent) 44%, transparent),
    inset 0 0 16px color-mix(in srgb, var(--flash-accent) 12%, transparent);
}

.flash-orb::before,
.flash-orb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.flash-orb::before {
  inset: -0.36rem;
  border: 1px solid color-mix(in srgb, var(--flash-accent) 28%, transparent);
  border-top-color: color-mix(in srgb, var(--flash-secondary) 74%, transparent);
  border-left-color: transparent;
  animation: flash-orb-spin 5s linear infinite;
}

.flash-orb::after {
  inset: 0.68rem;
  background: var(--flash-secondary);
  box-shadow: 0 0 18px var(--flash-secondary);
}

.flash-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--flash-accent) 32%, transparent);
  border-radius: 999px;
  background: rgba(1, 10, 22, 0.56);
  color: color-mix(in srgb, var(--flash-accent) 82%, white 18%);
  cursor: pointer;
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--flash-accent) 8%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.flash-close:hover {
  border-color: color-mix(in srgb, var(--flash-accent) 74%, transparent);
  background: color-mix(in srgb, var(--flash-accent) 14%, rgba(1, 10, 22, 0.72));
  color: #eff6ff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--flash-accent) 28%, transparent), inset 0 0 14px color-mix(in srgb, var(--flash-accent) 12%, transparent);
}

.flash-countdown {
  position: absolute;
  inset: -0.18rem;
  width: calc(100% + 0.36rem);
  height: calc(100% + 0.36rem);
  overflow: visible;
  transform: rotate(-90deg);
}

.flash-countdown-track,
.flash-countdown-meter {
  fill: none;
  stroke-width: 1.7;
}

.flash-countdown-track {
  stroke: color-mix(in srgb, var(--flash-accent) 15%, transparent);
}

.flash-countdown-meter {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px currentColor);
  animation: flash-countdown var(--flash-duration, 5000ms) linear forwards;
}

.flash-close-icon {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
}

.flash-close-icon::before,
.flash-close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: 50% 50%;
}

.flash-close-icon::before {
  transform: rotate(45deg);
}

.flash-close-icon::after {
  transform: rotate(-45deg);
}

.flash-progress {
  position: absolute;
  right: 0.9rem;
  bottom: 0.42rem;
  left: 0.9rem;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--flash-accent) 14%, transparent);
}

.flash-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--flash-accent), var(--flash-secondary), transparent);
  box-shadow: 0 0 12px var(--flash-accent);
  transform-origin: left center;
  animation: flash-progress var(--flash-duration, 5000ms) linear forwards;
}

.flash-notice {
  --flash-accent: #67e8f9;
  --flash-secondary: #34d399;
  --flash-deep: rgba(1, 17, 28, 0.88);
  --flash-glow: rgba(34, 211, 238, 0.22);
}

.flash-alert {
  --flash-accent: #fb7185;
  --flash-secondary: #f59e0b;
  --flash-deep: rgba(31, 7, 19, 0.92);
  --flash-glow: rgba(248, 113, 113, 0.26);
  color: #fff7ed;
}

.flash-alert .flash-label {
  color: #fecaca;
}

.flash.is-dismissing {
  pointer-events: none;
  animation: flash-phase-out 440ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

.flash.is-dismissing .flash-countdown-meter,
.flash.is-dismissing .flash-progress::after,
.flash.is-dismissing .flash-orb::before,
.flash.is-dismissing::after {
  animation-play-state: paused;
}

@keyframes flash-orbital-arrival {
  0% {
    filter: brightness(1.3) blur(3px);
    opacity: 0;
    transform: translate3d(-1.1rem, -0.35rem, 0) scaleX(0.92);
  }

  100% {
    filter: brightness(1) blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes flash-cosmic-sweep {
  0% {
    opacity: 0;
    transform: translateX(-44%) rotate(4deg);
  }

  24% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(44%) rotate(4deg);
  }
}

@keyframes flash-countdown {
  to {
    stroke-dashoffset: 100;
  }
}

@keyframes flash-progress {
  to {
    transform: scaleX(0);
  }
}

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

@keyframes flash-phase-out {
  0% {
    filter: brightness(1);
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleY(1);
  }

  52% {
    filter: brightness(1.7) blur(0.4px);
    opacity: 0.82;
    transform: translate3d(0.35rem, 0, 0) scaleY(0.24);
  }

  100% {
    filter: brightness(2) blur(2px);
    opacity: 0;
    transform: translate3d(1.4rem, -0.2rem, 0) scaleY(0.02);
  }
}

@media (max-width: 1080px) {
  .flash-shell {
    top: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
  }

  .flash {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .flash {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.62rem;
    padding-left: 0.78rem;
  }

  .flash-orb {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash,
  .flash::after,
  .flash-orb::before,
  .flash-countdown-meter,
  .flash-progress::after,
  .flash.is-dismissing {
    animation: none;
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.operations-shell {
  display: grid;
  gap: 1.25rem;
}

.narrow-shell {
  width: min(720px, calc(100vw - 2rem));
}

.page-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading h1,
.section-heading h2 {
  margin: 0;
}

.page-heading h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.045), transparent 30%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(20px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.11), transparent 36%),
    radial-gradient(circle at 78% 18%, rgba(103, 232, 249, 0.11), transparent 18rem),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(24px);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-panel::before,
.panel::before,
.objective-card::before,
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.1), transparent 18%, transparent 82%, rgba(103, 232, 249, 0.08)),
    linear-gradient(90deg, var(--hud-line) 0 28px, transparent 28px calc(100% - 28px), var(--hud-line) calc(100% - 28px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, var(--hud-line) 0 28px, transparent 28px calc(100% - 28px), var(--hud-line) calc(100% - 28px) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(var(--hud-line) 0 28px, transparent 28px calc(100% - 28px), var(--hud-line) calc(100% - 28px) 100%) left / 1px 100% no-repeat,
    linear-gradient(var(--hud-line) 0 28px, transparent 28px calc(100% - 28px), var(--hud-line) calc(100% - 28px) 100%) right / 1px 100% no-repeat;
  opacity: 0.54;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.hero-copy h1,
.panel-header h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 8vw, 5.9rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.hero-copy .muted {
  max-width: 58ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header h1,
.panel h1,
.panel h2 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
}

.muted {
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.button-primary {
  background: linear-gradient(135deg, #a5f3fc, #22d3ee 54%, #0891b2);
  border-color: rgba(165, 243, 252, 0.4);
  color: #020617;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.2), 0 14px 30px rgba(8, 145, 178, 0.18);
}

.button-secondary {
  background: rgba(8, 18, 38, 0.68);
  border-color: var(--color-border);
  color: var(--color-text);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button-secondary:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
}

.button:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

.button-form {
  margin: 0;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-link);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(103, 232, 249, 0.48);
  text-underline-offset: 0.18em;
}

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

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.vertical-actions {
  display: grid;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logout-row {
  justify-content: flex-end;
}

.telemetry-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.telemetry-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background: rgba(2, 18, 32, 0.52);
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.telemetry-strip span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--color-accent-strong);
  box-shadow: 0 0 8px var(--color-accent-strong);
}

.orbital-core {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 19rem;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.05), 0 0 22px rgba(34, 211, 238, 0.06);
}

.ring-one {
  width: 17rem;
  height: 17rem;
}

.ring-two {
  width: 13rem;
  height: 13rem;
  transform: rotateX(64deg) rotateZ(-18deg);
}

.ring-three {
  width: 8rem;
  height: 8rem;
  border-color: rgba(103, 232, 249, 0.2);
}

.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.72);
  color: var(--color-link-hover);
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22);
}

.node-alpha {
  top: 2rem;
  right: 3rem;
}

.node-beta {
  bottom: 3rem;
  left: 2.4rem;
  color: #cffafe;
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.2);
}

.orbit-center {
  display: grid;
  place-items: center;
  width: 9.4rem;
  height: 9.4rem;
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    rgba(2, 6, 23, 0.78);
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.14), inset 0 0 32px rgba(14, 116, 144, 0.18);
}

.orbit-center span,
.orbit-center small {
  color: var(--color-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit-center strong {
  color: var(--color-link-hover);
  font-size: 2.35rem;
  line-height: 1;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.42);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.info-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.055), transparent 38%),
    var(--color-surface-soft);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.info-card dt {
  margin: 0 0 0.35rem;
  color: var(--color-subtle);
  font-size: 0.82rem;
}

.info-card dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.metric-card {
  display: grid;
  gap: 0.35rem;
}

.metric-card strong {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1;
}

.metric-card span,
.metric-label {
  margin: 0;
  color: var(--color-muted);
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.metric-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
}

.metric-list dt {
  color: var(--color-muted);
}

.metric-list dd {
  margin: 0;
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--color-subtle);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-panel {
  max-width: 440px;
  margin: 8vh auto 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

.objective-shell {
  display: grid;
  gap: 1.25rem;
}

.objective-map,
.objective-list,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.objective-map {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cosmic-timeline {
  position: relative;
}

.cosmic-timeline::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.42), rgba(103, 232, 249, 0.32), transparent);
  pointer-events: none;
}

.map-card,
.objective-card,
.form-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.05), transparent 38%),
    var(--color-surface-soft);
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.map-card {
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.map-card.active {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
}

.map-card h2,
.objective-card h2,
.detail-grid h2 {
  margin: 0;
}

.map-card p,
.objective-card p,
.detail-grid p {
  margin-bottom: 0;
}

.map-step {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--color-accent-strong);
  font-weight: 800;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

.objective-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 1rem;
  padding: 1rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.objective-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 28px rgba(34, 211, 238, 0.08);
}

.objective-glow {
  position: absolute;
  top: -7rem;
  right: -8rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 66%);
  pointer-events: none;
}

.objective-card-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.objective-card-side {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.065), transparent 60%),
    rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(103, 232, 249, 0.14);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 750;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.08);
}

.status-provisioning .status-pill {
  border-color: rgba(125, 211, 252, 0.32);
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.1);
}

.status-failed .status-pill {
  border-color: rgba(148, 163, 184, 0.42);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.24);
}

.objective-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.objective-meta div {
  min-width: 0;
}

.objective-meta dt,
.side-label {
  margin: 0 0 0.25rem;
  color: var(--color-subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.objective-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
}

.command-box {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), transparent),
    rgba(2, 6, 23, 0.64);
  color: var(--color-link-hover);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: nowrap;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.04);
}

.command-box.disabled {
  color: var(--color-subtle);
}

.signal-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.signal-list li::marker {
  color: var(--color-accent-strong);
}

.signal-meter {
  overflow: hidden;
  height: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.64);
}

.signal-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0891b2, #22d3ee, #a5f3fc);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.32);
}

.signal-meter.dormant span {
  background: linear-gradient(90deg, #334155, #7dd3fc);
}

.objective-form {
  display: grid;
  gap: 1rem;
}

.flat-form-panel {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.flat-form-panel::before {
  display: none;
}

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

.form-panel {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.form-panel label,
.form-panel .branch-context-label {
  color: var(--color-muted);
  font-weight: 700;
}

.form-panel input[type="text"],
.form-panel input[type="number"],
.form-panel input[type="password"],
.form-panel textarea,
.form-panel select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--color-text);
  outline: none;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input[type="text"]:focus,
.form-panel input[type="number"]:focus,
.form-panel input[type="password"]:focus,
.form-panel textarea:focus,
.form-panel select:focus {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.11), 0 0 22px rgba(34, 211, 238, 0.13);
}

.checklist-panel label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.split-actions {
  justify-content: space-between;
}

.checklist-panel {
  grid-row: span 2;
}

.flightdeck-shell {
  width: min(1180px, calc(100vw - 2rem));
  gap: 1.1rem;
}

.flightdeck-shell > turbo-frame {
  display: contents;
}

.hud-panel,
.hud-metric-card,
.telemetry-panel,
.audit-panel,
.objective-hud-card,
.access-locked-card,
.mission-empty-state {
  isolation: isolate;
}

.mission-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.2), transparent 17rem),
    radial-gradient(circle at 18% 100%, rgba(14, 165, 233, 0.16), transparent 19rem),
    rgba(3, 12, 27, 0.84);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.52),
    0 0 42px rgba(34, 211, 238, 0.11),
    inset 0 0 42px rgba(37, 99, 235, 0.09);
  backdrop-filter: blur(24px);
}

.mission-hero::before,
.mission-hero::after,
.hud-metric-card::before,
.objective-hud-card::before,
.access-locked-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mission-hero::before {
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.85) 0 36px, transparent 36px calc(100% - 36px), rgba(103, 232, 249, 0.85) calc(100% - 36px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(103, 232, 249, 0.85) 0 36px, transparent 36px calc(100% - 36px), rgba(103, 232, 249, 0.85) calc(100% - 36px) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.85) 0 36px, transparent 36px calc(100% - 36px), rgba(103, 232, 249, 0.85) calc(100% - 36px) 100%) left / 1px 100% no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.85) 0 36px, transparent 36px calc(100% - 36px), rgba(103, 232, 249, 0.85) calc(100% - 36px) 100%) right / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(103, 232, 249, 0.035) 12px 13px);
  opacity: 0.72;
}

.mission-hero::after {
  top: -10rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 68%);
  filter: blur(2px);
}

.compact-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.mission-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.32fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 3.5rem);
}

.mission-copy {
  display: grid;
  gap: 0.85rem;
}

.mission-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6.3rem);
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-shadow: 0 0 34px rgba(34, 211, 238, 0.22);
}

.compact-hero .mission-copy h1 {
  max-width: none;
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.mission-kicker {
  margin: 0;
}

.mission-brief {
  max-width: 62ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.mission-status-grid,
.hud-actions,
.hud-card-topline,
.hud-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hud-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
}

.system-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.05rem;
  width: fit-content;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  background: rgba(2, 18, 32, 0.62);
  color: #dffbff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.035), 0 0 18px rgba(34, 211, 238, 0.055);
}

.system-chip::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
}

.system-chip.warning {
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

.system-chip.warning::before {
  background: #fbbf24;
  box-shadow: 0 0 12px #fbbf24;
}

.compact-chip {
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
}

.command-orb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
}

.command-orb::before,
.command-orb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.command-orb::before {
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background:
    conic-gradient(from 180deg, rgba(34, 211, 238, 0.05), rgba(34, 211, 238, 0.58), rgba(168, 85, 247, 0.34), rgba(34, 211, 238, 0.05));
  mask: radial-gradient(circle, transparent 54%, black 55% 68%, transparent 69%);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.18);
}

.command-orb::after {
  width: 12rem;
  height: 12rem;
  border: 1px dashed rgba(103, 232, 249, 0.28);
  transform: rotateX(62deg) rotateZ(-18deg);
}

.orbital-readout {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 9.4rem;
  height: 9.4rem;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.16), transparent 30%),
    rgba(1, 8, 20, 0.86);
  box-shadow: inset 0 0 34px rgba(34, 211, 238, 0.13), 0 0 36px rgba(34, 211, 238, 0.16);
}

.orbital-readout span,
.orbital-readout small {
  color: var(--color-subtle);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orbital-readout strong {
  color: #a5f3fc;
  font-size: 2.5rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.55);
}

.hud-metric-grid,
.objective-command-grid {
  display: grid;
  gap: 1rem;
}

.hud-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.hud-metric-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 11.5rem;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), transparent 38%),
    rgba(3, 16, 34, 0.78);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hud-metric-card::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.68) 0 22px, transparent 22px calc(100% - 22px), rgba(103, 232, 249, 0.68) calc(100% - 22px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(103, 232, 249, 0.5) 0 22px, transparent 22px calc(100% - 22px), rgba(103, 232, 249, 0.5) calc(100% - 22px) 100%) bottom / 100% 1px no-repeat;
  opacity: 0.58;
}

.hud-card-topline {
  justify-content: space-between;
}

.hud-signal-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 14px #22d3ee;
}

.hud-metric-value {
  color: #e0fbff;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.28);
}

.metric-scanline {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  height: 0.45rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(34, 211, 238, 0.85) 0 4px, transparent 4px 8px),
    rgba(2, 6, 23, 0.7);
  opacity: 0.42;
}

.command-grid {
  align-items: stretch;
}

.telemetry-panel,
.audit-panel,
.access-locked-card {
  border-color: rgba(103, 232, 249, 0.24);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.09), transparent 34%),
    rgba(4, 14, 30, 0.8);
}

.hud-list div {
  border-bottom-color: rgba(103, 232, 249, 0.16);
}

.hud-list dd {
  color: #a5f3fc;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}

.audit-stream {
  display: grid;
  gap: 0.65rem;
}

.audit-event {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(12rem, 1fr) minmax(6rem, 0.24fr) minmax(6rem, 0.24fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 16px;
  background: rgba(2, 12, 26, 0.58);
}

.audit-event strong {
  overflow-wrap: anywhere;
  color: #eff6ff;
}

.audit-event span {
  color: var(--color-muted);
}

.audit-event-time {
  color: #67e8f9 !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.objective-command-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.objective-hud-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  min-height: 18rem;
  padding: 1.05rem;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(37, 99, 235, 0.14), transparent 42%),
    rgba(4, 14, 30, 0.78);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.objective-hud-card::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.78) 0 28px, transparent 28px calc(100% - 28px), rgba(103, 232, 249, 0.78) calc(100% - 28px) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(103, 232, 249, 0.42) 0 28px, transparent 28px calc(100% - 28px), rgba(103, 232, 249, 0.42) calc(100% - 28px) 100%) bottom / 100% 1px no-repeat;
  opacity: 0.62;
}

.objective-hud-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.48), 0 0 34px rgba(34, 211, 238, 0.1);
}

.objective-hud-card.status-archived {
  border-color: rgba(148, 163, 184, 0.24);
  filter: saturate(0.72);
}

.objective-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.objective-card-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.objective-hud-title {
  color: var(--color-text);
  text-decoration: none;
}

.objective-hud-title:hover {
  color: #a5f3fc;
}

.objective-vector {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 auto;
}

.objective-vector span {
  position: absolute;
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
}

.objective-vector span:nth-child(1) {
  width: 4.6rem;
  height: 4.6rem;
}

.objective-vector span:nth-child(2) {
  width: 3.1rem;
  height: 3.1rem;
  transform: rotateX(64deg) rotateZ(22deg);
}

.objective-vector span:nth-child(3) {
  width: 1.25rem;
  height: 1.25rem;
  background: rgba(34, 211, 238, 0.24);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.large-vector {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 0.5rem;
}

.large-vector span:nth-child(1) {
  width: 6.5rem;
  height: 6.5rem;
}

.large-vector span:nth-child(2) {
  width: 4.2rem;
  height: 4.2rem;
}

.objective-hud-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.objective-hud-stats div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(103, 232, 249, 0.13);
  border-radius: 15px;
  background: rgba(1, 8, 20, 0.46);
}

.objective-hud-stats dt {
  margin: 0 0 0.3rem;
  color: var(--color-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.objective-hud-stats dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #eff6ff;
  font-weight: 850;
}

.hud-link-row {
  position: relative;
  z-index: 1;
  align-self: end;
}

.hud-link-row a {
  display: inline-flex;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(2, 18, 32, 0.52);
  text-decoration: none;
}

.mission-empty-state {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16rem;
  padding: 1.2rem;
  border: 1px dashed rgba(103, 232, 249, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.08), transparent 12rem),
    rgba(1, 8, 20, 0.42);
  text-align: center;
}

.mission-empty-state h2,
.mission-empty-state h3 {
  margin: 0;
}

.mission-empty-state .muted {
  max-width: 50ch;
  margin: 0;
}

.access-locked-card {
  position: relative;
}

.access-locked-card::after {
  right: -4rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 68%);
}

.objective-orb .orbital-readout strong {
  font-size: 3rem;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 1rem, 960px);
    padding-top: 1.5rem;
  }

  .panel {
    padding: 1.25rem;
  }

  .panel-header {
    flex-direction: column;
  }

  .page-heading,
  .section-heading {
    flex-direction: column;
  }

  .hero-copy h1,
  .panel-header h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 14vw, 3.6rem);
  }

  .hero-grid,
  .launch-console {
    grid-template-columns: 1fr;
  }

  .orbital-core {
    min-height: 14rem;
  }

  .ring-one {
    width: 13rem;
    height: 13rem;
  }

  .ring-two {
    width: 10rem;
    height: 10rem;
  }

  .orbit-center {
    width: 7.5rem;
    height: 7.5rem;
  }

  .node-alpha {
    right: 2rem;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .objective-map,
  .objective-card,
  .objective-meta,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cosmic-timeline::before {
    display: none;
  }

  .form-actions {
    justify-content: stretch;
  }

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

@media (max-width: 960px) {
  .mission-hero-grid,
  .compact-hero,
  .hud-metric-grid,
  .compact-hud-grid {
    grid-template-columns: 1fr;
  }

  .command-orb {
    min-height: 13rem;
  }

  .command-orb::before {
    width: 12.5rem;
    height: 12.5rem;
  }

  .command-orb::after {
    width: 9rem;
    height: 9rem;
  }

  .orbital-readout {
    width: 7.5rem;
    height: 7.5rem;
  }

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

@media (max-width: 640px) {
  .flightdeck-shell {
    width: min(100vw - 1rem, 1180px);
  }

  .mission-hero {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .mission-copy h1,
  .compact-hero .mission-copy h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 16vw, 3.8rem);
  }

  .hud-actions {
    justify-content: stretch;
  }

  .hud-actions .button,
  .hud-actions .button-form,
  .hud-actions .button-form .button {
    width: 100%;
  }

  .mission-status-grid,
  .hud-link-row {
    align-items: stretch;
  }

  .system-chip,
  .hud-link-row a {
    width: 100%;
    justify-content: center;
  }

  .hud-metric-card {
    min-height: 10rem;
  }

  .objective-card-header {
    flex-direction: column;
  }

  .objective-hud-stats {
    grid-template-columns: 1fr;
  }

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

body {
  background:
    radial-gradient(circle at 50% 118%, rgba(14, 165, 233, 0.16), transparent 22rem),
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.14), transparent 22rem),
    radial-gradient(circle at 86% 34%, rgba(147, 51, 234, 0.1), transparent 20rem),
    linear-gradient(115deg, rgba(4, 12, 24, 0.96), rgba(0, 0, 0, 0.94) 52%, rgba(3, 18, 34, 0.96));
}

body::before {
  background-image:
    radial-gradient(circle, rgba(103, 232, 249, 0.9) 0 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 42%, rgba(103, 232, 249, 0.09) 42% 43%, transparent 43% 100%);
  background-position: 0 0, center;
  background-size: 118px 118px, 100% 100%;
  opacity: 0.16;
}

body::after {
  background:
    linear-gradient(rgba(125, 249, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 255, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.18), transparent 46%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 80%);
}

.topbar {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0.65rem auto 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 999px;
  background: rgba(1, 10, 22, 0.42);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.09), inset 0 0 18px rgba(34, 211, 238, 0.035);
}

.topbar-brand {
  font-size: 0.82rem;
}

.topbar-nav {
  gap: 0.35rem;
}

.topbar-nav a {
  min-height: 1.85rem;
  padding: 0.35rem 0.62rem;
  border-color: rgba(103, 232, 249, 0.12);
  background: rgba(3, 18, 34, 0.32);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cockpit-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 1.4rem));
  margin: 0 auto;
  padding: 0.85rem 0 2rem;
  view-transition-name: cockpit-page;
}

.cockpit-shell > turbo-frame,
.cockpit-screen > turbo-frame,
.cockpit-grid > turbo-frame {
  display: contents;
}

.cockpit-screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 5rem);
  padding: clamp(0.8rem, 1.8vw, 1.2rem);
  border: 1px solid rgba(103, 232, 249, 0.52);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(125, 249, 255, 0.07), transparent 19%, transparent 81%, rgba(125, 249, 255, 0.07)),
    rgba(4, 18, 34, 0.47);
  box-shadow:
    0 0 0 1px rgba(125, 249, 255, 0.08),
    0 0 30px rgba(34, 211, 238, 0.2),
    0 24px 80px rgba(0, 0, 0, 0.52),
    inset 0 0 36px rgba(34, 211, 238, 0.07);
  backdrop-filter: blur(20px) saturate(1.18);
  transform: perspective(1500px) rotateX(0.8deg);
  transform-origin: center top;
}

.compact-cockpit-screen {
  min-height: min(740px, calc(100vh - 5rem));
}

.cockpit-screen::before,
.cockpit-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.cockpit-screen::before {
  z-index: -1;
  background:
    linear-gradient(90deg, #67e8f9 0 4.4rem, transparent 4.4rem calc(100% - 4.4rem), #67e8f9 calc(100% - 4.4rem) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, #67e8f9 0 4.4rem, transparent 4.4rem calc(100% - 4.4rem), #67e8f9 calc(100% - 4.4rem) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(#67e8f9 0 4.4rem, transparent 4.4rem calc(100% - 4.4rem), #67e8f9 calc(100% - 4.4rem) 100%) left / 1px 100% no-repeat,
    linear-gradient(#67e8f9 0 4.4rem, transparent 4.4rem calc(100% - 4.4rem), #67e8f9 calc(100% - 4.4rem) 100%) right / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.035) 0 1px, transparent 1px 10px);
  opacity: 0.72;
}

.cockpit-screen::after {
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% -8%, rgba(103, 232, 249, 0.3), transparent 22rem),
    linear-gradient(90deg, transparent 0 32%, rgba(34, 211, 238, 0.08) 32% 33%, transparent 33% 67%, rgba(34, 211, 238, 0.07) 67% 68%, transparent 68%);
  opacity: 0.58;
}

.cockpit-screen-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
  margin-bottom: 0.75rem;
}

.hud-window-controls {
  display: flex;
  gap: 0.38rem;
}

.hud-window-controls span,
.hud-menu-glyph {
  display: inline-flex;
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid rgba(103, 232, 249, 0.55);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.24);
}

.cockpit-title-lockup {
  justify-self: center;
  min-width: min(20rem, 70vw);
  padding: 0.25rem 1rem 0.35rem;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(3, 18, 34, 0.54);
  text-align: center;
  box-shadow: inset 0 -10px 18px rgba(34, 211, 238, 0.04), 0 0 16px rgba(34, 211, 238, 0.08);
}

.cockpit-title-lockup .eyebrow {
  margin: 0;
  font-size: 0.67rem;
}

.cockpit-title-lockup h1 {
  margin: 0;
  color: rgba(239, 246, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compact-actions {
  justify-content: flex-end;
}

.hud-micro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(3, 18, 34, 0.56);
  color: #dffbff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 16px rgba(34, 211, 238, 0.035), 0 0 16px rgba(34, 211, 238, 0.06);
}

.hud-micro-button.primary,
.hud-micro-button:hover {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(34, 211, 238, 0.18);
  color: #eff6ff;
}

.cockpit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
}

.dashboard-cockpit-grid {
  grid-template-columns: 0.9fr 1.35fr 0.86fr;
  grid-template-areas:
    "status budget queue"
    "network grid audit";
  grid-auto-rows: minmax(14rem, auto);
}

.objective-cockpit-grid {
  grid-template-columns: 0.72fr 1.6fr 0.8fr;
  grid-template-areas: "status fleet network";
}

.objective-detail-grid {
  grid-template-columns: 0.75fr 1.45fr 0.8fr;
  grid-template-areas: "status fleet queue";
}

.admin-directory-grid {
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "status objectives missions";
  align-items: start;
}

.mission-detail-grid {
  grid-template-columns: minmax(18rem, 0.78fr) minmax(36rem, 1.72fr);
  grid-template-areas:
    "status fleet"
    "queue queue";
  align-items: start;
}

.launch-cockpit-grid {
  grid-template-columns: 0.75fr 1.35fr;
  align-items: stretch;
}

.cockpit-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.07), transparent 34%),
    rgba(3, 17, 32, 0.38);
  box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.035), 0 0 18px rgba(34, 211, 238, 0.045);
  backdrop-filter: blur(12px);
}

.cockpit-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.72) 0 1.8rem, transparent 1.8rem calc(100% - 1.8rem), rgba(103, 232, 249, 0.72) calc(100% - 1.8rem) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(103, 232, 249, 0.5) 0 1.8rem, transparent 1.8rem calc(100% - 1.8rem), rgba(103, 232, 249, 0.5) calc(100% - 1.8rem) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.5) 0 1.8rem, transparent 1.8rem calc(100% - 1.8rem), rgba(103, 232, 249, 0.5) calc(100% - 1.8rem) 100%) left / 1px 100% no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.5) 0 1.8rem, transparent 1.8rem calc(100% - 1.8rem), rgba(103, 232, 249, 0.5) calc(100% - 1.8rem) 100%) right / 1px 100% no-repeat;
  opacity: 0.78;
}

.agent-status-panel { grid-area: status; }
.budget-panel { grid-area: budget; }
.task-queue-panel { grid-area: queue; }
.network-panel { grid-area: network; }
.agent-grid-panel { grid-area: grid; }
.compact-audit-panel { grid-area: audit; }
.fleet-table-panel { grid-area: fleet; }
.admin-objectives-panel { grid-area: objectives; }
.admin-missions-panel { grid-area: missions; }
.compact-network-panel { grid-area: network; }

.admin-directory-grid .panel-strip-title,
.admin-directory-grid .fleet-row-list,
.admin-directory-grid .fleet-row,
.admin-directory-grid .fleet-row-main,
.admin-directory-grid .fleet-row-metrics {
  min-width: 0;
}

.admin-directory-grid .fleet-row {
  grid-template-columns: auto minmax(0, 1fr);
}

.admin-directory-grid .fleet-row-metrics,
.admin-directory-grid .fleet-row-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.admin-directory-grid .fleet-row-main small,
.admin-directory-grid .fleet-row-metrics span {
  overflow-wrap: anywhere;
}

.panel-strip-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.4rem;
}

.panel-strip-title h2,
.panel-strip-title p {
  margin: 0;
  color: #dffbff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-strip-title span,
.panel-strip-title a {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hud-status-list,
.fleet-row-list {
  display: grid;
  gap: 0.42rem;
}

.hud-status-row,
.fleet-row {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(103, 232, 249, 0.13);
  border-radius: 8px;
  background: rgba(4, 22, 42, 0.42);
}

.hud-status-row {
  grid-template-columns: auto minmax(6rem, 1fr) auto;
  padding: 0.44rem 0.5rem;
}

.hud-status-row strong,
.queue-readout-list dd {
  color: #8ff8ff;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.28);
}

.hud-status-row small {
  grid-column: 2 / -1;
  color: var(--color-subtle);
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-node-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
}

.hud-mini-chart {
  display: flex;
  align-items: end;
  gap: 0.3rem;
  min-height: 5.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px),
    rgba(2, 12, 26, 0.38);
  background-size: 24px 24px;
}

.hud-mini-chart span {
  flex: 1;
  min-width: 0.28rem;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #a78bfa, #22d3ee 55%, rgba(34, 211, 238, 0.18));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.18);
}

.budget-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.radial-meter-card {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 13rem;
}

.radial-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(8.5rem, 16vw, 12rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(2, 12, 26, 0.86) 0 48%, transparent 49%),
    conic-gradient(from 215deg, #22d3ee 0 var(--meter-value, 38%), #a855f7 var(--meter-value, 38%) 64%, rgba(103, 232, 249, 0.12) 64% 100%);
  box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.1), 0 0 28px rgba(34, 211, 238, 0.12);
}

.radial-meter span {
  position: absolute;
  inset: 0.55rem;
  border: 1px dashed rgba(103, 232, 249, 0.45);
  border-radius: inherit;
}

.radial-meter strong {
  color: #8ff8ff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.48);
}

.projected-spend-bar {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(103, 232, 249, 0.15);
  border-radius: 10px;
  background: rgba(2, 12, 26, 0.32);
}

.segmented-meter {
  overflow: hidden;
  height: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(1, 8, 20, 0.72);
}

.segmented-meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #22d3ee 0 5px, rgba(34, 211, 238, 0.34) 5px 9px);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}

.meter-footnote,
.efficiency-readout,
.fleet-row-metrics,
.fleet-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.meter-footnote {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meter-footnote strong {
  color: #6ee7b7;
}

.queue-readout-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.48rem;
  margin: 0;
}

.queue-readout-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.22rem 0.75rem;
  padding: 0.58rem 0.7rem 0.58rem 0.85rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.14);
}

.queue-readout-list dt {
  grid-column: 2;
  justify-self: end;
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.queue-readout-list dd {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.queue-readout-list dd.repository-state-failed {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.62rem;
  border: 1px solid rgba(248, 113, 113, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.64), rgba(69, 10, 10, 0.92)),
    radial-gradient(circle at 18% 50%, rgba(248, 113, 113, 0.32), transparent 42%);
  color: #fecaca;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.18),
    0 0 24px rgba(239, 68, 68, 0.36),
    inset 0 0 16px rgba(127, 29, 29, 0.54);
  text-shadow: 0 0 14px rgba(248, 113, 113, 0.74);
}

.copyable-credential-list dd {
  width: 100%;
}

.copyable-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.copyable-field-value {
  overflow: hidden;
  min-width: 0;
  color: var(--hud-cyan-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.42);
}

.copy-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent),
    rgba(1, 10, 22, 0.46);
  color: var(--hud-cyan-strong);
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.05);
}

.copy-icon-button:hover,
.copy-icon-button:focus-visible {
  border-color: rgba(103, 232, 249, 0.68);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.11), inset 0 0 16px rgba(34, 211, 238, 0.08);
}

.copy-icon {
  position: relative;
  display: block;
  width: 0.82rem;
  height: 0.98rem;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before {
  content: "";
  position: absolute;
  top: -0.28rem;
  left: -0.28rem;
  width: 0.82rem;
  height: 0.98rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.58;
}

.copy-status {
  min-width: 4.4rem;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copyable-field.is-copied .copy-status {
  color: #86efac;
  text-shadow: 0 0 12px rgba(134, 239, 172, 0.35);
}

.copyable-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  white-space: normal;
}

.copyable-command.is-copied .copy-status {
  color: #86efac;
  text-shadow: 0 0 12px rgba(134, 239, 172, 0.35);
}

.mission-status-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.mission-status-list div {
  display: grid;
  grid-template-columns: minmax(6.4rem, 0.65fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.46rem 0.55rem;
  border: 1px solid rgba(103, 232, 249, 0.1);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.36);
}

.mission-status-list dt {
  color: var(--color-muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-status-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--hud-cyan-strong);
  font-weight: 850;
  text-align: right;
}

.access-compact-list {
  display: grid;
  gap: 0.7rem;
}

.access-row-card {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.34);
}

.access-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.access-row-heading h3 {
  margin: 0;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.access-row-heading p {
  margin: 0.18rem 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.endpoint-details {
  margin-top: 0.15rem;
}

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

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

.warning-note {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

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

.mission-access-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 10px;
  background: rgba(1, 10, 22, 0.34);
}

.mission-access-card:first-child {
  grid-column: 1 / -1;
}

.attach-command-card,
.app-preview-card {
  grid-column: 1 / -1;
}

.mission-lifecycle-progress {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 62%),
    rgba(1, 10, 22, 0.32);
}

.lifecycle-track {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lifecycle-step {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.62rem 0.55rem 2rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.42);
}

.lifecycle-step::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.78);
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.22);
}

.lifecycle-step strong {
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lifecycle-step span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.lifecycle-step.is-complete::before {
  background: #67e8f9;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.62);
}

.lifecycle-step.is-running::before {
  background: #a78bfa;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.62);
}

.lifecycle-step.is-failed {
  border-color: rgba(248, 113, 113, 0.28);
}

.lifecycle-step.is-failed::before {
  background: #f87171;
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.58);
}

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

.command-box.primary-url {
  border-color: rgba(165, 243, 252, 0.46);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.08)),
    rgba(2, 6, 23, 0.72);
  color: #e0faff;
  font-size: 0.95rem;
}

.hud-disclosure {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 10px;
  background: rgba(1, 10, 22, 0.32);
}

.hud-disclosure summary {
  cursor: pointer;
  padding: 0.62rem 0.7rem;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hud-disclosure .queue-readout-list,
.hud-disclosure .cockpit-note {
  margin: 0.62rem 0.7rem;
}

.budget-alert-card {
  align-self: end;
  padding: 0.7rem;
  border: 1px solid rgba(244, 114, 182, 0.34);
  border-radius: 10px;
  background: rgba(76, 29, 149, 0.2);
}

.budget-alert-card p,
.budget-alert-card strong {
  margin: 0;
  color: #fbcfe8;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.hud-wave-chart {
  min-height: 8rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, transparent 0 12%, rgba(34, 211, 238, 0.55) 12% 13%, transparent 13% 24%, rgba(167, 139, 250, 0.75) 24% 25%, transparent 25% 38%, rgba(34, 211, 238, 0.55) 38% 39%, transparent 39% 100%),
    rgba(2, 12, 26, 0.36);
  background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%;
}

.node-network {
  position: relative;
  min-height: 11rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(32deg, transparent 0 18%, rgba(34, 211, 238, 0.34) 18% 18.8%, transparent 18.8% 100%),
    linear-gradient(145deg, transparent 0 34%, rgba(167, 139, 250, 0.34) 34% 34.8%, transparent 34.8% 100%),
    linear-gradient(85deg, transparent 0 48%, rgba(34, 211, 238, 0.26) 48% 48.8%, transparent 48.8% 100%),
    rgba(2, 12, 26, 0.36);
}

.node-network span {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}

.node-network span:nth-child(1) { top: 16%; left: 16%; }
.node-network span:nth-child(2) { top: 34%; left: 30%; background: #a78bfa; }
.node-network span:nth-child(3) { top: 20%; left: 50%; }
.node-network span:nth-child(4) { top: 48%; left: 62%; background: #a78bfa; }
.node-network span:nth-child(5) { top: 68%; left: 44%; }
.node-network span:nth-child(6) { top: 62%; left: 18%; background: #a78bfa; }
.node-network span:nth-child(7) { top: 72%; left: 76%; }
.node-network span:nth-child(8) { top: 34%; left: 82%; background: #a78bfa; }
.node-network span:nth-child(9) { top: 50%; left: 48%; }

.efficiency-readout {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.efficiency-readout strong {
  color: #8ff8ff;
  font-size: 1.35rem;
}

.cockpit-audit-stream {
  max-height: 13rem;
  overflow: auto;
}

.cockpit-audit-stream .audit-event {
  grid-template-columns: minmax(5rem, 0.4fr) minmax(7rem, 1fr);
  padding: 0.52rem;
  font-size: 0.76rem;
}

.cockpit-audit-stream .audit-event span:nth-child(n+3) {
  display: none;
}

.fleet-row {
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  padding: 0.58rem;
}

.fleet-row.status-archived {
  opacity: 0.72;
}

.fleet-row-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.fleet-row-link .fleet-row-main strong {
  color: #eff6ff;
}

.fleet-row-main {
  display: grid;
  gap: 0.15rem;
}

.objective-agent-icon-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.25rem;
}

.objective-agent-icon {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

.objective-agent-icon-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-row-main a {
  color: #eff6ff;
  text-decoration: none;
}

.fleet-row-main small,
.fleet-row-metrics span {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.fleet-row-actions a {
  padding: 0.26rem 0.45rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(2, 12, 26, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.cockpit-empty-state {
  min-height: 18rem;
  background: rgba(2, 12, 26, 0.24);
}

.cockpit-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
}

.cockpit-note.warning-note {
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 10px;
}

.launch-diagnostics {
  align-content: start;
}

.launch-form-panel,
.validation-panel {
  align-content: start;
}

.launch-form-panel .form-panel {
  position: relative;
  z-index: 1;
}

.launch-form-panel label,
.launch-form-panel .branch-context-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-form-panel input[type="text"],
.launch-form-panel textarea {
  border-radius: 10px;
  background: rgba(1, 8, 20, 0.56);
}

html.hud-view-transition::view-transition-old(root) {
  animation: hud-monitor-exit 420ms cubic-bezier(0.7, 0, 0.2, 1) both;
  transform-origin: 35% 50%;
}

html.hud-view-transition::view-transition-new(root) {
  animation: hud-monitor-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

html.hud-view-transition::view-transition-group(root) {
  background: #020617;
}

body.hud-page-exit-left .cockpit-shell,
body.hud-page-exit-left .page-shell {
  animation: hud-monitor-exit 360ms cubic-bezier(0.7, 0, 0.2, 1) both;
}

body.hud-page-enter .cockpit-shell,
body.hud-page-enter .page-shell {
  animation: hud-monitor-enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes hud-monitor-exit {
  0% {
    filter: brightness(1) drop-shadow(0 0 0 rgba(34, 211, 238, 0));
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
  }
  45% {
    filter: brightness(1.3) drop-shadow(0 0 24px rgba(34, 211, 238, 0.45));
  }
  100% {
    filter: brightness(0.65) blur(2px) drop-shadow(42px 0 38px rgba(34, 211, 238, 0.5));
    opacity: 0;
    transform: translateX(-118vw) rotateY(-16deg) scale(0.94);
  }
}

@keyframes hud-monitor-enter {
  0% {
    filter: brightness(0.8) blur(2px) drop-shadow(-30px 0 28px rgba(34, 211, 238, 0.34));
    opacity: 0;
    transform: translateX(22vw) rotateY(10deg) scale(0.97);
  }
  100% {
    filter: brightness(1) blur(0) drop-shadow(0 0 0 rgba(34, 211, 238, 0));
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hud-view-transition::view-transition-old(root),
  html.hud-view-transition::view-transition-new(root),
  body.hud-page-exit-left .cockpit-shell,
  body.hud-page-enter .cockpit-shell,
  body.hud-page-exit-left .page-shell,
  body.hud-page-enter .page-shell {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .dashboard-cockpit-grid,
  .objective-cockpit-grid,
  .objective-detail-grid,
  .admin-directory-grid,
  .launch-cockpit-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .agent-status-panel,
  .budget-panel,
  .task-queue-panel,
  .network-panel,
  .agent-grid-panel,
  .compact-audit-panel,
  .fleet-table-panel,
  .admin-objectives-panel,
  .admin-missions-panel,
  .compact-network-panel {
    grid-area: auto;
  }

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

  .fleet-row-metrics,
  .fleet-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar {
    position: static;
    width: min(100vw - 1rem, 1120px);
    border-radius: 18px;
  }

  .cockpit-shell {
    width: min(100vw - 0.7rem, 1280px);
    padding-top: 0.55rem;
  }

  .cockpit-screen {
    min-height: auto;
    padding: 0.65rem;
    border-radius: 18px;
    transform: none;
  }

  .cockpit-screen-header {
    grid-template-columns: 1fr;
  }

  .cockpit-title-lockup,
  .compact-actions {
    justify-self: stretch;
  }

  .budget-meter-grid {
    grid-template-columns: 1fr;
  }

  .fleet-row {
    grid-template-columns: 1fr;
  }

  .fleet-row-metrics,
  .fleet-row-actions {
    grid-column: auto;
  }

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

  .mission-details-grid,
  .endpoint-readout {
    grid-template-columns: 1fr;
  }

  .mission-access-card:first-child {
    grid-column: auto;
  }
}

/* Futuristic monitor refinement layer. Keep this last so the Rails-native views share one HUD skin. */
:root {
  --hud-cyan: #67e8f9;
  --hud-cyan-strong: #8ff8ff;
  --hud-blue: #0ea5e9;
  --hud-violet: #a78bfa;
  --hud-panel: rgba(2, 16, 32, 0.34);
  --hud-panel-strong: rgba(2, 18, 38, 0.54);
  --hud-glass-border: rgba(103, 232, 249, 0.46);
  --hud-glass-border-soft: rgba(103, 232, 249, 0.18);
  --hud-font-display: "Share Tech Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

body {
  font-family: var(--hud-font-display);
  background:
    radial-gradient(circle at 50% 112%, rgba(14, 165, 233, 0.2), transparent 24rem),
    radial-gradient(circle at 20% 16%, rgba(34, 211, 238, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(59, 130, 246, 0.13), transparent 26rem),
    radial-gradient(circle at 84% 80%, rgba(167, 139, 250, 0.08), transparent 22rem),
    linear-gradient(120deg, #020712 0%, #00040a 48%, #031221 100%);
}

body::before {
  background-image:
    radial-gradient(circle, rgba(239, 246, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(103, 232, 249, 0.72) 0 1px, transparent 1px),
    linear-gradient(116deg, transparent 0 39%, rgba(103, 232, 249, 0.09) 39.2% 39.7%, transparent 40% 100%),
    linear-gradient(64deg, transparent 0 61%, rgba(14, 165, 233, 0.075) 61.2% 61.6%, transparent 62% 100%);
  background-position: 0 0, 47px 83px, center, center;
  background-size: 120px 120px, 190px 190px, 100% 100%, 100% 100%;
  opacity: 0.18;
}

body::after {
  background:
    linear-gradient(rgba(125, 249, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 249, 255, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0 50%, rgba(103, 232, 249, 0.032) 50% 51%, transparent 51% 100%),
    radial-gradient(ellipse at 50% 100%, rgba(34, 211, 238, 0.18), transparent 48%);
  background-size: 44px 44px, 44px 44px, 100% 4px, 100% 100%;
  mask-image: radial-gradient(ellipse at 50% 44%, black, transparent 82%);
}

a,
button,
input,
textarea,
select,
.hud-micro-button,
.link-button {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.hud-micro-button:focus-visible,
.link-button:focus-visible {
  outline: 2px solid var(--hud-cyan-strong);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.12), 0 0 24px rgba(34, 211, 238, 0.22);
}

.topbar {
  top: 0.65rem;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.08), transparent 18%, transparent 82%, rgba(103, 232, 249, 0.08)),
    rgba(1, 10, 22, 0.44);
  border-color: rgba(103, 232, 249, 0.38);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.08),
    0 0 26px rgba(34, 211, 238, 0.13),
    inset 0 0 22px rgba(34, 211, 238, 0.05);
  backdrop-filter: blur(24px) saturate(1.25);
}

.topbar-brand,
.cockpit-title-lockup .eyebrow,
.panel-strip-title h2,
.panel-strip-title p {
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.48);
}

.topbar-nav a,
.hud-micro-button,
.fleet-row-actions a,
.table-actions a,
.link-button {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.topbar-nav a:hover,
.hud-micro-button:hover,
.fleet-row-actions a:hover,
.table-actions a:hover,
.link-button:hover {
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.15), inset 0 0 16px rgba(34, 211, 238, 0.06);
}

.cockpit-shell {
  width: min(1360px, calc(100vw - 1.35rem));
  perspective: 1800px;
}

.cockpit-screen {
  border-color: rgba(103, 232, 249, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(103, 232, 249, 0.105), transparent 16%, transparent 84%, rgba(103, 232, 249, 0.09)),
    radial-gradient(circle at 50% -12%, rgba(103, 232, 249, 0.2), transparent 28rem),
    linear-gradient(180deg, rgba(2, 20, 39, 0.52), rgba(1, 8, 20, 0.32));
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.12),
    0 0 42px rgba(34, 211, 238, 0.24),
    0 32px 92px rgba(0, 0, 0, 0.58),
    inset 0 0 44px rgba(34, 211, 238, 0.085);
  backdrop-filter: blur(26px) saturate(1.28);
  transform: perspective(1600px) rotateX(0.65deg);
}

.cockpit-screen::before {
  background:
    linear-gradient(90deg, var(--hud-cyan) 0 5.4rem, transparent 5.4rem calc(100% - 5.4rem), var(--hud-cyan) calc(100% - 5.4rem) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, var(--hud-cyan) 0 5.4rem, transparent 5.4rem calc(100% - 5.4rem), var(--hud-cyan) calc(100% - 5.4rem) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(var(--hud-cyan) 0 5.4rem, transparent 5.4rem calc(100% - 5.4rem), var(--hud-cyan) calc(100% - 5.4rem) 100%) left / 1px 100% no-repeat,
    linear-gradient(var(--hud-cyan) 0 5.4rem, transparent 5.4rem calc(100% - 5.4rem), var(--hud-cyan) calc(100% - 5.4rem) 100%) right / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.04) 0 1px, transparent 1px 9px),
    linear-gradient(90deg, transparent 0 33%, rgba(103, 232, 249, 0.08) 33% 33.25%, transparent 33.25% 66.7%, rgba(103, 232, 249, 0.065) 66.7% 67%, transparent 67% 100%);
  opacity: 0.78;
}

.cockpit-screen::after {
  background:
    radial-gradient(circle at 50% -8%, rgba(103, 232, 249, 0.34), transparent 24rem),
    radial-gradient(circle at 12% 92%, rgba(14, 165, 233, 0.14), transparent 18rem),
    radial-gradient(circle at 88% 80%, rgba(167, 139, 250, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18% 82%, rgba(103, 232, 249, 0.04));
  opacity: 0.6;
}

.cockpit-title-lockup {
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.1), transparent 18%, transparent 82%, rgba(103, 232, 249, 0.1)),
    rgba(2, 18, 34, 0.62);
  border-color: rgba(103, 232, 249, 0.48);
  box-shadow: inset 0 -12px 22px rgba(34, 211, 238, 0.055), 0 0 22px rgba(34, 211, 238, 0.12);
}

.cockpit-title-lockup h1 {
  color: rgba(239, 246, 255, 0.92);
}

.cockpit-panel {
  border-color: var(--hud-glass-border-soft);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.105), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(34, 211, 238, 0.08), transparent 12rem),
    var(--hud-panel);
  box-shadow:
    inset 0 0 28px rgba(34, 211, 238, 0.045),
    0 0 0 1px rgba(103, 232, 249, 0.035),
    0 0 22px rgba(34, 211, 238, 0.075);
  backdrop-filter: blur(18px) saturate(1.18);
}

.cockpit-panel > * {
  position: relative;
  z-index: 1;
}

.cockpit-panel::before {
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.88) 0 2.2rem, transparent 2.2rem calc(100% - 2.2rem), rgba(103, 232, 249, 0.88) calc(100% - 2.2rem) 100%) top / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(103, 232, 249, 0.54) 0 2.2rem, transparent 2.2rem calc(100% - 2.2rem), rgba(103, 232, 249, 0.54) calc(100% - 2.2rem) 100%) bottom / 100% 1px no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.54) 0 2.2rem, transparent 2.2rem calc(100% - 2.2rem), rgba(103, 232, 249, 0.54) calc(100% - 2.2rem) 100%) left / 1px 100% no-repeat,
    linear-gradient(rgba(103, 232, 249, 0.54) 0 2.2rem, transparent 2.2rem calc(100% - 2.2rem), rgba(103, 232, 249, 0.54) calc(100% - 2.2rem) 100%) right / 1px 100% no-repeat;
  opacity: 0.86;
}

.cockpit-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26% 72%, rgba(103, 232, 249, 0.03));
  pointer-events: none;
}

.panel-strip-title {
  padding-bottom: 0.42rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
}

.hud-status-row,
.fleet-row,
.queue-readout-list div,
.projected-spend-bar,
.hud-mini-chart,
.hud-wave-chart,
.node-network,
.command-box,
.form-panel input[type="text"],
.form-panel input[type="number"],
.form-panel input[type="password"],
.form-panel textarea,
.form-panel select {
  background-color: rgba(1, 10, 22, 0.42);
  border-color: rgba(103, 232, 249, 0.18);
}

.hud-status-row,
.fleet-row {
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.035);
}

.hud-status-row:hover,
.fleet-row:hover {
  border-color: rgba(103, 232, 249, 0.38);
  background-color: rgba(3, 24, 46, 0.5);
}

.hud-node-dot,
.node-network span,
.system-chip::before {
  background: var(--hud-cyan);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.9);
}

.hud-mini-chart span {
  background: linear-gradient(180deg, var(--hud-violet), var(--hud-cyan) 58%, rgba(34, 211, 238, 0.18));
}

.fleet-row.status-archived .hud-node-dot {
  background: #020617;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.95), 0 0 10px rgba(0, 0, 0, 0.68);
}

.fleet-row.realtime-state-ready .hud-node-dot {
  background: #22d3ee;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.9);
}

.fleet-row.realtime-state-working .hud-node-dot {
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.92);
  animation: realtime-state-blink 0.95s ease-in-out infinite;
}

.fleet-row.realtime-state-waiting-for-user .hud-node-dot {
  background: #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.9);
  animation: realtime-state-blink 1.15s ease-in-out infinite;
}

.fleet-row.realtime-state-lifecycle .hud-node-dot {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.86);
}

.fleet-row.realtime-state-failed .hud-node-dot {
  background: #f87171;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.88);
}

.fleet-row.realtime-state-inactive .hud-node-dot {
  background: #64748b;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.7);
}

.status-pill.realtime-state-working,
.status-pill.realtime-state-waiting-for-user {
  animation: realtime-state-pill-blink 1.15s ease-in-out infinite;
}

.status-pill.realtime-state-working,
.objective-realtime-readout.realtime-state-working {
  border-color: rgba(34, 197, 94, 0.52);
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.38);
}

.status-pill.realtime-state-waiting-for-user,
.objective-realtime-readout.realtime-state-waiting-for-user {
  border-color: rgba(168, 85, 247, 0.52);
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.11);
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.status-pill.realtime-state-failed,
.objective-realtime-readout.realtime-state-failed {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
}

.status-pill.realtime-state-lifecycle,
.objective-realtime-readout.realtime-state-lifecycle {
  border-color: rgba(245, 158, 11, 0.52);
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.1);
}

.status-pill.realtime-state-inactive,
.objective-realtime-readout.realtime-state-inactive {
  border-color: rgba(100, 116, 139, 0.46);
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.1);
}

@keyframes realtime-state-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.38;
    transform: scale(0.72);
  }
}

@keyframes realtime-state-pill-blink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 16px currentColor;
  }
  50% {
    opacity: 0.62;
    box-shadow: 0 0 4px currentColor;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-row.realtime-state-working .hud-node-dot,
  .fleet-row.realtime-state-waiting-for-user .hud-node-dot,
  .status-pill.realtime-state-working,
  .status-pill.realtime-state-waiting-for-user {
    animation: none;
  }
}

.radial-meter {
  background:
    radial-gradient(circle, rgba(2, 12, 26, 0.92) 0 46%, transparent 47%),
    conic-gradient(from 218deg, var(--hud-cyan) 0 36%, var(--hud-violet) 36% 61%, rgba(103, 232, 249, 0.11) 61% 100%);
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.14));
}

.radial-meter strong,
.queue-readout-list dd,
.efficiency-readout strong {
  color: var(--hud-cyan-strong);
  text-shadow: 0 0 18px rgba(103, 232, 249, 0.42);
}

.projected-spend-bar .segmented-meter span {
  width: 0;
  box-shadow: none;
}

.segmented-meter {
  background:
    repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.08) 0 8px, rgba(103, 232, 249, 0.02) 8px 14px),
    rgba(1, 8, 20, 0.78);
}

.node-network {
  background:
    linear-gradient(32deg, transparent 0 18%, rgba(34, 211, 238, 0.42) 18% 18.6%, transparent 18.6% 100%),
    linear-gradient(145deg, transparent 0 34%, rgba(167, 139, 250, 0.4) 34% 34.7%, transparent 34.7% 100%),
    linear-gradient(85deg, transparent 0 48%, rgba(34, 211, 238, 0.33) 48% 48.6%, transparent 48.6% 100%),
    linear-gradient(12deg, transparent 0 62%, rgba(103, 232, 249, 0.24) 62% 62.45%, transparent 62.45% 100%),
    rgba(2, 12, 26, 0.4);
}

.credentials-hub-panel {
  gap: 1.15rem;
}

.credentials-hub-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(28rem, 1.22fr);
  gap: 1rem;
  align-items: start;
}

.credentials-hub-header h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.credential-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.credential-action-grid .button_to {
  display: contents;
}

.credential-action-card {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 7.4rem;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: rgba(2, 12, 26, 0.46);
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.credential-action-card:hover,
.credential-action-card:focus-visible {
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(34, 211, 238, 0.11);
  outline: none;
}

.credential-action-card strong {
  color: var(--hud-cyan-strong);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.credential-action-card span {
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.credential-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
}

.credential-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.34);
}

.credential-row-main {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.credential-row-main h3,
.credential-empty-state h3 {
  margin: 0;
}

.credential-row-main p {
  margin: 0;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.credential-kind-pill {
  width: fit-content;
  padding: 0.22rem 0.48rem;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 999px;
  color: var(--hud-cyan-strong);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.credential-row-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.credential-row-actions {
  justify-content: flex-end;
}

.credential-empty-state {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px dashed rgba(103, 232, 249, 0.28);
  border-radius: 12px;
  background: rgba(2, 12, 26, 0.26);
}

.single-credential-form-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.credential-form-panel {
  align-content: start;
}

.credential-static-summary {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 12px;
  background: rgba(2, 12, 26, 0.34);
}

.credential-static-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.credential-static-summary span {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.credential-static-summary strong {
  color: var(--hud-cyan-strong);
}

.credential-static-summary a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(103, 232, 249, 0.48);
  text-underline-offset: 0.18em;
}

.credential-static-summary a:hover,
.credential-static-summary a:focus-visible {
  color: #e0faff;
}

.oauth-code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 12px;
  background: rgba(1, 8, 20, 0.64);
}

.oauth-code-box.is-copied .copy-status {
  color: #86efac;
  text-shadow: 0 0 12px rgba(134, 239, 172, 0.35);
}

.oauth-code-value {
  color: var(--hud-cyan-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.8rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.hud-table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 10px;
  background: rgba(1, 10, 22, 0.34);
}

.hud-data-table th,
.hud-data-table td {
  border-color: rgba(103, 232, 249, 0.13);
}

.hud-data-table th {
  color: rgba(184, 199, 230, 0.9);
}

.status-pill {
  margin: 0;
  border-color: rgba(103, 232, 249, 0.48);
  color: var(--hud-cyan-strong);
  background: rgba(34, 211, 238, 0.09);
}

.agent-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.7rem;
}

.agent-roster-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.82rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 58%),
    rgba(1, 10, 22, 0.36);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.agent-roster-card-link {
  cursor: pointer;
}

.agent-roster-card-link:hover,
.agent-roster-card-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.56);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.15), transparent 58%),
    rgba(1, 14, 30, 0.54);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.13), inset 0 0 18px rgba(34, 211, 238, 0.06);
  outline: none;
  transform: translateY(-1px);
}

.agent-avatar-image,
.agent-avatar-hero,
.agent-avatar-thumb,
.agent-display-avatar,
.objective-agent-chip-avatar {
  display: block;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
}

.agent-avatar-image {
  width: 5.3rem;
  height: 5.3rem;
  border-radius: 18px;
}

.agent-avatar-hero {
  width: min(18rem, 100%);
  margin: 0 auto;
  border-radius: 28px;
}

.agent-roster-card-main {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.agent-roster-card-main h2,
.agent-roster-card-main p {
  margin: 0;
}

.agent-roster-card-main p {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

.agent-level-avatar {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.agent-level-avatar.hero-avatar {
  display: grid;
  width: min(18rem, 100%);
  margin: 0 auto;
}

.agent-level-avatar.display-avatar {
  width: min(13rem, 100%);
}

.agent-level-avatar.hero-avatar .agent-avatar-hero,
.agent-level-avatar.display-avatar .agent-display-avatar {
  width: 100%;
}

.agent-level-badge {
  position: absolute;
  right: -0.28rem;
  bottom: -0.28rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(251, 191, 36, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(34, 211, 238, 0.22)),
    rgba(2, 6, 23, 0.92);
  color: #fef3c7;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.34), inset 0 0 10px rgba(251, 191, 36, 0.1);
  white-space: nowrap;
}

.agent-avatar-fieldset legend,
.objective-agent-display legend {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agent-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.78rem;
}

.agent-avatar-option {
  position: relative;
  display: grid;
  cursor: pointer;
}

.agent-avatar-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.agent-avatar-option-frame {
  display: grid;
  justify-items: center;
  gap: 0.34rem;
  min-height: 14.4rem;
  padding: 0.78rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background: rgba(1, 10, 22, 0.34);
  text-align: center;
}

.agent-avatar-option input:checked + .agent-avatar-option-frame {
  border-color: rgba(103, 232, 249, 0.72);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), transparent),
    rgba(2, 12, 26, 0.58);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.16);
}

.agent-avatar-thumb {
  width: 8.4rem;
  height: 8.4rem;
  border-radius: 22px;
  object-fit: cover;
}

.agent-avatar-option strong {
  color: var(--hud-cyan-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.agent-avatar-option small {
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.agent-onboarding-shell {
  display: grid;
  gap: 1.25rem;
}

.agent-current-avatar-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 30%, rgba(103, 232, 249, 0.16), transparent 12rem),
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 58%),
    rgba(1, 10, 22, 0.38);
}

.agent-current-avatar-copy {
  display: grid;
  gap: 0.45rem;
}

.agent-current-avatar-copy h2,
.agent-current-avatar-copy p {
  margin: 0;
}

.agent-current-avatar-copy h2 {
  color: #eff6ff;
}

.compact-onboarding-header {
  min-height: auto;
  padding-bottom: 0.65rem;
}

.agent-onboarding-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.agent-onboarding-tab {
  min-height: 3.15rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 65%),
    rgba(1, 10, 22, 0.46);
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-onboarding-tab.is-active {
  border-color: rgba(103, 232, 249, 0.78);
  color: var(--hud-cyan-strong);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.14), inset 0 0 22px rgba(34, 211, 238, 0.08);
}

.agent-onboarding-panel {
  display: grid;
  gap: 1rem;
}

.agent-onboarding-step[hidden] {
  display: none;
}

.agent-onboarding-step-header {
  display: grid;
  gap: 0.55rem;
}

.agent-onboarding-name-card {
  width: min(100%, 34rem);
  margin: clamp(1.25rem, 8vh, 5rem) auto 0;
  overflow: visible;
  justify-self: center;
  align-content: start;
}

.agent-onboarding-name-card input[type="text"] {
  min-height: 3.25rem;
  height: auto;
}

.agent-onboarding-credential-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.agent-onboarding-credential-stack {
  display: grid;
  gap: 1rem;
}

.agent-onboarding-credential-card,
.api-key-slot {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.07), transparent 58%),
    rgba(1, 10, 22, 0.34);
}

.required-credential-card {
  border-color: rgba(103, 232, 249, 0.38);
}

.agent-onboarding-api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.85rem;
}

.api-key-slot legend {
  color: var(--hud-cyan-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agent-onboarding-checkbox {
  display: flex;
  gap: 0.78rem;
  align-items: flex-start;
  cursor: pointer;
}

.agent-onboarding-checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  accent-color: var(--color-accent-strong);
}

.agent-onboarding-checkbox span {
  display: grid;
  gap: 0.3rem;
}

.agent-onboarding-checkbox small {
  color: var(--color-muted);
  line-height: 1.45;
}

.agent-onboarding-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.onboarding-avatar-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  max-height: min(62vh, 680px);
  overflow: auto;
  padding-right: 0.35rem;
}

.onboarding-avatar-fieldset .agent-avatar-thumb {
  width: 9.2rem;
  height: 9.2rem;
}

.agent-onboarding-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.objective-agent-display {
  display: grid;
  gap: 0.55rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.agent-display-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.agent-display-arrow {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 8.5rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent),
    rgba(1, 10, 22, 0.42);
  color: var(--hud-cyan-strong);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 900;
}

.agent-display-arrow:hover,
.agent-display-arrow:focus-visible {
  border-color: rgba(103, 232, 249, 0.72);
  outline: none;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.16);
}

.agent-display-viewport {
  position: relative;
  overflow: hidden;
  min-height: 17rem;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(rgba(103, 232, 249, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.04) 1px, transparent 1px),
    rgba(1, 8, 20, 0.34);
  background-size: 22px 22px;
}

.agent-display-laser {
  position: absolute;
  inset: -12% auto -12% -18%;
  z-index: 3;
  width: 18%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.18), rgba(255, 255, 255, 0.9), rgba(167, 139, 250, 0.34), transparent),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(34, 211, 238, 0.92) 9px 11px);
  filter: blur(0.5px) drop-shadow(0 0 18px rgba(34, 211, 238, 0.82));
  transform: skewX(-12deg);
}

.objective-agent-display.is-repainting .agent-display-laser {
  animation: agent-display-repaint 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-display-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 17rem;
  padding: 1rem;
}

.agent-display-card[hidden] {
  display: none;
}

.agent-display-card.is-invited::after {
  content: "INVITED";
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  padding: 0.24rem 0.52rem;
  border: 1px solid rgba(134, 239, 172, 0.5);
  border-radius: 999px;
  color: #86efac;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.agent-display-avatar {
  width: min(13rem, 100%);
  border-radius: 24px;
}

.agent-invite-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agent-display-copy {
  display: grid;
  gap: 0.38rem;
}

.agent-display-copy span {
  color: var(--hud-cyan-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-display-copy h3 {
  margin: 0;
  color: #eff6ff;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.agent-display-copy p {
  margin: 0;
  color: var(--color-muted);
}

.agent-invite-toggle {
  align-self: end;
  white-space: nowrap;
}

.agent-display-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-display-footer span {
  color: var(--hud-cyan-strong);
}

.objective-agent-chip-list {
  display: grid;
  gap: 0.45rem;
}

.objective-agent-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.34);
}

.objective-agent-chip-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
}

.objective-agent-chip span {
  overflow: hidden;
  color: #dffbff;
  font-size: 0.72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-agent-fieldset legend {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mission-agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem;
}

.mission-agent-option {
  display: grid;
  cursor: pointer;
}

.mission-agent-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mission-agent-option-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.34);
}

.mission-agent-option input:checked + .mission-agent-option-frame {
  border-color: rgba(103, 232, 249, 0.72);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent),
    rgba(2, 12, 26, 0.58);
}

.mission-agent-option-frame strong,
.mission-agent-option-frame small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-agent-option-frame strong {
  color: #dffbff;
  font-size: 0.78rem;
}

.mission-agent-option-frame small {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 0.66rem;
}

@keyframes agent-display-repaint {
  0% { opacity: 0; transform: translateX(0) skewX(-12deg); }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateX(720%) skewX(-12deg); }
}

.table-actions a,
.link-button {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  padding: 0.24rem 0.46rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background: rgba(2, 12, 26, 0.42);
  color: var(--color-link);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-cockpit-shell {
  width: min(760px, calc(100vw - 1.35rem));
}

.auth-cockpit-screen {
  min-height: min(540px, calc(100vh - 5rem));
}

.auth-cockpit-screen .auth-panel {
  max-width: 520px;
  margin: 4rem auto 0;
}

.auth-cockpit-screen .local-auth-panel {
  margin-top: 1rem;
}

.local-test-login-form {
  background: rgba(2, 6, 23, 0.44);
}

.local-test-login-form .form-actions {
  justify-content: flex-start;
}

.auth-cockpit-screen .hud-micro-button {
  width: fit-content;
}

.validation-panel {
  grid-column: 1 / -1;
  border-color: rgba(251, 191, 36, 0.34);
}

.button-form .hud-micro-button,
.form-actions .hud-micro-button,
.hud-actions .hud-micro-button {
  cursor: pointer;
}

html.hud-view-transition::view-transition-old(root),
html.hud-view-transition::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html.hud-view-transition::view-transition-old(cockpit-page) {
  animation: hud-monitor-exit 460ms cubic-bezier(0.72, 0, 0.18, 1) both;
  transform-origin: 22% 52%;
}

html.hud-view-transition::view-transition-new(cockpit-page) {
  animation: hud-monitor-enter 460ms cubic-bezier(0.16, 0.82, 0.18, 1) both;
  transform-origin: 76% 48%;
}

html.hud-view-transition::view-transition-group(cockpit-page) {
  z-index: 12;
}

@keyframes hud-monitor-exit {
  0% {
    filter: brightness(1) blur(0) drop-shadow(0 0 0 rgba(34, 211, 238, 0));
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
  }
  42% {
    filter: brightness(1.25) blur(0) drop-shadow(18px 0 24px rgba(34, 211, 238, 0.34));
    opacity: 0.96;
  }
  100% {
    filter: brightness(0.55) blur(2.5px) drop-shadow(54px 0 44px rgba(34, 211, 238, 0.54));
    opacity: 0;
    transform: translate3d(-112vw, 4vh, 0) rotateY(-24deg) rotateZ(-1.4deg) scale(0.88);
  }
}

@keyframes hud-monitor-enter {
  0% {
    filter: brightness(0.62) blur(2.5px) drop-shadow(-34px 0 30px rgba(34, 211, 238, 0.36));
    opacity: 0;
    transform: translate3d(36vw, -1vh, 0) rotateY(18deg) rotateZ(0.8deg) scale(0.92);
  }
  100% {
    filter: brightness(1) blur(0) drop-shadow(0 0 0 rgba(34, 211, 238, 0));
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hud-view-transition::view-transition-old(cockpit-page),
  html.hud-view-transition::view-transition-new(cockpit-page) {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .credentials-hub-header,
  .credential-row {
    grid-template-columns: 1fr;
  }

  .credential-row-meta {
    justify-items: start;
  }

  .credential-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .agent-display-shell {
    grid-template-columns: 1fr 1fr;
  }

  .agent-display-viewport {
    grid-column: 1 / -1;
    order: -1;
  }

  .agent-display-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .agent-display-arrow {
    width: 100%;
    height: 2.8rem;
  }

  .agent-invite-toggle {
    width: 100%;
  }

  .agent-current-avatar-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .topbar {
    top: 0;
  }

  .cockpit-screen {
    border-radius: 18px;
    transform: none;
  }

  .hud-actions,
  .compact-actions,
  .form-actions,
  .table-actions {
    align-items: stretch;
  }

  .hud-actions .hud-micro-button,
  .form-actions .hud-micro-button,
  .button-form,
  .button-form .hud-micro-button,
  .auth-cockpit-screen .hud-micro-button {
    width: 100%;
  }

  .auth-cockpit-screen .auth-panel {
    margin-top: 1rem;
  }

  .credential-action-grid {
    grid-template-columns: 1fr;
  }

  .credential-action-card {
    min-height: auto;
  }

  .agent-onboarding-credential-grid {
    grid-template-columns: 1fr;
  }

  .agent-onboarding-tabs,
  .agent-onboarding-api-grid {
    grid-template-columns: 1fr;
  }

  .agent-onboarding-nav-row {
    display: grid;
  }

  .agent-onboarding-finish {
    display: grid;
  }
}

.side-hud {
  position: fixed;
  top: calc(50% - 0.65rem);
  right: clamp(0.45rem, 1.4vw, 1.1rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-sizing: border-box;
  height: min(39rem, calc(100vh - 2.5rem));
  width: 10.25rem;
  padding: 0.58rem;
  border: 1px solid rgba(103, 232, 249, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.105), transparent 24%, rgba(167, 139, 250, 0.07)),
    rgba(1, 10, 22, 0.62);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.08),
    0 0 34px rgba(34, 211, 238, 0.18),
    inset 0 0 26px rgba(34, 211, 238, 0.055);
  overflow: hidden;
  transform: translateY(-50%);
  backdrop-filter: blur(24px) saturate(1.25);
}

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

.side-hud::before {
  inset: 0.42rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 19px;
}

.side-hud::after {
  top: 0.8rem;
  bottom: 0.8rem;
  left: 0.45rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.58), transparent);
  box-shadow: 8.85rem 0 0 rgba(103, 232, 249, 0.18);
}

.side-hud-beam {
  position: absolute;
  inset: -1.4rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(103, 232, 249, 0.36), transparent 28%),
    linear-gradient(115deg, transparent 30%, rgba(103, 232, 249, 0.08) 42%, rgba(167, 139, 250, 0.5) 50%, rgba(34, 211, 238, 0.16) 58%, transparent 70%);
  filter: blur(0.2px);
  transform: translateX(-140%) rotate(7deg);
}

.side-hud.is-firing {
  animation: side-hud-shell-pulse 620ms ease-out;
}

.side-hud.is-firing .side-hud-beam {
  animation: side-hud-beam-sweep 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.side-hud-mark,
.side-hud-link {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.1rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  background: rgba(3, 18, 34, 0.5);
  color: #dffbff;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.side-hud-mark {
  justify-items: center;
  padding: 0.62rem 0.55rem;
  border-radius: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.side-hud-mark span {
  font-size: 1rem;
  font-weight: 950;
  text-shadow: 0 0 22px rgba(103, 232, 249, 0.72);
}

.side-hud-mark small,
.side-hud-link small,
.side-hud-label {
  color: rgba(184, 199, 230, 0.72);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-hud-nav,
.side-hud-section,
.side-hud-session {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.38rem;
}

.side-hud > turbo-frame {
  display: contents;
}

.side-hud-section {
  padding-top: 0.1rem;
}

.side-hud-page-actions {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding-top: 0.34rem;
  overflow: hidden;
}

.side-hud-page-action-list {
  display: grid;
  gap: 0.38rem;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.08rem;
  scrollbar-width: thin;
}

.side-hud-admin-section {
  margin-top: auto;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(103, 232, 249, 0.16);
}

.side-hud-session {
  padding-top: 0.48rem;
  border-top: 1px solid rgba(103, 232, 249, 0.16);
}

.side-hud-label {
  margin: 0.08rem 0 0;
  text-align: center;
}

.side-hud-link {
  min-height: 3.1rem;
  padding: 0.54rem 0.64rem;
  border-radius: 16px;
}

.side-hud-button {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.side-hud-link span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-hud-form {
  width: 100%;
}

.side-hud-link.admin-link {
  border-color: rgba(167, 139, 250, 0.34);
  background:
    linear-gradient(90deg, rgba(167, 139, 250, 0.16), transparent 58%),
    rgba(3, 18, 34, 0.56);
}

.side-hud-page-link.primary-link {
  border-color: rgba(34, 211, 238, 0.54);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.34), rgba(14, 165, 233, 0.1) 58%, transparent),
    rgba(3, 31, 58, 0.8);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.16), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.side-hud-page-link.danger-link {
  border-color: rgba(248, 113, 113, 0.52);
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.16), transparent 62%),
    rgba(34, 3, 18, 0.46);
}

.side-hud-page-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.side-hud-mark:hover,
.side-hud-link:hover {
  border-color: rgba(103, 232, 249, 0.68);
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.08);
  color: #eff6ff;
  transform: translateX(-2px);
}

.side-hud-page-link.primary-link:hover {
  border-color: rgba(125, 249, 255, 0.86);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.42), rgba(14, 165, 233, 0.16) 58%, transparent),
    rgba(4, 42, 74, 0.88);
}

.side-hud-page-link.danger-link:hover {
  border-color: rgba(248, 113, 113, 0.78);
  background:
    linear-gradient(90deg, rgba(248, 113, 113, 0.24), transparent 62%),
    rgba(48, 7, 20, 0.72);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.2), inset 0 0 18px rgba(248, 113, 113, 0.08);
  color: #fee2e2;
}

@keyframes side-hud-beam-sweep {
  0% {
    opacity: 0;
    transform: translateX(-140%) rotate(7deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(145%) rotate(7deg);
  }
}

@keyframes side-hud-shell-pulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(103, 232, 249, 0.08),
      0 0 34px rgba(34, 211, 238, 0.18),
      inset 0 0 26px rgba(34, 211, 238, 0.055);
  }

  45% {
    box-shadow:
      0 0 0 1px rgba(103, 232, 249, 0.24),
      0 0 52px rgba(34, 211, 238, 0.32),
      0 0 78px rgba(167, 139, 250, 0.2),
      inset 0 0 30px rgba(34, 211, 238, 0.12);
  }

  100% {
    box-shadow:
      0 0 0 1px rgba(103, 232, 249, 0.08),
      0 0 34px rgba(34, 211, 238, 0.18),
      inset 0 0 26px rgba(34, 211, 238, 0.055);
  }
}

.with-side-hud .cockpit-shell {
  width: min(1220px, calc(100vw - 13.5rem));
  margin-left: clamp(0.7rem, 2vw, 1.6rem);
  margin-right: auto;
}

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

.admin-launch-card {
  min-height: 13rem;
  align-content: space-between;
}

.admin-launch-card p {
  margin: 0;
  color: rgba(184, 199, 230, 0.82);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .side-hud {
    position: sticky;
    top: 0.45rem;
    right: auto;
    height: min(33rem, calc(100vh - 1.5rem));
    width: min(100vw - 1rem, 980px);
    margin: 0.45rem auto 0;
    transform: none;
  }

  .side-hud-nav,
  .side-hud-section,
  .side-hud-session {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  }

  .side-hud-label {
    grid-column: 1 / -1;
  }

  .with-side-hud .cockpit-shell {
    width: min(100vw - 0.7rem, 1280px);
    margin: 0 auto;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .side-hud {
    top: 0;
    height: min(29rem, calc(100vh - 1rem));
    width: min(100vw - 0.5rem, 980px);
    padding: 0.45rem;
    border-radius: 18px;
  }

  .side-hud-nav,
  .side-hud-section,
  .side-hud-session {
    grid-template-columns: 1fr;
  }

  .side-hud-link {
    min-height: 2.6rem;
  }
}

/* Navigation hierarchy refinement for nested Objective and Mission flows. */
.cockpit-header-start {
  justify-self: start;
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: min(34vw, 28rem);
  gap: 0.38rem;
  color: rgba(184, 199, 230, 0.72);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb-nav a,
.breadcrumb-nav span {
  min-width: 0;
  white-space: nowrap;
}

.breadcrumb-nav a {
  color: rgba(184, 199, 230, 0.86);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--hud-cyan-strong);
}

.breadcrumb-nav span[aria-current="page"] {
  overflow: hidden;
  color: var(--hud-cyan-strong);
  text-overflow: ellipsis;
}

.hud-micro-button.is-disabled {
  border-color: rgba(148, 163, 184, 0.18);
  color: rgba(148, 163, 184, 0.58);
  cursor: not-allowed;
  opacity: 0.78;
}

.hud-micro-button.primary {
  border-color: rgba(165, 243, 252, 0.76);
  background:
    linear-gradient(135deg, rgba(165, 243, 252, 0.32), rgba(34, 211, 238, 0.24)),
    rgba(3, 24, 46, 0.72);
  color: #eff6ff;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.2), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.hud-micro-button.danger {
  border-color: rgba(248, 113, 113, 0.42);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.24), transparent),
    rgba(3, 18, 34, 0.56);
  color: #fecaca;
}

.hud-micro-button.danger:hover {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.26);
  color: #fee2e2;
}

.side-hud-link.is-active,
.side-hud-link[aria-current="page"] {
  border-color: rgba(103, 232, 249, 0.72);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), transparent 68%),
    rgba(3, 24, 46, 0.7);
  color: #eff6ff;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08), 0 0 18px rgba(34, 211, 238, 0.13);
}

.side-hud-mark:hover,
.side-hud-link:hover {
  transform: none;
}

@media (min-width: 1081px) {
  .side-hud {
    width: 9.25rem;
    padding: 0.5rem;
    border-radius: 20px;
  }

  .side-hud-link {
    min-height: 2.72rem;
    padding: 0.46rem 0.58rem;
    border-radius: 13px;
  }

  .side-hud-link span {
    font-size: 0.64rem;
  }

  .side-hud-mark {
    padding: 0.54rem 0.5rem;
    border-radius: 15px;
  }

  .with-side-hud .cockpit-shell {
    width: min(1240px, calc(100vw - 12.2rem));
  }
}

@media (max-width: 700px) {
  .cockpit-header-start {
    justify-self: stretch;
  }

  .breadcrumb-nav {
    max-width: none;
  }

  .access-row-heading {
    align-items: stretch;
  }

  .access-row-heading {
    flex-direction: column;
  }

}

/* Clean HUD pass: keep primary controls visible and move live objective state into the left rail. */
.side-hud {
  right: auto;
  left: clamp(0.45rem, 1.4vw, 1.1rem);
  height: min(39rem, calc(100vh - 2.5rem));
  overflow: hidden;
  scrollbar-width: thin;
}

.clean-dashboard-grid,
.clean-list-grid {
  grid-template-columns: minmax(0, 1fr);
}

.clean-list-panel {
  grid-area: auto;
}

.clean-objective-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.36fr);
  align-items: start;
}

.objective-detail-main-stack {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.objective-agent-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.7rem;
}

.objective-agent-card {
  min-height: 8.4rem;
  padding: 1rem;
}

.objective-agent-card .agent-avatar-image {
  width: 6rem;
  height: 6rem;
}

.agent-current-work-panel {
  margin-top: 0.75rem;
}

.clean-mission-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.52fr);
  grid-template-areas:
    "access status"
    "details details";
  align-items: start;
}

.clean-status-panel { grid-area: status; }
.clean-access-panel { grid-area: access; }
.clean-details-panel { grid-area: details; }

.clean-command-panel {
  align-content: start;
}

.clean-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.clean-stat-card {
  display: grid;
  gap: 0.28rem;
  min-height: 8rem;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  background: rgba(1, 8, 20, 0.42);
}

.clean-stat-card span,
.clean-stat-card small {
  color: rgba(184, 199, 230, 0.78);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clean-stat-card strong {
  color: #eff6ff;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.clean-stat-card.has-warning {
  border-color: rgba(248, 113, 113, 0.38);
}

.agent-level-list {
  display: grid;
  gap: 0.55rem;
}

.agent-level-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.34);
}

.agent-level-row strong,
.agent-level-row span,
.agent-level-row small {
  display: block;
}

.agent-level-row strong {
  color: #eff6ff;
}

.agent-level-row span,
.agent-level-row small {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-level-row-score {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.agent-level-row-score .agent-level-badge {
  position: static;
}

.clean-action-row {
  display: flex;
  justify-content: flex-end;
}

.clean-side-panel,
.clean-details-panel {
  align-content: start;
}

@media (min-width: 1081px) {
  .side-hud {
    left: clamp(0.45rem, 1.4vw, 1.1rem);
    right: auto;
    width: 11rem;
  }

  .with-side-hud .cockpit-shell {
    width: min(1240px, calc(100vw - 13.8rem));
    margin-left: clamp(12rem, 15vw, 14.5rem);
    margin-right: clamp(0.7rem, 2vw, 1.6rem);
  }
}

@media (max-width: 1080px) {
  .side-hud {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
    width: min(100vw - 0.7rem, 1280px);
    margin: 0.8rem auto 1rem;
    overflow: hidden;
    transform: none;
  }

  .side-hud-page-actions,
  .side-hud-page-action-list {
    overflow: visible;
  }

  .side-hud-page-actions {
    grid-template-rows: none;
  }

  .side-hud-page-action-list {
    padding-right: 0;
  }

  .clean-objective-detail-grid,
  .clean-mission-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .clean-status-panel,
  .clean-access-panel,
  .clean-details-panel {
    grid-area: auto;
  }
}

@media (max-width: 700px) {
  .clean-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .clean-stat-grid {
    grid-template-columns: 1fr;
  }
}
