:root {
  --bg: #0f1115;
  --card: #171a21;
  --border: #2a2e38;
  --text: #e6e8eb;
  --muted: #9aa1ac;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --ok: #57f287;
  --err: #ed4245;
}

* { box-sizing: border-box; }

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

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

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

nav {
  display: flex;
  gap: 8px;
  padding: 16px 32px 0;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

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

main {
  padding: 24px 32px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

input, textarea, select {
  width: 100%;
  background: #0f1115;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

label { font-size: 0.85rem; color: var(--muted); }

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover { background: var(--accent-hover); }

.login-btn {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.badge.pending { background: #f1c40f33; color: #f1c40f; }
.badge.accepted { background: #57f28733; color: var(--ok); }
.badge.rejected { background: #ed424533; color: var(--err); }

.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.app-row:last-child { border-bottom: none; }

.hint { color: var(--muted); font-size: 0.85rem; margin-top: -8px; }

.actions { display: flex; gap: 8px; }

.btn-reject { background: var(--err); }
.btn-reject:hover { background: #c0392b; }

pre.rules-view {
  white-space: pre-wrap;
  font-family: inherit;
}
