:root {
  --bg: #060b14;
  --panel: #0d1524;
  --panel2: #121c30;
  --line: #1f2f4a;
  --text: #e6edf7;
  --muted: #92a3bc;
  --accent: #00d4ff;
  --accent2: #7c5cff;
  --ok: #35d07f;
  --warn: #ffb454;
  --bad: #ff5f7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 600px at 20% -10%, #13294a 0%, var(--bg) 55%), var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; overflow-x: clip; max-width: 100%; }
a { color: var(--accent); }
.skip-link { position:absolute; left:-9999px; top:0; z-index:10000; background:var(--accent); color:#021018; padding:10px 14px; font-weight:700; }
.skip-link:focus { left: 0; }
.app { width: min(1800px, 96vw); margin: 0 auto; padding: 18px 0 32px; }
.topbar { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.brand { display:flex; gap:16px; align-items:flex-start; }
.back { color:var(--muted); text-decoration:none; font-size:.9rem; padding-top:4px; white-space:nowrap; }
.back:hover { color: var(--accent); }
.eyebrow { font-size:.72rem; letter-spacing:.18em; color:var(--accent); font-weight:700; }
h1 { margin:2px 0 0; font-size:clamp(1.8rem,4vw,3rem); letter-spacing:.04em; line-height:1; }
.sub { margin:4px 0 0; color:var(--muted); }
.top-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.status-pill { padding:8px 12px; border:1px solid var(--line); border-radius:999px; font-size:.8rem; color:var(--muted); background:rgba(255,255,255,.02); max-width:520px; }
.status-pill.ok { color: var(--ok); border-color: rgba(53,208,127,.35); }
.status-pill.err { color: var(--bad); border-color: rgba(255,95,122,.35); }
.btn { background: linear-gradient(135deg, #00bcd4, #3b82f6); color:#041018; border:0; padding:10px 14px; border-radius:10px; font-weight:700; cursor:pointer; font-size:.9rem; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity:.5; cursor:wait; }
.btn.ghost { background:transparent; color:var(--text); border:1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.notice { background: rgba(0,212,255,.06); border:1px solid rgba(0,212,255,.2); padding:12px 14px; border-radius:12px; color:#cfe8f3; margin-bottom:14px; font-size:.92rem; line-height:1.5; }
.layout { display:grid; grid-template-columns: 320px minmax(0,1fr) 320px; gap:14px; align-items:stretch; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%), var(--panel); border:1px solid var(--line); border-radius:16px; padding:16px; min-width:0; }
.panel h2 { margin:0 0 12px; font-size:1rem; letter-spacing:.02em; }
.controls label, .timeline-bar label { display:block; font-size:.8rem; color:var(--muted); margin-bottom:10px; }
input, select { width:100%; margin-top:5px; background:#09111d; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:10px 11px; font:inherit; }
input:focus, select:focus { outline:2px solid rgba(0,212,255,.35); border-color:var(--accent); }
.row { display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-bottom:10px; }
.row .btn { width:100%; }
.small-row { grid-template-columns: auto 1fr; align-items:center; }
.chk { display:flex; gap:8px; align-items:center; font-size:.8rem; color:var(--muted); margin:0; }
.chk input { width:auto; margin:0; accent-color: var(--accent); }
.filter-box { margin:10px 0 0; padding:10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.015); }
.filter-title { font-size:.75rem; color:var(--accent); font-weight:700; letter-spacing:.04em; margin-bottom:8px; text-transform:uppercase; }
.stats { margin-top:14px; border-top:1px solid var(--line); padding-top:12px; display:grid; gap:8px; }
.stats div, .dossier-grid div { display:flex; justify-content:space-between; gap:10px; font-size:.82rem; }
.k { color:var(--muted); }
.v { color:var(--text); text-align:right; word-break:break-word; }
.small { font-size:.78rem; line-height:1.45; }
.muted { color: var(--muted); }
.globe-panel { padding:0; overflow:hidden; display:flex; flex-direction:column; min-height:640px; }
.panel-head { padding:14px 16px; display:flex; justify-content:space-between; gap:10px; align-items:center; border-bottom:1px solid var(--line); }
.panel-head h2 { margin:0; }
.legend { display:flex; gap:12px; flex-wrap:wrap; font-size:.75rem; color:var(--muted); }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.dot.sat { background:#8fd3ff; box-shadow:0 0 8px rgba(143,211,255,.8); }
.dot.vis { background:#35d07f; box-shadow:0 0 8px rgba(53,208,127,.8); }
.dot.obs { background:#ffb454; box-shadow:0 0 8px rgba(255,180,84,.8); }
#globe { flex:1; min-height:520px; position:relative; }
#globe canvas { max-width:100%; }
.timeline-bar { padding:12px 16px 16px; border-top:1px solid var(--line); background:rgba(0,0,0,.12); }
.timeline-bar input[type=range] { padding:0; height:34px; }
.dossier-name { font-size:1.05rem; font-weight:700; margin-bottom:12px; color:#fff; word-break:break-word; }
.dossier-grid { display:grid; gap:8px; }
.telemetry { margin-top:14px; border:1px solid rgba(0,212,255,.22); background:linear-gradient(180deg,rgba(0,212,255,.04),rgba(0,0,0,.18)); border-radius:12px; padding:10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.telemetry-head { font-size:.72rem; letter-spacing:.14em; color:var(--accent); font-weight:800; display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.pulse { width:8px; height:8px; border-radius:50%; background:#35d07f; box-shadow:0 0 10px #35d07f; animation:pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.6)} }
.telemetry-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px 10px; font-size:.74rem; margin-bottom:8px; }
.telemetry-grid div { display:flex; justify-content:space-between; gap:8px; border-bottom:1px dashed rgba(255,255,255,.06); padding-bottom:2px; }
.telemetry-grid .k { color:#7fc9d8; }
.telemetry-grid .v { color:#dff7ff; text-align:right; }
.telemetry-log { height:160px; overflow:auto; background:#050a12; border:1px solid rgba(0,212,255,.12); border-radius:8px; padding:8px; font-size:.7rem; line-height:1.45; color:#8fe7b0; }
.telemetry-log .log-line { white-space:nowrap; }
.telemetry-log .t { color:#5fd0ff; margin-right:6px; }
.telemetry-log .warn { color:#ffb454; }
.telemetry-log .ok { color:#35d07f; }
.table-panel { margin-top:14px; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:980px; font-size:.84rem; }
th, td { padding:10px 8px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:.76rem; letter-spacing:.03em; text-transform:uppercase; position:sticky; top:0; background:var(--panel); }
tbody tr:hover { background: rgba(0,212,255,.05); cursor:pointer; }
tbody tr.selected { background: rgba(0,212,255,.1); }
.footer { margin-top:14px; color:var(--muted); font-size:.78rem; display:grid; gap:4px; padding:0 2px; }
@media (max-width: 1400px) { .layout { grid-template-columns: 300px minmax(0,1fr); } .dossier { grid-column: 1 / -1; } }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .globe-panel { min-height: 520px; } #globe { min-height: 420px; } .topbar { flex-direction:column; } .top-actions { justify-content:flex-start; } }