/* Orbital Telemetry Reset Observatory — Aerospace Doppler HUD Aesthetic
   Palette: Deep Observatory Slate (#050814), Telemetry Glass (#0B1124), Orbital Cyan (#38BDF8), Solar Amber (#F59E0B), Nominal Emerald (#10B981)
   Zero brand strings — reusable across standalone main-site & white-label portals */

.ro-wrap {
  --ro-bg: #050814;
  --ro-panel: rgba(11, 17, 36, 0.86);
  --ro-panel-2: rgba(16, 24, 48, 0.92);
  --ro-border: rgba(56, 189, 248, 0.16);
  --ro-border-strong: rgba(56, 189, 248, 0.34);
  --ro-ink: #eef4ff;
  --ro-muted: #8ea0c2;
  --ro-cyan: #38bdf8;
  --ro-amber: #f59e0b;
  --ro-green: #10b981;
  --ro-rose: #f43f5e;
  --ro-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo, Consolas, monospace;

  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(56, 189, 248, 0.14), transparent 65%),
    radial-gradient(640px 380px at 88% 18%, rgba(245, 158, 11, 0.10), transparent 62%),
    linear-gradient(180deg, #070b1a 0%, #050814 100%);
  color: var(--ro-ink);
  border: 1px solid var(--ro-border);
  padding: 24px;
  display: grid;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px -36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(56, 189, 248, 0.08) inset;
}

.ro-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 35%, transparent 82%);
  pointer-events: none;
}

.ro-wrap > * { position: relative; z-index: 1; }

/* Header Telemetry Command Strip */
.ro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ro-eyebrow {
  font-family: var(--ro-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ro-cyan);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ro-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ro-green);
  box-shadow: 0 0 12px var(--ro-green);
  animation: roPulse 2.2s ease-in-out infinite;
}

@keyframes roPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.38); opacity: 0.65; }
}

.ro-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ro-subtitle {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--ro-muted);
}

.ro-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ro-clock-chip {
  font-family: var(--ro-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.ro-btn {
  border: 1px solid var(--ro-border-strong);
  background: rgba(56, 189, 248, 0.1);
  color: #e0f2fe;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.ro-btn:hover { background: rgba(56, 189, 248, 0.22); border-color: var(--ro-cyan); transform: translateY(-1px); }
.ro-btn.is-armed {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

/* Centerpiece 3-Column Aerospace Deck */
.ro-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ro-panel {
  border-radius: 18px;
  background: var(--ro-panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(16px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ro-panel:hover {
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 20px 48px -28px rgba(56, 189, 248, 0.28);
}

.ro-panel-codex { border-top: 2px solid var(--ro-cyan); }
.ro-panel-agy { border-top: 2px solid var(--ro-amber); }
.ro-panel-agy:hover { border-color: rgba(245, 158, 11, 0.38); box-shadow: 0 20px 48px -28px rgba(245, 158, 11, 0.24); }

.ro-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ro-ch-tag {
  font-family: var(--ro-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ro-ch-cyan { color: var(--ro-cyan); }
.ro-ch-amber { color: var(--ro-amber); }

.ro-state-pill {
  font-family: var(--ro-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}
.ro-state-pill.is-watch {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
}
.ro-state-pill.is-hot {
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

/* Live Ticking Chronometer */
.ro-chrono-box {
  background: rgba(5, 8, 20, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  padding: 12px 14px;
}
.ro-chrono-label {
  font-size: 11px;
  color: var(--ro-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ro-chrono-val {
  font-family: var(--ro-mono);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.ro-chrono-sub {
  font-family: var(--ro-mono);
  font-size: 11px;
  color: var(--ro-muted);
  margin-top: 3px;
}

/* Probability Dual Gauges */
.ro-gauges-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ro-gauge-card {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 13px;
  padding: 12px 10px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.ro-ring-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}
.ro-ring-svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ro-ring-track { fill: none; stroke: rgba(148, 163, 184, 0.14); stroke-width: 7; }
.ro-ring-fill { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.ro-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ro-mono);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.ro-gauge-title { font-size: 12px; font-weight: 600; color: #dbeafe; }
.ro-gauge-range { font-family: var(--ro-mono); font-size: 11px; color: var(--ro-muted); }

/* Center Polar Radar Dish */
.ro-dish-panel {
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(15, 28, 56, 0.95), rgba(5, 8, 20, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.24);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 0 50px -22px rgba(56, 189, 248, 0.45) inset;
}

.ro-canvas-stage {
  position: relative;
  width: 292px;
  height: 292px;
  display: grid;
  place-items: center;
}
#ro-radar-canvas {
  width: 292px;
  height: 292px;
  display: block;
}

.ro-dish-legend {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-family: var(--ro-mono);
  font-size: 11px;
}

.ro-leg-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}
.ro-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Surfaces & Mini Metrics */
.ro-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ro-mini-stat {
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  text-align: center;
}
.ro-mini-stat strong { display: block; font-family: var(--ro-mono); font-size: 15px; color: #fff; }
.ro-mini-stat span { display: block; font-size: 11px; color: var(--ro-muted); margin-top: 2px; }

.ro-surfaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ro-surf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}
.ro-surf-pill.is-deg {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde68a;
}

.ro-quote-box {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #fef3c7;
}
.ro-quote-meta {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #fcd34d;
  gap: 8px;
  flex-wrap: wrap;
}
.ro-quote-meta a { color: #38bdf8; text-decoration: none; font-weight: 600; }
.ro-quote-meta a:hover { text-decoration: underline; }

/* Cadence Gap Rhythm Bar Chart */
.ro-rhythm-panel {
  border-radius: 16px;
  background: var(--ro-panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 16px 18px;
}
.ro-rhythm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ro-rhythm-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 8px;
  align-items: end;
  height: 118px;
  padding-top: 8px;
}
.ro-rbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}
.ro-rbar-val { font-family: var(--ro-mono); font-size: 11px; color: #fde68a; font-weight: 700; }
.ro-rbar-fill {
  width: 100%;
  max-width: 34px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #f59e0b 0%, rgba(245, 158, 11, 0.25) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  min-height: 10px;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s;
}
.ro-rbar-col:hover .ro-rbar-fill { filter: brightness(1.25); }
.ro-rbar-date { font-family: var(--ro-mono); font-size: 10px; color: var(--ro-muted); }

/* Dual Chronological Feed */
.ro-feeds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ro-feed-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}
.ro-feed-list::-webkit-scrollbar { width: 6px; }
.ro-feed-list::-webkit-scrollbar-track { background: transparent; }
.ro-feed-list::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); border-radius: 999px; }
.ro-feed-list::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.45); }
.ro-event {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12.5px;
  line-height: 1.55;
}
.ro-event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.ro-event-badge {
  font-family: var(--ro-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}
.ro-event-badge.is-amber { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.ro-event-time { font-family: var(--ro-mono); font-size: 11px; color: var(--ro-muted); }
.ro-event a { color: var(--ro-cyan); text-decoration: none; }
.ro-event a:hover { text-decoration: underline; }

/* Optional Relay Signal Matrix (Main Site Only) */
.ro-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ro-signal-card {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: grid;
  gap: 5px;
}
.ro-signal-card strong { font-size: 13px; color: #f8fafc; }
.ro-signal-card code { font-family: var(--ro-mono); font-size: 11px; color: #94a3b8; }

@media (max-width: 1080px) {
  .ro-deck { grid-template-columns: 1fr; }
  .ro-dish-panel { order: -1; }
  .ro-feeds { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ro-pulse-dot { animation: none !important; }
}
