:root {
  --bg: #0b1020;
  --panel: #121931;
  --panel-2: #1a2344;
  --text: #eef2ff;
  --muted: #aab4d4;
  --line: rgba(255,255,255,.08);
  --accent: #8ab4ff;
  --good: #2eae6a;
  --warn: #ddaa3c;
  --bad: #d85757;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: linear-gradient(180deg,#09101f,#0f1730); color: var(--text); }
a { color: var(--text); text-decoration: none; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: rgba(9,13,28,.92); border-right: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.sidebar h1 { margin: 0; font-size: 28px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar nav a { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px; }
.sidebar-note { margin-top: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--muted); line-height: 1.5; }
.main { padding: 28px; display: grid; gap: 20px; }
.card { background: rgba(18,25,49,.92); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; padding: 12px 16px; background: var(--accent); color: #071227; font-weight: 700; cursor: pointer; }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.danger { background: var(--bad); color: white; }
.button.small { padding: 8px 12px; font-size: 12px; border-radius: 12px; }
.alert { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.alert.success { background: rgba(46,174,106,.14); }
.alert.warning { background: rgba(221,170,60,.14); }
.alert.error { background: rgba(216,87,87,.14); }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid-form label { display: grid; gap: 8px; }
.grid-form label.full, .full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #0c1330; color: var(--text); border-radius: 14px; padding: 12px 14px; }
textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.actions { display: flex; gap: 8px; }
.pill, .status { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; margin-right: 6px; }
.pill { background: rgba(138,180,255,.16); color: #c8dcff; }
.status.active { background: rgba(46,174,106,.16); color: #9be8bc; }
.status.off { background: rgba(216,87,87,.16); color: #ffb4b4; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 1.4; }
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(420px, 92vw); padding: 28px; border-radius: 22px; background: rgba(18,25,49,.96); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.login-card h1 { margin-top: 0; }
.login-card form { display: grid; gap: 12px; }
.doc { max-width: 900px; margin: 0 auto; padding: 30px; color: var(--text); }
pre { background: #0c1330; border: 1px solid var(--line); padding: 16px; border-radius: 16px; overflow: auto; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero { flex-direction: column; align-items: flex-start; }
  .grid-form { grid-template-columns: 1fr; }
}
