* { box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #1a1a1a;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 1.25rem;
  margin: 0;
}

.status {
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.status-connected {
  background: #d1f7dc;
  color: #0a6b2b;
}

.status-disconnected {
  background: #fde2e2;
  color: #a30d0d;
}

#enroll {
  background: #fff7e0;
  border: 1px solid #e8d488;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

#pubkey {
  background: #111;
  color: #eee;
  padding: 0.6rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
}

#request-list {
  list-style: none;
  padding: 0;
}

.request {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.request h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.request dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.request dt {
  color: #666;
}

.request dd {
  margin: 0;
  word-break: break-all;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.actions button {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

.approve {
  background: #1a7f37;
  color: white;
}

.reject {
  background: #c1121f;
  color: white;
}

@media (prefers-color-scheme: dark) {
  body { background: #111; color: #eee; }
  .request { border-color: #333; }
  .request dt { color: #999; }
}
