:root {
  --border: #d8dde3;
  --text: #1b1f23;
  --muted: #5c6670;
  --bg: #f7f8fa;
  --accent: #2563eb;
  --danger: #b42318;
  --success: #15803d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.footer-link {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-link a {
  color: var(--muted);
}

main ol {
  padding-left: 1.25rem;
}

main li {
  margin-bottom: 0.75rem;
}

code {
  background: #eef0f2;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-family: Consolas, monospace;
  font-size: 0.9em;
}

pre {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.85rem;
}

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.15rem;
  margin: 0;
}

#user-info {
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.status {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-enabled {
  background: #dcfce7;
  color: var(--success);
}

.badge-disabled {
  background: #fee2e2;
  color: var(--danger);
}

.btn {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn:hover {
  background: var(--bg);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-remove {
  margin-left: 0.4rem;
  color: var(--danger);
  border-color: transparent;
  background: transparent;
}

.btn-remove:hover {
  background: #fee2e2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
