:root {
  color-scheme: light dark;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --live: #16a34a;
  --warn: #b45309;
  --border: #e2e8f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --live: #4ade80;
    --warn: #fbbf24;
    --border: #334155;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
.shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  min-height: 100%;
  margin: 0 auto;
  padding: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  margin: 0;
  font-size: 1.15rem;
}
.status {
  margin: 4px 0 0;
  color: var(--muted);
}
.badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--live);
}
.badge.off {
  background: var(--muted);
}
.map {
  flex: 1;
  min-height: 55vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.details dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.details dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  text-align: right;
}
.warning {
  margin: 0;
  color: var(--warn);
  text-align: center;
}
.foot {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.me {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.me.stale {
  opacity: 0.45;
}
