:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; background: var(--bg); color: var(--text); }
#app, #map { height: 100%; }
.login {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
}
.card h1 { margin: 0 0 8px; font-size: 22px; }
.card p { color: var(--muted); margin: 0 0 16px; }
input {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 0;
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
}
button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
}
.err { color: #f87171; min-height: 20px; margin-top: 8px; font-size: 14px; }
.topbar {
  position: absolute; z-index: 1000; left: 10px; right: 10px; top: 10px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.chip {
  background: #0f172acc; color: #fff; padding: 6px 10px; border-radius: 999px;
  font-size: 12px; backdrop-filter: blur(8px);
}
.members {
  position: absolute; z-index: 1000; left: 10px; right: 10px; bottom: 10px;
  display: flex; gap: 8px; overflow-x: auto;
}
.member {
  background: #0f172add; border-radius: 12px; padding: 8px 12px; min-width: 140px;
  border-left: 4px solid #38bdf8;
}
.member b { display: block; font-size: 13px; }
.member span { font-size: 11px; color: #cbd5e1; }
.track-panel {
  position: absolute; z-index: 1000; left: 10px; right: 10px; bottom: 10px;
  background: #0f172add; border-radius: 14px; padding: 12px;
}
.status { font-size: 13px; color: #cbd5e1; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; background:#22c55e; }
.dot.off { background:#f59e0b; }
.nav { position:absolute; z-index:1000; top:10px; right:10px; display:flex; gap:6px; }
.nav a { color:#fff; background:#1e293bcc; text-decoration:none; padding:8px 10px; border-radius:8px; font-size:12px; }
