:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --danger: #dc2626;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
}

button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
button.danger { background: var(--danger); }

input[type=email], input[type=text] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}

.muted { color: var(--muted); font-size: 0.85rem; }
.divider { text-align: center; margin: 1.25rem 0; color: var(--muted); font-size: 0.85rem; }
.scope-list { list-style: none; padding: 0; }
.scope-list li { padding: 0.3rem 0; }
.error { color: var(--danger); font-size: 0.9rem; }
