*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #222222;
  --text: #e8e8e8;
  --text-secondary: #888888;
  --accent: #c8ff00;
  --cyan: #00bcd4;
  --purple: #a855f7;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", -apple-system, sans-serif;
  --danger: #ff4444;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
}
.orb-1 { width: 560px; height: 560px; background: var(--accent); top: -180px; left: -80px; animation: float1 22s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; background: var(--cyan); bottom: -120px; right: -80px; animation: float2 26s ease-in-out infinite; }
.orb-3 { width: 360px; height: 360px; background: var(--purple); top: 45%; left: 50%; transform: translate(-50%, -50%); animation: float3 18s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(70px, 50px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, -70px); } }
@keyframes float3 { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-45%, -55%) scale(1.12); } }

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  position: relative;
  z-index: 1;
}

.hero { margin-bottom: 32px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.accent { color: var(--accent); }
.lede {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
}
.lede strong { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#install-id {
  flex: 1;
  min-width: 200px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}
#install-id:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 255, 0, 0.15);
}

.btn-primary {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0a;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 255, 0, 0.25);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
  font-family: var(--mono);
}

.hidden { display: none !important; }

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.dash-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--mono);
}
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr:last-child td { border-bottom: none; }
td.props { color: var(--text-secondary); word-break: break-word; max-width: 280px; }

.log-list {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.log-list li {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-list li:last-child { border-bottom: none; }
.log-list a {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.log-list a:hover { text-decoration: underline; }
.log-meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

.empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--mono);
}
#telemetry-empty, #logs-empty { display: none; margin: 0; border: 1px dashed var(--border); border-radius: 12px; }
#telemetry-empty.visible, #logs-empty.visible { display: block; }

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.sep { margin: 0 8px; opacity: 0.5; }
