:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-soft: #0a151f;
  --panel: #0c1924;
  --panel-raised: #10212e;
  --panel-line: #1d3443;
  --panel-line-strong: #2c4b5e;
  --text: #e8f1f5;
  --text-secondary: #9cb0bc;
  --text-muted: #68808e;
  --cyan: #46d7e8;
  --cyan-soft: rgba(70, 215, 232, 0.12);
  --blue: #5b8def;
  --green: #57d39b;
  --green-soft: rgba(87, 211, 155, 0.12);
  --amber: #f3b85b;
  --amber-soft: rgba(243, 184, 91, 0.12);
  --red: #f26f7d;
  --red-soft: rgba(242, 111, 125, 0.12);
  --purple: #a58af5;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -10%, rgba(70, 215, 232, 0.09), transparent 34rem),
    linear-gradient(180deg, #071018 0%, #08131c 100%);
  color: var(--text);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 232px;
  flex-direction: column;
  border-right: 1px solid var(--panel-line);
  background: rgba(7, 16, 24, 0.96);
  padding: 24px 16px 20px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 0 10px 28px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.14em;
  font-size: 13px;
}

.brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.brand-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.brand-orbit {
  position: absolute;
  inset: 5px 1px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  transform: rotate(-34deg);
}

.brand-orbit::after {
  position: absolute;
  top: 1px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.primary-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 8px 12px;
  text-decoration: none;
  transition: 150ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.nav-item.is-active {
  border-color: rgba(70, 215, 232, 0.18);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.nav-count {
  min-width: 20px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--panel-line);
  padding: 18px 10px 0;
}

.environment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

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

.status-dot--sim {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.sidebar-footer p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.workspace {
  margin-left: 232px;
}

.topbar {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--panel-line);
  padding: 18px 28px;
  background: rgba(7, 16, 24, 0.58);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 600;
}

.topbar-meta,
.operator,
.utc-clock {
  display: flex;
  align-items: center;
}

.topbar-meta {
  gap: 24px;
}

.utc-clock {
  gap: 10px;
  border-right: 1px solid var(--panel-line);
  padding-right: 24px;
}

.utc-clock span {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.utc-clock strong {
  min-width: 70px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.operator {
  gap: 10px;
}

.operator-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--panel-line-strong);
  border-radius: 50%;
  background: var(--panel-raised);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.operator strong,
.operator small {
  display: block;
}

.operator strong {
  font-size: 12px;
}

.operator small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

main {
  width: min(1640px, 100%);
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.mission-strip,
.metric-card,
.panel {
  border: 1px solid var(--panel-line);
  background: linear-gradient(145deg, rgba(16, 33, 46, 0.88), rgba(11, 24, 34, 0.94));
  box-shadow: var(--shadow);
}

.mission-strip {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(360px, 1.25fr) auto;
  align-items: center;
  gap: 28px;
  border-radius: 12px;
  padding: 20px 22px;
}

.mission-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}

.live-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

.mission-heading h2 {
  font-size: 18px;
}

.mission-heading p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.mission-progress-labels,
.mission-progress-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mission-progress-labels {
  color: var(--text-muted);
  font-size: 10px;
}

.mission-progress-labels strong,
.mission-progress-footer strong {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}

.pass-state {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pass-state.is-warning {
  color: var(--amber);
}

.pass-state.is-danger {
  color: var(--red);
}

.mission-progress {
  position: relative;
  height: 4px;
  margin: 12px 0 9px;
  border-radius: 4px;
  background: var(--panel-line);
}

.mission-progress > span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 500ms ease;
}

.mission-progress > i {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  transform: translate(-50%, -50%);
  transition: left 500ms ease;
}

.mission-progress-footer {
  color: var(--text-muted);
  font-size: 10px;
}

.simulation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  min-height: 36px;
  border: 1px solid var(--panel-line-strong);
  border-radius: 7px;
  background: var(--panel-raised);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  transition: 140ms ease;
}

.button:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-1px);
}

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

.button--primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #041217;
}

.button--primary:hover:not(:disabled) {
  color: #041217;
  box-shadow: 0 0 18px rgba(70, 215, 232, 0.18);
}

.button--warning {
  border-color: rgba(243, 184, 91, 0.45);
  background: var(--amber-soft);
  color: var(--amber);
}

.button--danger {
  border-color: rgba(242, 111, 125, 0.5);
  background: var(--red-soft);
  color: var(--red);
}

.button--ghost {
  background: transparent;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.metric-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  padding: 16px 18px 14px;
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.metric-symbol {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
}

.metric-value strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.metric-value span {
  color: var(--text-muted);
  font-size: 10px;
}

.metric-trend {
  min-height: 17px;
  margin-top: 6px;
  font-size: 10px;
}

.metric-trend--good {
  color: var(--green);
}

.metric-trend--warning {
  color: var(--amber);
}

.metric-trend--danger {
  color: var(--red);
}

.spark-bars {
  display: flex;
  height: 24px;
  align-items: flex-end;
  gap: 3px;
  margin-top: 4px;
}

.spark-bars span {
  width: 100%;
  min-height: 2px;
  border-radius: 1px;
  background: var(--cyan);
  opacity: 0.25;
  transition: height 400ms ease;
}

.spark-bars span:nth-last-child(-n+4) {
  opacity: 0.7;
}

.meter {
  height: 3px;
  margin-top: 15px;
  border-radius: 2px;
  background: var(--panel-line);
}

.meter span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 400ms ease, background-color 200ms ease;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-grid--primary {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
}

.dashboard-grid--secondary {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.panel {
  min-width: 0;
  border-radius: 10px;
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-meta {
  color: var(--text-muted);
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge--good {
  border-color: rgba(87, 211, 155, 0.22);
  background: var(--green-soft);
  color: var(--green);
}

.status-badge--warning {
  border-color: rgba(243, 184, 91, 0.25);
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge--danger {
  border-color: rgba(242, 111, 125, 0.25);
  background: var(--red-soft);
  color: var(--red);
}

.status-badge--sim {
  border-color: rgba(165, 138, 245, 0.22);
  background: rgba(165, 138, 245, 0.1);
  color: var(--purple);
}

.telemetry-current {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: var(--panel-line);
}

.telemetry-current > div {
  background: rgba(7, 16, 24, 0.55);
  padding: 12px 14px;
}

.telemetry-current span,
.telemetry-current strong {
  display: block;
}

.telemetry-current span {
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 10px;
}

.telemetry-current strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 500;
}

.telemetry-current small {
  color: var(--text-muted);
  font-size: 9px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 10px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 14px;
  height: 2px;
}

.legend-line--voltage {
  background: var(--cyan);
}

.legend-line--temp {
  background: var(--purple);
}

.chart-wrap {
  width: 100%;
  margin-top: 12px;
}

#telemetryChart {
  display: block;
  width: 100%;
  height: 248px;
  overflow: visible;
}

.chart-grid line {
  stroke: var(--panel-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis text {
  fill: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart-line--voltage {
  stroke: var(--cyan);
}

.chart-line--temp {
  stroke: var(--purple);
}

.chart-point {
  vector-effect: non-scaling-stroke;
}

.chart-point--voltage {
  fill: var(--cyan);
  stroke: rgba(70, 215, 232, 0.25);
  stroke-width: 8;
}

.chart-point--temp {
  fill: var(--purple);
  stroke: rgba(165, 138, 245, 0.25);
  stroke-width: 8;
}

.link-visual {
  display: grid;
  grid-template-columns: 1fr minmax(60px, 0.8fr) 1fr;
  align-items: center;
  min-height: 162px;
  border-bottom: 1px solid var(--panel-line);
  padding: 12px 0 22px;
}

.spacecraft-node,
.station-node {
  display: grid;
  justify-items: center;
  text-align: center;
}

.spacecraft-node strong,
.station-node strong {
  margin-top: 12px;
  font-size: 11px;
}

.spacecraft-node small,
.station-node small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
}

.spacecraft-glyph {
  display: flex;
  align-items: center;
}

.sat-body {
  width: 24px;
  height: 30px;
  border: 2px solid var(--cyan);
  border-radius: 4px;
  background: var(--cyan-soft);
  box-shadow: 0 0 18px rgba(70, 215, 232, 0.12);
}

.solar-panel {
  display: block;
  width: 31px;
  height: 16px;
  border: 1px solid var(--blue);
  background: repeating-linear-gradient(90deg, rgba(91, 141, 239, 0.25) 0 6px, transparent 6px 7px);
}

.solar-panel--left {
  margin-right: 4px;
}

.solar-panel--right {
  margin-left: 4px;
}

.link-beam {
  display: grid;
  gap: 4px;
}

.link-beam span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: beam 2s linear infinite;
}

.link-beam span:nth-child(2) {
  animation-delay: -0.65s;
}

.link-beam span:nth-child(3) {
  animation-delay: -1.3s;
}

.link-beam.is-fault span {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: beam-fault 0.7s steps(2) infinite;
}

.dish-glyph {
  position: relative;
  width: 50px;
  height: 42px;
}

.dish-glyph::before {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 32px;
  height: 22px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  border-radius: 0 0 26px 0;
  content: "";
  transform: rotate(22deg);
}

.dish-glyph::after {
  position: absolute;
  bottom: 2px;
  left: 24px;
  width: 2px;
  height: 20px;
  background: var(--text-secondary);
  content: "";
}

.dish-glyph span {
  position: absolute;
  bottom: 0;
  left: 13px;
  width: 26px;
  height: 2px;
  background: var(--text-secondary);
}

.link-details {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
}

.link-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(29, 52, 67, 0.62);
  padding: 10px 2px;
}

.link-details div:last-child {
  border-bottom: 0;
}

.link-details dt {
  color: var(--text-muted);
  font-size: 10px;
}

.link-details dd {
  margin: 0;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid rgba(29, 52, 67, 0.68);
  padding: 11px 8px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--text-secondary);
  font-size: 10px;
}

td:first-child {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.severity::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.severity--info {
  color: var(--cyan);
}

.severity--warning {
  color: var(--amber);
}

.severity--critical {
  color: var(--red);
}

.alarm-ack {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  padding: 3px 0;
  font-size: 10px;
}

.alarm-ack[disabled] {
  color: var(--text-muted);
  cursor: default;
}

.empty-row td {
  height: 86px;
  color: var(--text-muted);
  text-align: center;
}

.command-panel form {
  display: grid;
  gap: 8px;
}

label {
  color: var(--text-muted);
  font-size: 10px;
}

select,
input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--panel-line-strong);
  border-radius: 7px;
  background: rgba(7, 16, 24, 0.72);
  color: var(--text-secondary);
  padding: 0 10px;
  font-size: 11px;
}

.command-guard {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 3px 0 4px;
  color: var(--green);
  font-size: 9px;
}

.command-guard.is-blocked {
  color: var(--red);
}

.command-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.command-pipeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-align: center;
}

.command-pipeline li::before {
  position: absolute;
  top: 9px;
  right: 50%;
  left: -50%;
  z-index: 0;
  height: 1px;
  background: var(--panel-line);
  content: "";
}

.command-pipeline li:first-child::before {
  display: none;
}

.command-pipeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid var(--panel-line-strong);
  border-radius: 50%;
  background: var(--panel);
  font-size: 8px;
}

.command-pipeline strong {
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.command-pipeline li.is-complete,
.command-pipeline li.is-current {
  color: var(--cyan);
}

.command-pipeline li.is-complete::before,
.command-pipeline li.is-current::before {
  background: var(--cyan);
}

.command-pipeline li.is-complete span,
.command-pipeline li.is-current span {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.command-note {
  min-height: 30px;
  margin: 13px 0 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.command-note.is-warning {
  color: var(--amber);
}

.command-note.is-danger {
  color: var(--red);
}

.procedure-list {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.procedure-list li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  min-height: 56px;
  color: var(--text-muted);
}

.procedure-list li::after {
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: var(--panel-line);
  content: "";
}

.procedure-list li:last-child::after {
  display: none;
}

.procedure-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--panel-line-strong);
  border-radius: 50%;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

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

.procedure-list strong {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}

.procedure-list small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 9px;
}

.procedure-list li.is-complete .procedure-marker {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.procedure-list li.is-active .procedure-marker {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(70, 215, 232, 0.12);
}

.procedure-list li.is-active strong {
  color: var(--text);
}

.procedure-list li.is-blocked .procedure-marker {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.procedure-list li.is-blocked strong,
.procedure-list li.is-blocked small {
  color: var(--red);
}

.is-hidden {
  display: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes beam {
  0% { opacity: 0.12; transform: scaleX(0.75); }
  50% { opacity: 0.8; transform: scaleX(1); }
  100% { opacity: 0.12; transform: scaleX(0.75); }
}

@keyframes beam-fault {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.9; }
}

@media (max-width: 1280px) {
  .mission-strip {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.3fr);
  }

  .simulation-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

  .procedure-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
    padding: 14px 18px;
  }

  .brand {
    padding: 0 0 13px;
  }

  .primary-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    grid-template-columns: 22px auto auto;
    flex: 0 0 auto;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

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

  .link-panel {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .operator {
    display: none;
  }

  .utc-clock {
    border-right: 0;
    padding-right: 0;
  }

  main {
    padding: 16px 14px 32px;
  }

  .mission-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .simulation-actions {
    grid-column: auto;
  }

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

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

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

  .procedure-panel {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .nav-item {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .nav-icon {
    display: none;
  }

  .nav-item {
    grid-template-columns: auto auto;
  }

  .topbar {
    align-items: center;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    font-size: 18px;
  }

  .utc-clock {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-value strong {
    font-size: 23px;
  }

  .panel {
    padding: 15px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .telemetry-current {
    grid-template-columns: 1fr 1fr;
  }

  .link-visual {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .link-beam {
    width: 80%;
    transform: rotate(90deg);
  }

  .command-pipeline strong {
    display: none;
  }
}

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