/* Launch Intelligence — Mission-control telemetry (scoped #page-ai-insights) */

#page-ai-insights .li-telemetry-mount {
  margin: 0 0 12px;
  min-height: 0;
}

#page-ai-insights .li-telemetry {
  --li-tel-h: clamp(32px, 4.2vw, 40px);
  position: relative;
  min-height: var(--li-tel-h);
  padding: 6px 10px 7px;
  border-radius: 8px;
  border: 1px solid rgba(15, 168, 157, 0.12);
  background: rgba(7, 17, 20, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  isolation: isolate;
}

/* HUD framing — corner brackets, institutional */
#page-ai-insights .li-telemetry::before,
#page-ai-insights .li-telemetry::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

#page-ai-insights .li-telemetry::before {
  top: 3px;
  left: 3px;
  border-top: 1px solid rgba(15, 168, 157, 0.45);
  border-left: 1px solid rgba(15, 168, 157, 0.45);
}

#page-ai-insights .li-telemetry::after {
  bottom: 3px;
  right: 3px;
  border-bottom: 1px solid rgba(15, 168, 157, 0.35);
  border-right: 1px solid rgba(15, 168, 157, 0.35);
}

#page-ai-insights .li-tel-frame-br {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#page-ai-insights .li-tel-frame-br::before,
#page-ai-insights .li-tel-frame-br::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.55;
}

#page-ai-insights .li-tel-frame-br::before {
  top: 3px;
  right: 3px;
  border-top: 1px solid rgba(15, 168, 157, 0.35);
  border-right: 1px solid rgba(15, 168, 157, 0.35);
}

#page-ai-insights .li-tel-frame-br::after {
  bottom: 3px;
  left: 3px;
  border-bottom: 1px solid rgba(15, 168, 157, 0.45);
  border-left: 1px solid rgba(15, 168, 157, 0.45);
}

/* Scan trace accent — 12s horizontal sweep */
#page-ai-insights .li-tel-scan-trace {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  margin-top: -0.5px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 168, 157, 0.04) 42%,
    rgba(15, 168, 157, 0.04) 58%,
    transparent 100%
  );
  overflow: hidden;
}

#page-ai-insights .li-tel-scan-trace::after {
  content: "";
  position: absolute;
  top: 0;
  left: -18%;
  width: 22%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 168, 157, 0.22) 48%,
    rgba(56, 189, 181, 0.14) 52%,
    transparent
  );
  animation: li-tel-scan-sweep 12s linear infinite;
}

@keyframes li-tel-scan-sweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  92% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(540%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-ai-insights .li-tel-scan-trace::after {
    animation: none;
    opacity: 0.35;
    left: 38%;
    width: 24%;
    transform: none;
  }
}

#page-ai-insights .li-tel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}

/* Operational state strip */
#page-ai-insights .li-tel-ops-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  flex: 1 1 200px;
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid rgba(15, 168, 157, 0.1);
}

#page-ai-insights .li-tel-ops-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
  line-height: 1.2;
  white-space: nowrap;
}

#page-ai-insights .li-tel-ops-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 1px rgba(15, 168, 157, 0.12);
}

#page-ai-insights .li-tel-ops-item:nth-child(1) .li-tel-ops-dot {
  background: rgba(15, 168, 157, 0.55);
  animation: li-tel-ops-blink 3.6s ease-in-out infinite;
}

#page-ai-insights .li-tel-ops-item:nth-child(2) .li-tel-ops-dot {
  background: rgba(56, 189, 181, 0.5);
  animation: li-tel-ops-blink 4.2s ease-in-out infinite 0.4s;
}

#page-ai-insights .li-tel-ops-item:nth-child(3) .li-tel-ops-dot {
  background: rgba(148, 163, 184, 0.38);
  animation: li-tel-ops-blink 5s ease-in-out infinite 0.9s;
}

@keyframes li-tel-ops-blink {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-ai-insights .li-tel-ops-dot {
    animation: none !important;
    opacity: 0.72;
  }
}

/* Telemetry ticks */
#page-ai-insights .li-tel-ticks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  flex: 0 0 auto;
}

#page-ai-insights .li-tel-tick {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

#page-ai-insights .li-tel-tick-k {
  color: rgba(100, 116, 139, 0.75);
  font-weight: 600;
}

#page-ai-insights .li-tel-tick-v {
  color: rgba(203, 213, 225, 0.88);
  font-weight: 500;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page-ai-insights .li-tel-tick-v.is-empty {
  color: rgba(148, 163, 184, 0.55);
  font-style: normal;
}

/* System posture indicators */
#page-ai-insights .li-tel-posture {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 3px;
  flex: 1 1 280px;
  min-width: 0;
  justify-content: flex-end;
}

#page-ai-insights .li-tel-posture-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(51, 65, 85, 0.35);
  background: rgba(15, 23, 32, 0.35);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

#page-ai-insights .li-tel-posture-signal {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  flex-shrink: 0;
  background: rgba(100, 116, 139, 0.5);
}

#page-ai-insights .li-tel-posture-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.2;
}

#page-ai-insights .li-tel-posture-cell.is-teal {
  border-color: rgba(15, 168, 157, 0.28);
  background: rgba(15, 168, 157, 0.07);
}

#page-ai-insights .li-tel-posture-cell.is-teal .li-tel-posture-signal {
  background: rgba(15, 168, 157, 0.85);
  box-shadow: 0 0 6px rgba(15, 168, 157, 0.35);
}

#page-ai-insights .li-tel-posture-cell.is-teal .li-tel-posture-label {
  color: rgba(94, 234, 212, 0.82);
}

#page-ai-insights .li-tel-posture-cell.is-amber {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.06);
}

#page-ai-insights .li-tel-posture-cell.is-amber .li-tel-posture-signal {
  background: rgba(245, 158, 11, 0.75);
}

#page-ai-insights .li-tel-posture-cell.is-amber .li-tel-posture-label {
  color: rgba(251, 191, 36, 0.78);
}

#page-ai-insights .li-tel-posture-cell.is-muted {
  border-color: rgba(51, 65, 85, 0.28);
  background: rgba(15, 23, 32, 0.28);
}

@media (max-width: 720px) {
  #page-ai-insights .li-tel-ops-strip {
    flex: 1 1 100%;
    border-right: none;
    padding-right: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(15, 168, 157, 0.08);
  }

  #page-ai-insights .li-tel-posture {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  #page-ai-insights .li-tel-ticks {
    flex: 1 1 100%;
  }
}
