:root {
  --bg: #0e1116;
  --panel: #171b22;
  --line: #2a3140;
  --text: #e8ecf1;
  --muted: #9aa6b2;
  --accent: #c8e06c;
  --danger: #ff6b6b;
  --ok: #5ddea0;
  --font: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 20% -10%, #1a2433, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
h1,h2,h3 { margin: 0 0 12px; font-weight: 650; letter-spacing: .2px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.col { display: flex; flex-direction: column; gap: 8px; }
input, select, button, textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f131a;
  color: var(--text);
  padding: 10px 12px;
}
button {
  background: var(--accent);
  color: #12150c;
  border: none;
  font-weight: 650;
  cursor: pointer;
}
button.secondary { background: #2a3342; color: var(--text); }
button.danger { background: var(--danger); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px;
}
.nav button { background: #232b38; color: var(--text); }
.nav button.active { background: var(--accent); color: #12150c; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #243041; font-size: 12px;
}
.badge.ready { background: #1e3a2f; color: var(--ok); }
.badge.in_use { background: #3a2e1e; color: #ffd27a; }
.badge.received { background: #1e2f3a; color: #8ecbff; }
.badge.not_received { background: #3a1e1e; color: #ff9b9b; }
.login-center {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-box { width: min(420px, 100%); }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; }
.ok { color: var(--ok); font-size: 13px; margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
