:root {
  --bg: #070b17;
  --panel: #101a2f;
  --line: #263553;
  --text: #eaf0ff;
  --muted: #9eb0d2;
  --good: #54d284;
  --warn: #ffcc5a;
  --accent: #6fb3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at 20% 10%, #1a2950, var(--bg) 45%);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.9);
}
.topbar h1 { margin: 0; font-size: 1.2rem; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.error-banner {
  padding: 8px 12px;
  background: #5f1d1d;
  border-bottom: 1px solid #9a3f3f;
  color: #ffdede;
  font-size: 0.9rem;
}
.layout {
  display: grid;
  gap: 10px;
  padding: 10px;
  grid-template-columns: 320px 1fr;
  grid-template-rows: minmax(380px, 58vh) minmax(220px, 1fr);
}
.panel {
  background: rgba(16, 26, 47, 0.95);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.left { grid-row: 1 / span 2; }
.globe-panel { padding: 0; overflow: hidden; }
.passes { grid-column: 2; }
#globeCanvas { width: 100%; height: 100%; display: block; }
h2 { margin: 10px 0 8px; font-size: 1rem; color: var(--accent); }
label { display: block; margin-bottom: 8px; font-size: 0.9rem; }
input {
  width: 100%; margin-top: 4px; padding: 6px 8px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #0a1224; color: var(--text);
}
select {
  width: 100%; margin-top: 4px; padding: 6px 8px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #0a1224; color: var(--text);
}
button {
  padding: 7px 10px; border-radius: 8px; border: 1px solid #3f5f92;
  background: #1e3a6a; color: var(--text); cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.kv { font-size: 0.9rem; line-height: 1.5; }
.muted { color: var(--muted); font-size: 0.85rem; }
.table-wrap { overflow: auto; max-height: 300px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; }
.visible-yes { color: var(--good); font-weight: 600; }
.visible-no { color: var(--warn); }

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 44vh auto;
  }
  .left, .passes, .globe-panel { grid-column: 1; grid-row: auto; }
}
