:root {
  color-scheme: dark;
  --bg: #050816;
  --panel: #101827;
  --panel2: #0b1220;
  --border: #26344d;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --danger: #b91c1c;
}
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); }
a { color:#93c5fd; }
.shell { min-height:100vh; display:grid; grid-template-columns: 240px 1fr; }
.sidebar { background:#020617; border-right:1px solid var(--border); padding:20px; }
.brand { font-weight:700; margin-bottom:22px; }
nav { display:grid; gap:8px; }
nav a { color:#cbd5e1; text-decoration:none; padding:10px 12px; border-radius:8px; }
nav a:hover { background:#1e293b; color:white; }
.content { padding:28px; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:18px; margin-bottom:18px; }
.login-card { max-width:420px; }
.grid { display:grid; gap:16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat h2 { font-size:2rem; margin:0; }
.muted { color:var(--muted); }
label { display:block; margin-top:12px; margin-bottom:5px; font-weight:600; }
input, textarea, select { width:100%; padding:9px 10px; border:1px solid var(--border); border-radius:8px; background:var(--panel2); color:var(--text); }
button, .button { display:inline-block; margin-top:14px; border:0; border-radius:8px; padding:9px 13px; background:var(--accent); color:white; text-decoration:none; font-weight:600; cursor:pointer; }
button.compact { margin-top:0; padding:6px 9px; }
button.danger { background:var(--danger); }
table { width:100%; border-collapse:collapse; background:var(--panel2); }
th, td { border-bottom:1px solid var(--border); padding:9px; text-align:left; vertical-align:top; }
th { color:#cbd5e1; background:#0f172a; }
.code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code { background:#020617; border:1px solid var(--border); border-radius:8px; padding:12px; white-space:pre-wrap; overflow:auto; }
.notice { border-left:4px solid var(--accent); background:#0b1220; padding:12px; margin-bottom:16px; border-radius:8px; }
.notice.error { border-left-color:var(--danger); }
@media (max-width: 900px) { .shell { grid-template-columns:1fr; } .grid-4 { grid-template-columns:1fr; } }
