:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --danger: #ef4444;
  --border: #374151;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
display: flex; justify-content: center;
}
a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
.nav {
  background: #020617;
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
display: flex; justify-content: center;
}
.brand { font-size: 22px; font-weight: bold; color: #fff; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
label { display: block; margin: 10px 0 6px; }
input, button, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}
button, .button {
  display: inline-block;
  width: auto;
  cursor: pointer;
  background: var(--accent);
  color: #052e16;
  border: none;
  font-weight: bold;
  padding: 10px 14px;
}
button.secondary, .button.secondary { background: #334155; color: #fff; }
button.danger, .button.danger { background: var(--danger); color: #fff; }
.error {
  background: #450a0a;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.success {
  background: #052e16;
  border: 1px solid #166534;
  color: #bbf7d0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.small { color: var(--muted); font-size: 14px; }
#board { width: min(92vw, 520px); }
.status-line { margin: 8px 0; word-break: break-word; }
.inline-form { display: inline; }
