:root {
  --bg-deep: #051224;
  --bg-mid: #0a223d;
  --panel: rgba(11, 40, 72, 0.55);
  --panel-strong: rgba(8, 33, 62, 0.8);
  --line: rgba(111, 225, 255, 0.28);
  --text-main: #d8f6ff;
  --text-muted: #95d7ea;
  --accent: #39d6ff;
  --accent-strong: #0ea5e9;
  --ok: #67e8f9;
  --warn: #facc15;
  --critical: #fb7185;
}

.sidebar-nav {
  scrollbar-color: rgb(34 211 238 / 0.35) transparent;
  scrollbar-width: thin;
}

.sidebar-nav-group + .sidebar-nav-group {
  margin-top: 1rem;
}

.sidebar-nav-group-label {
  margin: 0 0 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgb(165 243 252 / 0.45);
}

.sidebar-nav-group-links {
  display: grid;
  gap: 0.2rem;
}

.sidebar-nav-link {
  display: grid;
  min-height: 2.25rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.48rem 0.65rem;
  color: rgb(207 250 254 / 0.76);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.sidebar-nav-link:hover,
.sidebar-nav-link:focus-visible {
  border-color: rgb(103 232 249 / 0.16);
  background: rgb(103 232 249 / 0.08);
  color: rgb(236 254 255);
  outline: none;
}

.sidebar-nav-link.is-active {
  border-color: rgb(103 232 249 / 0.18);
  background: rgb(103 232 249 / 0.14);
  color: rgb(236 254 255);
}

.sidebar-nav-link.is-locked {
  border-color: rgb(148 163 184 / 0.09);
  color: rgb(207 250 254 / 0.55);
}

.sidebar-nav-link-label {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.05rem;
}

.sidebar-nav-link-status {
  max-width: 7.25rem;
  overflow: hidden;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 0.9rem;
  text-align: right;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(165 243 252 / 0.58);
}

.sidebar-nav-link.is-locked .sidebar-nav-link-status {
  color: rgb(253 230 138 / 0.68);
}

.hypercore-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr) 3.25rem minmax(0, 1fr);
  align-items: stretch;
}

.hypercore-flow-node {
  position: relative;
  min-width: 0;
  min-height: 9.25rem;
  border: 1px solid rgb(103 232 249 / 0.2);
  border-radius: 0.375rem;
  padding: 1.1rem;
  background: rgb(2 12 30 / 0.7);
  box-shadow: inset 0 0 1.75rem rgb(34 211 238 / 0.035);
}

.hypercore-flow-node h3 {
  margin-top: 0.65rem;
  overflow-wrap: anywhere;
  color: rgb(236 254 255);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3rem;
}

.hypercore-flow-node > p:not(.hypercore-flow-kicker) {
  margin-top: 0.5rem;
  color: rgb(207 250 254 / 0.7);
  font-size: 0.78rem;
  line-height: 1.1rem;
}

.hypercore-flow-node > span:last-child,
.hypercore-flow-node > a {
  display: inline-block;
  margin-top: 0.65rem;
  color: rgb(165 243 252 / 0.52);
  font-size: 0.68rem;
  line-height: 1rem;
}

.hypercore-flow-node > a {
  color: rgb(103 232 249 / 0.85);
}

.hypercore-flow-index {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: rgb(103 232 249 / 0.28);
  font-size: 0.65rem;
  font-weight: 700;
}

.hypercore-flow-kicker {
  padding-right: 2rem;
  color: rgb(165 243 252 / 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.hypercore-flow-link {
  position: relative;
  align-self: center;
  height: 1px;
  overflow: hidden;
  background: rgb(34 211 238 / 0.22);
}

.hypercore-flow-link span {
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(103 232 249), transparent);
  animation: hypercore-pulse 2.4s linear infinite;
}

.hypercore-flow-link:nth-of-type(4) span {
  animation-delay: 1.2s;
}

@keyframes hypercore-pulse {
  to { transform: translateX(100%); }
}

.hypercore-model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  align-items: end;
  gap: 2rem;
}

.hypercore-allocation-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.hypercore-allocation-select {
  min-height: 2.5rem;
  color: rgb(236 254 255) !important;
  color-scheme: dark;
}

.hypercore-allocation-select option {
  background: rgb(5 20 38);
  color: rgb(236 254 255);
}

.hypercore-allocation-apply {
  min-height: 2.5rem;
  color: rgb(236 254 255) !important;
  white-space: nowrap;
}

.hypercore-monitor-path {
  border-bottom: 1px solid var(--frontier-line);
  background:
    linear-gradient(rgb(103 232 249 / 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgb(103 232 249 / 0.025) 1px, transparent 1px),
    rgb(2 8 20 / 0.72);
  background-size: 1.5rem 1.5rem;
  padding: 1rem;
}

.frontier-hypercore-effect {
  border: 1px solid rgb(52 211 153 / 0.26);
  border-radius: 0.4rem;
  background: rgb(16 185 129 / 0.08);
  padding: 0.38rem 0.55rem;
  color: rgb(167 243 208 / 0.9);
  font: 0.62rem/1rem ui-monospace, monospace;
  text-transform: uppercase;
}

.frontier-hypercore-support {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgb(103 232 249 / 0.18);
  border-bottom: 1px solid rgb(103 232 249 / 0.18);
  padding: 0.85rem 1rem;
  background: rgb(6 22 42 / 0.72);
}

.frontier-hypercore-support-title span,
.frontier-hypercore-support dt {
  display: block;
  color: rgb(165 243 252 / 0.56);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.frontier-hypercore-support-title strong {
  display: block;
  margin-top: 0.15rem;
  color: rgb(236 254 255);
  font-size: 0.8rem;
  line-height: 1.1rem;
}

.frontier-hypercore-support-title small,
.frontier-hypercore-support dl small {
  display: block;
  margin-top: 0.2rem;
  color: rgb(165 243 252 / 0.48);
  font-size: 0.64rem;
  line-height: 0.95rem;
}

.frontier-hypercore-support dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.frontier-hypercore-support dl > div {
  min-width: 0;
  border-left: 1px solid rgb(103 232 249 / 0.14);
  padding: 0 0.85rem;
}

.frontier-hypercore-support dd {
  margin-top: 0.15rem;
  color: rgb(236 254 255);
  font: 700 0.83rem/1.1rem ui-monospace, monospace;
  white-space: nowrap;
}

.frontier-hypercore-support .is-boost dd {
  color: rgb(110 231 183);
}

.frontier-hypercore-support > a {
  white-space: nowrap;
}

.hypercore-model-workspace {
  margin-top: 1rem;
}

.hypercore-upgrade-workspace {
  margin-top: 1rem;
  scroll-margin-top: 1rem;
}

.hypercore-upgrade-workspace > .frontier-workspace-heading {
  margin: 0;
  border-bottom: 1px solid var(--frontier-line);
  padding: 1rem;
}

.hypercore-upgrade-workspace > .frontier-workspace-heading small {
  color: rgb(165 243 252 / 0.58);
  font: 0.68rem/1rem ui-monospace, monospace;
  white-space: nowrap;
}

.hypercore-upgrade-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.55fr);
  gap: 1.25rem;
  align-items: center;
  border-bottom: 1px solid rgb(34 211 238 / 0.22);
  background: linear-gradient(90deg, rgb(8 145 178 / 0.16), rgb(2 8 20 / 0.72));
  padding: 1rem;
}

.hypercore-upgrade-active > div:first-child > span,
.hypercore-upgrade-card header span,
.hypercore-upgrade-card dt {
  color: rgb(103 232 249 / 0.58);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.hypercore-upgrade-active h3 {
  margin-top: 0.15rem;
  color: rgb(236 254 255 / 0.96);
  font-size: 0.95rem;
  font-weight: 650;
}

.hypercore-upgrade-active p {
  margin-top: 0.25rem;
  color: rgb(165 243 252 / 0.56);
  font-size: 0.72rem;
}

.hypercore-upgrade-progress strong {
  display: block;
  color: rgb(236 254 255 / 0.94);
  font: 0.9rem/1.2rem ui-monospace, monospace;
  text-align: right;
}

.hypercore-upgrade-progress > div {
  height: 0.48rem;
  margin-top: 0.35rem;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.2);
  background: rgb(2 6 23 / 0.88);
}

.hypercore-upgrade-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgb(8 145 178 / 0.94), rgb(34 211 238 / 0.96));
  box-shadow: 0 0 0.65rem rgb(34 211 238 / 0.38);
  transition: width 300ms linear;
}

.hypercore-upgrade-progress small {
  display: block;
  margin-top: 0.35rem;
  color: rgb(165 243 252 / 0.52);
  font: 0.65rem/1rem ui-monospace, monospace;
  text-align: right;
}

.hypercore-upgrade-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.hypercore-upgrade-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  border: 1px solid rgb(34 211 238 / 0.15);
  border-radius: 0.35rem;
  background: rgb(3 12 27 / 0.72);
  padding: 0.9rem;
}

.hypercore-upgrade-card--ready { border-color: rgb(34 211 238 / 0.45); box-shadow: inset 0 1px 0 rgb(207 250 254 / 0.04); }
.hypercore-upgrade-card--installing { border-color: rgb(34 211 238 / 0.58); background: rgb(8 47 73 / 0.26); }
.hypercore-upgrade-card--complete { border-color: rgb(52 211 153 / 0.35); }
.hypercore-upgrade-card--locked,
.hypercore-upgrade-card--waiting { border-color: rgb(148 163 184 / 0.13); }

.hypercore-upgrade-card > header,
.hypercore-upgrade-card > footer {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.hypercore-upgrade-card header h3 {
  margin-top: 0.15rem;
  color: rgb(236 254 255 / 0.94);
  font-size: 0.88rem;
  font-weight: 650;
}

.hypercore-upgrade-card header > strong {
  flex: none;
  color: rgb(165 243 252 / 0.64);
  font: 700 0.62rem/1rem ui-monospace, monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.hypercore-upgrade-card--complete header > strong { color: rgb(110 231 183 / 0.88); }
.hypercore-upgrade-card--locked header > strong,
.hypercore-upgrade-card--shortfall header > strong { color: rgb(251 191 36 / 0.82); }

.hypercore-upgrade-card > p {
  min-height: 2.4rem;
  margin-top: 0.55rem;
  color: rgb(165 243 252 / 0.56);
  font-size: 0.7rem;
  line-height: 1.15rem;
}

.hypercore-upgrade-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgb(34 211 238 / 0.1);
  border-bottom: 1px solid rgb(34 211 238 / 0.1);
  padding: 0.65rem 0;
}

.hypercore-upgrade-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.hypercore-upgrade-card dl > .hypercore-upgrade-blueprint-cost {
  grid-column: 1 / -1;
}

.hypercore-upgrade-card dd {
  color: rgb(226 232 240 / 0.84);
  font: 0.68rem/1rem ui-monospace, monospace;
  white-space: nowrap;
}

.hypercore-upgrade-card dd.is-missing { color: rgb(251 191 36 / 0.9); }

.hypercore-upgrade-card > footer {
  align-self: end;
  margin-top: 0.75rem;
  align-items: end;
}

.hypercore-upgrade-card footer > div { min-width: 0; }
.hypercore-upgrade-card footer > div > strong {
  display: block;
  color: rgb(207 250 254 / 0.72);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.05rem;
}

.hypercore-upgrade-card footer small {
  display: block;
  margin-top: 0.2rem;
  color: rgb(148 163 184 / 0.52);
  font-size: 0.62rem;
  line-height: 0.95rem;
}

.hypercore-upgrade-card footer form,
.hypercore-upgrade-card footer a { flex: none; }

.hypercore-upgrade-note {
  border-top: 1px solid var(--frontier-line);
  padding: 0.75rem 1rem;
  color: rgb(165 243 252 / 0.5);
  font-size: 0.67rem;
  line-height: 1rem;
}

.hypercore-commissioning { padding: 1.15rem; }
.hypercore-commissioning .frontier-monitor-header h2 {
  margin-top: 0.25rem;
  color: rgb(236 254 255 / 0.96);
  font-size: 1.05rem;
  font-weight: 700;
}
.hypercore-commissioning-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(34 211 238 / 0.2);
  background: rgb(2 8 20 / 0.72);
}
.hypercore-commissioning-intro > div > strong { color: rgb(165 243 252 / 0.95); }
.hypercore-commissioning-intro > div > p,
.hypercore-commissioning-actions > p,
.hypercore-commissioning-progress > p {
  margin-top: 0.35rem;
  color: rgb(207 250 254 / 0.62);
  font-size: 0.78rem;
  line-height: 1.55;
}
.hypercore-commissioning-intro dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.hypercore-commissioning-intro dl div,
.hypercore-commissioning-requirements > section {
  min-width: 0;
  border-left: 2px solid rgb(71 85 105 / 0.85);
  padding-left: 0.7rem;
}
.hypercore-commissioning-intro dt,
.hypercore-commissioning-requirements span {
  display: block;
  color: rgb(103 232 249 / 0.62);
  font-size: 0.64rem;
  text-transform: uppercase;
}
.hypercore-commissioning-intro dd,
.hypercore-commissioning-requirements strong {
  display: block;
  margin-top: 0.25rem;
  color: rgb(226 232 240 / 0.92);
  font-size: 0.82rem;
  line-height: 1.3;
}
.hypercore-commissioning-requirements {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(34 211 238 / 0.16);
  background: rgb(3 10 24 / 0.68);
}
.hypercore-commissioning-requirements > section.is-ready { border-left-color: rgb(52 211 153 / 0.78); }
.hypercore-commissioning-requirements small {
  display: block;
  margin-top: 0.35rem;
  color: rgb(148 163 184 / 0.7);
  font-size: 0.68rem;
  line-height: 1.35;
}
.hypercore-commissioning-requirements > section.is-ready small { color: rgb(110 231 183 / 0.78); }
.hypercore-commissioning-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.hypercore-commissioning-actions > p { margin: 0; }
.hypercore-commissioning-actions form,
.hypercore-commissioning-actions a { flex: none; }
.hypercore-commissioning-progress {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgb(34 211 238 / 0.2);
  background: rgb(2 8 20 / 0.78);
}
.hypercore-commissioning-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(165 243 252 / 0.88);
  font-size: 0.8rem;
}

.hypercore-model-workspace > .frontier-workspace-heading {
  margin: 0;
  border-bottom: 1px solid var(--frontier-line);
  padding: 1rem;
}

.hypercore-model-workspace > summary.frontier-workspace-heading {
  cursor: pointer;
  list-style: none;
}

.hypercore-model-workspace > summary.frontier-workspace-heading::-webkit-details-marker {
  display: none;
}

.hypercore-model-workspace > summary.frontier-workspace-heading:hover {
  background: rgb(8 47 73 / 0.18);
}

.hypercore-model-workspace > .frontier-workspace-heading small {
  max-width: 24rem;
  color: rgb(165 243 252 / 0.48);
  font-size: 0.68rem;
  text-align: right;
}

.hypercore-model-summary-status {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.hypercore-model-toggle {
  display: inline-grid;
  min-width: 3.8rem;
  min-height: 1.9rem;
  place-items: center;
  border: 1px solid rgb(34 211 238 / 0.28);
  border-radius: 0.35rem;
  background: rgb(8 47 73 / 0.34);
  color: rgb(207 250 254 / 0.8);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.hypercore-model-toggle::before {
  content: "Open";
}

.hypercore-model-workspace[open] .hypercore-model-toggle::before {
  content: "Close";
}

.hypercore-model-list {
  padding: 0 1rem;
}

.hypercore-model-list .hypercore-model-row {
  padding: 1rem 0;
}

.hypercore-model-list .hypercore-model-row + .hypercore-model-row {
  border-top: 1px solid var(--frontier-line);
}

@media (max-width: 900px) {
  .hypercore-commissioning-intro,
  .hypercore-commissioning-requirements { grid-template-columns: minmax(0, 1fr); }
  .hypercore-commissioning-intro dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hypercore-commissioning-actions { align-items: stretch; flex-direction: column; }
  .hypercore-commissioning-actions form,
  .hypercore-commissioning-actions a,
  .hypercore-commissioning-actions button { width: 100%; text-align: center; }
  .hypercore-upgrade-list { grid-template-columns: minmax(0, 1fr); }
  .hypercore-upgrade-active { grid-template-columns: minmax(0, 1fr); }
  .hypercore-upgrade-progress strong,
  .hypercore-upgrade-progress small { text-align: left; }
  .hypercore-model-summary-status small { display: none; }
  .hypercore-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .hypercore-flow-link {
    justify-self: center;
    width: 1px;
    height: 2rem;
  }

  .hypercore-flow-link span {
    transform: translateY(-100%);
    background: linear-gradient(180deg, transparent, rgb(103 232 249), transparent);
    animation-name: hypercore-pulse-vertical;
  }

  @keyframes hypercore-pulse-vertical {
    to { transform: translateY(100%); }
  }

  .hypercore-model-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .frontier-hypercore-support {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .frontier-hypercore-support dl {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .hypercore-upgrade-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .hypercore-upgrade-card dl > .hypercore-upgrade-blueprint-cost {
    grid-column: auto;
  }

  .hypercore-upgrade-card > header,
  .hypercore-upgrade-card > footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hypercore-allocation-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .hypercore-allocation-form button {
    width: 100%;
  }

  .frontier-hypercore-support {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-hypercore-support dl {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-hypercore-support dl > div {
    border-top: 1px solid rgb(103 232 249 / 0.14);
    border-left: 0;
    padding: 0.6rem 0;
  }

  .frontier-hypercore-support > a {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hypercore-flow-link span {
    animation: none;
    transform: none;
    opacity: 0.55;
  }
}

.world-map-stage {
  position: relative;
  height: 38rem;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.14);
  border-radius: 0.5rem;
  background-color: rgb(2 6 23 / 0.72);
  background-image:
    linear-gradient(rgb(103 232 249 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(103 232 249 / 0.035) 1px, transparent 1px),
    radial-gradient(circle at 48% 45%, rgb(34 211 238 / 0.09), transparent 24%);
  background-size: 2rem 2rem, 2rem 2rem, 100% 100%;
}

.world-map-stage::before,
.world-map-stage::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgb(103 232 249 / 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.world-map-stage::before {
  inset: 16% 13%;
}

.world-map-stage::after {
  inset: 28% 28%;
}

.world-route-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: rgb(103 232 249 / 0.42);
  box-shadow: 0 0 8px rgb(34 211 238 / 0.2);
}

.world-route-line--locked,
.world-route-line--suspended {
  background: rgb(148 163 184 / 0.25);
  box-shadow: none;
}

.world-site-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 8.5rem;
  min-height: 4.25rem;
  translate: -50% -50%;
  place-content: center;
  border: 1px solid rgb(103 232 249 / 0.28);
  border-radius: 0.5rem;
  background-color: rgb(8 20 38 / 0.96);
  padding: 0.55rem 0.7rem;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.world-site-node:hover,
.world-site-node:focus-visible,
.world-site-node--selected {
  border-color: rgb(103 232 249 / 0.8);
  background-color: rgb(14 35 57 / 0.98);
  outline: none;
  box-shadow: 0 0 14px rgb(34 211 238 / 0.18);
}

.world-site-node--selected::before,
.world-site-node--selected::after {
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgb(103 232 249 / 0.7);
  border-radius: 0.65rem;
  content: "";
  pointer-events: none;
}

.world-site-node--selected::before {
  border-left-color: transparent;
  border-right-color: transparent;
  animation: worldTargetLock 2.4s ease-in-out infinite;
}

.world-site-node--selected::after {
  inset: -0.2rem;
  border-color: rgb(103 232 249 / 0.2);
}

.world-site-node--detected {
  border-style: dashed;
}

.world-site-node--locked,
.world-site-node--suspended {
  border-color: rgb(148 163 184 / 0.25);
  color: rgb(203 213 225 / 0.72);
}

.world-site-node__signal {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background-color: rgb(103 232 249 / 0.9);
  box-shadow: 0 0 8px rgb(34 211 238 / 0.65);
}

.world-site-node--home .world-site-node__signal {
  border: 1px solid rgb(254 240 138 / 0.9);
  background-color: rgb(250 204 21 / 0.9);
  box-shadow: 0 0 10px rgb(250 204 21 / 0.55);
}

.world-site-node--marker-survey_available,
.world-site-node--marker-frontier_opportunity {
  border-color: rgb(251 191 36 / 0.56);
}

.world-site-node--marker-survey_available .world-site-node__signal,
.world-site-node--marker-frontier_opportunity .world-site-node__signal {
  background-color: rgb(251 191 36 / 0.95);
  box-shadow: 0 0 9px rgb(245 158 11 / 0.55);
}

.world-site-node--marker-survey_active {
  border-color: rgb(56 189 248 / 0.62);
}

.world-site-node--marker-owned_operation {
  border-color: rgb(52 211 153 / 0.58);
}

.world-site-node--marker-owned_operation .world-site-node__signal {
  background-color: rgb(52 211 153 / 0.95);
  box-shadow: 0 0 9px rgb(16 185 129 / 0.55);
}

.world-site-node--marker-operation_incident {
  border-color: rgb(251 113 133 / 0.62);
}

.world-site-node--marker-operation_incident .world-site-node__signal {
  background-color: rgb(251 113 133 / 0.95);
  box-shadow: 0 0 9px rgb(244 63 94 / 0.55);
}

.world-site-node--locked .world-site-node__signal,
.world-site-node--suspended .world-site-node__signal {
  background-color: rgb(148 163 184 / 0.65);
  box-shadow: none;
}

.world-site-node__name {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.15rem;
  color: rgb(236 254 255);
}

.world-site-node__state {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  line-height: 0.9rem;
  color: rgb(165 243 252 / 0.62);
}

.world-operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(19rem, 1fr);
  gap: 1rem;
  align-items: start;
}

.world-map-shell,
.world-site-inspector-shell {
  height: 40rem;
}

.world-site-inspector-shell {
  position: sticky;
  top: 1rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.36);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgb(7 29 53 / 0.96), rgb(4 19 38 / 0.98));
  box-shadow:
    inset 0 0 0 1px rgb(103 232 249 / 0.04),
    inset 0 0 34px rgb(34 211 238 / 0.035),
    0 12px 30px rgb(2 8 23 / 0.36);
}

.world-site-inspector-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgb(103 232 249 / 0.018) 3px,
    rgb(103 232 249 / 0.018) 4px
  );
  content: "";
  pointer-events: none;
}

.world-site-inspector-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgb(34 211 238 / 0.45) rgb(15 23 42 / 0.45);
}

.world-inspector-header {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(103 232 249 / 0.14);
  background-color: rgb(8 35 63 / 0.72);
  padding: 1rem 1.25rem;
}

.world-inspector-body {
  padding: 1.25rem;
}

.world-inspector-link-state {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  color: rgb(165 243 252 / 0.7);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.world-inspector-link-state span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: rgb(103 232 249);
  box-shadow: 0 0 8px rgb(34 211 238 / 0.65);
}

.world-inspector-status {
  border: 1px solid rgb(103 232 249 / 0.2);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  color: rgb(207 250 254 / 0.85);
}

.world-inspector-status--home {
  border-color: rgb(250 204 21 / 0.35);
  color: rgb(254 240 138 / 0.92);
}

.world-inspector-status--opportunity,
.world-inspector-status--survey {
  border-color: rgb(251 191 36 / 0.38);
  color: rgb(254 243 199 / 0.94);
}

.world-inspector-status--owned {
  border-color: rgb(52 211 153 / 0.38);
  color: rgb(209 250 229 / 0.94);
}

.world-inspector-status--incident {
  border-color: rgb(251 113 133 / 0.4);
  color: rgb(255 228 230 / 0.94);
}

.world-operation-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-left: 2px solid rgb(103 232 249 / 0.55);
  background-color: rgb(8 47 73 / 0.2);
  padding: 0.8rem 0.9rem;
}

.world-operation-signal p,
.world-operation-signal > span {
  color: rgb(165 243 252 / 0.52);
  font-size: 0.65rem;
  line-height: 1rem;
}

.world-operation-signal strong {
  display: block;
  margin-top: 0.15rem;
  color: rgb(236 254 255 / 0.92);
  font-size: 0.8rem;
  line-height: 1.1rem;
}

.world-operation-signal--opportunity,
.world-operation-signal--survey {
  border-left-color: rgb(251 191 36 / 0.65);
}

.world-operation-signal--owned {
  border-left-color: rgb(52 211 153 / 0.65);
}

.world-operation-signal--incident {
  border-left-color: rgb(251 113 133 / 0.7);
}

.world-inspector-disclosure {
  border-bottom: 1px solid rgb(103 232 249 / 0.1);
  padding: 1rem 0;
}

.world-inspector-disclosure summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(165 243 252 / 0.75);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1rem;
  text-transform: uppercase;
}

.world-inspector-disclosure summary::-webkit-details-marker {
  display: none;
}

.world-inspector-disclosure summary span {
  color: rgb(165 243 252 / 0.45);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: none;
}

.world-inspector-close,
.world-inspector-backdrop {
  display: none;
}

.world-location-row {
  transition: background-color 150ms ease, padding 150ms ease;
}

.world-location-row--selected {
  background-color: rgb(34 211 238 / 0.06);
}

.world-guide-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.world-guide-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background-color: rgb(2 8 23 / 0.76);
  backdrop-filter: blur(3px);
}

.world-guide-dialog {
  position: relative;
  width: min(100%, 44rem);
  border: 1px solid rgb(103 232 249 / 0.38);
  border-radius: 0.5rem;
  background-color: rgb(6 24 45 / 0.98);
  box-shadow: inset 0 1px 0 rgb(210 249 255 / 0.08), 0 18px 60px rgb(2 8 23 / 0.7);
  padding: 1.25rem;
}

.operations-guide-dialog {
  display: flex;
  max-height: min(42rem, calc(100dvh - 2rem));
  flex-direction: column;
  overflow: hidden;
}

.operations-guide-content {
  min-height: 10rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
}

.operations-guide-points {
  border-top: 1px solid rgb(103 232 249 / 0.12);
  border-bottom: 1px solid rgb(103 232 249 / 0.12);
  color: rgb(207 250 254 / 0.72);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.operations-guide-points li {
  position: relative;
  padding: 0.7rem 0.5rem 0.7rem 1.25rem;
}

.operations-guide-points li + li {
  border-top: 1px solid rgb(103 232 249 / 0.09);
}

.operations-guide-points li::before {
  position: absolute;
  top: 1.2rem;
  left: 0.2rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: rgb(103 232 249 / 0.8);
  box-shadow: 0 0 0.55rem rgb(34 211 238 / 0.35);
  content: "";
}

@media (max-width: 639px) {
  .operations-guide-dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1rem;
  }

  .operations-guide-content {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operations-guide-dialog,
  .operations-guide-dialog * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes worldTargetLock {
  0%, 100% { opacity: 0.38; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.025); }
}

@media (max-width: 1279px) {
  .world-operations-layout {
    display: block;
  }

  .world-site-inspector-shell {
    position: fixed;
    z-index: 86;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: min(72vh, 38rem);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0.5rem 0.5rem 0 0;
  }

  .world-site-inspector-shell.is-mobile-open {
    display: block;
  }

  .world-inspector-close {
    position: absolute;
    z-index: 2;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 650;
  }

  .world-inspector-header {
    padding-right: 5.25rem;
  }

  .world-inspector-backdrop {
    position: fixed;
    z-index: 85;
    inset: 0;
    display: block;
    border: 0;
    background-color: rgb(2 8 23 / 0.68);
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-site-node--selected::before {
    animation: none;
  }
}

.world-legend-signal {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgb(103 232 249 / 0.75);
  border-radius: 50%;
  background-color: rgb(103 232 249 / 0.7);
  box-shadow: 0 0 8px rgb(34 211 238 / 0.4);
}

.world-legend-signal--home {
  border-color: rgb(250 204 21 / 0.75);
  background-color: rgb(250 204 21 / 0.7);
  box-shadow: 0 0 8px rgb(250 204 21 / 0.25);
}

.world-legend-signal--detected {
  border-style: dashed;
  background-color: transparent;
  box-shadow: none;
}

.world-legend-signal--opportunity {
  border-color: rgb(251 191 36 / 0.8);
  background-color: rgb(251 191 36 / 0.85);
  box-shadow: 0 0 8px rgb(245 158 11 / 0.32);
}

.world-legend-signal--owned {
  border-color: rgb(52 211 153 / 0.8);
  background-color: rgb(52 211 153 / 0.85);
  box-shadow: 0 0 8px rgb(16 185 129 / 0.32);
}

.world-legend-signal--incident {
  border-color: rgb(251 113 133 / 0.85);
  background-color: rgb(251 113 133 / 0.9);
  box-shadow: 0 0 8px rgb(244 63 94 / 0.35);
}

.world-legend-route {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background-color: rgb(103 232 249 / 0.55);
}

html {
  scrollbar-gutter: stable;
}

body {
  background: radial-gradient(circle at 12% 8%, rgba(25, 118, 210, 0.25) 0, transparent 30%),
              radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.2) 0, transparent 24%),
              linear-gradient(140deg, var(--bg-deep), var(--bg-mid));
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
}

.jarvis-grid {
  background-image:
    linear-gradient(to bottom, rgba(147, 233, 255, 0.055), rgba(147, 233, 255, 0) 45%),
    linear-gradient(rgba(83, 186, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 186, 232, 0.06) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(120, 220, 248, 0.035) 0, rgba(120, 220, 248, 0.035) 1px, transparent 1px, transparent 4px);
  background-size: 100% 100%, 26px 26px, 26px 26px, 100% 100%;
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(210, 249, 255, 0.12), 0 10px 30px rgba(4, 10, 22, 0.35);
  backdrop-filter: blur(16px);
}

.glass-card-strong {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(210, 249, 255, 0.12), 0 12px 34px rgba(4, 10, 22, 0.45);
  backdrop-filter: blur(16px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.95));
  border: 1px solid rgba(125, 229, 255, 0.55);
  color: #e7fbff;
  box-shadow: 0 0 0 1px rgba(132, 228, 255, 0.2) inset, 0 8px 20px rgba(8, 145, 178, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(9, 37, 66, 0.8);
  border: 1px solid rgba(129, 225, 255, 0.35);
  color: #d8f6ff;
}

.input-glass {
  background: rgba(9, 31, 56, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.72) !important;
  color: var(--text-main);
  box-shadow: none;
  outline: 0 solid transparent !important;
  outline-offset: 0 !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  --tw-ring-color: transparent !important;
  --tw-ring-offset-color: transparent !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

input.input-glass,
textarea.input-glass {
  appearance: none;
  -webkit-appearance: none;
}

.input-glass,
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  outline: 0 solid transparent;
  outline-offset: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.input-glass::placeholder {
  color: rgba(149, 215, 234, 0.75);
}

.input-glass:-webkit-autofill,
.input-glass:-webkit-autofill:hover,
.input-glass:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main);
  caret-color: var(--text-main);
  box-shadow: 0 0 0 1000px rgba(9, 31, 56, 0.96) inset, 0 0 0 1px rgba(14, 165, 233, 0.78), 0 0 20px rgba(6, 182, 212, 0.35) !important;
  border-color: rgba(34, 211, 238, 0.95) !important;
}

.input-glass:hover {
  border-color: rgba(34, 211, 238, 0.9) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.22) !important;
}

.input-glass:focus,
.input-glass:focus-visible,
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus,
:where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  border-color: rgba(34, 211, 238, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.78), 0 0 20px rgba(6, 182, 212, 0.45) !important;
  outline: 0 solid transparent !important;
  outline-offset: 0 !important;
  --tw-ring-color: transparent !important;
  --tw-ring-offset-color: transparent !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

.pulse-on-load {
  animation: pulseGlow 2s ease-out;
}

[x-cloak] {
  display: none !important;
}

@keyframes pulseGlow {
  from {
    opacity: 0.82;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-segment {
  border-radius: 0.35rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-segment-active {
  background: rgba(34, 211, 238, 0.22);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.35) inset;
}

.voice-waveform {
  align-items: end;
  background: rgba(4, 25, 45, 0.7);
  border: 1px solid rgba(120, 220, 248, 0.3);
  border-radius: 0.5rem;
  display: inline-flex;
  gap: 0.2rem;
  height: 2.1rem;
  padding: 0.35rem 0.45rem;
}

.voice-waveform__bar {
  animation: waveformIdle 1.6s ease-in-out infinite;
  background: rgba(140, 230, 255, 0.45);
  border-radius: 9999px;
  display: block;
  height: 0.55rem;
  width: 0.2rem;
}

.voice-waveform--playing .voice-waveform__bar {
  animation: waveformPlaying 0.8s ease-in-out infinite;
  background: rgba(110, 233, 255, 0.95);
}

.voice-waveform--error .voice-waveform__bar {
  animation: none;
  background: rgba(251, 113, 133, 0.75);
  height: 0.4rem;
}

.voice-waveform__bar:nth-child(2) { animation-delay: 0.08s; }
.voice-waveform__bar:nth-child(3) { animation-delay: 0.16s; }
.voice-waveform__bar:nth-child(4) { animation-delay: 0.24s; }
.voice-waveform__bar:nth-child(5) { animation-delay: 0.32s; }
.voice-waveform__bar:nth-child(6) { animation-delay: 0.4s; }

.chat-transmission-pending {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.85rem;
}

.chat-transmission-frame {
  position: relative;
  width: 100%;
}

.chat-transmission-visual-box {
  position: relative;
  height: 14rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(8, 15, 28, 0.88), rgba(15, 23, 42, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 34%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px rgba(56, 189, 248, 0.12);
  overflow: hidden;
}

.chat-transmission-droid-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.9rem;
  filter: contrast(1.22) saturate(0.72) brightness(0.9) hue-rotate(148deg);
  animation: transmissionImageJitter 220ms steps(2, end) infinite;
}

.chat-transmission-tint-layer,
.chat-transmission-static-layer,
.chat-transmission-scanline-layer,
.chat-transmission-glow-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chat-transmission-tint-layer {
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 232, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(8, 145, 178, 0.18), rgba(7, 89, 133, 0.32));
  mix-blend-mode: screen;
  opacity: 0.92;
}

.chat-transmission-static-layer {
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,0.42), transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(255,255,255,0.28), transparent 1px),
    radial-gradient(circle at 34% 76%, rgba(255,255,255,0.25), transparent 1px),
    radial-gradient(circle at 82% 82%, rgba(255,255,255,0.2), transparent 1px),
    repeating-radial-gradient(circle, rgba(255,255,255,0.11) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.4;
  animation: transmissionNoise 130ms steps(2, end) infinite;
}

.chat-transmission-scanline-layer {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.18) 0,
    rgba(255,255,255,0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
  animation: transmissionScanlines 520ms linear infinite;
}

.chat-transmission-glow-sweep {
  inset: -8% -10%;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 38%,
      rgba(125, 211, 252, 0.22) 46%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(125, 211, 252, 0.22) 54%,
      transparent 62%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.95;
  animation: transmissionSweep 1.65s linear infinite;
}

.chat-transmission-overlay-copy {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.78));
  padding: 0.7rem 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.chat-transmission-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.95);
}

.chat-transmission-status {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.78);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.mission-action-layout {
  --mission-terminal-line-height: 1.25rem;
  display: grid;
  grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.mission-action-layout--tactical {
  grid-template-columns: minmax(20rem, 0.9fr) minmax(26rem, 1.35fr);
}

.mission-hud-state {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.55rem;
  background: rgba(8, 47, 73, 0.3);
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(207, 250, 254, 0.84);
}

.mission-hud-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.mission-hud-chip {
  min-width: 0;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(8, 47, 73, 0.25), rgba(2, 6, 23, 0.42)),
    rgba(2, 6, 23, 0.38);
  padding: 0.7rem 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.mission-hud-chip > span,
.mission-hud-chip > em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-hud-chip > span {
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.62);
}

.mission-hud-chip strong {
  display: block;
  margin-top: 0.28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  line-height: 1.15;
  color: rgba(236, 254, 255, 0.95);
}

.mission-hud-chip strong small {
  display: inline;
  margin-left: 0.35rem;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(125, 211, 252, 0.78);
}

.mission-hud-check-line {
  display: flex !important;
  align-items: baseline;
  gap: 0.35rem;
  color: rgba(236, 254, 255, 0.95);
}

.mission-hud-chip .mission-hud-check-skill {
  display: inline !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(236, 254, 255, 0.95) !important;
  font: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
}

.mission-hud-check-line small {
  flex: 0 0 auto;
  margin-left: 0;
}

.mission-hud-check-line small span {
  display: inline !important;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.mission-hud-chip > em {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.2;
  color: rgba(207, 250, 254, 0.58);
}

.mission-uplink-card,
.mission-action-main {
  min-width: 0;
}

.mission-action-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mission-uplink-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.44);
  padding: 0.75rem;
}

.mission-uplink-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.mission-uplink-level {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.45rem;
  background: rgba(8, 47, 73, 0.25);
  padding: 0.35rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.78);
}

.mission-uplink-visual-box {
  position: relative;
  height: clamp(10.5rem, 22vw, 12.75rem);
  min-height: 10.5rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(8, 15, 28, 0.92), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at 50% 22%, rgba(56, 189, 248, 0.16), transparent 36%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 28px rgba(56, 189, 248, 0.12);
}

.mission-tactical-feed {
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 28px rgba(14, 165, 233, 0.12);
}

.mission-tactical-feed-heading,
.mission-tactical-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.mission-tactical-feed-heading {
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(8, 47, 73, 0.3);
}

.mission-tactical-feed-heading > div {
  min-width: 0;
}

.mission-tactical-feed-heading p,
.mission-tactical-readout > span {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.68);
}

.mission-tactical-feed-heading strong {
  display: block;
  margin-top: 0.18rem;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 0.79rem;
  line-height: 1.3;
  color: rgba(236, 254, 255, 0.92);
}

.mission-tactical-feed-heading > span {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.45rem;
  background: rgba(2, 6, 23, 0.52);
  padding: 0.3rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.75);
}

.mission-tactical-plot {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 15rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 39% 49%, rgba(34, 211, 238, 0.11), transparent 30%),
    rgba(2, 8, 23, 0.98);
  background-size: 1.6rem 1.6rem, 1.6rem 1.6rem, auto, auto;
  isolation: isolate;
}

.mission-tactical-plot::before,
.mission-tactical-plot::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.mission-tactical-plot::before {
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.45;
}

.mission-tactical-plot::after {
  inset: 0.5rem;
  border: 1px solid rgba(125, 211, 252, 0.08);
  box-shadow: inset 0 0 2rem rgba(14, 165, 233, 0.08);
}

.mission-tactical-routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  overflow: visible;
}

.mission-tactical-route {
  fill: none;
  stroke: rgba(100, 116, 139, 0.42);
  stroke-dasharray: 2.2 2.2;
  stroke-linecap: round;
  stroke-width: 0.72;
  vector-effect: non-scaling-stroke;
  transition: stroke 300ms ease, opacity 300ms ease, filter 300ms ease;
}

.mission-tactical-route.is-complete {
  stroke: rgba(103, 232, 249, 0.86);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.52));
}

.mission-tactical-route[data-route-kind="hazard"] {
  opacity: 0.18;
  stroke: rgba(251, 191, 36, 0.68);
}

.mission-tactical-route.is-hazard-active {
  opacity: 1;
  stroke-dasharray: 1.2 2.4;
  animation: missionTacticalHazardRoute 1.1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.38));
}

.mission-tactical-node {
  position: absolute;
  z-index: 4;
  height: 0;
  width: 0;
  transition: opacity 220ms ease;
}

.mission-tactical-node.is-concealed {
  opacity: 0;
}

.mission-tactical-node-dot {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 0.58rem;
  width: 0.58rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(165, 243, 252, 0.72);
  border-radius: 50%;
  background: rgba(8, 47, 73, 0.92);
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.06), 0 0 0.8rem rgba(34, 211, 238, 0.25);
}

.mission-tactical-node-label {
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: max-content;
  max-width: 7.8rem;
  transform: translateX(-50%);
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.58rem;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 5px rgba(2, 6, 23, 0.95);
  color: rgba(207, 250, 254, 0.62);
}

.mission-tactical-node[data-node-kind="origin"] .mission-tactical-node-label {
  transform: translateX(-12%);
  text-align: left;
}

.mission-tactical-node[data-node-kind="result"] .mission-tactical-node-label {
  left: auto;
  right: 0.25rem;
  transform: none;
  text-align: right;
}

.mission-tactical-node[data-node-kind="hazard"] .mission-tactical-node-dot {
  border-color: rgba(251, 191, 36, 0.8);
  background: rgba(120, 53, 15, 0.9);
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.08), 0 0 0.9rem rgba(251, 191, 36, 0.32);
}

.mission-tactical-node[data-node-kind="hazard"] .mission-tactical-node-label {
  color: rgba(253, 230, 138, 0.78);
}

.mission-tactical-node.is-active .mission-tactical-node-dot {
  background: rgba(103, 232, 249, 0.95);
  box-shadow: 0 0 0 0.22rem rgba(34, 211, 238, 0.12), 0 0 1.2rem rgba(34, 211, 238, 0.7);
  animation: missionTacticalNodePulse 1.4s ease-out infinite;
}

.mission-tactical-node.is-active .mission-tactical-node-label {
  font-weight: 700;
  color: rgba(236, 254, 255, 0.96);
}

.mission-tactical-marker {
  position: absolute;
  left: var(--mission-marker-x);
  top: var(--mission-marker-y);
  z-index: 5;
  height: 1.1rem;
  width: 1.1rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(125, 211, 252, 0.62);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.78);
  box-shadow: 0 0 1rem rgba(56, 189, 248, 0.42);
  transition: left 900ms ease, top 900ms ease;
}

.mission-tactical-marker span {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 0;
  width: 0;
  transform: translate(-38%, -50%) rotate(18deg);
  border-bottom: 0.24rem solid transparent;
  border-left: 0.48rem solid rgba(165, 243, 252, 0.92);
  border-top: 0.24rem solid transparent;
}

.mission-tactical-sweep {
  position: absolute;
  left: 39%;
  top: 49%;
  z-index: 2;
  height: 9rem;
  width: 9rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 304deg, rgba(34, 211, 238, 0.03) 318deg, rgba(103, 232, 249, 0.22) 356deg, transparent 360deg);
  opacity: 0.52;
  animation: missionTacticalSweep 4.2s linear infinite;
  pointer-events: none;
}

.mission-tactical-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(112deg, transparent 0 0.75rem, rgba(251, 191, 36, 0.08) 0.82rem, transparent 0.9rem 1.4rem);
  opacity: 0;
  pointer-events: none;
}

.mission-tactical-droid-inset {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  z-index: 6;
  display: block;
  height: 34%;
  width: 26%;
  min-width: 3.4rem;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(2, 6, 23, 0.82);
  box-shadow: 0 0 1rem rgba(14, 165, 233, 0.16);
}

.mission-tactical-droid-inset img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: 50% 0%;
  padding: 0.12rem;
  filter: contrast(1.12) saturate(0.82) brightness(0.94) hue-rotate(140deg);
  transform: scale(1.02);
}

.mission-tactical-readout {
  align-items: flex-start;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(2, 6, 23, 0.72);
}

.mission-tactical-readout > span {
  flex: 0 0 auto;
  border-right: 1px solid rgba(125, 211, 252, 0.14);
  padding-right: 0.7rem;
  color: rgba(103, 232, 249, 0.8);
}

.mission-tactical-readout p {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: right;
  color: rgba(207, 250, 254, 0.76);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] {
  border-color: rgba(248, 113, 113, 0.24);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 28px rgba(239, 68, 68, 0.1);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-feed-heading {
  border-bottom-color: rgba(248, 113, 113, 0.14);
  background: rgba(69, 10, 10, 0.24);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-plot {
  background:
    linear-gradient(rgba(248, 113, 113, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 113, 113, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 32% 62%, rgba(34, 211, 238, 0.1), transparent 24%),
    radial-gradient(circle at 64% 27%, rgba(239, 68, 68, 0.1), transparent 34%),
    rgba(10, 7, 18, 0.98);
  background-size: 1.6rem 1.6rem, 1.6rem 1.6rem, auto, auto, auto;
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-plot::after {
  border-color: rgba(248, 113, 113, 0.09);
  box-shadow: inset 0 0 2rem rgba(127, 29, 29, 0.1);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-sweep {
  left: 32%;
  top: 62%;
  height: 6.5rem;
  width: 6.5rem;
  border-color: rgba(34, 211, 238, 0.2);
  background: transparent;
  opacity: 0.5;
  animation: missionCombatSupportPulse 2.4s ease-out infinite;
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-route[data-route-kind="friendly"].is-complete {
  stroke: rgba(110, 231, 183, 0.92);
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.52));
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-route[data-route-kind="hazard"] {
  stroke: rgba(248, 113, 113, 0.72);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-route.is-hazard-active {
  stroke: rgba(248, 113, 113, 0.96);
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.55));
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="friendly"] .mission-tactical-node-dot,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="objective"] .mission-tactical-node-dot,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="result"] .mission-tactical-node-dot {
  border-color: rgba(110, 231, 183, 0.82);
  background: rgba(6, 78, 59, 0.92);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.08), 0 0 0.9rem rgba(16, 185, 129, 0.28);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="friendly"] .mission-tactical-node-label,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="objective"] .mission-tactical-node-label,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="result"] .mission-tactical-node-label {
  color: rgba(167, 243, 208, 0.82);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="support"] .mission-tactical-node-dot {
  border-radius: 0.12rem;
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: rgba(103, 232, 249, 0.88);
  background: rgba(8, 47, 73, 0.96);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="hazard"] .mission-tactical-node-dot {
  border-color: rgba(248, 113, 113, 0.9);
  background: rgba(127, 29, 29, 0.94);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.08), 0 0 0.9rem rgba(239, 68, 68, 0.38);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-node[data-node-kind="hazard"] .mission-tactical-node-label {
  color: rgba(254, 202, 202, 0.86);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-marker {
  height: 1rem;
  width: 1rem;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 0.16rem;
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-marker span {
  transform: translate(-38%, -50%) rotate(-27deg);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"] .mission-tactical-droid-inset img {
  filter: contrast(1.14) saturate(0.72) brightness(0.9);
}

.mission-tactical-feed[data-scene-key="combat_breach_support_v1"][data-visual-effect="crossfire"] .mission-tactical-noise,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"][data-visual-effect="combat_pressure"] .mission-tactical-noise,
.mission-tactical-feed[data-scene-key="combat_breach_support_v1"][data-visual-effect="threat_contact"] .mission-tactical-noise {
  background: repeating-linear-gradient(112deg, transparent 0 0.75rem, rgba(248, 113, 113, 0.09) 0.82rem, transparent 0.9rem 1.4rem);
  opacity: 0.38;
  animation: missionTacticalNoise 460ms steps(2, end) infinite;
}

.mission-tactical-feed[data-visual-theme="security"] { --mission-theme-rgb: 167, 139, 250; }
.mission-tactical-feed[data-visual-theme="protocol"] { --mission-theme-rgb: 250, 204, 21; }
.mission-tactical-feed[data-visual-theme="medical"] { --mission-theme-rgb: 45, 212, 191; }
.mission-tactical-feed[data-visual-theme="maintenance"] { --mission-theme-rgb: 251, 146, 60; }
.mission-tactical-feed[data-visual-theme="industrial"] { --mission-theme-rgb: 245, 158, 11; }
.mission-tactical-feed[data-visual-theme="hospitality"] { --mission-theme-rgb: 244, 114, 182; }
.mission-tactical-feed[data-visual-theme="companion"] { --mission-theme-rgb: 129, 140, 248; }

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) {
  border-color: rgba(var(--mission-theme-rgb), 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 28px rgba(var(--mission-theme-rgb), 0.1);
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-feed-heading {
  border-bottom-color: rgba(var(--mission-theme-rgb), 0.14);
  background: rgba(var(--mission-theme-rgb), 0.08);
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-plot {
  background:
    linear-gradient(rgba(var(--mission-theme-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--mission-theme-rgb), 0.045) 1px, transparent 1px),
    radial-gradient(circle at 51% 66%, rgba(var(--mission-theme-rgb), 0.11), transparent 27%),
    rgba(4, 8, 20, 0.98);
  background-size: 1.6rem 1.6rem, 1.6rem 1.6rem, auto, auto;
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-sweep {
  left: 51%;
  top: 68%;
  height: 6rem;
  width: 6rem;
  border-color: rgba(var(--mission-theme-rgb), 0.18);
  background: transparent;
  animation: missionCombatSupportPulse 2.8s ease-out infinite;
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-route.is-complete {
  stroke: rgba(var(--mission-theme-rgb), 0.9);
  filter: drop-shadow(0 0 3px rgba(var(--mission-theme-rgb), 0.46));
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-node[data-node-kind="support"] .mission-tactical-node-dot,
.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-node.is-active .mission-tactical-node-dot {
  border-color: rgba(var(--mission-theme-rgb), 0.9);
  background: rgba(var(--mission-theme-rgb), 0.72);
  box-shadow: 0 0 0 0.22rem rgba(var(--mission-theme-rgb), 0.1), 0 0 1.1rem rgba(var(--mission-theme-rgb), 0.52);
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-marker {
  border-color: rgba(var(--mission-theme-rgb), 0.7);
  box-shadow: 0 0 1rem rgba(var(--mission-theme-rgb), 0.4);
}

.mission-tactical-feed[data-visual-theme]:not([data-visual-theme="navigation"]):not([data-visual-theme="combat"]) .mission-tactical-marker span {
  border-left-color: rgba(var(--mission-theme-rgb), 0.94);
}

.mission-tactical-feed[data-visual-state="amber"] {
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow: 0 0 1.5rem rgba(251, 191, 36, 0.1);
}

.mission-tactical-feed[data-visual-state="amber"] .mission-tactical-noise,
.mission-tactical-feed[data-visual-effect="echo_split"] .mission-tactical-noise,
.mission-tactical-feed[data-visual-effect="signal_noise"] .mission-tactical-noise {
  opacity: 0.42;
  animation: missionTacticalNoise 460ms steps(2, end) infinite;
}

.mission-tactical-feed[data-visual-state="emerald"] {
  border-color: rgba(110, 231, 183, 0.34);
  box-shadow: 0 0 1.5rem rgba(16, 185, 129, 0.1);
}

.mission-tactical-feed[data-visual-state="emerald"] .mission-tactical-readout > span,
.mission-tactical-feed[data-visual-state="emerald"] .mission-tactical-readout p {
  color: rgba(167, 243, 208, 0.9);
}

.mission-tactical-feed[data-visual-state="rose"] {
  border-color: rgba(251, 113, 133, 0.36);
  box-shadow: 0 0 1.5rem rgba(244, 63, 94, 0.11);
}

.mission-tactical-feed[data-visual-state="rose"] .mission-tactical-readout > span,
.mission-tactical-feed[data-visual-state="rose"] .mission-tactical-readout p {
  color: rgba(254, 205, 211, 0.9);
}

.mission-uplink-droid-image {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  padding: 0.55rem 0.35rem 0.25rem;
  filter: contrast(1.14) saturate(0.78) brightness(0.9) hue-rotate(140deg);
  transform: scale(1.03);
  transform-origin: center center;
  transition: filter 180ms ease, transform 180ms ease;
}

.mission-uplink-tint-layer,
.mission-uplink-static-layer,
.mission-uplink-scanline-layer,
.mission-uplink-glow-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mission-uplink-tint-layer {
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 232, 255, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(8, 145, 178, 0.12), rgba(7, 89, 133, 0.25));
  mix-blend-mode: screen;
  opacity: 0.78;
}

.mission-uplink-static-layer {
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,0.34), transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(255,255,255,0.22), transparent 1px),
    radial-gradient(circle at 34% 76%, rgba(255,255,255,0.2), transparent 1px),
    radial-gradient(circle at 82% 82%, rgba(255,255,255,0.16), transparent 1px),
    repeating-radial-gradient(circle, rgba(255,255,255,0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.18;
  animation: missionUplinkNoise 180ms steps(2, end) infinite;
}

.mission-uplink-scanline-layer {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.15) 0,
    rgba(255,255,255,0.15) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.36;
  animation: transmissionScanlines 720ms linear infinite;
}

.mission-uplink-glow-sweep {
  inset: -8% -10%;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 42%,
      rgba(125, 211, 252, 0.12) 48%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(125, 211, 252, 0.12) 54%,
      transparent 62%,
      transparent 100%
    );
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: missionUplinkSweep 3.2s linear infinite;
}

.mission-uplink-transmission {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.78));
  padding: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.mission-uplink-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.88);
}

.mission-uplink-status {
  display: block;
  margin-top: 0.28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.88);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.28);
}

.mission-uplink-serial {
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(207, 250, 254, 0.56);
}

.mission-uplink-transmission-head {
  display: grid;
  gap: 0.18rem;
}

.mission-uplink-transmission-head p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.68);
}

.mission-uplink-transmission-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.46);
}

.mission-computer-monitor {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(27rem, 58svh, 35rem);
  min-height: 27rem;
  max-height: 35rem;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at 50% 8%, rgba(56, 189, 248, 0.14), transparent 38%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.035) inset,
    0 0 28px rgba(14, 165, 233, 0.12),
    inset 0 0 34px rgba(8, 47, 73, 0.38);
}

.mission-computer-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  background:
    linear-gradient(180deg, rgba(14, 116, 144, 0.24), rgba(8, 47, 73, 0.14)),
    rgba(2, 6, 23, 0.62);
  padding: 0.72rem 1rem;
}

.mission-computer-header p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.7);
}

.mission-computer-header span {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.45rem;
  background: rgba(2, 6, 23, 0.45);
  padding: 0.32rem 0.5rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.72);
}

.mission-computer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08), transparent 34%),
    repeating-linear-gradient(
      to bottom,
      rgba(125, 211, 252, 0.045) 0,
      rgba(125, 211, 252, 0.045) 1px,
      transparent 1px,
      transparent 5px
    ),
    rgba(2, 6, 23, 0.46);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: var(--mission-terminal-line-height);
  color: rgba(207, 250, 254, 0.78);
  scrollbar-color: rgba(125, 211, 252, 0.42) rgba(2, 6, 23, 0.35);
}

.mission-terminal-log {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.9rem 1rem 1.05rem;
}

.mission-terminal-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-width: 0;
  white-space: normal;
}

.mission-terminal-row--dc {
}

.mission-terminal-row--roll {
}

.mission-terminal-row--result {
  animation: missionResultPulse 1.6s ease-out 1;
}

.mission-terminal-row--result.mission-terminal-row--tone-amber {
  animation-name: missionResultPulseAmber;
}

.mission-terminal-row--result.mission-terminal-row--tone-rose {
  animation-name: missionResultPulseRose;
}

.mission-terminal-row--ledger {
  color: rgba(191, 219, 254, 0.76);
}

.mission-terminal-stamp {
  white-space: nowrap;
}

.mission-terminal-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.mission-uplink-comm-text {
  display: block;
  min-height: 3.75rem;
  max-height: 8rem;
  margin-top: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(207, 250, 254, 0.82);
}

.mission-uplink-comm-text[data-typing="1"]::after {
  content: "";
  display: inline-block;
  height: 0.95em;
  width: 0.5em;
  margin-left: 0.2rem;
  border-right: 1px solid rgba(125, 211, 252, 0.86);
  animation: missionUplinkCursor 0.72s steps(2, end) infinite;
  vertical-align: -0.12em;
}

@media (max-width: 900px) {
  .mission-action-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .mission-uplink-card {
    padding: 0.75rem;
  }

  .mission-uplink-visual-box {
    height: clamp(12rem, 40vw, 16rem);
  }

  .mission-computer-monitor {
    height: clamp(24rem, 62svh, 31rem);
    min-height: 24rem;
    max-height: 31rem;
  }
}

@media (max-width: 520px) {
  .mission-action-layout {
    gap: 0.85rem;
  }

  .mission-uplink-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .mission-uplink-level {
    align-self: flex-start;
  }

  .mission-uplink-visual-box {
    height: 12.5rem;
  }

  .mission-computer-monitor {
    height: 24rem;
    min-height: 24rem;
    max-height: 24rem;
  }

  .mission-computer-header {
    align-items: stretch;
    flex-direction: column;
    padding: 0.7rem 0.85rem;
  }

  .mission-computer-header span {
    align-self: flex-start;
  }

  .mission-terminal-log {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .mission-terminal-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.08rem;
  }

  .mission-terminal-stamp {
    white-space: normal;
  }
}

[data-mission-visual-state="complication"] .mission-uplink-visual-box,
[data-mission-visual-state="partial"] .mission-uplink-visual-box {
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.08) inset,
    0 0 30px rgba(251, 191, 36, 0.16);
}

[data-mission-visual-state="complication"] .mission-uplink-static-layer,
[data-mission-visual-state="partial"] .mission-uplink-static-layer {
  opacity: 0.48;
  animation-duration: 115ms;
}

[data-mission-visual-state="check"] .mission-uplink-visual-box {
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.1) inset,
    0 0 34px rgba(56, 189, 248, 0.18);
}

[data-mission-visual-state="check"] .mission-uplink-glow-sweep {
  opacity: 0.78;
  animation-duration: 1.8s;
}

[data-mission-visual-state="success"] .mission-uplink-visual-box {
  border-color: rgba(110, 231, 183, 0.36);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.08) inset,
    0 0 32px rgba(16, 185, 129, 0.16);
}

[data-mission-visual-state="success"] .mission-uplink-tint-layer {
  background:
    radial-gradient(circle at 50% 20%, rgba(110, 231, 183, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(20, 184, 166, 0.1), rgba(6, 95, 70, 0.24));
}

[data-mission-visual-state="failure"] .mission-uplink-visual-box {
  border-color: rgba(251, 113, 133, 0.4);
  box-shadow:
    0 0 0 1px rgba(251, 113, 133, 0.08) inset,
    0 0 32px rgba(244, 63, 94, 0.16);
}

[data-mission-visual-state="failure"] .mission-uplink-static-layer {
  opacity: 0.54;
  animation-duration: 95ms;
}

[data-mission-visual-state="failure"] .mission-uplink-droid-image {
  filter: contrast(1.16) saturate(0.68) brightness(0.78) hue-rotate(184deg);
}

@keyframes waveformIdle {
  0%, 100% { height: 0.45rem; opacity: 0.5; }
  50% { height: 0.8rem; opacity: 0.75; }
}

@keyframes waveformPlaying {
  0%, 100% { height: 0.5rem; }
  25% { height: 1.5rem; }
  50% { height: 0.95rem; }
  75% { height: 1.9rem; }
}

@keyframes transmissionImageJitter {
  0% { transform: scale(1.02) translate(0, 0); }
  20% { transform: scale(1.022) translate(1px, -1px); }
  40% { transform: scale(1.018) translate(-1px, 1px); }
  60% { transform: scale(1.024) translate(1px, 1px); }
  80% { transform: scale(1.02) translate(-1px, 0); }
  100% { transform: scale(1.02) translate(0, 0); }
}

@keyframes transmissionNoise {
  0% { transform: translate(0, 0); opacity: 0.26; }
  35% { transform: translate(-3px, 1px); opacity: 0.45; }
  70% { transform: translate(2px, -2px); opacity: 0.34; }
  100% { transform: translate(3px, 1px); opacity: 0.3; }
}

@keyframes transmissionScanlines {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

@keyframes transmissionSweep {
  0% { transform: translateY(-100%); opacity: 0; }
  18% { opacity: 0.55; }
  48% { opacity: 0.95; }
  82% { opacity: 0.45; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes missionUplinkNoise {
  0% { transform: translate(0, 0); opacity: 0.16; }
  35% { transform: translate(-2px, 1px); opacity: 0.36; }
  70% { transform: translate(2px, -1px); opacity: 0.24; }
  100% { transform: translate(2px, 1px); opacity: 0.2; }
}

@keyframes missionUplinkSweep {
  0% { transform: translateY(-100%); opacity: 0; }
  22% { opacity: 0.26; }
  52% { opacity: 0.58; }
  78% { opacity: 0.24; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes missionUplinkCursor {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes missionTacticalSweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes missionCombatSupportPulse {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0.58; }
  70%, 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

@keyframes missionTacticalNodePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.34), 0 0 1rem rgba(34, 211, 238, 0.62); }
  75%, 100% { box-shadow: 0 0 0 0.55rem rgba(34, 211, 238, 0), 0 0 1.2rem rgba(34, 211, 238, 0.5); }
}

@keyframes missionTacticalHazardRoute {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -7.2; }
}

@keyframes missionTacticalNoise {
  0% { transform: translateX(0); opacity: 0.28; }
  50% { transform: translateX(-0.35rem); opacity: 0.5; }
  100% { transform: translateX(0.25rem); opacity: 0.34; }
}

@keyframes missionResultPulse {
  0% {
    background: rgba(34, 197, 94, 0.16);
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
  38% {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.16);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes missionResultPulseAmber {
  0% {
    background: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 0 rgba(251, 191, 36, 0);
  }
  38% {
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.16);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 rgba(251, 191, 36, 0);
  }
}

@keyframes missionResultPulseRose {
  0% {
    background: rgba(244, 63, 94, 0.18);
    box-shadow: 0 0 0 rgba(251, 113, 133, 0);
  }
  38% {
    background: rgba(244, 63, 94, 0.1);
    box-shadow: 0 0 24px rgba(251, 113, 133, 0.16);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 rgba(251, 113, 133, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-waveform__bar {
    animation: none;
    height: 0.7rem;
  }

  .chat-transmission-droid-image,
  .chat-transmission-tint-layer,
  .chat-transmission-static-layer,
  .chat-transmission-scanline-layer,
  .chat-transmission-glow-sweep,
  .mission-uplink-static-layer,
  .mission-uplink-scanline-layer,
  .mission-uplink-glow-sweep,
  .mission-uplink-comm-text[data-typing="1"]::after,
  .mission-terminal-row--result,
  .mission-tactical-sweep,
  .mission-tactical-node.is-active .mission-tactical-node-dot,
  .mission-tactical-route.is-hazard-active,
  .mission-tactical-noise {
    animation: none;
  }

  .mission-tactical-marker {
    transition: none;
  }
}

#sprocket-pending.htmx-indicator {
  display: none;
}

#sprocket-pending.htmx-request,
.htmx-request #sprocket-pending {
  display: block;
}

.sprocket-avatar-img {
  object-position: 50% 24%;
  transform: scale(1.58);
  transform-origin: 50% 24%;
}

.sprocket-portrait-lens {
  object-position: 50% 22%;
  transform: scale(1.42);
  transform-origin: 50% 22%;
}

.sprocket-launcher-avatar {
  object-position: 50% 18%;
  transform: scale(1.72);
  transform-origin: 50% 18%;
}

input.input-glass,
select.input-glass,
textarea.input-glass {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: rgba(9, 31, 56, 0.72) !important;
  background-clip: padding-box !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  border-style: solid !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline-color: transparent !important;
  outline-style: solid !important;
  outline-width: 0 !important;
  outline-offset: 0 !important;
  --tw-ring-color: transparent !important;
  --tw-ring-offset-color: transparent !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

select.input-glass {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(34, 211, 238, 0.95) 50%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 50%,
    calc(100% - 0.7rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  padding-right: 2rem !important;
}

input.input-glass:hover,
select.input-glass:hover,
textarea.input-glass:hover {
  border-color: rgba(34, 211, 238, 0.9) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.22) !important;
}

input.input-glass:focus,
input.input-glass:focus-visible,
select.input-glass:focus,
select.input-glass:focus-visible,
textarea.input-glass:focus,
textarea.input-glass:focus-visible {
  border-color: rgba(34, 211, 238, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.78), 0 0 20px rgba(6, 182, 212, 0.45) !important;
  outline-color: transparent !important;
  outline-style: solid !important;
  outline-width: 0 !important;
  outline-offset: 0 !important;
}

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

.frontier-portfolio-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.frontier-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgb(103 232 249 / 0.12);
  border-radius: 0.45rem;
  background-color: rgb(2 6 23 / 0.24);
}

.frontier-command-metrics > div {
  min-width: 0;
  padding: 0.85rem;
}

.frontier-command-metrics > div + div {
  border-left: 1px solid rgb(103 232 249 / 0.1);
}

.frontier-command-metrics > div > span,
.frontier-return-metrics dt {
  display: block;
  color: rgb(165 243 252 / 0.48);
  font-size: 0.68rem;
  line-height: 1rem;
}

.frontier-command-metrics strong,
.frontier-return-metrics dd {
  display: block;
  margin-top: 0.25rem;
  color: rgb(236 254 255 / 0.92);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.15rem;
}

.frontier-return-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  border: 1px solid rgb(103 232 249 / 0.16);
  border-left-width: 3px;
  border-radius: 0.5rem;
  background-color: rgb(8 47 73 / 0.18);
  padding: 1.25rem;
}

.frontier-return-summary--ready {
  border-left-color: rgb(52 211 153 / 0.7);
}

.frontier-return-summary--warning {
  border-left-color: rgb(251 191 36 / 0.7);
}

.frontier-return-summary--waiting {
  border-left-color: rgb(148 163 184 / 0.65);
}

.frontier-return-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.frontier-production-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(103 232 249 / 0.12);
  border-bottom: 1px solid rgb(103 232 249 / 0.12);
}

.frontier-chain-stage {
  position: relative;
  min-width: 0;
  padding: 1rem 1.25rem 1rem 1rem;
}

.frontier-chain-stage + .frontier-chain-stage {
  border-left: 1px solid rgb(103 232 249 / 0.12);
}

.frontier-chain-stage:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -0.55rem;
  width: 1.1rem;
  height: 1.6rem;
  border: 1px solid rgb(103 232 249 / 0.2);
  border-radius: 0.3rem;
  background-color: rgb(8 18 35);
  color: rgb(103 232 249 / 0.7);
  content: ">";
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45rem;
  text-align: center;
  transform: translateY(-50%);
}

.frontier-chain-stage--limited {
  box-shadow: inset 0 -2px 0 rgb(251 191 36 / 0.55);
}

.frontier-chain-index {
  color: rgb(103 232 249 / 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1rem;
}

.frontier-flow-output {
  margin-top: 1rem;
  color: rgb(165 243 252 / 0.62);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1rem;
  text-transform: uppercase;
}

.frontier-bottleneck {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-left: 2px solid rgb(251 191 36 / 0.55);
  background-color: rgb(69 26 3 / 0.15);
  padding: 0.9rem 1rem;
}

.frontier-service-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.9fr);
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgb(103 232 249 / 0.12);
  background-color: rgb(8 47 73 / 0.12);
  padding: 1rem;
}

.frontier-service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgb(103 232 249 / 0.12);
  border-radius: 0.4rem;
}

.frontier-service-metrics > div {
  min-width: 0;
  padding: 0.75rem;
}

.frontier-service-metrics > div + div {
  border-left: 1px solid rgb(103 232 249 / 0.1);
}

.frontier-service-metrics dt,
.frontier-allocation-decision dt {
  color: rgb(165 243 252 / 0.48);
  font-size: 0.68rem;
  line-height: 1rem;
}

.frontier-service-metrics dd,
.frontier-allocation-decision dd {
  margin-top: 0.25rem;
  color: rgb(236 254 255 / 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15rem;
}

.frontier-allocation-decision {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: center;
  border-left: 2px solid rgb(34 211 238 / 0.5);
  background-color: rgb(8 47 73 / 0.16);
  padding: 1rem;
}

.frontier-allocation-decision dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.frontier-state {
  display: inline-flex;
  min-height: 1.75rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(103 232 249 / 0.2);
  border-radius: 0.35rem;
  background-color: rgb(8 47 73 / 0.3);
  padding: 0.25rem 0.55rem;
  color: rgb(207 250 254 / 0.8);
  font-size: 0.7rem;
  line-height: 1rem;
  white-space: nowrap;
}

.frontier-state--ready {
  border-color: rgb(52 211 153 / 0.28);
  background-color: rgb(6 78 59 / 0.24);
  color: rgb(209 250 229 / 0.9);
}

.frontier-state--waiting {
  border-color: rgb(148 163 184 / 0.22);
  background-color: rgb(30 41 59 / 0.32);
  color: rgb(203 213 225 / 0.72);
}

.frontier-state--warning {
  border-color: rgb(251 191 36 / 0.3);
  background-color: rgb(120 53 15 / 0.22);
  color: rgb(254 243 199 / 0.9);
}

.frontier-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgb(251 191 36 / 0.24);
  border-radius: 0.5rem;
  background-color: rgb(69 26 3 / 0.2);
  padding: 1.25rem;
}

.frontier-crew-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgb(103 232 249 / 0.12);
  border-radius: 0.4rem;
  background-color: rgb(2 6 23 / 0.22);
  padding: 0.65rem;
}

.frontier-blueprint {
  display: flex;
  min-height: 9.25rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid rgb(103 232 249 / 0.13);
  border-radius: 0.4rem;
  background-color: rgb(2 6 23 / 0.22);
  padding: 0.9rem;
}

@media (max-width: 1023px) {
  .frontier-status-grid,
  .frontier-portfolio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frontier-return-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-service-band,
  .frontier-allocation-decision {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .world-operation-signal {
    align-items: flex-start;
    flex-direction: column;
  }

  .frontier-status-grid,
  .frontier-portfolio-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-command-metrics,
  .frontier-return-metrics,
  .frontier-production-chain,
  .frontier-bottleneck {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-service-metrics,
  .frontier-allocation-decision dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .frontier-command-metrics > div + div,
  .frontier-chain-stage + .frontier-chain-stage {
    border-top: 1px solid rgb(103 232 249 / 0.1);
    border-left: 0;
  }

  .frontier-service-metrics > div + div {
    border-top: 1px solid rgb(103 232 249 / 0.1);
    border-left: 0;
  }

  .frontier-chain-stage:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.55rem;
    width: 1.6rem;
    height: 1.1rem;
    line-height: 0.95rem;
    transform: translateX(50%) rotate(90deg);
  }

  .frontier-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .frontier-crew-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .frontier-crew-row form {
    margin-left: auto;
  }
}

/* OX7 live operations console */
.frontier-console {
  --frontier-line: rgb(103 232 249 / 0.16);
  --frontier-line-strong: rgb(34 211 238 / 0.38);
  --frontier-screen: rgb(1 8 20 / 0.94);
  min-width: 0;
}

.frontier-ledger-balance {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-left: 2px solid rgb(34 211 238 / 0.58);
  background: rgb(8 47 73 / 0.3);
  padding: 0.45rem 0.75rem;
  color: rgb(207 250 254 / 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
}

.frontier-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 19rem);
  gap: 1rem;
  align-items: start;
}

.frontier-live-monitor,
.frontier-decision-rail,
.frontier-workspace,
.frontier-return-brief,
.frontier-incident-command {
  border: 1px solid var(--frontier-line);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgb(8 20 39 / 0.92), rgb(2 8 20 / 0.94));
  box-shadow: inset 0 1px 0 rgb(207 250 254 / 0.03), 0 12px 30px rgb(0 0 0 / 0.16);
}

.frontier-live-monitor {
  min-width: 0;
  overflow: hidden;
}

.frontier-monitor-header,
.frontier-decision-rail-head,
.frontier-workspace-heading,
.frontier-lane-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.frontier-monitor-header {
  min-height: 4.8rem;
  border-bottom: 1px solid var(--frontier-line);
  padding: 1rem 1.1rem;
}

.frontier-monitor-kicker,
.frontier-decision > span,
.frontier-workspace-heading span,
.frontier-workspace-action > span,
.frontier-active-build span,
.frontier-lane-summary span {
  color: rgb(103 232 249 / 0.55);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}

.frontier-monitor-header h4 {
  margin-top: 0.15rem;
  color: rgb(236 254 255 / 0.95);
  font-size: 1rem;
  font-weight: 650;
}

.frontier-monitor-command {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.frontier-sound-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgb(148 163 184 / 0.68);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.frontier-sound-toggle {
  display: inline-flex;
  min-width: 3.15rem;
  min-height: 1.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  border: 1px solid rgb(103 232 249 / 0.2);
  border-radius: 0.4rem;
  background: rgb(2 8 20 / 0.7);
  color: rgb(148 163 184 / 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
}

.frontier-sound-toggle i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgb(100 116 139);
}

.frontier-sound-toggle[aria-checked="true"] {
  border-color: rgb(52 211 153 / 0.35);
  color: rgb(167 243 208 / 0.86);
}

.frontier-sound-toggle[aria-checked="true"] i {
  background: rgb(52 211 153);
  box-shadow: 0 0 0.4rem rgb(52 211 153 / 0.5);
}

.frontier-sound-toggle:focus-visible {
  outline: 2px solid rgb(34 211 238 / 0.8);
  outline-offset: 2px;
}

.frontier-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgb(148 163 184 / 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.frontier-live-indicator i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgb(100 116 139);
}

.frontier-live-indicator.is-running { color: rgb(167 243 208); }
.frontier-live-indicator.is-running i {
  background: rgb(52 211 153);
  box-shadow: 0 0 0.65rem rgb(52 211 153 / 0.65);
  animation: frontier-live-pulse 1.8s ease-in-out infinite;
}

@keyframes frontier-live-pulse {
  50% { opacity: 0.45; }
}

.frontier-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--frontier-line);
}

.frontier-live-metric {
  display: grid;
  min-width: 0;
  min-height: 6.5rem;
  align-content: center;
  padding: 0.85rem 1rem;
}

.frontier-live-metric + .frontier-live-metric { border-left: 1px solid var(--frontier-line); }
.frontier-live-metric--primary { background: rgb(8 145 178 / 0.08); }
.frontier-live-metric > span,
.frontier-live-metric small {
  overflow-wrap: anywhere;
  color: rgb(165 243 252 / 0.48);
  font-size: 0.66rem;
  line-height: 1rem;
}

.frontier-live-metric strong {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
  color: rgb(236 254 255);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  line-height: 1.4rem;
}

.frontier-live-metric--primary strong { color: rgb(103 232 249); }

.frontier-settlement-line {
  display: flex;
  min-height: 2.4rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--frontier-line);
  background: rgb(15 23 42 / 0.5);
  padding: 0.45rem 1rem;
  color: rgb(148 163 184 / 0.62);
  font-size: 0.68rem;
}

.frontier-settlement-line strong { color: rgb(207 250 254 / 0.78); font-weight: 600; }
.frontier-snapshot-status { margin-left: auto; color: rgb(110 231 183 / 0.68); }
.frontier-snapshot-status.is-stale { color: rgb(251 191 36 / 0.85); }

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

.frontier-process-stage {
  position: relative;
  min-width: 0;
  min-height: 12.25rem;
  border: 1px solid var(--frontier-line);
  background: linear-gradient(180deg, rgb(8 47 73 / 0.2), rgb(2 6 23 / 0.48));
  padding: 0.75rem;
}

.frontier-process-stage:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.82rem;
  width: 0.9rem;
  border-top: 1px solid rgb(34 211 238 / 0.48);
  content: "";
}

.frontier-process-stage.is-limited { border-color: rgb(251 191 36 / 0.48); box-shadow: inset 0 -2px rgb(251 191 36 / 0.45); }
.frontier-process-stage.is-warning { background: linear-gradient(180deg, rgb(120 53 15 / 0.16), rgb(2 6 23 / 0.5)); }
.frontier-process-stage.is-waiting { opacity: 0.72; }

.frontier-process-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.frontier-process-index,
.frontier-process-state {
  color: rgb(103 232 249 / 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
}

.frontier-process-state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frontier-stage-crew { display: flex; min-height: 3.1rem; align-items: center; gap: 0.4rem; margin-top: 0.85rem; }
.frontier-stage-crew-unit { display: grid; width: 3rem; height: 3rem; place-items: center; }
.frontier-stage-crew-unit.is-leased { border: 1px dashed rgb(251 191 36 / 0.42); background: rgb(120 53 15 / 0.14); }
.frontier-stage-crew-unit i { color: rgb(253 230 138 / 0.82); font: 0.54rem/1 ui-monospace, monospace; font-style: normal; }
.frontier-stage-crew img {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgb(103 232 249 / 0.26);
  border-radius: 50%;
  background: rgb(2 6 23);
  object-fit: cover;
  object-position: center 18%;
}

.frontier-stage-crew span { color: rgb(100 116 139); font-family: ui-monospace, monospace; }
.frontier-process-stage h5 {
  min-height: 2.5rem;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  color: rgb(224 242 254 / 0.9);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15rem;
}

.frontier-throughput { margin-top: 0.45rem; color: rgb(103 232 249 / 0.62); font: 0.72rem/1.1rem ui-monospace, monospace; }
.frontier-throughput strong { color: rgb(236 254 255 / 0.92); font-size: 0.9rem; }
.frontier-utilization { display: grid; gap: 0.28rem; margin-top: 0.55rem; }
.frontier-utilization-label { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; color: rgb(148 163 184 / 0.66); font: 0.56rem/0.9rem ui-monospace, monospace; text-transform: uppercase; }
.frontier-utilization-label strong { color: rgb(165 243 252 / 0.9); font-size: 0.62rem; }
.frontier-utilization-track { height: 0.24rem; overflow: hidden; background: rgb(30 41 59 / 0.8); }
.frontier-utilization-track i { display: block; width: 0; height: 100%; background: rgb(34 211 238 / 0.76); transition: width 350ms ease; }
.frontier-process-stage > p { margin-top: 0.55rem; color: rgb(165 243 252 / 0.42); font-size: 0.62rem; line-height: 1rem; }

.frontier-storage-glyph {
  display: flex;
  width: 2.6rem;
  height: 3.1rem;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.24);
  margin-top: 0.85rem;
  padding: 0.2rem;
}
.frontier-storage-glyph i { display: block; width: 100%; background: linear-gradient(rgb(34 211 238 / 0.8), rgb(14 116 144 / 0.38)); transition: height 350ms ease; }

/* Cairnfall isometric mine-floor proof of concept */
.frontier-mine-floor {
  border-bottom: 1px solid var(--frontier-line);
  background: rgb(1 7 17 / 0.88);
}

.frontier-mine-floor-head {
  display: flex;
  min-height: 3.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgb(34 211 238 / 0.13);
  padding: 0.72rem 1rem;
}

.frontier-mine-floor-head > div { display: grid; gap: 0.05rem; }
.frontier-mine-floor-head span {
  color: rgb(103 232 249 / 0.52);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}
.frontier-mine-floor-head h4,
.frontier-mine-floor-head h5 { color: rgb(224 242 254 / 0.9); font-size: 0.82rem; font-weight: 650; }
.frontier-mine-floor-head p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.55rem;
  color: rgb(148 163 184 / 0.58);
  font: 0.58rem/0.85rem ui-monospace, monospace;
}
.frontier-mine-floor-head p i { width: 0.8rem; border-top: 2px solid rgb(34 211 238 / 0.66); }
.frontier-mine-floor-head p i.is-limit { border-color: rgb(251 191 36 / 0.75); }

.frontier-mine-floor-head > .frontier-mine-floor-tools,
.frontier-map-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.frontier-map-open {
  min-height: 1.9rem;
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
  color: rgb(207 250 254 / 0.88);
  font-size: 0.65rem;
  white-space: nowrap;
}

.frontier-map-controls {
  border-left: 1px solid rgb(34 211 238 / 0.18);
  padding-left: 0.55rem;
}

.frontier-map-controls button {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border: 1px solid rgb(34 211 238 / 0.3);
  border-radius: 0.35rem;
  background: rgb(3 18 35 / 0.9);
  padding: 0.3rem 0.55rem;
  color: rgb(207 250 254 / 0.82);
  font: 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.frontier-map-controls button:hover,
.frontier-map-controls button:focus-visible {
  border-color: rgb(34 211 238 / 0.72);
  color: rgb(236 254 255);
  box-shadow: 0 0 0.65rem rgb(34 211 238 / 0.18);
}

.frontier-map-controls .frontier-map-close {
  min-width: 3.8rem;
  border-color: rgb(251 191 36 / 0.36);
  color: rgb(254 240 138 / 0.9);
}

.frontier-map-controls > span {
  min-width: 3rem;
  color: rgb(103 232 249 / 0.68);
  font: 0.62rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
}

.frontier-isometric-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgb(10 25 43 / 0.8), rgb(2 8 18 / 0.95)),
    rgb(2 8 20);
  scrollbar-color: rgb(34 211 238 / 0.34) rgb(2 8 20);
  scrollbar-width: thin;
}

.frontier-mine-floor:not(.is-fullscreen) .frontier-isometric-viewport {
  min-height: 18.7rem;
  aspect-ratio: 1672 / 650;
}

.frontier-isometric-viewport:focus-visible {
  outline: 2px solid rgb(34 211 238 / 0.74);
  outline-offset: -2px;
}

.frontier-isometric-stage {
  width: 100%;
  min-width: 48rem;
  aspect-ratio: 1672 / 941;
  transform-origin: center;
  transition: transform 140ms ease-out;
}

.frontier-isometric-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 48rem;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgb(34 211 238 / 0.35);
  background-color: rgb(2 8 18);
  background-image:
    linear-gradient(180deg, rgb(2 8 18 / 0.03), rgb(2 8 18 / 0.24)),
    var(--frontier-scene-image);
  background-position: center;
  background-size: cover;
}

.frontier-isometric-scene.is-opportunity { min-height: 25rem; }

html.frontier-map-open,
body.frontier-map-open { overflow: hidden; }
html.frontier-map-open { scrollbar-gutter: auto; }

.frontier-mine-floor.is-fullscreen {
  position: fixed;
  z-index: 180;
  top: 0;
  left: 0;
  display: grid;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  background: rgb(1 6 15 / 0.99);
  box-shadow: inset 0 0 5rem rgb(8 145 178 / 0.08);
}

.frontier-mine-floor.is-fullscreen .frontier-mine-floor-head {
  position: relative;
  z-index: 3;
  min-height: 4.25rem;
  background: rgb(3 13 27 / 0.98);
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.frontier-mine-floor.is-fullscreen .frontier-isometric-viewport {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  contain: paint;
}

.frontier-mine-floor.is-fullscreen .frontier-isometric-viewport.is-dragging { cursor: grabbing; }
.frontier-mine-floor.is-fullscreen .frontier-isometric-viewport.is-dragging .frontier-isometric-stage { transition: none; }

.frontier-mine-floor.is-fullscreen .frontier-isometric-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1672px;
  height: 941px;
  min-width: 1672px;
  aspect-ratio: auto;
  will-change: transform;
}

.frontier-mine-floor.is-fullscreen .frontier-isometric-scene {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.frontier-mine-floor.is-fullscreen .frontier-station-inspector {
  position: relative;
  z-index: 3;
  min-height: 6.5rem;
  border-top-color: rgb(34 211 238 / 0.28);
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.frontier-mine-floor.is-fullscreen .frontier-mine-floor-head span { font-size: 0.68rem; }
.frontier-mine-floor.is-fullscreen .frontier-mine-floor-head h5 { font-size: 1rem; }
.frontier-mine-floor.is-fullscreen .frontier-mine-floor-head p { font-size: 0.68rem; line-height: 1rem; }
.frontier-mine-floor.is-fullscreen .frontier-map-controls button { min-width: 2.35rem; min-height: 2.2rem; font-size: 0.74rem; }
.frontier-mine-floor.is-fullscreen .frontier-map-controls .frontier-map-close { min-width: 4.5rem; }
.frontier-mine-floor.is-fullscreen .frontier-map-controls > span { font-size: 0.72rem; }
.frontier-mine-floor.is-fullscreen .frontier-station-inspector-identity > span { font-size: 0.66rem; }
.frontier-mine-floor.is-fullscreen .frontier-station-inspector h5 { font-size: 0.9rem; }
.frontier-mine-floor.is-fullscreen .frontier-station-inspector p { font-size: 0.74rem; line-height: 1rem; }
.frontier-mine-floor.is-fullscreen .frontier-station-inspector dt { font-size: 0.62rem; }
.frontier-mine-floor.is-fullscreen .frontier-station-inspector dd { font-size: 0.74rem; line-height: 1rem; }

@media (max-width: 640px) {
  .frontier-mine-floor.is-fullscreen .frontier-station-inspector h5 { font-size: 0.98rem; }
  .frontier-mine-floor.is-fullscreen .frontier-station-inspector p { font-size: 0.8rem; line-height: 1.08rem; }
  .frontier-mine-floor.is-fullscreen .frontier-station-inspector dt { font-size: 0.68rem; }
  .frontier-mine-floor.is-fullscreen .frontier-station-inspector dd { font-size: 0.8rem; line-height: 1.08rem; }
}

.frontier-isometric-scene::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(0 5 14 / 0.18), transparent 35% 70%, rgb(0 5 14 / 0.16)),
    linear-gradient(180deg, rgb(0 5 14 / 0.05) 58%, rgb(0 5 14 / 0.38));
  box-shadow: inset 0 0 3.5rem rgb(0 0 0 / 0.42);
  content: "";
  pointer-events: none;
}

.frontier-isometric-scene::after {
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: 3.6%;
  left: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(34 211 238 / 0.18), transparent);
  content: "";
}

.frontier-iso-rocks {
  position: absolute;
  z-index: -1;
  width: 15rem;
  height: 7rem;
  clip-path: polygon(0 70%, 11% 34%, 25% 58%, 39% 8%, 55% 52%, 70% 20%, 81% 57%, 100% 35%, 100% 100%, 0 100%);
  background: linear-gradient(145deg, rgb(45 55 62), rgb(14 25 33) 60%, rgb(5 13 21));
  opacity: 0.76;
}
.frontier-iso-rocks--north,
.frontier-iso-rocks--west { display: none; }

.frontier-facility-routes {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.frontier-facility-routes svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.frontier-facility-route-base,
.frontier-facility-route-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.frontier-facility-route-base {
  stroke: rgb(34 211 238 / 0.28);
  stroke-width: 4;
  filter: drop-shadow(0 0 4px rgb(34 211 238 / 0.2));
}
.frontier-facility-route-flow {
  stroke: rgb(103 232 249 / 0.9);
  stroke-width: 4;
  opacity: 0;
}
.frontier-isometric-scene.is-flowing .frontier-facility-route-flow {
  opacity: 0.72;
}
.frontier-facility-route-pulse {
  fill: rgb(8 145 178 / 0.9);
  stroke: rgb(103 232 249 / 0.82);
  stroke-width: 1.5;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgb(34 211 238 / 0.72));
}
.frontier-isometric-scene.is-flowing .frontier-facility-route-pulse { opacity: 1; }
.frontier-isometric-scene.is-derelict .frontier-facility-route-base {
  stroke: rgb(148 163 184 / 0.16);
  filter: none;
}
.frontier-isometric-scene.is-derelict .frontier-facility-route-flow,
.frontier-isometric-scene.is-derelict .frontier-facility-route-pulse { display: none; }
.frontier-isometric-scene.is-blocked .frontier-facility-route-base,
.frontier-isometric-scene.is-blocked .frontier-facility-route-flow { stroke: rgb(251 191 36 / 0.62); }
.frontier-isometric-scene.is-blocked .frontier-facility-route-pulse { fill: rgb(180 83 9 / 0.9); stroke: rgb(253 230 138 / 0.82); }

.frontier-iso-station {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.frontier-iso-station::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgb(103 232 249 / 0.12);
  background: rgb(1 9 21 / 0.16);
  box-shadow: none;
  content: "";
}
.frontier-iso-station:hover::before,
.frontier-iso-station.is-selected::before { border-color: rgb(34 211 238 / 0.82); background: rgb(8 145 178 / 0.12); box-shadow: 0 0 1.1rem rgb(34 211 238 / 0.22); }
.frontier-iso-station.is-limited::before { border-color: rgb(251 191 36 / 0.78); box-shadow: 0 0 1rem rgb(251 191 36 / 0.16); }
.frontier-iso-station.is-warning::after {
  position: absolute;
  top: 0.65rem;
  right: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgb(251 191 36);
  box-shadow: 0 0 0.55rem rgb(251 191 36 / 0.7);
  content: "";
}
.frontier-iso-station.is-waiting { filter: saturate(0.45); opacity: 0.7; }
.frontier-iso-station.is-active .frontier-iso-droid { filter: drop-shadow(0 0 0.45rem rgb(34 211 238 / 0.28)); }
.frontier-iso-station.is-locked { filter: saturate(0.3); opacity: 0.74; }
.frontier-iso-station.has-upgrade .frontier-iso-structure { opacity: 0.86; }
.frontier-iso-station.is-building .frontier-iso-structure { animation: frontier-build-pulse 1.8s ease-in-out infinite; opacity: 0.75; }
.frontier-iso-station:focus-visible { outline: 2px solid rgb(34 211 238 / 0.9); outline-offset: 2px; }

@keyframes frontier-build-pulse {
  50% { filter: drop-shadow(0 0 0.7rem rgb(251 191 36 / 0.68)); }
}

.frontier-iso-structure {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 1.5rem;
  width: 4.9rem;
  height: 3.9rem;
  filter: drop-shadow(0 0.45rem 0.35rem rgb(0 0 0 / 0.45));
  opacity: 0.12;
  transition: opacity 180ms ease, filter 180ms ease;
}
.frontier-iso-structure > i { position: absolute; display: block; }
.frontier-iso-extractor > i:first-child { inset: 0.5rem 0.2rem 0.25rem; clip-path: polygon(0 100%, 17% 25%, 70% 0, 100% 36%, 83% 100%); background: linear-gradient(145deg, rgb(75 85 99), rgb(28 37 45)); }
.frontier-iso-extractor > i:nth-child(2) { top: 0; right: 0.6rem; width: 0.35rem; height: 3rem; transform: rotate(30deg); background: rgb(251 191 36 / 0.7); }
.frontier-iso-extractor > i:nth-child(3) { right: 0.1rem; bottom: 0.1rem; width: 2.1rem; border-top: 0.25rem solid rgb(34 211 238 / 0.55); }
.frontier-iso-hauler > i:first-child { right: 0.2rem; bottom: 0.5rem; left: 0.2rem; height: 1.5rem; transform: skewY(18deg); background: rgb(55 65 81); }
.frontier-iso-hauler > i:nth-child(2) { top: 0.35rem; left: 0.85rem; width: 2.8rem; height: 1.6rem; clip-path: polygon(0 100%, 18% 0, 100% 20%, 83% 100%); background: rgb(30 64 75); box-shadow: inset 0 -0.2rem rgb(34 211 238 / 0.32); }
.frontier-iso-mill > i:first-child { right: 0.4rem; bottom: 0.2rem; left: 0.4rem; height: 2.8rem; background: linear-gradient(145deg, rgb(51 65 85), rgb(15 30 44)); }
.frontier-iso-mill > i:nth-child(2) { top: 0; left: 1rem; width: 0.75rem; height: 2rem; border: 1px solid rgb(103 232 249 / 0.3); background: rgb(15 23 42); }
.frontier-iso-mill > i:nth-child(3) { right: 0.75rem; bottom: 0.65rem; width: 1.5rem; height: 0.5rem; background: rgb(34 211 238 / 0.55); }
.frontier-iso-storage > i:first-child { right: 0.5rem; bottom: 0.25rem; left: 0.5rem; max-height: 3rem; background: linear-gradient(rgb(34 211 238 / 0.72), rgb(14 116 144 / 0.3)); transition: height 350ms ease; }
.frontier-iso-storage > i:nth-child(2),
.frontier-iso-storage > i:nth-child(3) { bottom: 0; width: 1.65rem; height: 3.6rem; border: 1px solid rgb(103 232 249 / 0.32); background: rgb(15 23 42 / 0.82); }
.frontier-iso-storage > i:nth-child(2) { left: 0.4rem; }
.frontier-iso-storage > i:nth-child(3) { right: 0.4rem; }
.frontier-iso-service > i:first-child { inset: 0.65rem 0.35rem 0.25rem; border: 1px solid rgb(52 211 153 / 0.35); background: rgb(6 78 59 / 0.28); }
.frontier-iso-service > i:nth-child(2) { top: 0.1rem; left: 2.2rem; width: 0.45rem; height: 3rem; background: rgb(52 211 153 / 0.55); box-shadow: 0 0 0.7rem rgb(52 211 153 / 0.24); }
.frontier-iso-freight > i:first-child { right: 0; bottom: 0.45rem; left: 0; height: 1rem; background: rgb(51 65 85); }
.frontier-iso-freight > i:nth-child(2) { top: 0.3rem; left: 0.45rem; width: 3.2rem; height: 2.4rem; clip-path: polygon(0 25%, 72% 0, 100% 48%, 25% 100%); background: rgb(30 64 75); }
.frontier-iso-freight > i:nth-child(3) { right: 0.45rem; bottom: 0.25rem; width: 0.65rem; height: 3.4rem; border-right: 2px solid rgb(34 211 238 / 0.55); border-top: 2px solid rgb(34 211 238 / 0.55); }

.frontier-iso-droid {
  position: absolute;
  z-index: 4;
  top: 0.2rem;
  right: 0.35rem;
  display: grid;
  width: 3.1rem;
  height: 4.7rem;
  place-items: end center;
  overflow: visible;
  pointer-events: none;
}
.frontier-iso-droid img {
  width: 100%;
  height: 100%;
  border: 1px solid rgb(34 211 238 / 0.88);
  background: transparent;
  box-shadow: 0 0 0.5rem rgb(34 211 238 / 0.24);
  filter: drop-shadow(0 0.35rem 0.28rem rgb(0 0 0 / 0.7));
  mix-blend-mode: normal;
  object-fit: contain;
  object-position: center bottom;
  padding: 0;
}
.frontier-iso-droid-stack {
  right: -0.35rem;
  width: 5.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
}
.frontier-iso-droid-stack img:only-child { grid-column: 2; }
.frontier-iso-droid b { margin-bottom: 1.35rem; color: rgb(148 163 184 / 0.52); font: 0.5rem/1 ui-monospace, monospace; }
.frontier-iso-droid--service { right: 0.15rem; }

.frontier-iso-expansion-lock {
  position: absolute;
  z-index: 4;
  top: -64px;
  left: 83px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px dashed rgb(103 232 249 / 0.55);
  background: rgb(1 9 21 / 0.78);
  color: rgb(103 232 249 / 0.7);
  font: 20px/1 ui-monospace, monospace;
  box-shadow: 0 0 0.8rem rgb(34 211 238 / 0.12);
}

.frontier-map-droid {
  position: absolute;
  z-index: 5;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.frontier-map-droid img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgb(34 211 238 / 0.88);
  background: transparent;
  box-shadow: 0 0 8px rgb(34 211 238 / 0.24);
  filter: drop-shadow(0 6px 5px rgb(0 0 0 / 0.7));
  object-fit: contain;
  object-position: center bottom;
  padding: 0;
}

.frontier-iso-label {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 43px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 6px;
  border-left: 2px solid rgb(34 211 238 / 0.45);
  background: rgb(1 9 21 / 0.93);
  padding: 6px 8px;
  box-shadow: 0 0.35rem 0.85rem rgb(0 0 0 / 0.3);
}
.frontier-iso-station.is-limited .frontier-iso-label { border-color: rgb(251 191 36 / 0.8); }
.frontier-iso-label small { grid-row: 1 / 3; color: rgb(103 232 249 / 0.46); font: 9px/25px ui-monospace, monospace; }
.frontier-iso-label strong { overflow: hidden; color: rgb(226 232 240 / 0.9); font-size: 10px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.frontier-iso-label em { overflow: hidden; color: rgb(103 232 249 / 0.56); font: normal 9px/13px ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }

.frontier-mine-floor.is-fullscreen .frontier-iso-label {
  min-height: 69px;
  gap: 0 10px;
  padding: 10px 12px;
}
.frontier-mine-floor.is-fullscreen .frontier-iso-label small { font-size: 12px; line-height: 40px; }
.frontier-mine-floor.is-fullscreen .frontier-iso-label strong { font-size: 16px; line-height: 23px; }
.frontier-mine-floor.is-fullscreen .frontier-iso-label em { font-size: 13px; line-height: 20px; }

.frontier-station-inspector {
  display: grid;
  min-height: 5rem;
  grid-template-columns: minmax(15rem, 1.2fr) minmax(22rem, 1.6fr) auto;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgb(34 211 238 / 0.15);
  background: rgb(3 13 27 / 0.94);
  padding: 0.75rem 1rem;
}
.frontier-station-inspector-identity { display: flex; min-width: 0; align-items: center; gap: 0.75rem; }
.frontier-station-inspector-identity > span {
  flex: none;
  border: 1px solid rgb(34 211 238 / 0.22);
  padding: 0.35rem 0.45rem;
  color: rgb(103 232 249 / 0.62);
  font: 0.56rem/0.75rem ui-monospace, monospace;
}
.frontier-station-inspector-identity > div { min-width: 0; }
.frontier-station-inspector h5 { color: rgb(236 254 255 / 0.92); font-size: 0.76rem; font-weight: 650; }
.frontier-station-inspector p { display: flex; flex-wrap: wrap; gap: 0.08rem 0.3rem; margin-top: 0.16rem; color: rgb(148 163 184 / 0.62); font-size: 0.61rem; line-height: 0.9rem; }
.frontier-station-inspector p strong { color: rgb(165 243 252 / 0.78); font-weight: 600; }
.frontier-station-inspector dl { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; }
.frontier-station-inspector dl div { min-width: 0; border-left: 1px solid rgb(34 211 238 / 0.18); padding-left: 0.55rem; }
.frontier-station-inspector dt { color: rgb(148 163 184 / 0.48); font-size: 0.54rem; text-transform: uppercase; }
.frontier-station-inspector dd { margin-top: 0.1rem; overflow-wrap: anywhere; color: rgb(224 242 254 / 0.84); font: 0.62rem/0.9rem ui-monospace, monospace; }
.frontier-station-inspector > button { white-space: nowrap; }

#claim-readiness,
#claim-roster,
#operating-preview,
#known-risk,
#material-strategy { scroll-margin-top: 1rem; }

.frontier-service-branch {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--frontier-line);
  border-bottom: 1px solid var(--frontier-line);
  background: rgb(15 23 42 / 0.38);
  padding: 0.75rem 1rem;
}
.frontier-service-branch > div { display: grid; gap: 0.1rem; }
.frontier-service-branch span { color: rgb(148 163 184 / 0.62); font-size: 0.63rem; text-transform: uppercase; }
.frontier-service-branch strong { color: rgb(203 213 225 / 0.78); font-size: 0.78rem; }
.frontier-service-branch p { max-width: 36rem; color: rgb(148 163 184 / 0.65); font-size: 0.68rem; text-align: right; }
.frontier-service-branch.is-active strong { color: rgb(167 243 208 / 0.86); }

.frontier-telemetry { background: var(--frontier-screen); padding: 0.8rem 1rem 1rem; }
.frontier-telemetry-head { display: flex; justify-content: space-between; color: rgb(34 211 238 / 0.45); font: 0.62rem/1rem ui-monospace, monospace; text-transform: uppercase; }
.frontier-telemetry-screen {
  display: grid;
  height: 5.6rem;
  grid-template-rows: repeat(4, 1.1rem);
  align-content: end;
  overflow: hidden;
  border-left: 1px solid rgb(34 211 238 / 0.2);
  margin-top: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: rgb(0 5 14 / 0.96);
}
.frontier-telemetry-screen p { overflow: hidden; color: rgb(165 243 252 / 0.65); font: 0.67rem/1.1rem ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.frontier-telemetry-screen p > span:first-child { color: rgb(34 211 238 / 0.48); }
.frontier-telemetry-screen p.is-warning { color: rgb(253 230 138 / 0.8); }

.frontier-decision-rail { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.frontier-decision-rail-head { min-height: 4.8rem; border-bottom: 1px solid var(--frontier-line); padding: 1rem; }
.frontier-decision-rail-head p { color: rgb(236 254 255 / 0.9); font-size: 0.84rem; font-weight: 650; }
.frontier-decision-rail-head span { color: rgb(103 232 249 / 0.45); font-size: 0.62rem; text-transform: uppercase; }
.frontier-decision { border-bottom: 1px solid var(--frontier-line); padding: 1rem; }
.frontier-decision--priority { background: rgb(8 145 178 / 0.07); }
.frontier-decision.is-warning { border-left: 2px solid rgb(251 191 36 / 0.55); }
.frontier-decision.is-ready { border-left: 2px solid rgb(52 211 153 / 0.5); }
.frontier-decision h4 { margin-top: 0.3rem; overflow-wrap: anywhere; color: rgb(236 254 255 / 0.9); font-size: 0.84rem; font-weight: 650; line-height: 1.2rem; }
.frontier-decision p { margin-top: 0.35rem; color: rgb(165 243 252 / 0.55); font-size: 0.7rem; line-height: 1.15rem; }
.frontier-decision a { display: inline-block; margin-top: 0.65rem; color: rgb(103 232 249 / 0.82); font-size: 0.68rem; font-weight: 650; }
.frontier-decision-foot { margin-top: auto; padding: 0.85rem 1rem; background: rgb(2 6 23 / 0.45); }
.frontier-decision-foot span { display: block; color: rgb(148 163 184 / 0.52); font-size: 0.62rem; text-transform: uppercase; }
.frontier-decision-foot strong { display: block; margin-top: 0.2rem; color: rgb(253 230 138 / 0.82); font-size: 0.72rem; }

.frontier-return-brief { overflow: hidden; }
.frontier-return-brief summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; list-style: none; }
.frontier-return-brief summary::-webkit-details-marker { display: none; }
.frontier-return-brief summary div { display: grid; gap: 0.1rem; }
.frontier-return-brief summary div span { color: rgb(103 232 249 / 0.52); font-size: 0.64rem; text-transform: uppercase; }
.frontier-return-brief summary div strong { color: rgb(167 243 208 / 0.86); font: 0.78rem/1.1rem ui-monospace, monospace; }
.frontier-return-brief-body { border-top: 1px solid var(--frontier-line); padding: 1rem; }
.frontier-return-brief-body > p { color: rgb(165 243 252 / 0.62); font-size: 0.72rem; line-height: 1.2rem; }
.frontier-return-brief-body dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; margin-top: 0.8rem; }
.frontier-return-brief-body dl div { border-left: 1px solid var(--frontier-line); padding-left: 0.65rem; }
.frontier-return-brief-body dt { color: rgb(148 163 184 / 0.52); font-size: 0.61rem; }
.frontier-return-brief-body dd { margin-top: 0.15rem; overflow-wrap: anywhere; color: rgb(226 232 240 / 0.84); font-size: 0.7rem; }

.frontier-incident-command { overflow: hidden; border-color: rgb(251 191 36 / 0.28); }
.frontier-incident-command article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; }
.frontier-incident-command article + article { border-top: 1px solid rgb(251 191 36 / 0.18); }
.frontier-incident-command span { color: rgb(253 230 138 / 0.58); font-size: 0.62rem; text-transform: uppercase; }
.frontier-incident-command h4 { margin-top: 0.15rem; color: rgb(254 243 199 / 0.9); font-size: 0.82rem; font-weight: 650; }
.frontier-incident-command p { margin-top: 0.25rem; color: rgb(254 243 199 / 0.58); font-size: 0.7rem; }

.frontier-workspace { min-width: 0; overflow: hidden; }
.frontier-workspace-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--frontier-line); background: rgb(2 6 23 / 0.35); scrollbar-width: thin; }
.frontier-workspace-tabs button { min-height: 2.9rem; flex: 1 0 auto; border-bottom: 2px solid transparent; padding: 0.65rem 1rem; color: rgb(148 163 184 / 0.68); font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.frontier-workspace-tabs button:hover { color: rgb(207 250 254 / 0.9); }
.frontier-workspace-tabs button[aria-selected="true"] { border-color: rgb(34 211 238); background: rgb(8 145 178 / 0.09); color: rgb(207 250 254); }
.frontier-workspace-panel { min-width: 0; padding: 1rem; }
.frontier-workspace-heading { margin-bottom: 1rem; }
.frontier-workspace-heading h4 { margin-top: 0.15rem; color: rgb(236 254 255 / 0.9); font-size: 0.9rem; font-weight: 650; }
.frontier-workspace-heading > p { color: rgb(165 243 252 / 0.48); font-size: 0.68rem; text-align: right; }

.frontier-crew-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.frontier-lane-row,
.frontier-workspace-action,
.frontier-inventory-summary,
.frontier-active-build,
.frontier-log-list article {
  min-width: 0;
  border: 1px solid var(--frontier-line);
  background: rgb(2 8 20 / 0.4);
  padding: 0.85rem;
}
.frontier-lane-summary h5 { margin-top: 0.1rem; color: rgb(224 242 254 / 0.88); font-size: 0.78rem; font-weight: 650; }
.frontier-lane-summary > strong { flex: none; color: rgb(103 232 249 / 0.75); font: 0.68rem/1rem ui-monospace, monospace; }
.frontier-lane-assignments { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.frontier-crew-row img { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.frontier-crew-row > div { display: grid; min-width: 0; flex: 1; }
.frontier-crew-row strong { overflow: hidden; color: rgb(226 232 240 / 0.88); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.frontier-crew-row span { overflow-wrap: anywhere; color: rgb(148 163 184 / 0.6); font-size: 0.62rem; line-height: 1rem; }
.frontier-crew-row--leased { border-style: dashed; border-color: rgb(251 191 36 / 0.26); background: rgb(120 53 15 / 0.08); }
.frontier-lease-mark { display: grid !important; width: 2.4rem; height: 2.4rem; flex: none !important; place-items: center; border: 1px solid rgb(251 191 36 / 0.3); color: rgb(253 230 138 / 0.82); font: 0.52rem/1 ui-monospace, monospace; }
.frontier-assign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; margin-top: 0.65rem; }
.frontier-empty-row { color: rgb(148 163 184 / 0.5); font-size: 0.68rem; }
.frontier-service-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; border-left: 2px solid rgb(52 211 153 / 0.45); margin-top: 0.8rem; background: rgb(6 78 59 / 0.1); padding: 0.75rem 0.85rem; }
.frontier-service-note strong { color: rgb(167 243 208 / 0.8); font-size: 0.7rem; }
.frontier-service-note span { color: rgb(203 213 225 / 0.68); font-size: 0.7rem; }
.frontier-service-note small { grid-column: 2; color: rgb(148 163 184 / 0.52); font-size: 0.62rem; }

.frontier-inventory-layout { display: block; }
.frontier-inventory-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.frontier-inventory-summary dt { color: rgb(148 163 184 / 0.5); font-size: 0.62rem; }
.frontier-inventory-summary dd { margin-top: 0.2rem; overflow-wrap: anywhere; color: rgb(236 254 255 / 0.88); font: 0.76rem/1.1rem ui-monospace, monospace; }
.frontier-inventory-summary > p { margin-top: 0.8rem; color: rgb(165 243 252 / 0.55); font-size: 0.68rem; }
.frontier-workspace-action h4 { margin-top: 0.15rem; color: rgb(236 254 255 / 0.9); font-size: 0.82rem; font-weight: 650; }
.frontier-workspace-action p { margin-top: 0.35rem; color: rgb(148 163 184 / 0.62); font-size: 0.68rem; line-height: 1.15rem; }
.frontier-workspace-action form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; margin-top: 0.7rem; }
.frontier-workspace-action small { display: block; margin-top: 0.5rem; color: rgb(103 232 249 / 0.5); font-size: 0.62rem; }

.frontier-market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.frontier-market-card,
.frontier-market-quote {
  min-width: 0;
  border: 1px solid rgb(34 211 238 / 0.17);
  background: linear-gradient(180deg, rgb(8 25 45 / 0.72), rgb(2 8 20 / 0.78));
  padding: 0.9rem;
}
.frontier-market-card > header,
.frontier-market-quote > header,
.frontier-market-quote > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.frontier-market-card header span,
.frontier-market-quote header span,
.frontier-negotiation-readout > span { color: rgb(103 232 249 / 0.58); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.frontier-market-card h4,
.frontier-market-quote h4 { margin-top: 0.1rem; color: rgb(236 254 255 / 0.92); font-size: 0.84rem; font-weight: 650; }
.frontier-market-card header > strong,
.frontier-market-quote header > strong { flex: none; color: rgb(110 231 183 / 0.9); font: 0.9rem/1.2rem ui-monospace, monospace; }
.frontier-market-card > p { min-height: 2.2rem; margin-top: 0.5rem; color: rgb(148 163 184 / 0.68); font-size: 0.68rem; line-height: 1.1rem; }
.frontier-market-card > dl,
.frontier-market-quote dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.7rem; }
.frontier-market-card dt,
.frontier-market-quote dt { color: rgb(148 163 184 / 0.5); font-size: 0.6rem; }
.frontier-market-card dd,
.frontier-market-quote dd { margin-top: 0.12rem; overflow-wrap: anywhere; color: rgb(226 232 240 / 0.84); font: 0.68rem/1rem ui-monospace, monospace; }
.frontier-market-form { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.frontier-market-form label { display: flex; justify-content: space-between; color: rgb(165 243 252 / 0.62); font-size: 0.64rem; font-weight: 650; }
.frontier-market-form label span { color: rgb(148 163 184 / 0.46); font-weight: 500; }
.frontier-market-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; }
.frontier-market-amount button { min-width: 3.25rem; border-radius: 0.35rem; padding: 0.4rem 0.7rem; font-size: 0.68rem; }
.frontier-market-card > small { display: block; margin-top: 0.55rem; color: rgb(103 232 249 / 0.5); font-size: 0.61rem; }

.frontier-market-quote { margin-top: 0.8rem; border-color: rgb(34 211 238 / 0.32); background: linear-gradient(135deg, rgb(8 47 73 / 0.5), rgb(2 8 20 / 0.9) 58%); }
.frontier-market-quote.is-settled { border-color: rgb(52 211 153 / 0.34); }
.frontier-market-quote.is-expired { border-color: rgb(251 191 36 / 0.28); }
.frontier-quote-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr); gap: 0.8rem; margin-top: 0.8rem; }
.frontier-negotiation-readout { border-left: 2px solid rgb(34 211 238 / 0.34); background: rgb(1 10 25 / 0.68); padding: 0.7rem 0.8rem; }
.frontier-negotiation-readout strong { display: block; margin-top: 0.2rem; color: rgb(224 242 254 / 0.9); font-size: 0.74rem; }
.frontier-negotiation-readout p { margin-top: 0.3rem; color: rgb(165 243 252 / 0.72); font: 0.66rem/1rem ui-monospace, monospace; }
.frontier-negotiation-readout small { display: block; margin-top: 0.35rem; color: rgb(110 231 183 / 0.72); font-size: 0.62rem; }
.frontier-market-quote > footer { border-top: 1px solid rgb(34 211 238 / 0.13); margin-top: 0.8rem; padding-top: 0.75rem; }
.frontier-market-quote > footer p { color: rgb(148 163 184 / 0.66); font-size: 0.66rem; }

.frontier-active-build { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; margin-bottom: 0.8rem; }
.frontier-active-build h5 { color: rgb(236 254 255 / 0.9); font-size: 0.78rem; font-weight: 650; }
.frontier-active-build > strong { color: rgb(103 232 249 / 0.7); font: 0.67rem/1rem ui-monospace, monospace; }
.frontier-build-progress { grid-column: 1 / -1; height: 0.2rem; background: rgb(30 41 59); }
.frontier-build-progress i { display: block; height: 100%; background: rgb(34 211 238); }
.frontier-build-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.45rem; }
.frontier-construction-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.8rem; }
.frontier-construction-resources div { border-left: 1px solid rgb(34 211 238 / 0.2); background: rgb(2 8 20 / 0.4); padding: 0.55rem 0.65rem; }
.frontier-construction-resources span { display: block; color: rgb(148 163 184 / 0.56); font-size: 0.61rem; }
.frontier-construction-resources strong { display: block; margin-top: 0.15rem; overflow-wrap: anywhere; color: rgb(224 242 254 / 0.86); font: 0.68rem/1rem ui-monospace, monospace; }
.frontier-supplier-contracts { margin-bottom: 0.8rem; border: 1px solid rgb(34 211 238 / 0.14); background: rgb(2 8 20 / 0.35); }
.frontier-supplier-contracts summary { display: flex; cursor: pointer; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem; color: rgb(207 250 254 / 0.82); font-size: 0.7rem; font-weight: 650; }
.frontier-supplier-contracts summary span { color: rgb(148 163 184 / 0.5); font-size: 0.61rem; font-weight: 500; }
.frontier-supplier-contracts > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; border-top: 1px solid rgb(34 211 238 / 0.12); padding: 0.7rem; }
.frontier-supplier-contracts article { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 0.6rem; border: 1px solid rgb(34 211 238 / 0.12); padding: 0.65rem; }
.frontier-supplier-contracts article > div { display: grid; min-width: 0; }
.frontier-supplier-contracts strong { color: rgb(226 232 240 / 0.86); font-size: 0.68rem; }
.frontier-supplier-contracts article span,
.frontier-supplier-contracts small { color: rgb(148 163 184 / 0.58); font-size: 0.6rem; line-height: 0.95rem; }
.frontier-blueprint-requirements { display: grid; gap: 0.2rem; margin-top: 0.65rem; }
.frontier-blueprint-requirements div { display: flex; justify-content: space-between; gap: 0.6rem; color: rgb(148 163 184 / 0.56); font-size: 0.61rem; }
.frontier-blueprint-requirements div.is-ready { color: rgb(110 231 183 / 0.72); }
.frontier-blueprint-requirements dd { overflow-wrap: anywhere; text-align: right; }
.frontier-blueprint-readiness,
.frontier-blueprint-lock { margin-top: 0.65rem; color: rgb(251 191 36 / 0.62); font-size: 0.61rem; line-height: 0.95rem; }
.frontier-blueprint-readiness.is-ready { color: rgb(110 231 183 / 0.72); }
.frontier-blueprint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.frontier-workspace-note { margin-top: 0.75rem; color: rgb(251 191 36 / 0.68); font-size: 0.67rem; }
.frontier-log-list { display: grid; gap: 0.55rem; }
.frontier-log-list article > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.frontier-log-list strong { color: rgb(226 232 240 / 0.85); font-size: 0.72rem; }
.frontier-log-list time { flex: none; color: rgb(103 232 249 / 0.45); font: 0.62rem/1rem ui-monospace, monospace; }
.frontier-log-list p { margin-top: 0.3rem; color: rgb(148 163 184 / 0.58); font-size: 0.68rem; line-height: 1.1rem; }

@media (max-width: 1179px) {
  .frontier-live-layout { grid-template-columns: minmax(0, 1fr); }
  .frontier-decision-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .frontier-decision-rail-head,
  .frontier-decision-foot { grid-column: 1 / -1; }
  .frontier-decision { border-right: 1px solid var(--frontier-line); }
  .frontier-station-inspector { grid-template-columns: minmax(0, 1fr) auto; }
  .frontier-station-inspector dl { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 779px) {
  .frontier-monitor-header { align-items: flex-start; flex-direction: column; }
  .frontier-monitor-command { width: 100%; justify-content: space-between; }
  .frontier-live-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-live-metric:nth-child(3) { border-top: 1px solid var(--frontier-line); border-left: 0; }
  .frontier-live-metric:nth-child(4) { border-top: 1px solid var(--frontier-line); }
  .frontier-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-process-stage:nth-child(2)::after { display: none; }
  .frontier-decision-rail { grid-template-columns: minmax(0, 1fr); }
  .frontier-decision-rail-head,
  .frontier-decision-foot { grid-column: auto; }
  .frontier-return-brief-body dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-crew-grid,
  .frontier-inventory-layout,
  .frontier-market-grid,
  .frontier-quote-layout { grid-template-columns: minmax(0, 1fr); }
  .frontier-blueprint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-construction-resources,
  .frontier-supplier-contracts > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-incident-command article { align-items: flex-start; flex-direction: column; }
  .frontier-isometric-stage,
  .frontier-isometric-scene { min-width: 46rem; min-height: 24rem; }
  .frontier-mine-floor.is-fullscreen .frontier-isometric-stage { min-width: 1672px; min-height: 0; }
  .frontier-mine-floor.is-fullscreen .frontier-isometric-scene { min-width: 0; min-height: 0; }
  .frontier-station-inspector { grid-template-columns: minmax(0, 1fr); }
  .frontier-station-inspector dl { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-station-inspector > button { width: 100%; }
}

@media (max-width: 519px) {
  .frontier-live-metrics,
  .frontier-process,
  .frontier-blueprint-grid { grid-template-columns: minmax(0, 1fr); }
  .frontier-construction-resources,
  .frontier-supplier-contracts > div { grid-template-columns: minmax(0, 1fr); }
  .frontier-live-metric + .frontier-live-metric { border-top: 1px solid var(--frontier-line); border-left: 0; }
  .frontier-process-stage { min-height: 10.5rem; }
  .frontier-process-stage:not(:last-child)::after { display: none; }
  .frontier-settlement-line { align-items: flex-start; flex-direction: column; }
  .frontier-snapshot-status { margin-left: 0; }
  .frontier-service-branch { align-items: flex-start; flex-direction: column; }
  .frontier-service-branch p { text-align: left; }
  .frontier-return-brief summary { align-items: flex-start; flex-direction: column; }
  .frontier-return-brief-body dl,
  .frontier-inventory-summary dl { grid-template-columns: minmax(0, 1fr); }
  .frontier-workspace-panel { padding: 0.75rem; }
  .frontier-workspace-heading { align-items: flex-start; flex-direction: column; }
  .frontier-workspace-heading > p { text-align: left; }
  .frontier-assign-row,
  .frontier-workspace-action form { grid-template-columns: minmax(0, 1fr); }
  .frontier-service-note { grid-template-columns: minmax(0, 1fr); }
  .frontier-service-note small { grid-column: auto; }
  .frontier-market-card > header,
  .frontier-market-quote > header,
  .frontier-market-quote > footer { align-items: flex-start; flex-direction: column; }
  .frontier-market-card > dl,
  .frontier-market-quote dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-mine-floor-head { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .frontier-mine-floor-head p { justify-content: flex-start; }
  .frontier-mine-floor-tools { width: 100%; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
  .frontier-map-controls { width: 100%; border-top: 1px solid rgb(34 211 238 / 0.12); border-left: 0; padding-top: 0.45rem; padding-left: 0; }
  .frontier-map-controls button { flex: 1 1 auto; }
  .frontier-mine-floor.is-fullscreen { grid-template-rows: auto minmax(12rem, 1fr) 15rem; }
  .frontier-mine-floor.is-fullscreen .frontier-mine-floor-head { min-height: 6.7rem; }
  .frontier-mine-floor.is-fullscreen .frontier-isometric-stage { width: 1672px; height: 941px; min-width: 1672px; }
  .frontier-mine-floor.is-fullscreen .frontier-station-inspector { height: 15rem; min-height: 15rem; max-height: 15rem; overflow-y: auto; }
  .frontier-station-inspector { padding: 0.7rem 0.75rem; }
  .frontier-station-inspector-identity { align-items: flex-start; flex-direction: column; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .frontier-live-indicator.is-running i { animation: none; }
  .frontier-utilization i,
  .frontier-storage-glyph i { transition: none; }
  .frontier-isometric-scene.is-flowing .frontier-facility-route-pulse { display: none; }
}

/* W3.2 operations game board */
.frontier-facility-header h3 { letter-spacing: 0; }

.frontier-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.frontier-market-shortcut {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.frontier-live-flow {
  border-bottom: 1px solid var(--frontier-line);
  background:
    linear-gradient(90deg, rgb(6 182 212 / 0.1), transparent 68%),
    rgb(1 7 18 / 0.88);
  padding: 0.85rem 1rem 1rem;
}
.frontier-live-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.frontier-live-flow-head span,
.frontier-live-flow dt,
.frontier-shift-channel header span {
  color: rgb(103 232 249 / 0.66);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}
.frontier-live-flow-head small,
.frontier-shift-channel header small { color: rgb(148 163 184 / 0.54); font: 0.6rem/1rem ui-monospace, monospace; text-transform: uppercase; }
.frontier-live-flow dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.7rem; }
.frontier-live-flow dl > div {
  min-width: 0;
  border: 1px solid rgb(34 211 238 / 0.13);
  background: rgb(7 20 38 / 0.7);
  padding: 0.65rem 0.75rem;
}
.frontier-live-flow dd {
  display: flex;
  min-height: 1.8rem;
  align-items: baseline;
  margin-top: 0.18rem;
  overflow: hidden;
  color: rgb(236 254 255 / 0.97);
  font: 1.22rem/1.6rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.frontier-live-flow dd small { color: rgb(103 232 249 / 0.58); font: inherit; }
.frontier-live-flow dl > div > small { display: block; color: rgb(110 231 183 / 0.78); font: 0.63rem/1rem ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.frontier-resource-board {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
  border-bottom: 1px solid var(--frontier-line);
  background:
    linear-gradient(90deg, rgb(8 145 178 / 0.11), transparent 55%),
    rgb(2 8 20 / 0.62);
}

.frontier-resource-total { padding: 1.15rem 1.25rem; }
.frontier-resource-total > span,
.frontier-resource-board dt,
.frontier-status-strip span {
  color: rgb(103 232 249 / 0.62);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}
.frontier-resource-total strong {
  display: block;
  margin-top: 0.2rem;
  color: rgb(236 254 255 / 0.96);
  font: 2rem/2.35rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.frontier-resource-total strong small { color: rgb(103 232 249 / 0.55); font-size: 0.75rem; }
.frontier-resource-total p { color: rgb(110 231 183 / 0.82); font: 0.75rem/1.1rem ui-monospace, monospace; }
.frontier-resource-board dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frontier-resource-board dl div { display: grid; align-content: center; border-left: 1px solid var(--frontier-line); padding: 0.9rem 1rem; }
.frontier-resource-board dd { margin-top: 0.2rem; overflow-wrap: anywhere; color: rgb(226 232 240 / 0.9); font: 0.8rem/1.15rem ui-monospace, monospace; }

.hypercore-counter-board,
.hypercore-power-board {
  display: grid;
  border-bottom: 1px solid var(--frontier-line);
  background: linear-gradient(90deg, rgb(8 145 178 / 0.11), transparent 58%), rgb(2 8 20 / 0.66);
}
.hypercore-counter-board { grid-template-columns: minmax(0, 1.75fr) minmax(15rem, 0.75fr); }
.hypercore-power-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hypercore-counter-board > section,
.hypercore-power-board > section {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 1rem 1.15rem;
}
.hypercore-counter-board > section { min-height: 7.4rem; }
.hypercore-power-board > section { min-height: 10rem; }
.hypercore-counter-board > section + section,
.hypercore-power-board > section + section { border-left: 1px solid var(--frontier-line); }
.hypercore-power-board { background: rgb(2 8 20 / 0.78); }
.hypercore-counter-board section > span,
.hypercore-power-board section > span,
.hypercore-diagnostic-list dt {
  color: rgb(103 232 249 / 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1rem;
  text-transform: uppercase;
}
.hypercore-counter-board section > strong,
.hypercore-power-board section > strong {
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  color: rgb(236 254 255 / 0.97);
  font: 1.5rem/1.8rem ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.hypercore-counter-board section > strong small,
.hypercore-power-board section > strong small { color: rgb(165 243 252 / 0.55); font-size: 0.72rem; }
.hypercore-counter-board section > p,
.hypercore-power-board section > p {
  margin-top: 0.35rem;
  color: rgb(110 231 183 / 0.82);
  font: 0.7rem/1.05rem ui-monospace, monospace;
}
.hypercore-counter-board section > p.is-draining { color: rgb(251 191 36 / 0.95); }
.hypercore-reserve-track {
  height: 0.55rem;
  margin-top: 0.65rem;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.2);
  background: rgb(2 6 23 / 0.86);
}
.hypercore-reserve-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgb(8 145 178 / 0.9), rgb(34 211 238 / 0.96));
  box-shadow: 0 0 0.7rem rgb(34 211 238 / 0.42);
  transition: width 300ms ease;
}
.hypercore-flow-panel dl {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.55rem;
  color: rgb(165 243 252 / 0.66);
  font: 0.68rem/1rem ui-monospace, monospace;
}
.hypercore-flow-panel dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}
.hypercore-flow-panel dd { color: rgb(226 232 240 / 0.84); white-space: nowrap; }
.hypercore-power-board section > small {
  margin-top: 0.55rem;
  color: rgb(165 243 252 / 0.58);
  font: 0.68rem/1.05rem ui-monospace, monospace;
}
.hypercore-grade-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.22rem;
  margin-top: 0.55rem;
}
.hypercore-grade-track i {
  height: 0.42rem;
  border: 1px solid rgb(103 232 249 / 0.18);
  background: rgb(15 23 42 / 0.82);
}
.hypercore-grade-track i.is-active {
  border-color: rgb(103 232 249 / 0.65);
  background: rgb(34 211 238 / 0.9);
  box-shadow: 0 0 0.55rem rgb(34 211 238 / 0.36);
}
.hypercore-assignment-track {
  position: relative;
  height: 0.45rem;
  margin-top: 0.55rem;
  overflow: hidden;
  border: 1px solid rgb(103 232 249 / 0.16);
  background: rgb(2 6 23 / 0.82);
}
.hypercore-assignment-track i {
  position: relative;
  z-index: 2;
  display: block;
  height: 100%;
  transform-origin: left center;
  animation: hypercore-load-in 650ms ease-out both, hypercore-load-pulse 2.4s ease-in-out 650ms infinite;
  background: linear-gradient(90deg, rgb(8 145 178 / 0.92), rgb(34 211 238 / 0.92));
  box-shadow: 0 0 0.65rem rgb(34 211 238 / 0.35);
}
.hypercore-assignment-track b {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  display: block;
  background: repeating-linear-gradient(
    135deg,
    rgb(165 243 252 / 0.44) 0,
    rgb(165 243 252 / 0.44) 0.28rem,
    rgb(14 116 144 / 0.18) 0.28rem,
    rgb(14 116 144 / 0.18) 0.56rem
  );
}
.hypercore-assignment-track.is-reconfiguring b::after {
  position: absolute;
  top: -0.18rem;
  right: -1px;
  bottom: -0.18rem;
  width: 2px;
  background: rgb(165 243 252 / 0.95);
  box-shadow: 0 0 0.55rem rgb(34 211 238 / 0.72);
  content: "";
}
.hypercore-allocation-select:disabled,
.hypercore-allocation-apply:disabled {
  cursor: wait;
  opacity: 0.58;
}
@keyframes hypercore-load-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes hypercore-load-pulse {
  0%, 100% { filter: brightness(0.9); }
  50% { filter: brightness(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .hypercore-assignment-track i { animation: none; }
}
.hypercore-diagnostic-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid rgb(103 232 249 / 0.08);
}
.hypercore-diagnostic-list dd {
  color: rgb(226 232 240 / 0.84);
  font: 0.7rem/1rem ui-monospace, monospace;
  text-align: right;
  white-space: nowrap;
}

.frontier-game-layout .frontier-process { padding: 1rem; }
.frontier-game-layout .frontier-process-stage {
  min-height: 15.2rem;
  background: linear-gradient(180deg, rgb(15 34 57 / 0.78), rgb(3 11 25 / 0.92));
  padding: 0.85rem;
}
.frontier-game-layout .frontier-stage-crew { min-height: 5.1rem; margin-top: 0.65rem; }
.frontier-game-layout .frontier-stage-crew img {
  width: 4.1rem;
  height: 4.9rem;
  border: 0;
  border-radius: 0.25rem;
  background: radial-gradient(circle at 50% 42%, rgb(34 211 238 / 0.12), transparent 68%);
  object-fit: contain;
  object-position: center;
}
.frontier-game-layout .frontier-stage-crew span { font-size: 0.72rem; }
.frontier-game-layout .frontier-process-stage h5 { margin-top: 0.45rem; font-size: 0.8rem; }
.frontier-stage-action {
  min-height: 2rem;
  margin-top: 0.3rem;
  color: rgb(203 213 225 / 0.76);
  font-size: 0.64rem;
  line-height: 0.95rem;
}
.frontier-game-layout .frontier-throughput { font-size: 0.7rem; }
.frontier-game-layout .frontier-throughput strong { font-size: 0.86rem; }
.frontier-game-layout .frontier-storage-glyph { min-height: 5rem; margin-top: 0.7rem; }

.frontier-lot-cycle { margin-top: 0.55rem; }
.frontier-lot-cycle > div:first-child { display: flex; justify-content: space-between; gap: 0.5rem; color: rgb(103 232 249 / 0.54); font: 0.58rem/0.9rem ui-monospace, monospace; text-transform: uppercase; }
.frontier-lot-cycle strong { color: rgb(203 213 225 / 0.66); font-weight: 500; white-space: nowrap; }
.frontier-lot-cycle > div:nth-child(2) { height: 0.22rem; margin-top: 0.25rem; overflow: hidden; background: rgb(30 41 59 / 0.85); }
.frontier-lot-cycle i { display: block; height: 100%; background: rgb(34 211 238 / 0.8); transition: width 100ms linear; }

.frontier-shift-channel { border-top: 1px solid var(--frontier-line); background: rgb(1 7 18 / 0.78); padding: 0.7rem 1rem 0.8rem; }
.frontier-shift-channel header { display: flex; justify-content: space-between; gap: 1rem; }
.frontier-shift-channel > div { min-height: 4.15rem; margin-top: 0.35rem; }
.frontier-shift-channel p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem; overflow: hidden; color: rgb(203 213 225 / 0.68); font: 0.63rem/1.02rem ui-monospace, monospace; }
.frontier-shift-channel p > span:first-child { color: rgb(34 211 238 / 0.52); text-transform: uppercase; }
.frontier-shift-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frontier-shift-channel p strong { color: rgb(165 243 252 / 0.74); font-weight: 600; }
.frontier-shift-channel p.is-warning { color: rgb(253 230 138 / 0.82); }

.frontier-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--frontier-line);
  background: rgb(2 6 23 / 0.44);
}
.frontier-status-strip > div { min-width: 0; padding: 0.75rem 1rem; }
.frontier-status-strip > div + div { border-left: 1px solid var(--frontier-line); }
.frontier-status-strip strong { display: block; margin-top: 0.18rem; overflow-wrap: anywhere; color: rgb(203 213 225 / 0.82); font-size: 0.72rem; line-height: 1.05rem; }
.frontier-service-status small { display: block; margin-top: 0.28rem; color: rgb(148 163 184 / 0.62); font-size: 0.61rem; line-height: 0.9rem; }

.frontier-system-detail { border-top: 1px solid var(--frontier-line); background: var(--frontier-screen); }
.frontier-system-detail summary { display: flex; cursor: pointer; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; color: rgb(103 232 249 / 0.6); font: 0.7rem/1rem ui-monospace, monospace; list-style: none; text-transform: uppercase; }
.frontier-system-detail summary::-webkit-details-marker { display: none; }
.frontier-system-detail[open] summary { border-bottom: 1px solid var(--frontier-line); }
.frontier-system-detail .frontier-telemetry-screen { padding: 0.8rem 1rem 1rem; }

.opportunity-review-split {
  display: grid;
  gap: 1.5rem;
}

.opportunity-cost-grid--header { display: none; }
.opportunity-cost-grid--row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  padding: 0.9rem 0;
}
.opportunity-cost-grid--row + .opportunity-cost-grid--row { border-top: 1px solid rgb(165 243 252 / 0.1); }
.opportunity-cost-project {
  grid-column: 1 / -1;
  color: rgb(207 250 254 / 0.82);
  line-height: 1.25rem;
}
.opportunity-cost-cell {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgb(236 254 255 / 0.94);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.opportunity-cost-cell small {
  color: rgb(165 243 252 / 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}
.opportunity-cost-cell--empty { color: rgb(148 163 184 / 0.4); }
.opportunity-cost-cell--gc {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(165 243 252 / 0.08);
  padding-top: 0.55rem;
  color: rgb(167 243 208 / 0.95);
  font-weight: 700;
}

.ventures-summary-grid,
.ventures-position-grid,
.ventures-contract-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
  border: 1px solid rgb(103 232 249 / 0.12);
  background: rgb(2 8 23 / 0.44);
}
.ventures-summary-grid > div,
.ventures-position-grid > div,
.ventures-contract-grid > div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
}
.ventures-summary-grid > div + div,
.ventures-position-grid > div + div,
.ventures-contract-grid > div + div { border-left: 1px solid rgb(103 232 249 / 0.1); }
.ventures-summary-grid dt,
.ventures-position-grid dt,
.ventures-contract-grid dt {
  color: rgb(165 243 252 / 0.54);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 0.95rem;
  text-transform: uppercase;
}
.ventures-summary-grid dd {
  margin-top: 0.28rem;
  color: rgb(236 254 255 / 0.95);
  font: 700 1.2rem/1.45rem ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.ventures-summary-grid small {
  display: block;
  margin-top: 0.18rem;
  color: rgb(148 163 184 / 0.56);
  font-size: 0.66rem;
}
.ventures-position-grid dd,
.ventures-contract-grid dd {
  margin-top: 0.28rem;
  color: rgb(226 232 240 / 0.88);
  font-size: 0.75rem;
  line-height: 1.05rem;
  overflow-wrap: anywhere;
}
.ventures-position-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.ventures-position-actions p { max-width: 48rem; color: rgb(165 243 252 / 0.56); font-size: 0.75rem; line-height: 1.15rem; }
.ventures-offering-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ventures-offering-card { display: flex; min-height: 24rem; flex-direction: column; padding: 1rem; }
.ventures-offering-card > header,
.ventures-review-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ventures-offering-card > header p,
.ventures-review-heading > div > p { color: rgb(103 232 249 / 0.55); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; }
.ventures-offering-card > header h4 { margin-top: 0.22rem; color: rgb(236 254 255 / 0.96); font-size: 0.95rem; font-weight: 700; }
.ventures-risk {
  flex: none;
  border: 1px solid rgb(103 232 249 / 0.25);
  padding: 0.25rem 0.45rem;
  color: rgb(165 243 252 / 0.82);
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ventures-risk--development { border-color: rgb(251 191 36 / 0.35); color: rgb(253 230 138 / 0.88); }
.ventures-offering-purpose { min-height: 3.25rem; margin-top: 0.8rem; color: rgb(203 213 225 / 0.72); font-size: 0.78rem; line-height: 1.08rem; }
.ventures-offering-card > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.8rem; border-top: 1px solid rgb(103 232 249 / 0.1); border-left: 1px solid rgb(103 232 249 / 0.1); }
.ventures-offering-card > dl > div { min-width: 0; border-right: 1px solid rgb(103 232 249 / 0.1); border-bottom: 1px solid rgb(103 232 249 / 0.1); padding: 0.6rem; }
.ventures-offering-card dt { color: rgb(165 243 252 / 0.5); font-size: 0.61rem; text-transform: uppercase; }
.ventures-offering-card dd { margin-top: 0.2rem; color: rgb(226 232 240 / 0.85); font: 0.7rem/1rem ui-monospace, monospace; overflow-wrap: anywhere; }
.ventures-project-state { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.28rem 0.7rem; }
.ventures-offering-card .ventures-project-state { margin-top: 0.8rem; }
.ventures-project-state > span { color: rgb(165 243 252 / 0.58); font-size: 0.67rem; text-transform: uppercase; }
.ventures-project-state > strong { color: rgb(236 254 255 / 0.82); font: 0.7rem/1rem ui-monospace, monospace; }
.ventures-project-state > div { grid-column: 1 / -1; height: 0.28rem; overflow: hidden; background: rgb(30 41 59 / 0.86); }
.ventures-project-state i { display: block; height: 100%; background: rgb(34 211 238 / 0.8); }
.ventures-project-state small { grid-column: 1 / -1; min-height: 1rem; color: rgb(148 163 184 / 0.56); font-size: 0.65rem; }
.ventures-offering-card > footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.ventures-offering-card > footer > span { max-width: 65%; color: rgb(148 163 184 / 0.58); font-size: 0.66rem; line-height: 0.95rem; }
.ventures-review-heading h3 { margin-top: 0.28rem; color: rgb(236 254 255 / 0.95); font-size: 1rem; font-weight: 700; line-height: 1.35rem; }
.ventures-review-heading > div > span { display: block; margin-top: 0.45rem; color: rgb(203 213 225 / 0.68); font-size: 0.78rem; line-height: 1.15rem; }
.ventures-review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); gap: 1rem; }
.ventures-commit-panel input { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .ventures-summary-grid,
  .ventures-position-grid,
  .ventures-contract-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ventures-summary-grid > div:nth-child(3),
  .ventures-position-grid > div:nth-child(3),
  .ventures-contract-grid > div:nth-child(3),
  .ventures-contract-grid > div:nth-child(5),
  .ventures-contract-grid > div:nth-child(7) { border-left: 0; }
  .ventures-summary-grid > div:nth-child(n+3),
  .ventures-position-grid > div:nth-child(n+3),
  .ventures-contract-grid > div:nth-child(n+3) { border-top: 1px solid rgb(103 232 249 / 0.1); }
  .ventures-offering-grid,
  .ventures-review-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .ventures-offering-heading { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .ventures-summary-grid,
  .ventures-position-grid,
  .ventures-contract-grid { grid-template-columns: minmax(0, 1fr); }
  .ventures-summary-grid > div + div,
  .ventures-position-grid > div + div,
  .ventures-contract-grid > div + div { border-top: 1px solid rgb(103 232 249 / 0.1); border-left: 0; }
  .ventures-position-actions,
  .ventures-offering-card > footer { align-items: stretch; flex-direction: column; }
  .ventures-position-actions form,
  .ventures-position-actions button,
  .ventures-offering-card > footer a { width: 100%; text-align: center; }
  .ventures-offering-card > footer > span { max-width: none; }
}

@media (min-width: 768px) {
  .opportunity-cost-grid {
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) 4.25rem 4.75rem 4.25rem 5rem 4.5rem;
    column-gap: 0.75rem;
    align-items: center;
  }
  .opportunity-cost-grid--header {
    padding: 0.65rem 0;
    color: rgb(165 243 252 / 0.52);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .opportunity-cost-grid--header span:not(:first-child) { text-align: right; }
  .opportunity-cost-grid--row { padding: 0.85rem 0; }
  .opportunity-cost-project { grid-column: auto; padding-right: 0.5rem; }
  .opportunity-cost-cell { display: block; text-align: right; }
  .opportunity-cost-cell small { display: none; }
  .opportunity-cost-cell--gc {
    grid-column: auto;
    border-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .opportunity-review-split {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  }
}

@media (max-width: 767px) {
  .frontier-game-layout { display: flex; flex-direction: column; }
  .frontier-market-shortcut { width: 100%; flex-basis: 100%; }
  .frontier-live-flow dl { grid-template-columns: minmax(0, 1fr); }
  .frontier-resource-board { grid-template-columns: minmax(0, 1fr); }
  .hypercore-counter-board,
  .hypercore-power-board { grid-template-columns: minmax(0, 1fr); }
  .hypercore-counter-board > section,
  .hypercore-power-board > section { min-height: 0; }
  .hypercore-counter-board > section + section,
  .hypercore-power-board > section + section { border-top: 1px solid var(--frontier-line); border-left: 0; }
  .frontier-resource-board dl { border-top: 1px solid var(--frontier-line); }
  .frontier-resource-board dl div:first-child { border-left: 0; }
  .frontier-game-layout .frontier-process {
    display: grid;
    grid-auto-columns: minmax(13rem, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-anchor: none;
    scroll-snap-type: x proximity;
  }
  .frontier-game-layout .frontier-process-stage { min-height: 15.2rem; scroll-snap-align: start; }
  .frontier-game-layout .frontier-process-stage::after { display: none; }
  .frontier-status-strip { grid-template-columns: minmax(0, 1fr); }
  .frontier-status-strip > div + div { border-top: 1px solid var(--frontier-line); border-left: 0; }
  .frontier-crew-row strong { overflow: visible; font-size: 0.68rem; line-height: 0.95rem; text-overflow: clip; white-space: normal; }
  .frontier-crew-row span { font-size: 0.6rem; line-height: 0.85rem; }
}

@media (max-width: 480px) {
  .frontier-facility-location,
  .frontier-facility-name { display: none; }
  .frontier-facility-header > div { gap: 0.75rem; }
  .frontier-live-flow-head { align-items: flex-start; flex-direction: column; gap: 0.1rem; }
  .frontier-live-flow dd { font-size: 1.12rem; }
  .frontier-shift-channel p { overflow: visible; line-height: 0.95rem; }
  .frontier-shift-message { overflow: visible; text-overflow: clip; white-space: normal; }
  .frontier-resource-total strong { font-size: 1.65rem; line-height: 2rem; }
  .frontier-resource-board dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frontier-resource-board dl div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--frontier-line); border-left: 0; }
  .frontier-monitor-command { align-items: flex-start; }
}
