/* ═══════════════════════════════════════════════════════════════════
   ORBIT COMPONENT LIBRARY — FOUNDATIONAL PRIMITIVES
   Locked by ADR-022. Requires orbit-tokens.css to be loaded first.
   All components consume var(--surface-accent) for identity color.

   Foundational (Phase 36):
     .orbit-btn · .orbit-badge · .orbit-card
     .orbit-input · .orbit-modal · .orbit-progress
     .orbit-tooltip · .orbit-scrollbar · .orbit-hold-confirm

   Surfacing (Phase 35 — built on top of these):
     .orbit-pipeline-bar · .orbit-decision-queue · .orbit-activity-ledger
     .orbit-intervention-overlay · .orbit-vital-signs · .orbit-fleet-health
═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   ORBIT-BTN  —  Button primitive
   Variants:  --primary | --secondary | --ghost | --danger
   Sizes:     --sm | (default md) | --lg
────────────────────────────────────────────────────────────────── */
.orbit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  height: 32px;
  cursor: pointer;
  transition:
    background var(--anim-micro) var(--anim-easing),
    border-color var(--anim-micro) var(--anim-easing),
    color var(--anim-micro) var(--anim-easing),
    opacity var(--anim-micro) var(--anim-easing);
  position: relative;
  overflow: hidden;
}
.orbit-btn:active:not(:disabled) { transform: scale(0.97); }
.orbit-btn:disabled               { opacity: 0.4; cursor: not-allowed; }

/* Sizes */
.orbit-btn--sm {
  font-size: 10px;
  padding: var(--space-1) var(--space-3);
  height: 24px;
}
.orbit-btn--lg {
  font-size: var(--text-data);
  padding: var(--space-3) var(--space-6);
  height: 40px;
}

/* Variants */
.orbit-btn--primary {
  background: var(--surface-accent);
  color: #000;
  border-color: var(--surface-accent);
}
.orbit-btn--primary:hover:not(:disabled) { opacity: 0.85; }

.orbit-btn--secondary {
  background: rgba(var(--surface-accent-rgb), 0.12);
  color: var(--surface-accent);
  border-color: rgba(var(--surface-accent-rgb), 0.3);
}
.orbit-btn--secondary:hover:not(:disabled) {
  background: rgba(var(--surface-accent-rgb), 0.2);
  border-color: rgba(var(--surface-accent-rgb), 0.5);
}

.orbit-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-glass);
}
.orbit-btn--ghost:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-glass-strong);
  background: rgba(255, 255, 255, 0.04);
}

.orbit-btn--danger {
  background: rgba(var(--status-error-rgb), 0.12);
  color: var(--status-error);
  border-color: rgba(var(--status-error-rgb), 0.3);
}
.orbit-btn--danger:hover:not(:disabled) {
  background: rgba(var(--status-error-rgb), 0.2);
  border-color: rgba(var(--status-error-rgb), 0.5);
}

/* Loading state — add .orbit-btn--loading to show spinner */
.orbit-btn--loading { opacity: 0.7; cursor: wait; pointer-events: none; }
.orbit-btn--loading::after {
  content: '';
  width: 10px; height: 10px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: orbit-btn-spin 0.6s linear infinite;
  margin-left: var(--space-2);
}
@keyframes orbit-btn-spin {
  to { transform: rotate(360deg); }
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-BADGE  —  Inline status label
   Variants: --status | --ok | --warn | --error | --gate | --tier
             --severity-critical | --severity-high | --severity-normal
────────────────────────────────────────────────────────────────── */
.orbit-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  min-height: 18px;
}

.orbit-badge--status {
  background: rgba(var(--surface-accent-rgb), 0.15);
  color: var(--surface-accent);
  border-color: rgba(var(--surface-accent-rgb), 0.3);
}
.orbit-badge--ok {
  background: rgba(var(--status-ok-rgb), 0.15);
  color: var(--status-ok);
  border-color: rgba(var(--status-ok-rgb), 0.3);
}
.orbit-badge--warn {
  background: rgba(var(--status-warn-rgb), 0.15);
  color: var(--status-warn);
  border-color: rgba(var(--status-warn-rgb), 0.3);
}
.orbit-badge--error {
  background: rgba(var(--status-error-rgb), 0.15);
  color: var(--status-error);
  border-color: rgba(var(--status-error-rgb), 0.3);
}
.orbit-badge--gate {
  background: rgba(var(--status-warn-rgb), 0.12);
  color: var(--status-warn);
  border-color: rgba(var(--status-warn-rgb), 0.25);
}
.orbit-badge--tier {
  background: var(--surface-3);
  color: var(--text-secondary);
  border-color: var(--border-glass);
}
.orbit-badge--severity-critical {
  background: rgba(var(--status-error-rgb), 0.2);
  color: var(--status-error);
  border-color: rgba(var(--status-error-rgb), 0.4);
}
.orbit-badge--severity-high {
  background: rgba(var(--status-warn-rgb), 0.2);
  color: var(--status-warn);
  border-color: rgba(var(--status-warn-rgb), 0.4);
}
.orbit-badge--severity-normal {
  background: var(--surface-3);
  color: var(--text-secondary);
  border-color: var(--border-glass);
}

/* Dot prefix inside badge */
.orbit-badge__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-CARD  —  Container primitive
   Variants: --glass | --solid
────────────────────────────────────────────────────────────────── */
.orbit-card {
  border-radius: var(--glass-radius);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.orbit-card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
}
.orbit-card--solid {
  background: var(--surface-2);
}

/* Card header / body / footer slots */
.orbit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
  gap: var(--space-3);
}
.orbit-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: var(--letter-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.orbit-card__body {
  flex: 1;
  overflow: auto;
  padding: var(--space-4);
  min-height: 0;
}
.orbit-card__body--flush { padding: 0; }
.orbit-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-INPUT  —  Text / number / textarea input
────────────────────────────────────────────────────────────────── */
.orbit-input {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-data);
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  line-height: var(--text-normal);
  outline: none;
  transition:
    border-color var(--anim-micro) var(--anim-easing),
    box-shadow var(--anim-micro) var(--anim-easing);
}
.orbit-input::placeholder { color: var(--text-secondary); opacity: 0.4; }
.orbit-input:focus {
  border-color: rgba(var(--surface-accent-rgb), 0.5);
  box-shadow: 0 0 0 2px rgba(var(--surface-accent-rgb), 0.15);
}
.orbit-input:invalid,
.orbit-input[aria-invalid="true"] {
  border-color: rgba(var(--status-error-rgb), 0.5);
  box-shadow: 0 0 0 2px rgba(var(--status-error-rgb), 0.1);
}
.orbit-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
textarea.orbit-input {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-mono);
  line-height: var(--text-loose);
}

/* Input label + group wrapper */
.orbit-input-group { display: flex; flex-direction: column; gap: var(--space-2); }
.orbit-input-label {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.orbit-input-hint {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.6;
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-MODAL  —  Dialog overlay
────────────────────────────────────────────────────────────────── */
.orbit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-6);
}
.orbit-modal-overlay[hidden] { display: none; }

.orbit-modal {
  background: var(--surface-1);
  border: 1px solid var(--border-glass-strong);
  border-radius: var(--glass-radius);
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - var(--space-12));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: orbit-modal-in var(--anim-panel) var(--anim-easing) forwards;
}
@keyframes orbit-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.orbit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.orbit-modal__title {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.orbit-modal__close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition:
    color var(--anim-micro) var(--anim-easing),
    border-color var(--anim-micro) var(--anim-easing);
}
.orbit-modal__close:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-strong);
}
.orbit-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  min-height: 0;
}
.orbit-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-PROGRESS  —  Progress bar (2px track)
────────────────────────────────────────────────────────────────── */
.orbit-progress {
  width: 100%;
  height: 2px;
  background: var(--surface-3);
  border-radius: 1px;
  overflow: hidden;
}
.orbit-progress--thick { height: 4px; border-radius: 2px; }

.orbit-progress__fill {
  height: 100%;
  background: var(--surface-accent);
  border-radius: inherit;
  transition: width var(--anim-panel) var(--anim-easing);
  transform-origin: left;
}

/* Indeterminate shimmer when no value is set */
.orbit-progress--indeterminate .orbit-progress__fill {
  width: 40% !important;
  animation: orbit-progress-slide 1.4s ease-in-out infinite;
}
@keyframes orbit-progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-TOOLTIP  —  Hover tooltip (200ms delay)
────────────────────────────────────────────────────────────────── */
.orbit-tooltip-host {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.orbit-tooltip {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 240px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--anim-micro) var(--anim-easing);
  transition-delay: 200ms;
  z-index: var(--z-overlay);
  line-height: var(--text-normal);
}
.orbit-tooltip-host:hover .orbit-tooltip { opacity: 1; }

/* Placement variants */
.orbit-tooltip--below {
  top: calc(100% + var(--space-2));
  bottom: auto;
}
.orbit-tooltip--right {
  left: calc(100% + var(--space-2));
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}


/* ──────────────────────────────────────────────────────────────────
   ORBIT-SCROLLBAR  —  Custom 4px scrollbar with accent thumb
────────────────────────────────────────────────────────────────── */
.orbit-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--surface-accent-rgb), 0.3) transparent;
}
.orbit-scrollbar::-webkit-scrollbar              { width: 4px; height: 4px; }
.orbit-scrollbar::-webkit-scrollbar-track        { background: var(--surface-3); border-radius: 2px; }
.orbit-scrollbar::-webkit-scrollbar-thumb        { background: rgba(var(--surface-accent-rgb), 0.3); border-radius: 2px; }
.orbit-scrollbar::-webkit-scrollbar-thumb:hover  { background: rgba(var(--surface-accent-rgb), 0.55); }


/* ──────────────────────────────────────────────────────────────────
   ORBIT-HOLD-CONFIRM  —  Hold-to-confirm action button
   ADR-023: parameterised via --hold-duration CSS variable.
   Usage:
     <button class="orbit-hold-confirm orbit-btn orbit-btn--danger"
             style="--hold-duration:1500ms">Hold to Dispatch</button>
   JS: add .holding on mousedown/touchstart, remove on up/leave,
       add .held when animation ends, fire action.
────────────────────────────────────────────────────────────────── */
.orbit-hold-confirm {
  position: relative;
  overflow: hidden;
  --hold-duration: 1500ms;
}
.orbit-hold-confirm__fill {
  position: absolute;
  inset: 0;
  background: rgba(var(--surface-accent-rgb), 0.25);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  pointer-events: none;
  transition: none;
}
.orbit-hold-confirm.holding .orbit-hold-confirm__fill {
  animation: orbit-hold-fill var(--hold-duration) linear forwards;
}
@keyframes orbit-hold-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.orbit-hold-confirm.held {
  border-color: rgba(var(--surface-accent-rgb), 0.6) !important;
}
.orbit-hold-confirm.held .orbit-hold-confirm__fill {
  animation: none;
  transform: scaleX(1);
  opacity: 0;
  transition: opacity var(--anim-micro) var(--anim-easing);
}

/* Danger variant hold fill (red sweep) */
.orbit-hold-confirm.orbit-btn--danger .orbit-hold-confirm__fill {
  background: rgba(var(--status-error-rgb), 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PHASE 35 SURFACING PRIMITIVES
   Pipeline Bar · Decision Queue · Activity Ledger · Vital Signs · Intervention
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Pipeline Bar ────────────────────────────────────────────────────────── */
/* 24px ambient status strip in every surface header. Six stage segments.     */
.orbit-pipeline-bar {
  height: 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-glass);
  display: flex; align-items: stretch;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.orbit-pbar-seg {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; border-right: 1px solid var(--border-glass);
  transition: background var(--anim-micro);
  padding: 0 var(--space-2);
}
.orbit-pbar-seg:last-child { border-right: none; }
.orbit-pbar-seg:hover     { background: rgba(var(--surface-accent-rgb), 0.08); }
.orbit-pbar-seg.active    { background: rgba(var(--surface-accent-rgb), 0.16); }
.orbit-pbar-seg.has-issue { }
.orbit-pbar-count {
  font-size: 10px; font-weight: 700; color: var(--text); line-height: 1;
}
.orbit-pbar-label {
  font-size: 7px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mute);
}
.orbit-pbar-dot {
  width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0;
}
.orbit-pbar-dot--warn  { background: var(--status-warn); }
.orbit-pbar-dot--error { background: var(--status-error); }
@keyframes orbit-pbar-pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
.orbit-pbar-seg--exec .orbit-pbar-dot--warn {
  animation: orbit-pbar-pulse 2s ease-in-out infinite;
}
.orbit-pbar-seg--exec .orbit-pbar-count { color: var(--status-warn); }

/* ── Decision Queue ──────────────────────────────────────────────────────── */
/* Priority ordered list of operator decisions. Max 8 visible (ADR-024 cap). */
.orbit-decision-queue {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
}
.orbit-dq-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-glass);
  display: flex; align-items: center; gap: var(--space-2);
  flex-shrink: 0;
}
.orbit-dq-title {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.orbit-dq-badge {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  padding: 1px 5px; border-radius: 10px;
  background: rgba(var(--surface-accent-rgb), 0.15); color: var(--text-dim);
}
.orbit-dq-chips { display: flex; gap: var(--space-1); margin-left: auto; }
.orbit-dq-chip {
  font-family: var(--font-mono); font-size: 8px; font-weight: 600; letter-spacing: 0.05em;
  padding: 1px 7px; border-radius: 20px; cursor: pointer;
  background: none; border: 1px solid var(--border-glass); color: var(--text-mute);
  transition: all var(--anim-micro);
}
.orbit-dq-chip:hover,
.orbit-dq-chip.active {
  border-color: rgba(var(--surface-accent-rgb), 0.4);
  color: var(--text); background: rgba(var(--surface-accent-rgb), 0.08);
}
.orbit-dq-list {
  flex: 1; overflow-y: auto; padding: var(--space-3) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--surface-accent-rgb), 0.22) transparent;
}
.orbit-dq-list::-webkit-scrollbar              { width: 4px; }
.orbit-dq-list::-webkit-scrollbar-track        { background: transparent; }
.orbit-dq-list::-webkit-scrollbar-thumb        { background: rgba(var(--surface-accent-rgb), 0.22); border-radius: 2px; }
.orbit-dq-list::-webkit-scrollbar-thumb:hover  { background: rgba(var(--surface-accent-rgb), 0.45); }
.orbit-dq-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-12); text-align: center; flex: 1;
}
.orbit-dq-empty__check {
  font-size: 22px; margin-bottom: var(--space-3); color: var(--status-ok);
}
.orbit-dq-empty__msg {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  line-height: 1.5;
}
.orbit-dq-empty__sub {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
  margin-top: var(--space-2);
}

/* Decision Queue card */
.orbit-dq-card {
  background: var(--surface-1); border-radius: var(--radius-md);
  border: 1px solid var(--border-glass); border-left: 3px solid var(--border-glass);
  padding: var(--space-3) var(--space-4); cursor: default;
  transition: all var(--anim-micro);
}
.orbit-dq-card:hover { background: var(--surface-2); border-color: rgba(var(--surface-accent-rgb),0.2); }
.orbit-dq-card--error { border-left-color: var(--status-error); }
.orbit-dq-card--warn  { border-left-color: var(--status-warn); }
.orbit-dq-card--ok    { border-left-color: var(--status-ok); }
.orbit-dq-card--info  { border-left-color: var(--status-info); }
.orbit-dq-card--muted { border-left-color: var(--text-mute); opacity: 0.6; }
.orbit-dq-card__headline {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3;
  margin-bottom: var(--space-2);
}
.orbit-dq-card__meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass);
  padding: var(--space-2) 0; margin: var(--space-2) 0;
  line-height: 1.5;
}
.orbit-dq-card__meta-item { display: inline; }
.orbit-dq-card__meta-item + .orbit-dq-card__meta-item::before { content: ' · '; color: var(--border-glass); }
.orbit-dq-card__actions {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.orbit-dq-card__actions .orbit-btn {
  min-height: 36px; /* 44px on mobile via media query */
}

@media (hover: none), (pointer: coarse) {
  .orbit-dq-card__actions .orbit-btn { min-height: 44px; }
}

/* ── Activity Ledger ─────────────────────────────────────────────────────── */
/* Append-only, hour-grouped event journal. Layer 3 channel.                  */
.orbit-activity-ledger {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
}
.orbit-al-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.orbit-al-title {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.orbit-al-filter-chips { display: flex; gap: var(--space-1); }
.orbit-al-list {
  flex: 1; overflow-y: auto; min-height: 0;
  scrollbar-width: none;
}
.orbit-al-list::-webkit-scrollbar { display: none; }
.orbit-al-hour-label {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute);
  padding: var(--space-2) var(--space-4);
  position: sticky; top: 0;
  background: var(--surface-0); border-bottom: 1px solid var(--border-glass);
  z-index: 1;
}
.orbit-al-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  cursor: pointer; transition: background var(--anim-micro);
}
.orbit-al-row:hover { background: var(--surface-1); }
.orbit-al-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: var(--text-mute);
}
.orbit-al-dot--error { background: var(--status-error); }
.orbit-al-dot--warn  { background: var(--status-warn); }
.orbit-al-dot--ok    { background: var(--status-ok); }
.orbit-al-ts {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
  flex-shrink: 0; white-space: nowrap;
}
.orbit-al-agent {
  font-family: var(--font-mono); font-size: 9px; color: rgba(var(--surface-accent-rgb),0.8);
  flex-shrink: 0; white-space: nowrap;
}
.orbit-al-summary {
  font-size: 11px; color: var(--text-dim); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.orbit-al-empty {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-8);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  text-align: center;
}

/* ── Vital Signs ─────────────────────────────────────────────────────────── */
/* 5-tile metric panel on Mission Control. ADR-026 M1/M9/M5/M6/M15 default. */
.orbit-vital-signs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-glass);
}
@media (max-width: 1100px) {
  .orbit-vital-signs { grid-template-columns: repeat(3, 1fr); }
}
.orbit-vs-tile {
  background: var(--surface-1); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.orbit-vs-tile--accent { border-left: 2px solid rgba(var(--surface-accent-rgb),0.6); }
.orbit-vs-label {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute);
}
.orbit-vs-value {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--text); line-height: 1;
}
.orbit-vs-sub {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-mute);
}
.orbit-vs-trend {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
}
.orbit-vs-trend--up   { color: var(--status-ok); }
.orbit-vs-trend--down { color: var(--status-error); }
.orbit-vs-trend--flat { color: var(--text-mute); }

/* ── Layer 1 Intervention Overlay ───────────────────────────────────────── */
/* Cannot be dismissed without explicit operator action. Max 3 at once.       */
.orbit-intervention-tray {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; flex-direction: column; gap: 1px;
  pointer-events: none;
}
.orbit-intervention {
  background: rgba(12,4,4,0.92);
  border-bottom: 2px solid var(--status-error);
  padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; gap: var(--space-4);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  transition: transform var(--anim-panel) var(--anim-easing);
  pointer-events: all;
}
.orbit-intervention.active { transform: translateY(0); }
.orbit-intervention__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-error); flex-shrink: 0;
  animation: orbit-pbar-pulse 1s ease-in-out infinite;
}
.orbit-intervention__source {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--status-error);
  flex-shrink: 0;
}
.orbit-intervention__headline {
  font-size: 13px; font-weight: 600; color: var(--text); flex: 1;
}
.orbit-intervention__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.orbit-intervention-resolve-btn {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--status-error);
  color: var(--status-error); padding: 4px 10px; border-radius: 2px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.orbit-intervention-resolve-btn:hover {
  background: var(--status-error); color: #000;
}
