:root {
  --bg: #0f1420; --panel: #1a2233; --border: #2a3550;
  --text: #e8edf7; --muted: #8fa0bf; --accent: #4f8cff; --live: #e5484d; --ok: #3fb950;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh; padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 720px; margin: 0 auto;
}
h1 { font-size: 22px; font-weight: 600; margin: 12px 0 4px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grow { flex: 1; }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }
button {
  font: inherit; font-weight: 600; border: 0; border-radius: 10px;
  padding: 14px 24px; cursor: pointer; color: #fff; background: var(--accent);
}
button.secondary { background: var(--panel); border: 1px solid var(--border); color: var(--text); }
button.small { font-size: 13px; font-weight: 500; background: none; border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; border-radius: 8px; }
button.stop { background: var(--live); }
button:disabled { opacity: .5; cursor: default; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.live { background: var(--live); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
.on { color: var(--ok); }
a { color: var(--accent); }
