/*
 * 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);
}

html {
  overflow-x: hidden;
}

.terminal-body {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(14, 116, 144, 0.22), transparent 26rem),
    linear-gradient(135deg, #020617 0%, #05030f 52%, #07111f 100%);
  color: #e6f6ff;
}

.terminal-body::before,
.terminal-body::after {
  display: none;
}

.terminal-console {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.terminal-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 1.1rem;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
}

.terminal-console-header p {
  margin: 0.15rem 0 0;
  color: #9fc3df;
  font-size: 0.9rem;
}

.terminal-console-brand {
  color: #e0faff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(103, 232, 249, 0.45);
}

.terminal-console-status {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.16);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-console-tabs {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.terminal-console-tabs button,
.terminal-panel-heading button,
.terminal-composer button {
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
  color: #d9fbff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.terminal-console-tabs button {
  padding: 0.7rem 0.65rem;
}

.terminal-console-tabs button.is-active,
.terminal-panel-heading button:hover,
.terminal-composer button:hover {
  border-color: rgba(165, 243, 252, 0.72);
  background: rgba(34, 211, 238, 0.26);
}

.terminal-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 0.85rem;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.terminal-console-panel {
  display: grid;
  min-height: 0;
  min-width: 0;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 1.2rem;
  background: rgba(3, 10, 26, 0.78);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.terminal-missions-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.terminal-runtime-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.terminal-chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.terminal-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(103, 232, 249, 0.14);
}

.terminal-panel-heading span {
  display: block;
  color: #f0fcff;
  font-weight: 900;
}

.terminal-panel-heading small {
  display: block;
  margin-top: 0.2rem;
  color: #89a8c7;
  font-size: 0.78rem;
}

.terminal-panel-heading button {
  padding: 0.45rem 0.7rem;
}

.terminal-panel-heading select {
  max-width: 12rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.9);
  color: #d9fbff;
  font: inherit;
  padding: 0.45rem 0.7rem;
}

.terminal-chat-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.terminal-search {
  width: calc(100% - 1.8rem);
  margin: 0.9rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.82);
  color: #eff6ff;
  font: inherit;
  padding: 0.72rem 0.8rem;
}

.terminal-mission-list,
.terminal-chat-messages,
.terminal-runtime-content {
  min-height: 0;
  overflow: auto;
  padding: 0.9rem;
}

.terminal-mission-list,
.terminal-runtime-content {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.terminal-mission-card {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 1rem;
  background: rgba(8, 27, 58, 0.56);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.terminal-mission-card:hover,
.terminal-mission-card.is-selected,
.terminal-container-card:hover {
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(8, 145, 178, 0.18);
}

.terminal-mission-main strong,
.terminal-mission-main small,
.terminal-mission-meta,
.terminal-mission-foot {
  display: block;
}

.terminal-mission-main strong {
  color: #f8fdff;
  font-size: 0.96rem;
}

.terminal-mission-main small,
.terminal-mission-foot {
  color: #8daac9;
  font-size: 0.78rem;
}

.terminal-mission-meta,
.terminal-mission-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.terminal-state {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terminal-state-running,
.terminal-state-healthy {
  border-color: rgba(74, 222, 128, 0.38);
  color: #bbf7d0;
}

.terminal-state-failed,
.terminal-state-unhealthy,
.terminal-state-exited {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.terminal-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.terminal-message {
  max-width: min(44rem, 92%);
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 1rem;
  background: rgba(8, 27, 58, 0.64);
  color: #dff7ff;
  line-height: 1.5;
}

.terminal-message header {
  margin-bottom: 0.4rem;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.terminal-message-you {
  align-self: flex-end;
  background: rgba(8, 145, 178, 0.24);
}

.terminal-message-error {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(127, 29, 29, 0.32);
}

.terminal-thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 1.5rem;
}

.terminal-thinking i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #67e8f9;
  opacity: 0.36;
  animation: terminal-thinking-dot 1s infinite ease-in-out;
}

.terminal-thinking i:nth-child(2) {
  animation-delay: 0.16s;
}

.terminal-thinking i:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes terminal-thinking-dot {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-0.22rem);
  }
}

.terminal-composer {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border-top: 1px solid rgba(103, 232, 249, 0.14);
  background: rgba(2, 6, 23, 0.56);
}

.terminal-composer textarea {
  width: 100%;
  min-height: clamp(4rem, 14vh, 5.8rem);
  resize: vertical;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.86);
  color: #eff6ff;
  font: inherit;
  line-height: 1.45;
  padding: 0.85rem;
}

.terminal-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.terminal-composer-actions span {
  color: #89a8c7;
  font-size: 0.78rem;
}

.terminal-composer button {
  padding: 0.65rem 1rem;
}

.terminal-composer button:disabled,
.terminal-composer textarea:disabled {
  cursor: wait;
  opacity: 0.62;
}

.terminal-container-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.14);
  border-radius: 1rem;
  background: rgba(8, 27, 58, 0.56);
}

.terminal-container-card header,
.terminal-container-card footer,
.terminal-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.terminal-container-card p,
.terminal-container-card footer {
  margin: 0;
  color: #8daac9;
  font-size: 0.78rem;
}

.terminal-metric {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.35rem 0.75rem;
  color: #c7e9f5;
  font-size: 0.8rem;
}

.terminal-metric div {
  grid-column: 1 / -1;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
}

.terminal-metric i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0891b2, #67e8f9);
}

.terminal-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(103, 232, 249, 0.22);
  border-radius: 1rem;
  color: #8daac9;
  text-align: center;
}

@media (max-width: 1180px), (max-height: 760px) {
  .terminal-console-tabs {
    display: grid;
  }

  .terminal-console-grid {
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .terminal-console-panel {
    display: none;
    height: 100%;
    min-height: 0;
  }

  .terminal-console[data-active-panel="missions"] [data-terminal-panel="missions"],
  .terminal-console[data-active-panel="chat"] [data-terminal-panel="chat"],
  .terminal-console[data-active-panel="runtime"] [data-terminal-panel="runtime"] {
    display: grid;
  }

  .terminal-chat-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-chat-controls {
    align-items: stretch;
    width: 100%;
  }

  .terminal-panel-heading select {
    max-width: 100%;
    width: 100%;
  }

  .terminal-composer {
    position: sticky;
    bottom: 0;
  }
}

@media (max-width: 700px) {
  .terminal-console {
    padding: 0.6rem;
  }

  .terminal-console-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .terminal-message {
    max-width: 100%;
  }
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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="email"],
.form-panel input[type="number"],
.form-panel input[type="password"],
.form-panel input[type="url"],
.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="email"]:focus,
.form-panel input[type="number"]:focus,
.form-panel input[type="password"]:focus,
.form-panel input[type="url"]: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);
}

.form-panel input:-webkit-autofill,
.form-panel input:-webkit-autofill:hover,
.form-panel input:-webkit-autofill:focus {
  border-color: rgba(103, 232, 249, 0.2);
  box-shadow: 0 0 0 1000px rgba(2, 6, 23, 0.62) inset;
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
}

.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: minmax(36rem, 1.35fr) minmax(18rem, 0.75fr);
  align-items: stretch;
}

.gitlab-review-layout,
.gitlab-review-form-grid,
.gitlab-review-secondary-grid,
.gitlab-review-flow-grid {
  display: grid;
  gap: 0.85rem;
}

.gitlab-review-form-grid,
.gitlab-review-secondary-grid,
.gitlab-review-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gitlab-review-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gitlab-review-flow-grid article {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.28);
}

.gitlab-review-flow-grid article strong {
  color: #dffbff;
  font-size: 0.8rem;
}

.gitlab-review-flow-grid article small {
  color: var(--color-muted);
  line-height: 1.45;
}

.gitlab-review-agent-fieldset {
  grid-column: 1 / -1;
}

.gitlab-review-test-form {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(103, 232, 249, 0.14);
}

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

.realtime-status-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(103, 232, 249, 0.13);
  border-radius: 10px;
  background: rgba(1, 10, 22, 0.34);
}

.realtime-status-legend-title,
.realtime-status-legend-item {
  color: rgba(184, 199, 230, 0.84);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.realtime-status-legend-title {
  color: #dffbff;
}

.realtime-status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.realtime-status-legend-item .hud-node-dot {
  flex: 0 0 auto;
}

.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);
}

.command-icon-form {
  margin: 0;
}

.command-icon-button {
  color: #a5f3fc;
}

.open-icon,
.credential-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.open-icon::before,
.open-icon::after,
.credential-icon::before,
.credential-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.open-icon::before {
  left: 0.06rem;
  bottom: 0.06rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.open-icon::after {
  top: 0.06rem;
  right: 0.06rem;
  width: 0.58rem;
  height: 0.58rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  background: linear-gradient(45deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%);
}

.credential-icon::before {
  top: 0.25rem;
  left: 0.03rem;
  width: 0.94rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px / 70%;
}

.credential-icon::after {
  top: 0.39rem;
  left: 0.39rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: currentColor;
}

.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);
  grid-auto-flow: column;
  grid-auto-columns: 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));
}

.mission-lifecycle-events {
  display: grid;
  gap: 0.48rem;
  max-height: 30rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.mission-lifecycle-event {
  position: relative;
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  gap: 0.65rem;
  min-width: 0;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.44);
}

.mission-lifecycle-event time {
  color: #67e8f9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 850;
}

.mission-lifecycle-event-body {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
}

.mission-lifecycle-event-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.7rem;
}

.mission-lifecycle-event-heading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(226, 232, 240, 0.96);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-lifecycle-event-heading .mission-lifecycle-ellipsis {
  margin-left: 0.32rem;
  vertical-align: 0.08rem;
}

.mission-lifecycle-event-heading span {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-lifecycle-event p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  line-height: 1.45;
}

.mission-lifecycle-event.is-started.is-live,
.mission-lifecycle-event.is-running.is-live {
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: inset 2px 0 0 rgba(167, 139, 250, 0.85);
}

.mission-lifecycle-event.is-succeeded {
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow: inset 2px 0 0 rgba(103, 232, 249, 0.82);
}

.mission-lifecycle-event.is-failed {
  border-color: rgba(248, 113, 113, 0.32);
  box-shadow: inset 2px 0 0 rgba(248, 113, 113, 0.88);
}

.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-primary-panel {
  min-width: 0;
}

.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 input[type="email"],
.launch-form-panel input[type="url"],
.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,
  .gitlab-review-form-grid,
  .gitlab-review-secondary-grid,
  .gitlab-review-flow-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="email"],
.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,
.realtime-status-legend-item.realtime-state-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,
.realtime-status-legend-item.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,
.realtime-status-legend-item.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,
.realtime-status-legend-item.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,
.realtime-status-legend-item.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,
.realtime-status-legend-item.realtime-state-failed .hud-node-dot {
  background: #f87171;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.88);
}

.fleet-row.mission-blocked {
  border-color: rgba(251, 191, 36, 0.5);
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.13), transparent 58%),
    rgba(1, 10, 22, 0.46);
}

.fleet-row.mission-blocked .hud-node-dot {
  background: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.9);
}

.fleet-row.realtime-state-inactive .hud-node-dot,
.realtime-status-legend-item.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,
  .realtime-status-legend-item.realtime-state-working .hud-node-dot,
  .realtime-status-legend-item.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;
}

.chatgpt-oauth-steps {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.chatgpt-oauth-step {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.06), transparent 42%),
    rgba(2, 12, 26, 0.34);
}

.chatgpt-oauth-step.is-primary-step {
  border-color: rgba(103, 232, 249, 0.44);
  background:
    radial-gradient(circle at 18% 10%, rgba(103, 232, 249, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(167, 139, 250, 0.08)),
    rgba(2, 12, 26, 0.48);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.1), inset 0 0 18px rgba(34, 211, 238, 0.04);
}

.chatgpt-oauth-step-number {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(103, 232, 249, 0.44);
  border-radius: 999px;
  background: rgba(1, 10, 22, 0.72);
  color: var(--hud-cyan-strong);
  font-size: 0.95rem;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12), inset 0 0 14px rgba(34, 211, 238, 0.08);
}

.chatgpt-oauth-step-body {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.chatgpt-oauth-step-body h3 {
  margin: 0;
  color: #eff6ff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.chatgpt-oauth-step-body p {
  margin: 0;
  color: rgba(184, 199, 230, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.chatgpt-device-page-button {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.72rem 1.05rem;
  font-size: 0.8rem;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.oauth-copy-button {
  flex: 0 0 auto;
  min-height: 2.35rem;
}

.chatgpt-oauth-step-body .chatgpt-oauth-meta {
  color: rgba(184, 199, 230, 0.68);
  font-size: 0.78rem;
}

.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-box .copy-status {
  min-width: 4rem;
  color: rgba(184, 199, 230, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 700px) {
  .chatgpt-oauth-step {
    grid-template-columns: 1fr;
  }

  .chatgpt-oauth-step-number {
    width: 2.1rem;
    height: 2.1rem;
  }

  .chatgpt-device-page-button,
  .oauth-copy-button {
    width: 100%;
  }

  .oauth-code-box .copy-status {
    width: 100%;
    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-attention-badge {
  width: fit-content;
  padding: 0.18rem 0.48rem;
  border: 1px solid rgba(251, 191, 36, 0.58);
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.18);
  color: #fde68a;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-experience-meter {
  display: grid;
  gap: 0.44rem;
  margin-top: 0.85rem;
  padding: 0.78rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.09), transparent 68%),
    rgba(1, 10, 22, 0.32);
}

.agent-experience-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.agent-experience-meter-head span,
.agent-experience-meter p {
  color: var(--color-muted);
}

.agent-experience-meter-head span {
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-experience-meter-head strong {
  color: var(--color-text);
  font-size: 1rem;
}

.agent-experience-meter-track {
  overflow: hidden;
  height: 0.48rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.agent-experience-meter-track span {
  display: block;
  width: var(--agent-experience-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.95), rgba(251, 191, 36, 0.92));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.24);
}

.agent-experience-meter p {
  margin: 0;
  font-size: 0.82rem;
}

.agent-credential-summary-panel {
  margin-top: 0.8rem;
}

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

.agent-credential-readiness-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
  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);
}

.agent-credential-readiness-card.state-active {
  border-color: rgba(134, 239, 172, 0.36);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 62%),
    rgba(1, 10, 22, 0.38);
}

.agent-credential-readiness-card.state-needs-renewal {
  border-color: rgba(251, 191, 36, 0.46);
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.18), transparent 62%),
    rgba(1, 10, 22, 0.42);
}

.agent-credential-readiness-card.state-missing {
  border-color: rgba(248, 113, 113, 0.52);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.24), transparent 62%),
    rgba(1, 10, 22, 0.44);
}

.agent-credential-readiness-head,
.objective-chat-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.agent-credential-readiness-head h3,
.agent-credential-readiness-card p {
  margin: 0;
}

.agent-credential-readiness-card p,
.agent-credential-mini-list small {
  color: var(--color-muted);
}

.agent-credential-mini-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-credential-mini-list li {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 10px;
  background: rgba(2, 12, 26, 0.34);
}

.agent-credential-mini-list strong {
  color: #eff6ff;
}

.agent-credential-mini-list span {
  color: var(--hud-cyan-strong);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.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;
  width: min(100%, 38rem);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  justify-self: center;
}

.objective-agent-display.is-single-agent {
  width: min(100%, 34rem);
}

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

.agent-display-arrow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 6.6rem;
  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: 11.25rem;
  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(5.6rem, 7.5rem) minmax(0, 1fr);
  grid-template-areas:
    "avatar copy"
    "avatar action";
  gap: 0.65rem 0.85rem;
  align-items: center;
  min-height: 11.25rem;
  padding: 0.8rem;
}

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

.objective-agent-display[data-agent-carousel-mode-value="single"] .agent-display-card.is-invited::after {
  content: "SELECTED";
}

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

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

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

.agent-display-copy {
  display: grid;
  grid-area: copy;
  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.1rem, 2vw, 1.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.agent-invite-toggle {
  grid-area: action;
  align-self: start;
  justify-self: start;
  white-space: nowrap;
  border-color: rgba(165, 243, 252, 0.72);
  background:
    linear-gradient(135deg, rgba(165, 243, 252, 0.28), rgba(34, 211, 238, 0.18)),
    rgba(3, 24, 46, 0.78);
  color: #eff6ff;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.22), inset 0 0 18px rgba(34, 211, 238, 0.08);
  font-weight: 950;
}

.agent-display-card.is-invited .agent-invite-toggle {
  border-color: rgba(134, 239, 172, 0.62);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(20, 83, 45, 0.22)),
    rgba(3, 24, 46, 0.78);
  color: #dcfce7;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.18), inset 0 0 16px rgba(34, 197, 94, 0.08);
}

.objective-agent-display .display-avatar {
  grid-area: avatar;
  width: min(7.5rem, 100%);
}

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

.orbital-gate-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: clamp(1.1rem, 3vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 118%, rgba(22, 163, 184, 0.36), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(125, 249, 255, 0.13), transparent 22rem),
    radial-gradient(circle at 12% 16%, rgba(79, 70, 229, 0.18), transparent 23rem),
    linear-gradient(180deg, #03040d 0%, #06111f 46%, #01040b 100%);
}

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

.orbital-gate-shell::before {
  right: -18vw;
  bottom: -36vw;
  left: -18vw;
  height: 46vw;
  min-height: 20rem;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 249, 255, 0.26), transparent 40%),
    linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.96) 52%, #020617 100%);
  box-shadow: 0 -28px 90px rgba(34, 211, 238, 0.18);
  opacity: 0.78;
  z-index: -1;
}

.orbital-gate-shell::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(125, 249, 255, 0.08) 48%, transparent 56%),
    radial-gradient(circle at 50% 52%, transparent 0 22rem, rgba(0, 0, 0, 0.38) 42rem);
  mix-blend-mode: screen;
}

.orbital-starfield,
.orbital-starfield-layer,
.orbital-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbital-starfield {
  z-index: -2;
  overflow: hidden;
}

.orbital-starfield-layer {
  inset: -24%;
  opacity: 0.58;
  background-repeat: repeat;
}

.orbital-starfield-layer.layer-one {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.2px);
  background-size: 92px 92px;
}

.orbital-starfield-layer.layer-two {
  background-image: radial-gradient(circle, rgba(125, 249, 255, 0.72) 0 1px, transparent 1.2px);
  background-size: 151px 151px;
}

.orbital-starfield-layer.layer-three {
  background-image: radial-gradient(circle, rgba(196, 181, 253, 0.55) 0 1px, transparent 1.2px);
  background-size: 235px 235px;
  opacity: 0.32;
}

.orbital-nebula {
  filter: blur(22px);
  opacity: 0.36;
}

.orbital-nebula.nebula-one {
  transform: translate(-18%, -24%) rotate(-14deg);
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.32), transparent 58%);
}

.orbital-nebula.nebula-two {
  transform: translate(28%, 18%) rotate(21deg);
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.24), transparent 62%);
}

.orbital-gate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1.18fr);
  gap: clamp(1.2rem, 4vw, 4.5rem);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.orbital-copy {
  position: relative;
  display: grid;
  gap: 1.05rem;
  align-content: center;
  padding: clamp(1rem, 2.6vw, 2rem);
  border-left: 1px solid rgba(125, 249, 255, 0.34);
  background:
    linear-gradient(90deg, rgba(125, 249, 255, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.08));
  box-shadow: -22px 0 70px rgba(34, 211, 238, 0.07);
}

.orbital-copy::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 5px;
  background: linear-gradient(180deg, transparent, rgba(125, 249, 255, 0.9), transparent);
  box-shadow: 0 0 20px rgba(125, 249, 255, 0.68);
}

.orbital-kicker {
  margin: 0;
  color: #7df9ff;
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(125, 249, 255, 0.56);
}

.orbital-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2.65rem, 5.8vw, 5.9rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.88;
  text-wrap: balance;
}

.orbital-copy p:not(.orbital-kicker):not(.orbital-status) {
  max-width: 34rem;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.orbital-boarding-form {
  margin: 0;
}

.orbital-boarding-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(22rem, 100%);
  min-height: 4.35rem;
  margin-top: 0.55rem;
  padding: 0.9rem 0.95rem 0.9rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(125, 249, 255, 0.64);
  border-radius: 999px;
  background:
    radial-gradient(circle at 92% 50%, rgba(248, 250, 252, 0.52), transparent 1.5rem),
    linear-gradient(90deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16) 52%, rgba(167, 139, 250, 0.2)),
    rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-align: left;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(125, 249, 255, 0.12),
    0 0 34px rgba(34, 211, 238, 0.24),
    inset 0 0 22px rgba(34, 211, 238, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.orbital-boarding-button::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.22) 48%, transparent 60%);
  transform: translateX(-62%) rotate(8deg);
}

.orbital-boarding-button:hover,
.orbital-boarding-button:focus-visible {
  border-color: rgba(248, 250, 252, 0.92);
  box-shadow:
    0 0 0 1px rgba(125, 249, 255, 0.18),
    0 0 46px rgba(34, 211, 238, 0.34),
    0 0 80px rgba(167, 139, 250, 0.16),
    inset 0 0 26px rgba(34, 211, 238, 0.16);
  transform: translateY(-1px);
}

.orbital-boarding-button:focus-visible {
  outline: 2px solid #f8fafc;
  outline-offset: 4px;
}

.orbital-boarding-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.orbital-boarding-copy,
.orbital-boarding-vector {
  position: relative;
  z-index: 1;
}

.orbital-boarding-vector {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(248, 250, 252, 0.52);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 45%, #f8fafc 45% 55%, transparent 55%),
    radial-gradient(circle, rgba(125, 249, 255, 0.36), transparent 62%);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.44);
}

.orbital-status {
  min-height: 1.4rem;
  margin: 0;
  color: rgba(125, 249, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orbital-visual {
  position: relative;
  min-height: min(72vh, 43rem);
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 66%, rgba(125, 249, 255, 0.16), transparent 12rem),
    radial-gradient(circle at 70% 22%, rgba(167, 139, 250, 0.12), transparent 15rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.28));
  box-shadow: inset 0 0 120px rgba(2, 6, 23, 0.74), 0 0 80px rgba(34, 211, 238, 0.06);
}

.orbital-planet,
.orbital-ring,
.orbital-dock,
.orbital-tether,
.orbital-launch-platform,
.orbital-lift {
  position: absolute;
}

.orbital-planet {
  right: -14%;
  bottom: -28%;
  width: min(40rem, 72%);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.68), transparent 0.7rem),
    radial-gradient(circle at 35% 34%, #7dd3fc 0 11%, #0e7490 28%, #082f49 52%, #020617 76%);
  box-shadow:
    -22px -20px 80px rgba(34, 211, 238, 0.22),
    inset -52px -48px 80px rgba(0, 0, 0, 0.62),
    inset 24px 20px 70px rgba(125, 249, 255, 0.16);
}

.orbital-ring {
  right: -10%;
  bottom: 5%;
  width: 82%;
  height: 18%;
  border: 1px solid rgba(125, 249, 255, 0.22);
  border-right-color: rgba(248, 250, 252, 0.48);
  border-left-color: rgba(125, 249, 255, 0.06);
  border-radius: 50%;
  transform: rotate(-18deg);
  filter: blur(0.2px);
}

.orbital-dock {
  top: 14%;
  right: 10%;
  width: clamp(8.5rem, 17vw, 13rem);
  height: clamp(3.2rem, 6vw, 4.6rem);
}

.ship-core,
.ship-wing,
.ship-engine,
.vessel-body,
.vessel-wing,
.vessel-trail {
  position: absolute;
  display: block;
}

.ship-core {
  top: 32%;
  left: 18%;
  width: 64%;
  height: 30%;
  border-radius: 999px 42% 42% 999px;
  background: linear-gradient(90deg, #e0f2fe, #67e8f9 42%, #172554 100%);
  box-shadow: 0 0 26px rgba(125, 249, 255, 0.36);
}

.ship-wing {
  left: 38%;
  width: 42%;
  height: 32%;
  background: linear-gradient(90deg, rgba(125, 249, 255, 0.88), rgba(30, 41, 59, 0.94));
  clip-path: polygon(0 50%, 100% 0, 76% 100%);
}

.ship-wing.wing-left {
  top: 3%;
  transform: rotate(-8deg);
}

.ship-wing.wing-right {
  bottom: 3%;
  transform: scaleY(-1) rotate(-8deg);
}

.ship-engine {
  left: 9%;
  width: 1.5rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #7df9ff;
  box-shadow: -14px 0 28px rgba(125, 249, 255, 0.76);
}

.ship-engine.engine-left { top: 28%; }
.ship-engine.engine-right { bottom: 28%; }

.orbital-tether {
  top: 19%;
  bottom: 18%;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(125, 249, 255, 0.72) 18%, rgba(248, 250, 252, 0.92) 50%, rgba(125, 249, 255, 0.62) 78%, transparent 100%);
  box-shadow: 0 0 22px rgba(125, 249, 255, 0.62);
  transform-origin: bottom center;
}

.orbital-tether::before,
.orbital-tether::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(125, 249, 255, 0.2);
}

.orbital-tether::before { left: -0.6rem; }
.orbital-tether::after { right: -0.6rem; }

.orbital-launch-platform {
  bottom: 14%;
  left: calc(50% - 5.5rem);
  width: 11rem;
  height: 4.6rem;
  border: 1px solid rgba(125, 249, 255, 0.38);
  border-radius: 24px 24px 12px 12px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.88)),
    rgba(2, 6, 23, 0.82);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.18), inset 0 0 28px rgba(34, 211, 238, 0.12);
}

.orbital-door-panel {
  position: absolute;
  top: 0.58rem;
  bottom: 0.58rem;
  width: calc(50% - 0.35rem);
  border: 1px solid rgba(125, 249, 255, 0.22);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 47, 73, 0.66));
}

.orbital-door-panel.door-left {
  left: 0.58rem;
  border-radius: 18px 6px 6px 10px;
}

.orbital-door-panel.door-right {
  right: 0.58rem;
  border-radius: 6px 18px 10px 6px;
}

.orbital-platform-glow {
  position: absolute;
  right: 1rem;
  bottom: 0.6rem;
  left: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7df9ff, transparent);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.78);
}

.orbital-lift {
  bottom: calc(14% + 2.2rem);
  left: calc(50% - 1.45rem);
  width: 2.9rem;
  height: 5.7rem;
  transform-origin: center bottom;
}

.lift-capsule {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(248, 250, 252, 0.7);
  border-radius: 1.2rem 1.2rem 0.72rem 0.72rem;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.84), rgba(125, 249, 255, 0.52) 18%, rgba(15, 23, 42, 0.92) 58%, rgba(2, 6, 23, 0.96)),
    rgba(8, 47, 73, 0.82);
  box-shadow: 0 0 28px rgba(125, 249, 255, 0.46), inset 0 0 18px rgba(255, 255, 255, 0.14);
}

.lift-window {
  position: absolute;
  top: 1rem;
  right: 0.72rem;
  left: 0.72rem;
  height: 1.45rem;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, #f8fafc, #7df9ff 42%, #0f172a 76%);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.72);
}

.lift-thruster {
  position: absolute;
  right: 0.8rem;
  bottom: -1.1rem;
  left: 0.8rem;
  height: 1.9rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.82), rgba(59, 130, 246, 0));
  filter: blur(1px);
  transform-origin: top center;
}

.orbital-test-access {
  position: relative;
  z-index: 2;
  width: min(42rem, 100%);
  margin: 1rem auto 0;
  color: rgba(226, 232, 240, 0.72);
}

.orbital-test-access summary {
  width: fit-content;
  cursor: pointer;
  color: rgba(125, 249, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbital-test-panel {
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(125, 249, 255, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
}

.orbital-test-panel h2,
.orbital-test-panel p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .orbital-starfield-layer,
  .orbital-nebula,
  .orbital-boarding-button::before,
  .orbital-planet,
  .orbital-dock,
  .orbital-platform-glow,
  .orbital-lift,
  .lift-thruster {
    animation: none;
  }
}

@media (max-width: 900px) {
  .orbital-gate {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .orbital-copy {
    padding-top: 0.6rem;
  }

  .orbital-copy h1 {
    max-width: 11ch;
  }

  .orbital-visual {
    min-height: 23rem;
    order: -1;
  }
}

@media (max-width: 560px) {
  .orbital-gate-shell {
    padding: 0.75rem;
  }

  .orbital-copy {
    padding-right: 0.2rem;
  }

  .orbital-copy h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 13vw, 3.25rem);
    letter-spacing: -0.07em;
  }

  .orbital-boarding-button {
    width: 100%;
    min-height: 3.85rem;
    font-size: 0.75rem;
  }

  .orbital-visual {
    min-height: 19.5rem;
    border-radius: 28px;
  }

  .orbital-dock {
    right: 4%;
  }

  .orbital-launch-platform {
    left: calc(50% - 4.45rem);
    width: 8.9rem;
  }
}

.orbital-elevator-shell {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 15%, rgba(125, 249, 255, 0.16), transparent 19rem),
    radial-gradient(circle at 22% 78%, rgba(14, 165, 233, 0.24), transparent 28rem),
    linear-gradient(180deg, #02050d 0%, #071323 44%, #0b2030 66%, #02101c 100%);
  color: #f8fafc;
}

.orbital-elevator-shell::before,
.orbital-elevator-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbital-elevator-shell::before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 96%, rgba(56, 189, 248, 0.26), transparent 34%),
    radial-gradient(ellipse at 50% 64%, transparent 0 46%, rgba(1, 5, 14, 0.58) 76%);
  opacity: 0.92;
}

.orbital-elevator-shell::after {
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.26), transparent 28%, transparent 72%, rgba(2, 6, 23, 0.34)),
    radial-gradient(ellipse at center, transparent 0 52%, rgba(0, 0, 0, 0.5) 100%);
  mix-blend-mode: multiply;
}

.orbital-star-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.orbital-cinematic-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.orbital-depth-fog {
  position: absolute;
  inset: auto -18vw -14vh -18vw;
  height: 46vh;
  z-index: 2;
  pointer-events: none;
  filter: blur(18px);
}

.orbital-depth-fog.fog-near {
  background: radial-gradient(ellipse at 52% 86%, rgba(125, 249, 255, 0.38), transparent 62%);
  opacity: 0.72;
}

.orbital-depth-fog.fog-far {
  inset: -18vh -12vw auto -12vw;
  height: 64vh;
  background: radial-gradient(ellipse at 62% 32%, rgba(96, 165, 250, 0.18), transparent 68%);
  opacity: 0.56;
}

.earth-horizon {
  position: absolute;
  right: -18vw;
  bottom: -34vh;
  left: -18vw;
  z-index: 2;
  height: min(58vh, 36rem);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 48% 10%, rgba(248, 250, 252, 0.46), transparent 0.8rem),
    radial-gradient(ellipse at 48% 12%, rgba(125, 249, 255, 0.42), transparent 20%),
    linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(14, 116, 144, 0.54) 36%, rgba(4, 47, 74, 0.92) 68%, #020617 100%);
  box-shadow:
    0 -42px 120px rgba(56, 189, 248, 0.24),
    inset 0 36px 80px rgba(255, 255, 255, 0.08),
    inset 0 -60px 120px rgba(0, 0, 0, 0.62);
  transform: translateZ(-80px) rotateX(2deg);
}

.earth-glow,
.earth-cloud,
.ocean-sheen,
.ocean-base,
.base-platform,
.base-tower,
.base-dock-light {
  position: absolute;
  display: block;
}

.earth-glow {
  top: -16%;
  right: 12%;
  left: 12%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(224, 242, 254, 0.34), rgba(125, 249, 255, 0.18) 34%, transparent 72%);
  filter: blur(10px);
}

.earth-cloud {
  height: 14%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 24% 44%, rgba(255, 255, 255, 0.58), transparent 24%),
    radial-gradient(ellipse at 56% 50%, rgba(226, 232, 240, 0.42), transparent 32%),
    radial-gradient(ellipse at 80% 48%, rgba(255, 255, 255, 0.38), transparent 24%);
  filter: blur(7px);
  opacity: 0.42;
  transform: rotate(-7deg);
}

.earth-cloud.cloud-one {
  top: 10%;
  left: 16%;
  width: 32%;
}

.earth-cloud.cloud-two {
  top: 19%;
  right: 18%;
  width: 38%;
  opacity: 0.32;
}

.earth-cloud.cloud-three {
  top: 31%;
  left: 38%;
  width: 28%;
  opacity: 0.26;
}

.ocean-sheen {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(224, 242, 254, 0.72), transparent);
  filter: blur(0.4px);
  opacity: 0.6;
}

.ocean-sheen.sheen-one {
  top: 30%;
  right: 24%;
  width: 34%;
  transform: rotate(-7deg);
}

.ocean-sheen.sheen-two {
  top: 42%;
  left: 18%;
  width: 28%;
  opacity: 0.36;
  transform: rotate(-5deg);
}

.ocean-base {
  left: 36.5%;
  top: -1.4rem;
  width: clamp(9rem, 14vw, 16rem);
  height: clamp(5rem, 8vw, 9rem);
  filter: drop-shadow(0 0 26px rgba(125, 249, 255, 0.42));
}

.base-platform {
  right: 0;
  bottom: 1rem;
  left: 0;
  height: 1.2rem;
  border: 1px solid rgba(125, 249, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(8, 47, 73, 0.88), rgba(2, 6, 23, 0.98));
  box-shadow: 0 0 24px rgba(125, 249, 255, 0.22), inset 0 0 18px rgba(125, 249, 255, 0.12);
}

.base-tower {
  bottom: 1.5rem;
  width: 1.2rem;
  height: 4rem;
  border: 1px solid rgba(125, 249, 255, 0.34);
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.42), rgba(8, 47, 73, 0.88) 36%, rgba(2, 6, 23, 0.98));
}

.base-tower.tower-left {
  left: 28%;
  transform: skewX(-8deg);
}

.base-tower.tower-right {
  right: 28%;
  transform: skewX(8deg);
}

.base-dock-light {
  bottom: 2.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #7df9ff;
  opacity: 0.44;
  box-shadow: 0 0 14px rgba(125, 249, 255, 0.8);
}

.base-dock-light.light-left { left: 37%; }
.base-dock-light.light-right { right: 37%; }

.orbital-tether-system {
  position: absolute;
  left: 43%;
  bottom: 14.5vh;
  z-index: 4;
  width: 5.8rem;
  height: 108vh;
  transform: rotate(-10deg);
  transform-origin: 50% 100%;
  pointer-events: none;
}

.tether-bloom,
.tether-core,
.tether-edge,
.tether-speed,
.lift-cabin,
.lift-cabin-glass,
.lift-cabin-rim,
.lift-cabin-thrust {
  position: absolute;
  display: block;
}

.tether-bloom {
  inset: 0 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.04), rgba(125, 249, 255, 0.7) 58%, rgba(125, 249, 255, 0.96));
  filter: blur(18px);
  opacity: 0.58;
  transform-origin: bottom center;
}

.tether-core {
  top: 0;
  bottom: 0;
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.44), #7df9ff 48%, #38bdf8 100%);
  box-shadow:
    0 0 16px rgba(125, 249, 255, 0.92),
    0 0 44px rgba(56, 189, 248, 0.5),
    0 0 90px rgba(14, 165, 233, 0.3);
}

.tether-edge {
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(224, 242, 254, 0.58) 52%, transparent);
  opacity: 0.72;
}

.tether-edge.edge-left { left: calc(50% - 1rem); }
.tether-edge.edge-right { right: calc(50% - 1rem); }

.tether-speed {
  left: 50%;
  width: 1px;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(224, 242, 254, 0.8), transparent);
  opacity: 0;
  transform-origin: top center;
  filter: blur(0.3px);
}

.tether-speed.speed-one { top: 18%; transform: translateX(-1.65rem); }
.tether-speed.speed-two { top: 34%; transform: translateX(1.35rem); }
.tether-speed.speed-three { top: 48%; transform: translateX(0.58rem); }

.lift-cabin {
  left: calc(50% - 1.65rem);
  bottom: 8.5rem;
  width: 3.3rem;
  height: 6.8rem;
  border-radius: 1.6rem 1.6rem 0.82rem 0.82rem;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.78), rgba(125, 249, 255, 0.48) 24%, rgba(15, 23, 42, 0.96) 68%, rgba(2, 6, 23, 0.98)),
    rgba(8, 47, 73, 0.92);
  box-shadow:
    0 0 30px rgba(125, 249, 255, 0.5),
    0 16px 34px rgba(0, 0, 0, 0.42),
    inset 0 0 22px rgba(248, 250, 252, 0.12);
  transform: rotate(10deg);
}

.lift-cabin-glass {
  top: 1.05rem;
  right: 0.7rem;
  left: 0.7rem;
  height: 1.55rem;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, #f8fafc, #7df9ff 44%, #082f49 78%);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.86);
}

.lift-cabin-rim {
  inset: 0;
  border: 1px solid rgba(224, 242, 254, 0.62);
  border-radius: inherit;
}

.lift-cabin-thrust {
  right: 0.85rem;
  bottom: -2.1rem;
  left: 0.85rem;
  height: 2.8rem;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.9), rgba(125, 249, 255, 0.5) 42%, transparent);
  filter: blur(2px);
  opacity: 0.55;
}

.orbital-station {
  position: absolute;
  top: 7vh;
  right: 9vw;
  z-index: 3;
  width: clamp(18rem, 30vw, 32rem);
  height: clamp(10rem, 17vw, 18rem);
  transform: rotate(-8deg) translateZ(-80px);
  filter: drop-shadow(0 0 48px rgba(125, 249, 255, 0.34));
  pointer-events: none;
}

.station-halo,
.station-spine,
.station-habitat,
.station-ring,
.station-dock,
.station-light {
  position: absolute;
  display: block;
}

.station-halo {
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(125, 249, 255, 0.34), transparent 62%);
  filter: blur(18px);
  opacity: 0.42;
}

.station-ring {
  top: 19%;
  left: 12%;
  width: 76%;
  height: 62%;
  border: 2px solid rgba(224, 242, 254, 0.42);
  border-radius: 50%;
  transform: rotateX(58deg) rotateZ(-6deg);
  box-shadow: 0 0 40px rgba(125, 249, 255, 0.26);
}

.station-ring.ring-back {
  opacity: 0.28;
  filter: blur(0.7px);
}

.station-ring.ring-front {
  border-top-color: transparent;
  opacity: 0.78;
}

.station-spine {
  top: 46%;
  left: 9%;
  width: 82%;
  height: 0.82rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.9), #7df9ff 38%, rgba(30, 41, 59, 0.96));
  box-shadow: 0 0 24px rgba(125, 249, 255, 0.36);
}

.station-spine::before,
.station-spine::after {
  content: "";
  position: absolute;
  top: -1.85rem;
  width: 4.7rem;
  height: 4.4rem;
  border: 1px solid rgba(125, 249, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(125, 249, 255, 0.2), transparent 28%, rgba(15, 23, 42, 0.82)),
    repeating-linear-gradient(90deg, rgba(224, 242, 254, 0.18) 0 1px, transparent 1px 0.62rem);
  clip-path: polygon(0 18%, 100% 0, 78% 100%, 4% 82%);
  opacity: 0.72;
}

.station-spine::before {
  left: 15%;
  transform: translateY(-42%) rotate(-10deg);
}

.station-spine::after {
  right: 9%;
  transform: translateY(32%) scaleY(-1) rotate(-10deg);
}

.station-habitat {
  top: 31%;
  width: 21%;
  height: 34%;
  border: 1px solid rgba(224, 242, 254, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 28%, rgba(248, 250, 252, 0.3), transparent 22%),
    linear-gradient(135deg, rgba(224, 242, 254, 0.74), rgba(14, 116, 144, 0.62) 44%, rgba(15, 23, 42, 0.98));
  box-shadow: inset 0 0 18px rgba(125, 249, 255, 0.12);
}

.station-habitat.habitat-left { left: 16%; }
.station-habitat.habitat-right { right: 16%; }

.station-dock {
  top: 41%;
  right: 2%;
  width: 20%;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 249, 255, 0.68), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.3);
}

.station-light {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 16px rgba(248, 250, 252, 0.86);
}

.station-light.light-one { top: 39%; left: 44%; }
.station-light.light-two { top: 51%; right: 28%; }

.orbital-login-glass {
  position: absolute;
  left: clamp(1rem, 4vw, 4.5rem);
  bottom: clamp(1rem, 4.5vh, 3rem);
  z-index: 6;
  display: grid;
  gap: 0.85rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: clamp(0.95rem, 2vw, 1.28rem);
  border: 1px solid rgba(125, 249, 255, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(125, 249, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(3, 12, 27, 0.5), rgba(1, 8, 18, 0.24));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 24px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 44px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(24px) saturate(1.2);
}

.orbital-login-glass::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(125, 249, 255, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.orbital-login-glass .orbital-kicker {
  margin: 0;
  color: #7df9ff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(125, 249, 255, 0.58);
}

.orbital-login-glass h1 {
  max-width: 11ch;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.orbital-login-glass .orbital-copy {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(226, 232, 240, 0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.65;
}

.orbital-login-glass .orbital-copy::before {
  content: none;
}

.orbital-boarding-form {
  margin: 0;
}

.orbital-boarding-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem;
  align-items: center;
  gap: 1rem;
  width: min(24rem, 100%);
  min-height: 4.2rem;
  padding: 0.8rem 0.86rem 0.8rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(125, 249, 255, 0.66);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(125, 249, 255, 0.22), rgba(37, 99, 235, 0.22) 48%, rgba(15, 23, 42, 0.78)),
    rgba(1, 10, 22, 0.86);
  color: #f8fafc;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-align: left;
  text-transform: uppercase;
  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.24),
    inset 0 0 24px rgba(125, 249, 255, 0.09);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.orbital-boarding-button::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.26) 48%, transparent 62%);
  opacity: 0;
  transform: translateX(-58%) rotate(8deg);
}

.orbital-boarding-button:hover,
.orbital-boarding-button:focus-visible {
  border-color: rgba(248, 250, 252, 0.88);
  box-shadow:
    0 0 34px rgba(34, 211, 238, 0.34),
    0 0 72px rgba(37, 99, 235, 0.18),
    inset 0 0 30px rgba(125, 249, 255, 0.13);
  transform: translateY(-1px);
}

.orbital-boarding-button:focus-visible {
  outline: 2px solid #f8fafc;
  outline-offset: 4px;
}

.orbital-boarding-button:disabled {
  cursor: wait;
}

.orbital-boarding-copy,
.orbital-boarding-glyph {
  position: relative;
  z-index: 1;
}

.orbital-boarding-glyph {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(224, 242, 254, 0.46);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.9), rgba(125, 249, 255, 0.6) 18%, transparent 20%),
    conic-gradient(from 0deg, transparent 0 22%, rgba(125, 249, 255, 0.9) 22% 32%, transparent 32% 100%);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.5);
}

.orbital-status {
  min-height: 1.2rem;
  margin: 0;
  color: rgba(125, 249, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.orbital-test-access {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(0.8rem, 3vh, 2rem);
  z-index: 7;
  width: min(26rem, calc(100vw - 2rem));
  color: rgba(226, 232, 240, 0.72);
}

.orbital-test-access summary {
  margin-left: auto;
  width: fit-content;
  cursor: pointer;
  color: rgba(125, 249, 255, 0.76);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.orbital-test-panel {
  margin-top: 0.72rem;
  padding: 1rem;
  border: 1px solid rgba(125, 249, 255, 0.18);
  border-radius: 18px;
  background: rgba(1, 8, 18, 0.82);
  backdrop-filter: blur(18px);
}

.orbital-elevator-shell.is-launching .orbital-cinematic-stage {
  cursor: wait;
}

.orbital-elevator-shell.is-launching .lift-cabin-thrust {
  opacity: 0.98;
  filter: blur(3px);
}

.orbital-elevator-shell.is-launching .tether-core {
  box-shadow:
    0 0 24px rgba(248, 250, 252, 0.96),
    0 0 68px rgba(125, 249, 255, 0.72),
    0 0 130px rgba(14, 165, 233, 0.46);
}

@media (prefers-reduced-motion: reduce) {
  .orbital-boarding-button::before,
  .earth-cloud,
  .lift-cabin-thrust {
    animation: none;
  }
}

@media (max-width: 900px) {
  .orbital-station {
    top: 7vh;
    right: 4vw;
    width: clamp(12rem, 48vw, 21rem);
  }

  .orbital-tether-system {
    left: 58%;
    bottom: 20vh;
    height: 93vh;
    transform: rotate(-7deg);
  }

  .ocean-base {
    left: 47%;
  }

  .orbital-login-glass {
    right: 1rem;
    bottom: 4.6rem;
    left: 1rem;
    width: auto;
  }

  .orbital-login-glass h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 10vw, 4rem);
  }

  .orbital-test-access {
    right: 1rem;
    bottom: 0.75rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 560px) {
  .earth-horizon {
    right: -34vw;
    bottom: -29vh;
    left: -34vw;
    height: 48vh;
  }

  .orbital-station {
    top: 7vh;
    right: -6vw;
    width: 14rem;
  }

  .orbital-tether-system {
    left: 62%;
    bottom: 22vh;
    height: 82vh;
    width: 4.4rem;
  }

  .lift-cabin {
    width: 2.7rem;
    height: 5.5rem;
    left: calc(50% - 1.35rem);
  }

  .ocean-base {
    left: 43%;
    top: -1rem;
    width: 8rem;
  }

  .orbital-login-glass {
    padding: 1rem;
    border-radius: 22px;
  }

  .orbital-login-glass h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .orbital-login-glass .orbital-copy {
    font-size: 0.9rem;
  }

  .orbital-boarding-button {
    width: 100%;
    min-height: 3.8rem;
    font-size: 0.72rem;
  }
}

.orbital-render-shell {
  --lift-base-x: 50%;
  --lift-base-y: 79%;
  --lift-mid-x: 50%;
  --lift-mid-y: 50%;
  --lift-dock-x: 50%;
  --lift-dock-y: 20%;
  --lift-path-angle: 0deg;
  --lift-path-length: 59vh;
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #02040a;
  color: #f8fafc;
}

.orbital-render-shell::before,
.orbital-render-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.orbital-render-shell::before {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.66) 0%, rgba(2, 6, 23, 0.38) 28%, rgba(2, 6, 23, 0.03) 54%, rgba(2, 6, 23, 0.1) 100%),
    radial-gradient(ellipse at 28% 50%, rgba(1, 8, 18, 0.48), transparent 44%);
}

.orbital-render-shell::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.42)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.36;
}

.orbital-render-stage,
.orbital-render-picture,
.orbital-render-picture img,
.orbital-render-grade,
.orbital-docking-flash {
  position: absolute;
  inset: 0;
}

.orbital-render-stage {
  z-index: 1;
  overflow: hidden;
  background: #02040a;
  transform-origin: 60% 44%;
}

.orbital-render-picture {
  z-index: 1;
  display: block;
  opacity: 1;
  transition: opacity 220ms ease;
}

.orbital-render-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.orbital-render-picture img {
  filter: none;
  transform: scale(1.01);
}

.orbital-render-grade {
  z-index: 3;
  background:
    radial-gradient(circle at 72% 32%, rgba(125, 249, 255, 0.16), transparent 24rem),
    radial-gradient(ellipse at 42% 76%, rgba(56, 189, 248, 0.2), transparent 34rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.26));
  mix-blend-mode: screen;
  pointer-events: none;
}

.orbital-flight-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.orbital-elevator-tether,
.orbital-launch-trace {
  position: absolute;
  top: var(--lift-base-y);
  left: var(--lift-base-x);
  width: clamp(2px, 0.18vw, 4px);
  height: var(--lift-path-length);
  border-radius: 999px;
  transform: translate(-50%, -100%) rotate(var(--lift-path-angle));
  transform-origin: 50% 100%;
  pointer-events: none;
}

.orbital-elevator-tether {
  opacity: 0.58;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7) 48%, transparent),
    linear-gradient(180deg, rgba(224, 252, 255, 0.86), rgba(34, 211, 238, 0.58) 44%, rgba(14, 116, 144, 0.18));
  box-shadow:
    0 0 10px rgba(103, 232, 249, 0.76),
    0 0 34px rgba(14, 165, 233, 0.46),
    0 0 72px rgba(37, 99, 235, 0.25);
}

.orbital-elevator-tether::before,
.orbital-elevator-tether::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.42), rgba(59, 130, 246, 0.08));
  filter: blur(10px);
}

.orbital-elevator-tether::before {
  transform: translateX(-4.8rem) scaleX(0.18);
}

.orbital-elevator-tether::after {
  transform: translateX(4.8rem) scaleX(0.18);
}

.orbital-launch-trace {
  z-index: 2;
  width: clamp(0.7rem, 1.2vw, 1.4rem);
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.98), rgba(125, 249, 255, 0.82) 18%, transparent 54%),
    linear-gradient(180deg, rgba(240, 253, 255, 0.95), rgba(34, 211, 238, 0.52) 42%, transparent 92%);
  filter: blur(2px) brightness(1.2);
  mix-blend-mode: screen;
  transform: translate(-50%, -100%) rotate(var(--lift-path-angle)) scaleY(0.03);
}

.orbital-lift-capsule {
  position: absolute;
  top: var(--lift-base-y);
  left: var(--lift-base-x);
  z-index: 3;
  width: clamp(1.05rem, 1.55vw, 1.7rem);
  height: clamp(4rem, 6vw, 6.3rem);
  border: 1px solid rgba(224, 252, 255, 0.72);
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 20%, rgba(255, 255, 255, 0.18) 78%, transparent),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.98), rgba(125, 249, 255, 0.46) 18%, transparent 34%),
    linear-gradient(180deg, rgba(226, 252, 255, 0.34), rgba(8, 47, 73, 0.74) 44%, rgba(2, 6, 23, 0.9));
  box-shadow:
    0 0 18px rgba(125, 249, 255, 0.8),
    0 0 54px rgba(14, 165, 233, 0.52),
    inset 0 0 16px rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: top, left, transform, filter, opacity;
}

.orbital-lift-capsule::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -2.6rem;
  left: 50%;
  width: 0.34rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(125, 249, 255, 0.72), transparent);
  filter: blur(3px);
  transform: translateX(-50%);
}

.orbital-lift-core {
  position: absolute;
  inset: 16% 30% 24%;
  border-radius: 0.45rem;
  background:
    repeating-linear-gradient(180deg, rgba(240, 253, 255, 0.82) 0 0.38rem, rgba(34, 211, 238, 0.12) 0.38rem 0.72rem),
    linear-gradient(180deg, rgba(240, 253, 255, 0.9), rgba(34, 211, 238, 0.16));
  box-shadow: 0 0 16px rgba(224, 252, 255, 0.72);
}

.orbital-dock-ring {
  position: absolute;
  top: var(--lift-dock-y);
  left: var(--lift-dock-x);
  z-index: 4;
  width: clamp(4rem, 8vw, 7.4rem);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 252, 255, 0.86);
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 22px rgba(224, 252, 255, 0.8),
    0 0 72px rgba(14, 165, 233, 0.56),
    inset 0 0 22px rgba(125, 249, 255, 0.34);
  transform: translate(-50%, -50%) scale(0.72);
}

.orbital-docking-flash {
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.96), rgba(125, 249, 255, 0.62) 8%, rgba(37, 99, 235, 0.18) 23%, transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(125, 249, 255, 0.22), transparent 38%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.orbital-render-shell.is-launching {
  cursor: wait;
}

.orbital-render-shell .orbital-boarding-button {
  width: min(20rem, 100%);
}

.orbital-render-shell .orbital-test-access {
  z-index: 9;
}

.orbital-render-shell .orbital-login-cta {
  position: absolute;
  left: clamp(1rem, 5vw, 5rem);
  bottom: clamp(1.2rem, 5vh, 3.4rem);
  z-index: 8;
  display: grid;
  gap: 0.55rem;
  width: min(21rem, calc(100vw - 2rem));
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.orbital-render-shell .orbital-login-cta .orbital-boarding-button {
  width: min(21rem, 100%);
  min-height: 3.35rem;
  background:
    radial-gradient(circle at 92% 50%, rgba(248, 250, 252, 0.62), transparent 1.4rem),
    linear-gradient(90deg, rgba(8, 47, 73, 0.86), rgba(15, 23, 42, 0.86) 48%, rgba(2, 6, 23, 0.92));
  backdrop-filter: blur(10px) saturate(1.18);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(34, 211, 238, 0.28),
    inset 0 0 24px rgba(125, 249, 255, 0.12);
}

.orbital-render-shell .orbital-login-cta .orbital-status {
  padding-left: 1.05rem;
  color: rgba(170, 244, 255, 0.88);
  font-size: 0.68rem;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.42);
}

@media (prefers-reduced-motion: reduce) {
  .orbital-render-shell:not(.is-launching) .orbital-render-picture img {
    animation: none;
  }
}

@media (max-width: 900px) {
  .orbital-render-shell {
    --lift-base-x: 50%;
    --lift-base-y: 76%;
    --lift-mid-x: 50%;
    --lift-mid-y: 48%;
    --lift-dock-x: 50%;
    --lift-dock-y: 20%;
    --lift-path-angle: 0deg;
    --lift-path-length: 56vh;
  }

  .orbital-render-picture img {
    object-position: 50% 50%;
  }

  .orbital-render-shell .orbital-login-cta {
    right: 1rem;
    bottom: 3.6rem;
    left: 1rem;
    width: min(21rem, calc(100vw - 2rem));
  }
}

@media (max-width: 560px) {
  .orbital-render-shell {
    --lift-base-y: 72%;
    --lift-mid-y: 44%;
    --lift-dock-y: 17%;
    --lift-path-length: 55vh;
  }

  .orbital-render-picture img {
    object-position: 50% 50%;
  }

}

.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;
    grid-template-areas:
      "avatar"
      "copy"
      "action";
    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);
}

.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-power-button {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 17px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.16), transparent 62%),
    rgba(3, 18, 34, 0.62);
  color: #e0fbff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.055);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.side-hud-power-button:hover,
.side-hud-power-button:focus-visible {
  border-color: rgba(125, 249, 255, 0.82);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.28), rgba(14, 165, 233, 0.08) 62%, transparent),
    rgba(4, 31, 56, 0.82);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2), inset 0 0 18px rgba(34, 211, 238, 0.1);
  color: #f8fdff;
  outline: none;
  transform: translateX(-2px);
}

.side-hud-power-icon {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid rgba(103, 232, 249, 0.78);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28), inset 0 0 12px rgba(34, 211, 238, 0.14);
}

.side-hud-power-icon::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  left: 50%;
  width: 0.18rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #dffbff;
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.86);
  transform: translateX(-50%);
}

.side-hud-power-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.side-hud-power-copy > span {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.side-hud-power-ellipsis {
  opacity: 0;
  transform: translateX(0.2rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.side-hud.is-busy .side-hud-power-button {
  border-color: rgba(103, 232, 249, 0.72);
  animation: side-hud-power-wait 1.45s ease-in-out infinite;
}

.side-hud.is-busy .side-hud-power-ellipsis {
  opacity: 1;
  transform: translateX(0);
}

.side-hud.is-complete .side-hud-power-button {
  border-color: rgba(134, 239, 172, 0.8);
  animation: side-hud-power-ready 900ms ease-out both;
}

.side-hud.is-complete .side-hud-power-icon {
  border-color: rgba(134, 239, 172, 0.92);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.36), inset 0 0 12px rgba(74, 222, 128, 0.16);
}

body.with-side-hud [data-hud-page],
body.with-side-hud .flash-shell {
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

body.hud-is-off [data-hud-page],
body.hud-is-off .flash-shell {
  opacity: 0;
  filter: blur(3px) brightness(0.72);
  pointer-events: none;
  transform: scale(0.985);
}

body.hud-is-off .side-hud {
  position: fixed;
  top: clamp(0.45rem, 1.5vw, 0.95rem);
  left: clamp(0.45rem, 1.5vw, 0.95rem);
  right: auto;
  z-index: 70;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transform: none;
  backdrop-filter: none;
}

body.hud-is-off .side-hud::before,
body.hud-is-off .side-hud::after {
  content: none;
}

body.hud-is-off .side-hud > :not(.side-hud-power-button) {
  display: none;
}

body.hud-is-off .side-hud-power-button {
  width: min(11rem, calc(100vw - 0.9rem));
  border-color: rgba(103, 232, 249, 0.44);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), transparent 62%),
    rgba(1, 10, 22, 0.62);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
}

@keyframes side-hud-power-wait {
  0%, 100% {
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.12), inset 0 0 18px rgba(34, 211, 238, 0.055);
  }

  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), 0 0 52px rgba(167, 139, 250, 0.14), inset 0 0 22px rgba(34, 211, 238, 0.12);
  }
}

@keyframes side-hud-power-ready {
  0% {
    box-shadow: 0 0 0 rgba(74, 222, 128, 0), inset 0 0 18px rgba(34, 211, 238, 0.055);
  }

  42% {
    box-shadow: 0 0 34px rgba(74, 222, 128, 0.48), 0 0 76px rgba(34, 211, 238, 0.24), inset 0 0 26px rgba(74, 222, 128, 0.16);
  }

  100% {
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.14), inset 0 0 18px rgba(34, 211, 238, 0.055);
  }
}

.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;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  gap: 0.28rem 0.48rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.12), transparent 68%),
    rgba(1, 10, 22, 0.78);
  overflow: visible;
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: none;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12), inset 0 0 14px rgba(34, 211, 238, 0.05);
}

.breadcrumb-nav a,
.breadcrumb-nav span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.breadcrumb-nav a {
  flex: 0 1 auto;
}

.breadcrumb-nav span[aria-hidden="true"] {
  flex: 0 0 auto;
  overflow: visible;
}

.breadcrumb-nav a {
  color: rgba(226, 232, 240, 0.92);
  border-radius: 999px;
  padding: 0.04rem 0.12rem;
  text-decoration: none;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus-visible {
  color: var(--hud-cyan-strong);
  outline: none;
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.32), 0 0 14px rgba(34, 211, 238, 0.14);
}

.breadcrumb-nav span[aria-current="page"] {
  flex: 1 1 auto;
  color: var(--hud-cyan-strong);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.34);
}

.cockpit-screen-header:has(.breadcrumb-nav) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: start;
}

.cockpit-screen-header:has(.breadcrumb-nav) .cockpit-header-start {
  justify-self: stretch;
  width: 100%;
}

.cockpit-screen-header:has(.breadcrumb-nav) .cockpit-title-lockup {
  justify-self: center;
  width: min(100%, 68rem);
}

.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-screen-header {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .cockpit-header-start {
    justify-self: stretch;
  }

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

  .cockpit-title-lockup {
    justify-self: stretch;
    min-width: 0;
  }

  .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);
}

.profile-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.36fr);
  align-items: start;
}

.profile-route-list {
  display: grid;
  gap: 0.65rem;
}

.profile-route-link {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 58%),
    rgba(1, 8, 20, 0.46);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.profile-route-link:hover,
.profile-route-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(8, 24, 48, 0.62);
  outline: none;
  transform: translateY(-1px);
}

.profile-route-kicker,
.profile-route-description {
  color: rgba(184, 199, 230, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.profile-route-title {
  color: #eff6ff;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile-summary-panel {
  align-content: start;
}

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

.profile-chat-main,
.profile-chat-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.profile-instruction-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(226, 239, 255, 0.88);
  line-height: 1.55;
}

.profile-instruction-list code {
  color: var(--hud-cyan-strong);
  font-weight: 850;
}

.profile-chat-account-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-chat-account-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 12px;
  background: rgba(1, 8, 20, 0.42);
}

.profile-chat-account-list strong {
  color: var(--hud-cyan-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-chat-account-list span {
  overflow-wrap: anywhere;
}

.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"
    "timeline status";
  align-items: start;
}

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

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

.cron-field-help {
  display: grid;
  gap: 0.65rem;
}

.cron-field-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.cron-field-grid div {
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background: rgba(1, 10, 22, 0.34);
}

.cron-field-grid dt {
  color: #eff6ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cron-field-grid dd {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.agent-kind-panel {
  min-width: 0;
}

.agent-kind-panel legend {
  margin-bottom: 0.55rem;
  color: var(--color-muted);
  font-weight: 700;
}

.agent-kind-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
}

.agent-kind-option {
  min-width: 0;
  cursor: pointer;
}

.agent-kind-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.agent-kind-option input:focus-visible + span {
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.agent-kind-option input:checked + span {
  border-color: rgba(103, 232, 249, 0.55);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.46), rgba(34, 211, 238, 0.16));
  color: #eff6ff;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.08);
}

@media (max-width: 700px) {
  .cron-field-grid,
  .agent-kind-switch {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
}

.dashboard-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.dashboard-mode-switch a {
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  background: rgba(1, 10, 22, 0.38);
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-mode-switch a:hover,
.dashboard-mode-switch a:focus-visible,
.dashboard-mode-switch a.is-active {
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(14, 116, 144, 0.28);
  color: #eff6ff;
}

.dashboard-tui-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.45fr);
  align-items: start;
}

.dashboard-tui-terminal,
.dashboard-tui-missions {
  align-content: start;
}

.dashboard-tui-screen {
  display: grid;
  gap: 0.45rem;
  min-height: 16rem;
  padding: 1rem;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(1, 7, 18, 0.92), rgba(2, 12, 27, 0.82)),
    repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.05) 0 1px, transparent 1px 7px);
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.08);
  color: #dffbff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
}

.dashboard-tui-screen p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dashboard-tui-prompt {
  color: #67e8f9;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.34);
}

.dashboard-tui-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.dashboard-tui-form-row {
  display: grid;
  gap: 0.35rem;
}

.dashboard-tui-form-row label {
  color: rgba(184, 199, 230, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-tui-form-row select,
.dashboard-tui-form-row input,
.dashboard-tui-form-row textarea {
  width: 100%;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  background: rgba(1, 10, 22, 0.56);
  color: #eff6ff;
  font: inherit;
}

.dashboard-tui-prompt-row textarea {
  min-height: 10rem;
  resize: vertical;
}

.dashboard-tui-mission-list {
  display: grid;
  gap: 0.55rem;
}

.dashboard-tui-mission {
  display: grid;
  gap: 0.25rem;
  padding: 0.72rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background: rgba(1, 10, 22, 0.34);
  color: inherit;
  text-decoration: none;
}

.dashboard-tui-mission:hover,
.dashboard-tui-mission:focus-visible,
.dashboard-tui-mission.is-active {
  border-color: rgba(103, 232, 249, 0.46);
  background: rgba(8, 47, 73, 0.34);
}

.dashboard-tui-mission strong,
.dashboard-tui-mission span,
.dashboard-tui-mission small {
  display: block;
}

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

.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-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.clean-stat-card-link:hover,
.clean-stat-card-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.48);
  background: rgba(8, 24, 48, 0.58);
  transform: translateY(-1px);
}

.mission-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.mission-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mission-filter-button small {
  color: rgba(226, 232, 240, 0.8);
}

.objective-mission-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.objective-mission-row .hud-node-dot {
  margin-top: 0.48rem;
}

.objective-mission-row .fleet-row-main,
.objective-mission-row .fleet-row-metrics {
  min-width: 0;
}

.objective-mission-row .fleet-row-main strong,
.objective-mission-row .fleet-row-main small,
.objective-mission-row .fleet-row-metrics span {
  overflow-wrap: anywhere;
}

.objective-mission-row .fleet-row-main strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.2;
}

.objective-mission-row .fleet-row-metrics {
  grid-column: 2;
  justify-content: flex-start;
  align-items: flex-start;
}

.objective-mission-row .fleet-row-metrics span {
  max-width: 72ch;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .objective-mission-row .fleet-row-metrics {
    grid-column: 2;
  }
}

.mission-filter-button.is-active {
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(14, 116, 144, 0.28);
  color: #eff6ff;
}

.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-link {
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.agent-level-row-link:hover,
.agent-level-row-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.38);
  background: rgba(8, 47, 73, 0.38);
  transform: translateY(-1px);
}

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

.agent-roster-card.is-missing-required-credentials,
.agent-display-card.is-missing-required-credentials,
.mission-agent-option-frame.is-missing-required-credentials,
.agent-level-row.is-missing-required-credentials {
  border-color: rgba(248, 113, 113, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.28), transparent 62%),
    rgba(1, 10, 22, 0.48);
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.12), inset 0 0 18px rgba(248, 113, 113, 0.07);
}

.objective-agent-icon.is-missing-required-credentials {
  position: relative;
  border-color: rgba(248, 113, 113, 0.72);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.25);
}

.objective-agent-icon.is-missing-required-credentials::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(254, 226, 226, 0.9);
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.8);
}

.is-missing-required-credentials .credential-kind-pill {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.22);
}

.agent-credential-warning {
  margin: 0;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mission-agent-option-frame .agent-credential-warning,
.agent-level-row .agent-credential-warning {
  overflow: visible;
  color: #fecaca;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-overflow: clip;
  text-transform: none;
  white-space: normal;
}

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

.objective-chat-notification-control {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.78rem;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 68%),
    rgba(1, 10, 22, 0.34);
}

.objective-chat-notification-head strong {
  color: #eff6ff;
}

.objective-chat-notification-form {
  display: grid;
  gap: 0.55rem;
}

.objective-chat-notification-form .hud-micro-button {
  justify-self: end;
}

.status-pill.state-active {
  border-color: rgba(134, 239, 172, 0.5);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.status-pill.state-muted {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.44);
  color: rgba(203, 213, 225, 0.82);
}

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

.destroy-confirmation-grid {
  grid-template-columns: minmax(0, 42rem);
  justify-content: center;
}

.mission-destroy-screen .destroy-confirmation-grid {
  justify-content: start;
}

.destroy-confirmation-grid .destroy-confirmation-panel {
  grid-area: auto;
}

.destroy-confirmation-panel {
  gap: 1rem;
}

.destroy-summary-list {
  margin: 0.1rem 0 0;
}

.destroy-id-callout {
  display: grid;
  gap: 0.25rem;
  margin: 0.2rem 0 0;
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 800;
}

.destroy-id-callout strong {
  display: inline-block;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.44);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.2);
  color: #fecaca;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.28);
}

.destroy-confirmation-form {
  display: grid;
  gap: 0.9rem;
}

.destroy-confirmation-field {
  gap: 0.45rem;
  overflow: visible;
  padding: 0 0.35rem;
}

.destroy-confirmation-field label,
.destroy-confirmation-check label {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-panel input.destroy-confirmation-input[type="text"] {
  min-height: 3.45rem;
  border-color: rgba(248, 113, 113, 0.42);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #fee2e2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.destroy-confirmation-check {
  padding: 0.7rem;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.12);
}

.destroy-confirmation-check-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.destroy-confirmation-check input[type="checkbox"] {
  justify-self: start;
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #f87171;
  cursor: pointer;
}

.destroy-confirmation-actions {
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.mission-pending-state {
  min-height: 10rem;
  margin-bottom: 0.85rem;
}

.hud-micro-button.danger-action {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(127, 29, 29, 0.28);
  color: #fee2e2;
}

.hud-pending-signal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.55rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(1, 10, 22, 0.44);
  color: #cffafe;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.08), inset 0 0 14px rgba(34, 211, 238, 0.04);
  animation: hud-pending-pulse 1.8s ease-in-out infinite;
}

.compact-pending-signal {
  margin-top: 0.1rem;
}

.hud-ellipsis {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0.22rem;
}

.hud-ellipsis span {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.88);
  animation: hud-ellipsis-step 1.05s ease-in-out infinite;
}

.hud-ellipsis span:nth-child(2) {
  animation-delay: 0.14s;
}

.hud-ellipsis span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes hud-pending-pulse {
  0%, 100% {
    border-color: rgba(34, 211, 238, 0.2);
    opacity: 0.86;
  }

  50% {
    border-color: rgba(103, 232, 249, 0.62);
    opacity: 1;
  }
}

@keyframes hud-ellipsis-step {
  0%, 80%, 100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-0.18rem);
  }
}

@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,
  .profile-dashboard-grid,
  .profile-chat-grid,
  .clean-mission-grid,
  .dashboard-tui-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

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

  .clean-access-panel {
    order: 1;
  }

  .clean-status-panel {
    order: 2;
  }

  .clean-timeline-panel {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-pending-signal,
  .hud-ellipsis span,
  .side-hud.is-busy .side-hud-power-button,
  .side-hud.is-complete .side-hud-power-button {
    animation: none;
  }

  body.with-side-hud [data-hud-page],
  body.with-side-hud .flash-shell,
  .side-hud-power-button,
  .side-hud-power-ellipsis {
    transition: none;
  }
}

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

body.with-cockpit-flight {
  background:
    radial-gradient(circle at 50% 112%, rgba(34, 211, 238, 0.08), transparent 24rem),
    linear-gradient(120deg, #00040c, #020a14 46%, #000208);
}

.cockpit-flight-stage,
.cockpit-flight-stage::before,
.cockpit-flight-stage::after,
.cockpit-flight-glass {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cockpit-flight-stage {
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 34%, rgba(92, 205, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 28% 42%, rgba(34, 211, 238, 0.12), transparent 17rem),
    linear-gradient(115deg, #010714 0%, #03152a 46%, #00030a 100%);
}

.cockpit-flight-stage::before,
.cockpit-flight-stage::after,
.cockpit-flight-glass {
  content: "";
}

.cockpit-flight-stage::before {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(0, 6, 16, 0.12), transparent 12vw 88vw, rgba(0, 6, 16, 0.12)),
    linear-gradient(180deg, rgba(0, 5, 14, 0.16), transparent 7rem calc(100% - 8rem), rgba(0, 5, 14, 0.28));
  opacity: 0.42;
}

.cockpit-flight-stage::after {
  z-index: 5;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 58%, rgba(0, 4, 10, 0.18) 82%, rgba(0, 2, 8, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 18% 72%, rgba(0, 0, 0, 0.2)),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08), transparent 18% 82%, rgba(103, 232, 249, 0.08));
}

.cockpit-flight-plate {
  position: absolute;
  inset: -3vh -3vw;
  z-index: 1;
  background-image: var(--plate-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: saturate(1.22) contrast(1.05) brightness(1.02);
  transform: scale(1.035);
  transition: opacity 1600ms ease-in-out;
}

.cockpit-flight-plate.is-active {
  opacity: 1;
}

.cockpit-flight-glass {
  z-index: 6;
  background:
    radial-gradient(circle at 50% 18%, rgba(103, 232, 249, 0.15), transparent 24rem),
    linear-gradient(180deg, transparent 0 42%, rgba(103, 232, 249, 0.03) 42.15% 42.35%, transparent 42.5% 100%);
  background-size: 100% 100%, 100% 100%;
  mix-blend-mode: screen;
  opacity: 0.26;
}

body.with-cockpit-flight::before {
  opacity: 0;
}

body.with-cockpit-flight::after {
  opacity: 0;
}

body.with-cockpit-flight .topbar,
body.with-cockpit-flight .side-hud,
body.with-cockpit-flight .cockpit-screen,
body.with-cockpit-flight .cockpit-panel,
body.with-cockpit-flight .objective-card,
body.with-cockpit-flight .objective-hud-card,
body.with-cockpit-flight .mission-hero,
body.with-cockpit-flight .mission-empty-state,
body.with-cockpit-flight .form-panel,
body.with-cockpit-flight .clean-stat-card,
body.with-cockpit-flight .mission-access-card,
body.with-cockpit-flight .data-table,
body.with-cockpit-flight .command-box {
  background-color: rgba(1, 9, 20, 0.42);
  border-color: rgba(103, 232, 249, 0.3);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.075),
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 30px rgba(34, 211, 238, 0.045);
  backdrop-filter: blur(12px) saturate(1.2);
}

body.with-cockpit-flight .topbar {
  background:
    linear-gradient(90deg, rgba(103, 232, 249, 0.12), transparent 24%, transparent 76%, rgba(103, 232, 249, 0.1)),
    rgba(1, 10, 22, 0.38);
}

body.with-cockpit-flight .side-hud {
  background:
    linear-gradient(180deg, rgba(103, 232, 249, 0.12), transparent 27%, rgba(167, 139, 250, 0.08)),
    rgba(1, 10, 22, 0.4);
}

body.with-cockpit-flight .cockpit-screen {
  min-height: 0;
  background:
    linear-gradient(118deg, rgba(103, 232, 249, 0.085), transparent 22%, transparent 78%, rgba(103, 232, 249, 0.07)),
    radial-gradient(circle at 50% -12%, rgba(103, 232, 249, 0.11), transparent 24rem),
    linear-gradient(180deg, rgba(2, 18, 36, 0.34), rgba(1, 7, 17, 0.24));
}

body.with-cockpit-flight .cockpit-screen::before {
  opacity: 0.44;
}

body.with-cockpit-flight .cockpit-screen::after {
  opacity: 0.28;
}

body.with-cockpit-flight .cockpit-panel,
body.with-cockpit-flight .objective-card,
body.with-cockpit-flight .objective-hud-card,
body.with-cockpit-flight .mission-hero,
body.with-cockpit-flight .mission-empty-state,
body.with-cockpit-flight .form-panel,
body.with-cockpit-flight .mission-access-card,
body.with-cockpit-flight .command-box {
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.1), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(34, 211, 238, 0.08), transparent 12rem),
    rgba(1, 9, 20, 0.4);
}

body.with-cockpit-flight .clean-stat-card,
body.with-cockpit-flight .fleet-row,
body.with-cockpit-flight .hud-status-row,
body.with-cockpit-flight .queue-readout-list div,
body.with-cockpit-flight .data-table th,
body.with-cockpit-flight .data-table td,
body.with-cockpit-flight .form-panel input[type="text"],
body.with-cockpit-flight .form-panel input[type="email"],
body.with-cockpit-flight .form-panel input[type="number"],
body.with-cockpit-flight .form-panel input[type="password"],
body.with-cockpit-flight .form-panel textarea,
body.with-cockpit-flight .form-panel select {
  background-color: rgba(1, 8, 18, 0.5);
  border-color: rgba(103, 232, 249, 0.2);
}

body.with-cockpit-flight .side-hud-mark,
body.with-cockpit-flight .side-hud-link {
  background-color: rgba(3, 18, 34, 0.44);
  border-color: rgba(103, 232, 249, 0.24);
}

body.with-cockpit-flight .side-hud-link:hover,
body.with-cockpit-flight .side-hud-link.is-active,
body.with-cockpit-flight .fleet-row:hover,
body.with-cockpit-flight .hud-status-row:hover {
  background-color: rgba(3, 28, 52, 0.52);
  border-color: rgba(103, 232, 249, 0.42);
}

body.with-cockpit-flight .cockpit-title-lockup,
body.with-cockpit-flight .panel-strip-title,
body.with-cockpit-flight .clean-stat-card strong,
body.with-cockpit-flight .fleet-row-main strong,
body.with-cockpit-flight h1,
body.with-cockpit-flight h2,
body.with-cockpit-flight h3 {
  text-shadow: 0 0 20px rgba(103, 232, 249, 0.42), 0 2px 14px rgba(0, 0, 0, 0.72);
}

body.with-cockpit-flight p,
body.with-cockpit-flight li,
body.with-cockpit-flight td,
body.with-cockpit-flight dd,
body.with-cockpit-flight label,
body.with-cockpit-flight input,
body.with-cockpit-flight textarea,
body.with-cockpit-flight select {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.78);
}

body.with-cockpit-flight.hud-page-exit-left .cockpit-shell,
body.with-cockpit-flight.hud-page-enter .cockpit-shell,
body.with-cockpit-flight.hud-page-exit-left .page-shell,
body.with-cockpit-flight.hud-page-enter .page-shell {
  animation: cockpit-panel-presence 240ms ease-out both;
}

@media (min-width: 1081px) {
  body.with-cockpit-flight.with-side-hud .cockpit-shell {
    width: min(1180px, calc(100vw - clamp(13rem, 15vw, 17rem) - clamp(1rem, 3vw, 3rem)));
    margin-top: clamp(2.75rem, 7vh, 4.75rem);
    margin-left: clamp(13rem, 15vw, 17rem);
    margin-right: clamp(1rem, 3vw, 3rem);
    margin-bottom: clamp(6rem, 12vh, 9rem);
  }

  body.with-cockpit-flight .cockpit-screen {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1080px) {
  body.with-cockpit-flight.with-side-hud .cockpit-shell,
  body.with-cockpit-flight .side-hud {
    width: min(calc(100% - 0.9rem), 1280px);
  }
}

@media (max-width: 700px) {
  body.with-cockpit-flight.hud-page-exit-left .cockpit-shell,
  body.with-cockpit-flight.hud-page-enter .cockpit-shell,
  body.with-cockpit-flight.hud-page-exit-left .page-shell,
  body.with-cockpit-flight.hud-page-enter .page-shell {
    animation: cockpit-panel-presence 240ms ease-out both;
  }
}

@keyframes cockpit-panel-presence {
  0% {
    filter: brightness(0.88) blur(1px);
    opacity: 0;
  }

  100% {
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cockpit-flight-plate {
    transition: none;
    transform: scale(1.035);
  }
}

/* Mobile performance pass: keep the HUD readable without continuous full-screen compositing. */
@media (max-width: 700px), (pointer: coarse) and (max-width: 900px) {
  body.with-cockpit-flight {
    background:
      radial-gradient(circle at 50% 112%, rgba(34, 211, 238, 0.08), transparent 20rem),
      linear-gradient(120deg, #00040c, #020a14 46%, #000208);
  }

  .cockpit-flight-stage,
  .cockpit-flight-stage::before,
  .cockpit-flight-stage::after,
  .cockpit-flight-glass,
  .cockpit-flight-plate {
    display: none;
    background-image: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .topbar,
  .side-hud,
  .flash,
  .panel,
  .hero-panel,
  .form-panel,
  .cockpit-screen,
  .cockpit-panel,
  .mission-hero,
  .objective-card,
  .objective-hud-card,
  .clean-stat-card,
  .mission-access-card,
  .command-box {
    backdrop-filter: none !important;
  }

  .cockpit-screen,
  .cockpit-panel,
  .side-hud,
  .mission-hero,
  .objective-card,
  .objective-hud-card,
  .clean-stat-card,
  .mission-access-card {
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.035), 0 14px 42px rgba(0, 0, 0, 0.34) !important;
  }

  .cockpit-screen {
    transform: none !important;
  }

  html.hud-view-transition::view-transition-old(cockpit-page),
  html.hud-view-transition::view-transition-new(cockpit-page),
  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,
  body.with-cockpit-flight.hud-page-exit-left .cockpit-shell,
  body.with-cockpit-flight.hud-page-enter .cockpit-shell,
  body.with-cockpit-flight.hud-page-exit-left .page-shell,
  body.with-cockpit-flight.hud-page-enter .page-shell,
  .orbital-render-shell:not(.is-launching) .orbital-render-picture img,
  .flash,
  .flash::after,
  .flash-orb::before,
  .flash-countdown-meter,
  .flash-progress::after,
  .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,
  .hud-pending-signal,
  .hud-ellipsis span,
  .objective-agent-display.is-repainting .agent-display-laser {
    animation: none !important;
  }

  .orbital-render-picture img {
    transform: none !important;
  }

  .agent-display-laser {
    display: none;
  }

  .hud-node-dot,
  .system-chip::before,
  .flash-label::before,
  .flash-orb,
  .agent-level-badge {
    box-shadow: none !important;
  }
}

@media (max-width: 700px) {
  .fleet-row,
  .agent-roster-card,
  .agent-avatar-option,
  .audit-event {
    content-visibility: auto;
    contain-intrinsic-size: 8rem;
  }
}

/* Admin directory readability pass: keep the operator HUD skin, but give dense data room to breathe. */
.admin-directory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "status status"
    "objectives missions";
  gap: clamp(0.8rem, 1.2vw, 1.15rem);
}

.admin-directory-shell .cockpit-screen {
  transform: none;
}

.admin-directory-filter-panel,
.admin-directory-data-panel {
  align-content: start;
}

.admin-directory-filter-panel {
  gap: clamp(0.8rem, 1.2vw, 1rem);
}

body.with-cockpit-flight .admin-directory-filter-panel,
body.with-cockpit-flight .admin-directory-data-panel {
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.09), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(34, 211, 238, 0.08), transparent 14rem),
    rgba(1, 8, 18, 0.68);
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.08),
    0 22px 72px rgba(0, 0, 0, 0.46),
    inset 0 0 32px rgba(34, 211, 238, 0.055);
}

.admin-directory-filter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.8rem;
}

.admin-directory-result-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.admin-directory-result-strip span,
.admin-directory-metrics span {
  border: 1px solid rgba(103, 232, 249, 0.14);
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.07), transparent 62%),
    rgba(1, 8, 18, 0.46);
}

.admin-directory-result-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  min-height: 1.75rem;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  color: rgba(184, 199, 230, 0.9);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-directory-result-strip strong {
  color: var(--hud-cyan-strong);
  font-size: 0.82rem;
}

.admin-directory-filter-form {
  display: grid;
  gap: 0.8rem;
}

.admin-directory-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0.65rem;
}

.admin-directory-filter-grid .field-stack {
  display: grid;
  min-width: 0;
  gap: 0.32rem;
}

.admin-directory-filter-grid .wide-filter-field {
  grid-column: span 2;
}

.admin-directory-filter-form label {
  color: rgba(184, 199, 230, 0.86);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-directory-filter-form input[type="text"],
.admin-directory-filter-form select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(1, 8, 18, 0.62);
  color: rgba(239, 246, 255, 0.94);
  outline: none;
}

.admin-directory-filter-form input[type="text"]::placeholder {
  color: rgba(126, 145, 184, 0.7);
}

.admin-directory-filter-form input[type="text"]:focus,
.admin-directory-filter-form select:focus {
  border-color: rgba(165, 243, 252, 0.64);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 20px rgba(34, 211, 238, 0.12);
}

.admin-directory-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-directory-clear-filters {
  color: rgba(184, 199, 230, 0.9);
}

.admin-directory-data-panel {
  gap: 0.85rem;
}

.admin-directory-data-panel .fleet-row-list {
  gap: 0.62rem;
}

.admin-directory-card {
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.78rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(103, 232, 249, 0.08), transparent 12rem),
    rgba(1, 8, 18, 0.5);
}

.admin-directory-card .hud-node-dot {
  margin-top: 0.46rem;
}

.admin-directory-card-heading {
  gap: 0.28rem;
}

.admin-directory-card-heading strong {
  color: #eff6ff;
  font-size: clamp(0.98rem, 1.1vw, 1.18rem);
  line-height: 1.18;
}

.admin-directory-static-title {
  color: rgba(184, 199, 230, 0.72);
}

.admin-directory-card-heading small {
  color: rgba(184, 199, 230, 0.84);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-directory-metrics {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  justify-content: stretch;
}

.admin-directory-metrics span {
  display: block;
  min-width: 0;
  padding: 0.42rem 0.52rem;
  border-radius: 10px;
  color: rgba(184, 199, 230, 0.9);
  font-size: 0.72rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.admin-objectives-panel .admin-directory-metrics span:nth-child(2),
.admin-objectives-panel .admin-directory-metrics span:nth-child(5),
.admin-objectives-panel .admin-directory-metrics span:nth-child(6),
.admin-missions-panel .admin-directory-metrics span:nth-child(3),
.admin-missions-panel .admin-directory-metrics span:nth-child(6),
.admin-missions-panel .admin-directory-metrics span:nth-child(11) {
  grid-column: 1 / -1;
}

.admin-directory-card-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.admin-directory-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(103, 232, 249, 0.2);
  border-radius: 14px;
  background: rgba(1, 8, 18, 0.32);
}

body.with-cockpit-flight .admin-directory-filter-form input[type="text"],
body.with-cockpit-flight .admin-directory-filter-form select,
body.with-cockpit-flight .admin-directory-metrics span,
body.with-cockpit-flight .admin-directory-result-strip span {
  background-color: rgba(1, 8, 18, 0.74);
  border-color: rgba(103, 232, 249, 0.22);
}

body.with-cockpit-flight .admin-directory-card {
  background:
    radial-gradient(circle at 100% 0, rgba(103, 232, 249, 0.08), transparent 12rem),
    rgba(1, 8, 18, 0.72);
}

@media (min-width: 1081px) {
  body.with-cockpit-flight.with-side-hud .admin-directory-shell {
    width: min(1520px, calc(100vw - clamp(12rem, 14vw, 16rem) - clamp(0.8rem, 2vw, 2rem)));
    margin-left: clamp(12rem, 14vw, 16rem);
    margin-right: clamp(0.8rem, 2vw, 2rem);
  }
}

@media (max-width: 1280px) {
  .admin-directory-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "status"
      "objectives"
      "missions";
  }
}

@media (max-width: 700px) {
  .admin-directory-filter-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-directory-result-strip,
  .admin-directory-filter-actions {
    justify-content: flex-start;
  }

  .admin-directory-filter-grid .wide-filter-field {
    grid-column: auto;
  }

  .admin-directory-card,
  .admin-directory-metrics,
  .admin-directory-card-actions {
    grid-column: auto;
  }

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

  .admin-objectives-panel .admin-directory-metrics span,
  .admin-missions-panel .admin-directory-metrics span {
    grid-column: auto;
  }
}
