:root {
  --bg: #0b1020;
  --panel: #121a32;
  --ink: #e8edf7;
  --muted: #9aa8c7;
  --line: #2a3658;
  --accent: #7c9cff;
  --accent2: #5bd0ff;
  --ok: #3ee0b0;
  --warn: #e6c36a;
  --bad: #ff6b7a;
  --mono: ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: var(--mono);
  font-size: 13px;
}

code {
  background: #0a0f1c;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

pre {
  background: #0a0f1c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow: auto;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 18px;
}

.sidebar .brand img { width: 26px; height: 26px; }

.sidebar nav a {
  display: block;
  color: var(--muted);
  padding: 3px 0;
  font-size: 14px;
}

.sidebar nav a:hover { color: var(--ink); text-decoration: none; }

.sidebar nav a.sub { padding-left: 14px; font-size: 13px; }

.sidebar nav .group {
  color: var(--ink);
  font-weight: 600;
  margin-top: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Content */
.content {
  max-width: 860px;
  padding: 40px 48px 120px;
}

.content h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.02em; }
.content h2 {
  font-size: 20px;
  margin: 44px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.content h3 { font-size: 16px; margin: 26px 0 8px; }
.content p { margin: 10px 0; }
.content ul, .content ol { margin: 10px 0; padding-left: 22px; }
.content li { margin: 5px 0; }

.lede { color: var(--muted); font-size: 15px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 600; }

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0;
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.tag.ok { color: var(--ok); border-color: #1e5c4a; }
.tag.warn { color: var(--warn); border-color: #5c4a1e; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding: 24px 20px 80px; }
}
