/* Minimal, deliberately plain - this is the "basic portal" the plan scoped
   for v1; a rich SPA is out of scope until the map/API prove themselves. */
:root {
  --border: #d0d7de;
  --text: #24292f;
  --muted: #57606a;
  --accent: #0969da;
  --bg-subtle: #f6f8fa;
  --danger: #cf222e;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  margin: 0;
  background: #fff;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 600; text-decoration: none; color: var(--text); }
.topbar nav { display: flex; gap: 1.25rem; align-items: center; }
.topbar nav a { color: var(--text); text-decoration: none; }
.topbar nav a:hover { color: var(--accent); }
.link-button {
  background: none; border: none; padding: 0; font: inherit; color: var(--muted);
  cursor: pointer; text-decoration: underline;
}
.inline { display: inline; margin: 0; }
.content { padding: 1.5rem; max-width: 1000px; margin: 0 auto; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }

.card {
  border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.status-active { color: #1a7f37; }
.status-unclaimed { color: var(--muted); }
.status-blocked { color: var(--danger); }

input, button, select {
  font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 6px;
}
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
button.primary:hover { opacity: 0.9; }

.token-reveal {
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.75rem; font-family: ui-monospace, monospace; word-break: break-all;
}

#map { width: 100%; height: 480px; border: 1px solid var(--border); border-radius: 6px; }
#map-placeholder {
  width: 100%; height: 480px; border: 1px dashed var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}

form.stacked { display: flex; flex-direction: column; gap: 0.75rem; max-width: 360px; }
.error { color: var(--danger); }

/* Track controls above the device map. */
.track-controls {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem; flex-wrap: wrap;
}
.track-controls .muted { color: var(--muted); font-size: 0.9rem; }
.scan-meta { color: var(--muted); font-size: 0.9rem; }
/* Tag IDs run to 56 characters; break them rather than widen the table. */
.tag-id { font-family: ui-monospace, monospace; font-size: 0.85rem; word-break: break-all; }
