:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --border: #e4e4ec;
  --surface: #f7f7fb;
  --accent: #6c5cff;
  --warn-bg: #fff8e6;
  --warn-border: #f0d78c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f17;
    --text: #eaeaf4;
    --text-muted: #a3a3b8;
    --border: #26263a;
    --surface: #181824;
    --accent: #9b8cff;
    --warn-bg: #2a2410;
    --warn-border: #5c4d1a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
header.top .logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 18px;
  flex-shrink: 0;
}
header.top .name { font-weight: 700; font-size: 17px; }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.meta { color: var(--text-muted); font-size: 14px; margin: 2px 0; }
.meta strong { color: var(--text); }
.warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 20px 0 28px;
}
h2 { font-size: 19px; font-weight: 700; margin: 36px 0 12px; }
h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--text-muted); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.nav-links {
  display: flex; gap: 16px; margin-bottom: 8px; font-size: 14px;
}
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
