:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --danger: #ef4444;
  --border: #253044;
}

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

.container {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

h1, h2 { margin-top: 0; }
.muted { color: var(--muted); }

input, select, textarea, button {
  width: 100%;
  font-size: 18px;
  border-radius: 16px;
  padding: 14px;
  margin: 8px 0 14px;
  border: 1px solid var(--border);
}

input, select, textarea {
  background: #020617;
  color: var(--text);
}

button {
  background: var(--accent);
  color: #052e16;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

button.secondary {
  background: #334155;
  color: var(--text);
}

button.danger {
  background: var(--danger);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: rgba(15, 23, 42, .95);
  padding: 10px;
  border-top: 1px solid var(--border);
}

.nav a {
  text-align: center;
  color: var(--text);
  text-decoration: none;
  background: #1f2937;
  padding: 12px 8px;
  border-radius: 14px;
  font-size: 14px;
}

.warning {
  background: #f59e0b;
  color: white;
}

.warning:hover {
  background: #d97706;
}

.nav a.active {
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
}

.item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
  background: #020617;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * { flex: 1; }
