:root {
  --docs-bg: #f5f5f5;
  --docs-surface: #ffffff;
  --docs-border: #d1d1d1;
  --docs-text: #242424;
  --docs-muted: #5c5c5c;
  --docs-accent: #0078d4;
  --docs-accent-soft: #e8f4fc;
  --docs-code-bg: #f3f2f1;
  --docs-sidebar-width: 260px;
  --docs-font: "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
  --docs-mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--docs-font);
  background: var(--docs-bg);
  color: var(--docs-text);
  line-height: 1.6;
}

a {
  color: var(--docs-accent);
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 20px;
  background: #1b1a19;
  color: #fff;
  border-bottom: 1px solid #323130;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.docs-brand img {
  height: 28px;
}

.docs-brand strong {
  font-size: 15px;
  font-weight: 600;
}

.docs-brand span {
  color: #a19f9d;
  font-weight: 400;
}

.docs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-topbar-actions a {
  color: #deecf9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.docs-topbar-actions a:hover {
  color: #fff;
  text-decoration: underline;
}

.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1280px;
  margin: 0 auto;
}

.docs-sidebar {
  display: none;
  padding: 24px 16px 40px 20px;
}

.docs-sidebar-inner {
  position: sticky;
  top: 72px;
}

.docs-sidebar h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-muted);
}

.docs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav li {
  margin: 0 0 4px;
}

.docs-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--docs-text);
  text-decoration: none;
  font-size: 14px;
}

.docs-nav a:hover {
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
}

.docs-nav a.active {
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-weight: 600;
}

.docs-main {
  min-width: 0;
  padding: 24px 20px 64px;
}

.docs-article {
  max-width: 820px;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  padding: 32px 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.docs-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-article h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.docs-lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--docs-muted);
}

.docs-article h2 {
  margin: 40px 0 12px;
  padding-top: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--docs-border);
}

.docs-article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.docs-article h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.docs-article p,
.docs-article li {
  font-size: 15px;
}

.docs-article ul,
.docs-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.docs-article li {
  margin-bottom: 6px;
}

.docs-callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--docs-accent);
  background: var(--docs-accent-soft);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
}

.docs-callout.warn {
  border-left-color: #8a6914;
  background: #fff4ce;
}

.docs-callout.danger {
  border-left-color: #a4262c;
  background: #fde7e9;
}

pre {
  margin: 12px 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-border);
  border-radius: 4px;
  font-family: var(--docs-mono);
  font-size: 13px;
  line-height: 1.5;
}

code {
  font-family: var(--docs-mono);
  font-size: 0.92em;
  background: var(--docs-code-bg);
  padding: 1px 5px;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
}

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

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

th {
  background: var(--docs-code-bg);
  font-weight: 600;
}

.docs-diagram {
  margin: 16px 0;
  padding: 16px;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-border);
  border-radius: 4px;
  font-family: var(--docs-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.docs-mobile-nav {
  display: block;
  margin-bottom: 20px;
}

.docs-mobile-nav select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--docs-border);
  border-radius: 4px;
  background: var(--docs-surface);
}

@media (min-width: 960px) {
  .docs-layout {
    grid-template-columns: var(--docs-sidebar-width) 1fr;
  }

  .docs-sidebar {
    display: block;
  }

  .docs-mobile-nav {
    display: none;
  }
}