:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

body { margin: 0; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
h1 { margin: 0; font-size: 1.6rem; }
header p { margin: 4px 0 0; color: #475569; }
button { border: 0; border-radius: 7px; padding: 10px 14px; background: #075985; color: white; font: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.controls button + button, #installButton { background: #334155; }
.node-info { display: flex; justify-content: space-between; margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; background: #e0f2fe; color: #0c4a6e; }
.empty-state, #readings { padding: 16px; border-radius: 8px; background: white; box-shadow: 0 1px 3px #0002; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { color: #475569; font-size: .84rem; }
td.value { font-weight: 650; white-space: nowrap; }
.error { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #fee2e2; color: #991b1b; }
code { white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  :root { background: #0f172a; color: #e2e8f0; }
  header p, th { color: #94a3b8; }
  .empty-state, #readings { background: #1e293b; }
  .node-info { background: #083344; color: #bae6fd; }
  th, td { border-color: #334155; }
  .error { background: #450a0a; color: #fecaca; }
}

@media (max-width: 520px) {
  main { padding-top: 18px; }
  table { font-size: .9rem; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
