:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #101010;
  --panel-raised: #151515;
  --panel-soft: #0d0d0d;
  --line: #292929;
  --line-strong: #3b3b3b;
  --text: #f0f0ed;
  --muted: #a2a29c;
  --faint: #71716c;
  --accent: #9bef6b;
  --accent-soft: rgba(155, 239, 107, .1);
  --purple: #a78bfa;
  --cyan: #67e8f9;
  --syntax-attribute: #fde68a;
  --syntax-comment: #8f9b8b;
  --syntax-function: #93c5fd;
  --syntax-keyword: #c4b5fd;
  --syntax-literal: #fdba74;
  --syntax-number: #fbbf7a;
  --syntax-operator: #b8b8b2;
  --syntax-property: #f0abfc;
  --syntax-string: #a7f3d0;
  --syntax-tag: #fda4af;
  --syntax-type: #67e8f9;
  --syntax-variable: #f9a8d4;
  --header-height: 64px;
  --sidebar-width: 272px;
  --content-width: 780px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #101b0a; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, .9);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(280px, 620px) 1fr;
  align-items: center;
  gap: 18px;
  width: min(100%, 1580px);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  width: max-content;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.wordmark img { display: block; width: 24px; height: 24px; border-radius: 5px; }
.wordmark-docs { color: var(--faint); font-weight: 540; }
.header-links { display: flex; justify-content: flex-end; gap: 22px; }
.header-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 620;
}
.header-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.header-search { min-width: 0; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}
.search-box:focus-within { border-color: #555; box-shadow: 0 0 0 3px rgba(255,255,255,.045); }
.search-icon { padding-left: 12px; color: var(--faint); }
.search-box input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}
.search-box input::placeholder { color: #686864; }
.search-box kbd {
  margin-right: 9px;
  border: 1px solid #393939;
  border-radius: 4px;
  color: var(--faint);
  padding: 0 6px;
  font: 10px/20px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.search-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #121212;
  box-shadow: 0 22px 70px rgba(0,0,0,.62);
}
.search-popover-label {
  padding: 11px 13px 7px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.search-popover > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 13px;
  border-top: 1px solid #202020;
  text-decoration: none;
}
.search-popover > a:hover, .search-popover > a:focus { outline: 0; background: #1b1b1b; }
.search-popover > a span:first-child { min-width: 0; }
.search-popover strong, .search-popover small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-popover strong { font-size: 12px; }
.search-popover small { margin-top: 1px; color: var(--faint); font-size: 10px; }
.search-popover > a > span:last-child { color: var(--faint); }
.search-empty { padding: 18px 13px; border-top: 1px solid #202020; color: var(--muted); font-size: 12px; }
.search-all {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #171717;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  padding: 8px 13px;
  font-size: 11px;
}
.search-all:hover { color: #fff; background: #202020; }

.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)) minmax(190px, 230px);
  justify-content: center;
  gap: clamp(26px, 4vw, 64px);
  width: min(100%, 1580px);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 0 22px;
}
.sidebar {
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  padding: 26px 18px 64px 0;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.docs-navigation { display: grid; gap: 25px; }
.nav-home {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 10px;
  text-decoration: none;
}
.nav-home-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  background: var(--accent);
  color: #102008;
  font-weight: 800;
}
.nav-home strong, .nav-home small { display: block; }
.nav-home strong { font-size: 12px; }
.nav-home small { color: var(--faint); font-size: 10px; }
.nav-group h2 {
  margin: 0 0 7px;
  padding: 0 9px;
  color: #6b6b67;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-group > a {
  position: relative;
  display: block;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.nav-group > a:hover { background: #131313; color: #fff; }
.nav-group > a.active { background: #181818; color: #fff; }
.nav-group > a.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.nav-scrim { display: none; }

.main-content { min-width: 0; padding: 58px 0 100px; }
.toc {
  position: sticky;
  top: calc(var(--header-height) + 46px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 70px);
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.toc > strong {
  display: block;
  margin-bottom: 11px;
  color: #deded9;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.toc nav { display: grid; }
.toc nav a, .toc-empty {
  display: block;
  padding: 4px 0;
  color: var(--faint);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.45;
}
.toc nav a:hover, .toc nav a.active { color: #fff; }
.toc-level-3 { padding-left: 12px !important; }
.toc-agent {
  display: grid;
  gap: 5px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.toc-agent span { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.toc-agent a { color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: none; }
.toc-agent a:hover { color: var(--accent); }

.home { width: min(100%, 980px); margin-left: auto; margin-right: auto; }
.home-hero { padding: clamp(40px, 7vw, 88px) 0 62px; }
.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.home-hero h1 {
  max-width: 850px;
  margin: 22px 0 25px;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 680;
  letter-spacing: -.072em;
  line-height: .94;
}
.home-hero h1 em { color: #656560; font-style: normal; }
.home-hero > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}
.home-hero > p code {
  color: #deded8;
  font: .86em ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.primary-action, .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.primary-action { background: var(--text); color: #111; }
.primary-action span { margin-left: 25px; }
.secondary-action { border: 1px solid var(--line-strong); background: #121212; color: var(--text); }
.primary-action:hover { background: var(--accent); }
.secondary-action:hover { background: #1b1b1b; border-color: #555; }
.install-command {
  display: flex;
  align-items: center;
  width: min(100%, 510px);
  min-height: 56px;
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0e0e;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.install-command .command-prompt { padding-left: 17px; color: var(--accent); font: 14px ui-monospace, monospace; }
.install-command code { min-width: 0; flex: 1; padding: 0 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.install-command button {
  align-self: stretch;
  min-width: 66px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}
.install-command button:hover { color: #fff; background: #171717; }
.home-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.home-proof article { min-height: 108px; padding: 20px; border-right: 1px solid var(--line); background: rgba(15,15,15,.76); }
.home-proof article:last-child { border-right: 0; }
.home-proof strong, .home-proof span { display: block; }
.home-proof strong { font-size: 24px; letter-spacing: -.04em; }
.home-proof span { margin-top: 4px; color: var(--faint); font-size: 11px; }
.home-section { padding: 100px 0 10px; }
.section-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 5px 30px; align-items: start; margin-bottom: 35px; }
.section-heading > span { grid-row: 1 / 3; color: var(--faint); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1; }
.section-heading p { max-width: 590px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.quickstart {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}
.quickstart ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quickstart ol li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 83px;
  padding: 15px 21px;
  border-bottom: 1px solid var(--line);
}
.quickstart ol li:last-child { border-bottom: 0; }
.quickstart ol li > span {
  color: var(--faint);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.quickstart ol strong, .quickstart ol code { display: block; }
.quickstart ol strong { margin-bottom: 5px; font-size: 13px; }
.quickstart ol code {
  overflow: hidden;
  color: var(--accent);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quickstart aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(155,239,107,.055), rgba(167,139,250,.025));
  padding: clamp(24px, 4vw, 38px);
}
.quickstart-label {
  color: var(--faint);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.quickstart aside ul { display: grid; gap: 10px; margin: 19px 0 25px; padding: 0; list-style: none; }
.quickstart aside li { color: var(--muted); font-size: 11px; }
.quickstart aside li span { margin-right: 8px; color: var(--accent); }
.quickstart aside > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #e6e6e1;
  text-decoration: none;
  font-size: 11px;
}
.quickstart aside > a:hover { color: var(--accent); }
.architecture-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}
.architecture-map a { min-width: 0; min-height: 155px; padding: 19px; text-decoration: none; }
.architecture-map a:hover { background: #151515; }
.architecture-map small, .architecture-map strong, .architecture-map span { display: block; }
.architecture-map small { color: var(--accent); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.architecture-map strong { margin-top: 21px; font-size: 14px; }
.architecture-map span { margin-top: 5px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.map-arrow { color: #454541; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.path-grid > a {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
  padding: 23px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.path-grid > a:hover { border-color: #454545; background: #141414; }
.path-grid span, .path-grid strong, .path-grid i { display: block; }
.path-grid span { color: var(--accent); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.path-grid strong { margin-top: 37px; font-size: 19px; letter-spacing: -.025em; }
.path-grid p { max-width: 360px; color: var(--muted); font-size: 12px; }
.path-grid i { margin-top: 22px; color: #d5d5d0; font-size: 11px; font-style: normal; }
.agent-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 60px;
  margin-top: 110px;
  border: 1px solid rgba(155,239,107,.25);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(155,239,107,.08), rgba(167,139,250,.045));
  padding: clamp(28px, 5vw, 52px);
}
.agent-banner h2 { margin: 16px 0 10px; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.05em; }
.agent-banner p { margin: 0; color: var(--muted); font-size: 13px; }
.agent-links { display: grid; align-content: center; gap: 7px; }
.agent-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 49px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
}
.agent-links code { color: var(--accent); font: 11px ui-monospace, monospace; }
.agent-links span { color: var(--muted); font-size: 10px; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.directory-grid article { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); padding: 20px; }
.directory-grid article > div { display: flex; align-items: center; gap: 12px; }
.directory-grid article > div span { color: var(--faint); font: 10px ui-monospace, monospace; }
.directory-grid h3 { margin: 0; font-size: 15px; }
.directory-grid p { min-height: 42px; color: var(--faint); font-size: 11px; }
.directory-grid ul { margin: 15px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.directory-grid li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 11px; }
.directory-grid li a:hover { color: #fff; }
.directory-grid li span { color: #555; }

.doc-page { width: 100%; }
.doc-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 10px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.doc-header h1, .search-page h1 {
  max-width: 760px;
  margin: 23px 0 15px;
  font-size: clamp(40px, 5.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.doc-header > p, .search-page > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 23px; }
.doc-meta span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 9px; color: var(--faint); font-size: 9px; }
.doc-formats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.doc-formats a { color: var(--muted); font: 10px ui-monospace, monospace; text-decoration: none; }
.doc-formats a:hover { color: var(--accent); }

.markdown { padding-top: 28px; color: #d4d4d0; font-size: 14px; line-height: 1.8; }
.markdown > *:first-child { margin-top: 0; }
.markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { position: relative; scroll-margin-top: 90px; color: var(--text); }
.markdown h2 { margin: 62px 0 18px; padding-top: 5px; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.markdown h3 { margin: 42px 0 14px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.markdown h4 { margin: 29px 0 10px; font-size: 15px; }
.heading-anchor {
  position: absolute;
  right: 100%;
  width: 27px;
  color: #4d4d49;
  text-decoration: none;
  opacity: 0;
}
.markdown h2:hover .heading-anchor, .markdown h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.markdown p { margin: 0 0 19px; }
.markdown a { color: var(--accent); text-decoration-color: rgba(155,239,107,.35); text-underline-offset: 3px; }
.markdown a:hover { text-decoration-color: var(--accent); }
.markdown strong { color: #f1f1ed; font-weight: 700; }
.markdown code {
  border: 1px solid #30302e;
  border-radius: 5px;
  background: #151513;
  color: #e5e5df;
  padding: 2px 5px;
  font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.markdown ul, .markdown ol { margin: 0 0 22px; padding-left: 24px; }
.markdown li { margin: 7px 0; padding-left: 3px; }
.markdown li::marker { color: #6c6c67; }
.markdown blockquote {
  margin: 26px 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  padding: 15px 18px;
  color: #d7e7ce;
}
.markdown hr { margin: 45px 0; border: 0; border-top: 1px solid var(--line); }
.code-block { overflow: hidden; margin: 25px 0; border: 1px solid var(--line); border-radius: 10px; background: #0b0b0b; }
.code-block figcaption { display: flex; align-items: center; justify-content: space-between; height: 46px; border-bottom: 1px solid var(--line); background: #111; padding-left: 13px; }
.code-block figcaption span { color: var(--faint); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.code-block figcaption button { align-self: stretch; min-width: 60px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.code-block figcaption button:hover { background: #191919; color: #fff; }
.code-block pre { overflow-x: auto; margin: 0; padding: 17px; scrollbar-width: thin; }
.code-block pre code { border: 0; background: transparent; padding: 0; color: #d7d7d1; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tok-attribute { color: var(--syntax-attribute); }
.tok-comment { color: var(--syntax-comment); font-style: italic; }
.tok-function { color: var(--syntax-function); }
.tok-keyword { color: var(--syntax-keyword); font-weight: 650; }
.tok-literal { color: var(--syntax-literal); }
.tok-number { color: var(--syntax-number); }
.tok-operator { color: var(--syntax-operator); }
.tok-property { color: var(--syntax-property); }
.tok-string { color: var(--syntax-string); }
.tok-tag { color: var(--syntax-tag); }
.tok-type { color: var(--syntax-type); }
.tok-variable { color: var(--syntax-variable); }
.table-scroll { overflow-x: auto; margin: 25px 0; border: 1px solid var(--line); border-radius: 9px; }
.markdown table { width: 100%; min-width: 570px; border-collapse: collapse; font-size: 12px; }
.markdown th, .markdown td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown th { background: #141414; color: #f0f0ec; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.markdown tr:last-child td { border-bottom: 0; }
.agent-note { margin-top: 56px; border: 1px solid rgba(155,239,107,.24); border-radius: 10px; background: var(--accent-soft); padding: 18px; }
.agent-note strong { display: block; color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.agent-note p { margin: 6px 0 0; color: #b8c9af; font-size: 12px; }
.agent-note a { color: #fff; }
.page-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-navigation a { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 14px; text-decoration: none; }
.page-navigation a:hover { border-color: #494949; background: #121212; }
.page-navigation small, .page-navigation strong { display: block; }
.page-navigation small { color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.page-navigation strong { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.page-navigation .next { text-align: right; }

.search-page { min-height: 65vh; }
.search-page h1 { margin-top: 24px; }
.search-results { display: grid; gap: 9px; margin-top: 40px; }
.search-results > a { display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); padding: 20px; text-decoration: none; }
.search-results > a:hover { border-color: #444; background: #141414; }
.search-results > a > span { color: var(--accent); font: 9px ui-monospace, monospace; text-transform: uppercase; }
.search-results h2 { margin: 8px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.search-results p { margin: 0; color: var(--muted); font-size: 12px; }
.search-results small { display: block; margin-top: 15px; color: var(--faint); }
.no-results { display: grid; gap: 5px; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 35px; text-align: center; }
.no-results span { color: var(--muted); font-size: 12px; }
.not-found { min-height: 65vh; padding-top: 70px; }
.not-found > span { color: var(--accent); font: 11px ui-monospace, monospace; }
.not-found h1 { max-width: 620px; margin: 16px 0; font-size: clamp(40px, 7vw, 70px); line-height: .98; letter-spacing: -.065em; }
.not-found p { max-width: 530px; color: var(--muted); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  padding: 20px max(22px, calc((100vw - 1536px) / 2));
  font-size: 10px;
}
.site-footer > span:last-child { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: var(--sidebar-width) minmax(280px, 1fr) auto; }
  .docs-shell { grid-template-columns: var(--sidebar-width) minmax(0, var(--content-width)); }
  .toc { display: none; }
}

@media (max-width: 900px) {
  :root { --header-height: 64px; }
  .header-inner { grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; padding: 0 14px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-links { display: none; }
  .search-box { height: 44px; }
  .docs-shell { display: block; padding: 0 16px; }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(310px, calc(100vw - 55px));
    height: 100dvh;
    padding: 22px 16px 60px;
    border-right: 1px solid var(--line);
    background: #0b0b0b;
    box-shadow: 24px 0 70px rgba(0,0,0,.6);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  .nav-group > a { display: flex; align-items: center; min-height: 44px; }
  .breadcrumbs a, .doc-formats a, .site-footer a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .doc-formats a { justify-content: center; }
  body[data-nav-open] .sidebar { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgba(0,0,0,.64);
    padding: 0;
  }
  .main-content { width: min(100%, var(--content-width)); margin: auto; padding-top: 40px; }
  .home { width: min(100%, 850px); }
  .home-hero { padding-top: 40px; }
}

@media (max-width: 680px) {
  .wordmark { font-size: 16px; }
  .wordmark-docs { display: none; }
  .search-box { height: 44px; }
  .search-box kbd { display: none; }
  .search-popover { position: fixed; top: 68px; right: 12px; left: 12px; }
  .main-content { padding-bottom: 70px; }
  .breadcrumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .doc-formats { gap: 8px; }
  .doc-formats a { display: inline-flex; align-items: center; min-height: 44px; }
  .home-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .home-proof { grid-template-columns: 1fr 1fr; }
  .home-proof article:nth-child(2) { border-right: 0; }
  .home-proof article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > span { grid-row: auto; margin-bottom: 7px; }
  .quickstart { grid-template-columns: 1fr; }
  .quickstart aside { border-top: 1px solid var(--line); border-left: 0; }
  .architecture-map { grid-template-columns: 1fr; }
  .architecture-map a { min-height: 125px; }
  .map-arrow { display: none; }
  .path-grid, .directory-grid { grid-template-columns: 1fr; }
  .agent-banner { grid-template-columns: 1fr; gap: 28px; }
  .doc-header h1, .search-page h1 { font-size: clamp(38px, 12vw, 52px); }
  .markdown h2 { font-size: 25px; }
  .heading-anchor { display: none; }
  .page-navigation { grid-template-columns: 1fr; }
  .page-navigation .next { text-align: left; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 390px) {
  .header-inner { gap: 7px; padding: 0 10px; }
  .wordmark::before { display: none; }
  .docs-shell { padding: 0 13px; }
  .home-hero { padding-top: 25px; }
  .home-hero h1 { font-size: 45px; }
  .hero-actions > a { width: 100%; }
  .home-proof { grid-template-columns: 1fr; }
  .home-proof article { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-proof article:last-child { border-bottom: 0; }
  .install-command code { font-size: 11px; }
  .quickstart ol li { grid-template-columns: 31px minmax(0, 1fr); padding: 14px; }
  .quickstart ol code { font-size: 10px; }
  .quickstart aside { padding: 22px 17px; }
  .doc-formats { display: grid; grid-template-columns: 1fr 1fr; }
  .markdown { font-size: 13px; }
  .agent-links a { align-items: flex-start; flex-direction: column; gap: 3px; padding: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
