:root {
  --bg: #0f1419;
  --card: #1a2332;
  --text: #e7ecf3;
  --muted: #9aa8bc;
  --accent: #3b82f6;
  --ok: #16a34a;
  --bad: #dc2626;
  --border: #2a3648;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: #93c5fd; text-decoration: none; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #111827; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 8px;
}
.brand { font-weight: 700; }
.links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
}
.login-card { max-width: 420px; margin: 80px auto; }
h1 { margin-top: 0; }
label { display: block; margin: 12px 0 6px; color: var(--muted); }
input, textarea, button, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #0b1220; color: var(--text);
}
button {
  width: auto; background: var(--accent); border: none; cursor: pointer;
  font-weight: 600; margin-top: 12px; padding: 10px 16px;
}
button.secondary { background: #334155; }
button.danger { background: var(--bad); }
button.linkish {
  background: transparent; color: #93c5fd; padding: 0; margin: 0; width: auto;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; }
.grid.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--muted); }
.alert { padding: 10px 12px; border-radius: 8px; margin: 12px 0; word-break: break-all; }
.alert.ok { background: rgba(22,163,74,.15); border: 1px solid var(--ok); }
.alert.error { background: rgba(220,38,38,.15); border: 1px solid var(--bad); }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.ok { background: rgba(22,163,74,.2); color: #86efac; }
.badge.bad { background: rgba(220,38,38,.2); color: #fca5a5; }
fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 12px 0; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
label.check input { width: auto; }
code { background: #0b1220; padding: 2px 6px; border-radius: 4px; }
