:root {
  --ink: #161616;
  --muted: #6a6a6a;
  --line: #e8e8e8;
  --wash: #f6f6f6;
  --page: #fff;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #ededed;
  --muted: #a3a3a3;
  --line: #303030;
  --wash: #1b1b1b;
  --page: #111;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--page);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 10px;
}
header > div {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
#theme {
  font-size: 22px;
}
#menu {
  display: none;
}
.layout {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}
nav {
  padding: 32px 24px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: auto;
  border-right: 1px solid var(--line);
}
nav section {
  margin-bottom: 24px;
}
nav h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--muted);
}
nav a {
  display: block;
  font-size: 13px;
  padding: 5px 10px;
  margin: 1px -10px;
  border-radius: 5px;
  color: var(--muted);
}
nav a:hover,
nav a[aria-current] {
  background: var(--wash);
  color: var(--ink);
}
nav a[aria-current] {
  font-weight: 600;
}
main {
  padding: 54px 64px 70px;
  max-width: 910px;
  min-width: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin: 0 0 16px;
}
.description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 36px;
}
article h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin-top: 40px;
}
article h3 {
  font-size: 18px;
  margin-top: 28px;
}
article p {
  margin: 16px 0;
}
article a {
  border-bottom: 1px solid var(--line);
}
article a:hover {
  border-color: var(--ink);
}
article li {
  margin-bottom: 7px;
}
article code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12.5px;
  background: var(--wash);
  padding: 2px 5px;
  border-radius: 3px;
}
.code-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}
.code-label {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  background: var(--wash);
}
pre {
  padding: 18px 20px;
  margin: 0;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
}
pre code {
  background: none;
  padding: 0;
}
html[data-theme="dark"] .shiki,
html[data-theme="dark"] .shiki span {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  display: block;
  overflow: auto;
}
td,
th {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 550;
  background: var(--wash);
}
blockquote {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  color: var(--muted);
  margin-left: 0;
}
.doc-entry-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.doc-entry-actions a {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
}
.doc-entry-actions span {
  margin-left: 15px;
}
.answer-definitions > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.answer-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.answer-label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 14px;
}
footer small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
footer a:last-child {
  text-align: right;
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
  }
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  main {
    padding: 36px 24px;
  }
  nav {
    padding: 24px 20px;
  }
}
@media (max-width: 600px) {
  #menu {
    display: block;
  }
  .layout {
    display: block;
  }
  nav {
    display: none;
    position: fixed;
    z-index: 9;
    background: var(--page);
    width: 260px;
    box-shadow: 8px 0 30px #0002;
  }
  nav.open {
    display: block;
  }
  main {
    padding: 32px 20px;
  }
  h1 {
    font-size: 30px;
  }
  .doc-entry-actions {
    flex-wrap: wrap;
  }
}

.agent-prompt-action { display: inline-flex; align-items: center; margin: 4px 0 12px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--page); font: inherit; font-weight: 500; cursor: pointer; }
.agent-prompt-action:hover { opacity: .85; }
.agent-prompt-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#agent-prompt-dialog { width: min(600px, 90vw); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--page); }
#agent-prompt-dialog::backdrop { background: #0008; }
#agent-prompt-dialog h2 { margin: 0; font-size: 20px; }
#agent-prompt-dialog textarea { width: 100%; height: 300px; padding: 12px; border: 1px solid var(--line); background: var(--wash); color: var(--ink); resize: vertical; }
#close-agent-prompt { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:600px) { header>div { gap: 10px; } }
@media(max-width:480px) {
  header { padding: 0 12px; }
  header>div { gap: 8px; }
  header .brand span { display: none; }
  header>div>a { font-size: 12px; }
}
