:root {
  --bg: #0f1115;
  --surface: #171a21;
  --border: #262b35;
  --text: #e6e8eb;
  --text-dim: #9aa1ac;
  --accent: #4f8cff;
  --danger: #e5544d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}

header .brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

header nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-right: 16px;
}

header nav a:hover { color: var(--text); }

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

h1 { margin-top: 0; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

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

th { color: var(--text-dim); font-weight: 500; font-size: 13px; text-transform: uppercase; }

tbody tr { cursor: pointer; }
tbody tr:hover { background: #1d212b; }
tbody tr:last-child td { border-bottom: none; }

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 24px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

input[type="text"], select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

textarea { width: 100%; resize: vertical; }

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

button:hover, .btn:hover { opacity: 0.9; }

.btn-danger { background: var(--danger); }

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

.card pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
  color: var(--text);
}

.meta {
  color: var(--text-dim);
  font-size: 13px;
}
