:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --border: rgba(255, 255, 255, 0.1);
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #0066ff;
  --accent-dim: rgba(0, 102, 255, 0.15);
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

a {
  color: #8bb4ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
}

label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #0d1117;
  color: var(--text);
  font-family: inherit;
  margin-bottom: 1rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.error {
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

th {
  color: var(--muted);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--accent-dim);
  color: #8bb4ff;
  font-family: var(--mono);
}

.msg {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
}

.msg-client {
  background: rgba(0, 102, 255, 0.08);
}

.msg-admin {
  background: rgba(255, 255, 255, 0.04);
}

.msg-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-family: var(--mono);
}
