.documentation {
  --docs-width: 1220px;
  --docs-gutter: clamp(16px, 4vw, 46px);
  --docs-surface: #fff;
  --docs-canvas: #f6f8f7;
  --docs-border: #dbe6e0;
  --docs-text: #304941;
  --docs-muted: #526961;
  --docs-soft: #eef5f1;
  --docs-shadow: 0 1px 2px #1b453508, 0 14px 32px -26px #224a3c65;
  background: var(--docs-canvas);
  color: var(--docs-text);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei UI",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.documentation a { text-decoration-thickness: .08em; text-underline-offset: .2em; }
.documentation :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.docs-skip {
  position: fixed;
  z-index: 3;
  top: 8px;
  left: var(--docs-gutter);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--docs-surface);
  transform: translateY(-160%);
}
.docs-skip:focus { transform: none; }

.docs-header {
  background: var(--docs-surface);
  border-bottom: 1px solid var(--docs-border);
}
.docs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--docs-width), 100% - 2 * var(--docs-gutter));
  min-height: 68px;
  margin: auto;
}
.docs-header .brand { gap: 9px; font-size: 1.32rem; font-weight: 740; letter-spacing: -.026em; }
.docs-header .brand-mark { width: 34px; height: 34px; }
.docs-header .brand-saas { color: var(--docs-muted); font-size: .74rem; }
.docs-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.docs-workspace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--docs-border);
  border-radius: 9px;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.docs-workspace:hover { border-color: #9fc3af; background: var(--docs-soft); }

.docs-home {
  width: min(820px, 100% - 2 * var(--docs-gutter));
  margin: auto;
  padding: clamp(29px, 5vw, 60px) 0 48px;
}
.docs-home-title { margin-bottom: 22px; }
.docs-home h1, .docs-title h1 {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.027em;
  font-weight: 740;
  text-wrap: balance;
}
.docs-home h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
.docs-home-title p, .docs-title p {
  margin: 0;
  color: var(--docs-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.64;
  text-wrap: pretty;
}
.docs-onboarding {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: onboarding;
}
.docs-onboarding li { counter-increment: onboarding; }
.docs-onboarding a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 15px);
  padding: 13px clamp(13px, 2vw, 19px);
  border: 1px solid var(--docs-border);
  border-radius: 11px;
  background: var(--docs-surface);
  color: var(--ink);
  text-decoration: none;
}
.docs-onboarding a:hover {
  background-color: #fcfefd;
  border-color: #9ab4a7;
  color: var(--ink);
}
.docs-onboarding a::before {
  content: counter(onboarding);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--accent);
  background: var(--docs-soft);
  font-size: .91rem;
  font-weight: 750;
}
.docs-onboarding h2 {
  margin: 0 0 3px;
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.016em;
}
.docs-onboarding p {
  margin: 0;
  color: var(--docs-muted);
  font-size: .92rem;
  line-height: 1.62;
  text-wrap: pretty;
}
.docs-step-arrow { color: var(--accent); font-size: 1.13rem; }
.docs-more { margin-top: 20px; padding-top: 11px; border-top: 1px solid var(--docs-border); }
.docs-more summary { width: fit-content; cursor: pointer; font-weight: 680; font-size: .94rem; }
.docs-references, .docs-jump { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.docs-references {
  margin-top: 10px;
  font-size: .93rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(170px, 214px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 38px);
  width: min(var(--docs-width), 100% - 2 * var(--docs-gutter));
  margin: clamp(18px, 4vw, 43px) auto 56px;
}
.docs-sidebar {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  padding: 2px 4px 8px 2px;
  overflow: auto;
}
.docs-sidebar nav, .docs-nav-pages, .docs-nav-related { display: grid; gap: 3px; }
.docs-sidebar a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--docs-text);
  font-size: .96rem;
  line-height: 1.48;
}
.docs-sidebar a:hover, .docs-sidebar a[aria-current] { background: var(--docs-soft); color: var(--accent); }
.docs-sidebar a[aria-current] { background: #e4f0e9; font-weight: 700; }
.docs-sidebar a[aria-current]::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.docs-sidebar .docs-nav-home { margin-bottom: 3px; font-weight: 700; }
.docs-nav-related { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--docs-border); }
.docs-nav-related a { color: var(--docs-muted); font-size: .9rem; }

.docs-content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 4vw, 48px);
  border-color: var(--docs-border);
  border-radius: 17px;
  background: var(--docs-surface);
  box-shadow: var(--docs-shadow);
  line-height: 1.76;
}
.docs-title h1 { font-size: clamp(1.95rem, 4.1vw, 3.18rem); }
.docs-content > header { margin-bottom: 23px; padding-bottom: 21px; border-color: var(--docs-border); }
.docs-content section { margin-top: 32px; scroll-margin-top: 18px; }
.docs-content h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.33rem, 2.15vw, 1.64rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.012em;
}
.docs-content h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.13rem;
  font-weight: 680;
  line-height: 1.4;
}
.docs-content p { color: var(--docs-text); }
.docs-content > p, .docs-content section p { max-inline-size: 76ch; }
.docs-content :is(ol, ul) { padding-inline-start: 1.55rem; }
.docs-content :is(ol, ul) > li::marker { color: var(--accent); }
.docs-content summary { cursor: pointer; font-weight: 650; }
.docs-content code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .91em;
  overflow-wrap: anywhere;
}
.docs-content :not(pre) > code {
  padding: .08em .24em;
  border: 1px solid #e1ebe4;
  border-radius: 4px;
  background: #f5f9f6;
}
.docs-jump {
  gap: 4px 7px;
  padding: 8px;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: var(--docs-soft);
  font-size: .92rem;
}
.docs-jump a { padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.docs-jump a:hover { background: var(--docs-surface); text-decoration: underline; }
.docs-steps { margin: 0; }
.docs-steps > li { padding-left: .26rem; margin: 0 0 24px; }
.docs-steps > li::marker { font-weight: 750; }
.docs-steps > li > h2, .docs-steps > li > h3 { margin-top: 0; }
.docs-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.docs-tools > div, .guide-options > div {
  min-width: 0;
  padding: 16px 19px;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: #f8fbf9;
}
.docs-tools h3 { margin-top: 0; }
.docs-tools ul { margin-bottom: 0; }
.docs-terms { display: grid; grid-template-columns: minmax(76px, auto) minmax(0, 1fr); gap: 10px 17px; }
.docs-terms dt { color: var(--ink); font-weight: 650; }
.docs-content .docs-terms dd { margin: 0; }

.docs-content .guide-code {
  margin: 13px 0 15px;
  padding: 12px clamp(12px, 2vw, 22px) 16px;
  border-color: var(--docs-border);
  border-radius: 12px;
  background: #f5f9f7;
}
.docs-content .guide-code button {
  min-height: 36px;
  padding: 4px 11px;
  border: 1px solid #b7d3c3;
  border-radius: 7px;
  background: var(--docs-surface);
  color: var(--accent);
  font-family: inherit;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.35;
}
.docs-content .guide-code button:hover { background: #e6f2eb; }
.docs-content .guide-code pre { margin-top: 10px; line-height: 1.68; }
.docs-content .guide-code code[id$="-prompt"] { font: inherit; }
.docs-content .guide-code pre:has(code[id$="-prompt"]) { font: inherit; line-height: 1.72; }
.docs-content .guide-code [role="status"] { color: var(--accent); }

.docs-content .quickstart-step { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--docs-border); }
.quickstart-proof {
  margin: 15px 0;
  padding: 10px 13px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--docs-soft);
}
.quickstart-proof strong { margin-right: .55em; color: var(--accent); }
.quickstart-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin: 17px 0;
}
.quickstart-step figure { margin: 0; }
.quickstart-step figure > a, .architecture-figure > a {
  display: block;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: #f7faf8;
}
.quickstart-step figure > a:hover, .architecture-figure > a:hover { border-color: #9fc3af; }
.quickstart-step img, .architecture-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
}
.quickstart-step figcaption, .architecture-figure figcaption {
  margin: 6px 0 0 1px;
  color: var(--docs-muted);
  font-size: .88rem;
  line-height: 1.5;
}
.quickstart-shot-wide { margin-bottom: 16px; }

@media (max-width: 760px) {
  .docs-layout, .docs-tools, .quickstart-shots { grid-template-columns: minmax(0, 1fr); }
  .docs-header-inner { min-height: 60px; }
  .docs-home { padding-top: 36px; }
  .docs-sidebar { position: static; max-height: none; padding: 0 0 2px; overflow: visible; }
  .docs-sidebar .docs-nav-home { display: none; }
  .docs-nav-pages, .docs-nav-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-sidebar a { padding: 6px 8px; font-size: .9rem; }
  .docs-nav-related { margin-top: 4px; padding-top: 5px; }
  .docs-content { padding: 17px; }
  .docs-content > header { margin-bottom: 18px; padding-bottom: 15px; }
  .docs-terms { display: block; }
  .docs-content .docs-terms dd { margin-bottom: 9px; }
}
@media (prefers-reduced-motion: reduce) {
}
