:root {
  --bg: #07111f;
  --panel: #0f1b2d;
  --card: #162338;
  --line: #2a3b55;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #0284c7;
  --primary-2: #38bdf8;
  --danger: #ef4444;
  --ok: #10b981;
  --font: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 0% -10%, #0c4a6e55, transparent),
    radial-gradient(700px 400px at 100% 0%, #07598544, transparent),
    var(--bg);
}
.boot { padding: 40px; color: var(--muted); }
a { color: var(--primary-2); }
button, input, select, textarea { font: inherit; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 12px; }
input, select, textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 12px;
}
textarea { min-height: 80px; }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  width: 100%;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-sm { width: auto; padding: 7px 10px; font-size: 12px; }
.btn-ok { background: #065f46; color: #a7f3d0; width: auto; }
.btn-danger { background: #7f1d1d; color: #fecaca; width: auto; }
.err { color: #fca5a5; font-size: 13px; }
.ok { color: #6ee7b7; font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.brand {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}
.brand span { color: var(--primary-2); }
.side .brand img { width: 34px; height: 34px; border-radius: 10px; }
.tabs { display: flex; gap: 8px; margin: 16px 0 18px; }
.tabs button {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}
.tabs button.active { color: var(--text); border-color: var(--primary); background: #0c4a6e55; }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  background: #081425;
  border-right: 1px solid var(--line);
  padding: 20px 14px;
}
.nav button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  cursor: pointer;
  font-weight: 600;
}
.nav button.active, .nav button:hover { background: #0c4a6e44; color: var(--text); }
.main { padding: 24px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.top h1 { margin: 0; font-size: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0c4a6e;
  color: #bae6fd;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.full { grid-column: 1 / -1; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
}
