:root {
  --bg: #ffffff;
  --text: #1c2530;
  --muted: #6b7684;
  --border: #e2e5ea;
  --accent: #1976d2;
  --sidebar: 260px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.layout { display: flex; min-height: 100vh; align-items: stretch; }
nav {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
}
nav h1 { font-size: 16px; margin: 0 0 4px; }
nav h1 .logo { display: block; max-width: 100%; max-height: 40px; margin-bottom: 8px; }
nav .subtitle { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
nav h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 20px 0 8px;
}
nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 2px 0; }
nav a { color: var(--text); text-decoration: none; display: block; padding: 3px 0; }
nav a:hover { color: var(--accent); }
nav a.current { color: var(--accent); font-weight: 600; }
nav .kind { color: var(--muted); font-size: 12px; }
main { flex: 1; padding: 32px 40px; min-width: 0; max-width: 1100px; }
main h1 { font-size: 24px; margin: 0 0 4px; }
main .subtitle { color: var(--muted); margin: 0 0 24px; }
.diagram { border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.diagram svg { width: 100%; height: auto; display: block; }
table { border-collapse: collapse; margin: 16px 0; }
th, td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
th { background: #f5f6f8; }
pre {
  background: #f5f6f8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  overflow-x: auto;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
pre code { font-size: 12.5px; }
blockquote {
  margin: 16px 0;
  padding: 4px 16px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}
.status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f1fb;
  color: var(--accent);
}
.properties h3 { font-size: 15px; margin: 20px 0 6px; }
.properties h3 .kind { color: var(--muted); font-size: 12px; font-weight: 400; }
.properties table { width: 100%; margin: 0 0 8px; table-layout: fixed; }
.properties th { width: 28%; vertical-align: top; background: none; }
.properties td { vertical-align: top; overflow-wrap: anywhere; }
.properties td > :first-child { margin-top: 0; }
.properties td > :last-child { margin-bottom: 0; }
.properties td :is(h1, h2, h3, h4, h5, h6) { font-size: 14px; margin: 10px 0 4px; }
footer { color: var(--muted); font-size: 12px; margin-top: 40px; }
@media (max-width: 800px) {
  .layout { display: block; }
  nav { width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  main { padding: 24px 20px; }
}
