/* LitScout developer file · graphite + lime + cyan · dense technical reference */
:root {
  color-scheme: dark;
  --canvas: #090b0a;
  --surface: #101411;
  --surface-2: #151a16;
  --surface-3: #1a211c;
  --ink: #edf2ed;
  --muted: #98a39c;
  --quiet: #6f7b74;
  --line: #303832;
  --line-strong: #4a564e;
  --lime: #d9ff63;
  --lime-ink: #13190d;
  --cyan: #72c7c0;
  --cyan-dark: #17302d;
  --red: #ff7a63;
  --red-dark: #321b17;
  --amber: #e5b96d;
  font-family: Bahnschrift, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--canvas); color: var(--ink); }
body, button { font-family: inherit; }
a { color: inherit; }
button { font: inherit; }
code, pre { font-family: Consolas, "SFMono-Regular", monospace; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: -60px; left: 16px; padding: 10px 14px; background: var(--lime); color: var(--lime-ink); text-decoration: none; }
.skip-link:focus { top: 10px; }

.docs-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 10, .96);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: baseline; gap: 11px; min-width: 0; text-decoration: none; }
.brand strong { color: var(--lime); font-size: 18px; text-transform: uppercase; }
.brand span { color: var(--ink); font: 500 14px Georgia, "Microsoft YaHei", serif; }
.header-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.header-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.header-links a:hover { color: var(--lime); }
.nav-toggle { display: none; min-width: 48px; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--ink); }

.docs-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); padding-top: 66px; }
.docs-nav {
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  padding: 34px 24px 25px;
  border-right: 1px solid var(--line);
  background: #0d100e;
  overflow-y: auto;
}
.nav-label, .eyebrow { margin: 0; color: var(--lime); font: 700 10px/1.4 Consolas, monospace; text-transform: uppercase; }
.docs-nav nav { display: grid; gap: 3px; margin-top: 25px; }
.docs-nav nav a { padding: 9px 10px; border-left: 2px solid transparent; color: var(--muted); font-size: 12px; text-decoration: none; }
.docs-nav nav a:hover, .docs-nav nav a.active { border-left-color: var(--lime); background: #19201a; color: var(--ink); }
.nav-boundary { display: grid; gap: 6px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.nav-boundary span { color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.nav-boundary strong { color: var(--cyan); font-size: 12px; }
.nav-boundary small { color: var(--quiet); font-size: 10px; line-height: 1.6; }

.docs-main { min-width: 0; width: min(1160px, 100%); }
.doc-section { scroll-margin-top: 66px; padding: 88px clamp(30px, 5vw, 74px); border-bottom: 1px solid var(--line); }
.docs-hero { min-height: 760px; padding-top: 100px; background: var(--canvas); }
.docs-hero::before { content: "PUBLIC / CDK"; display: block; width: fit-content; margin-left: auto; color: #536058; font: 10px Consolas, monospace; }
.docs-hero > * { position: relative; }
.docs-hero .eyebrow { margin-bottom: 18px; }
.docs-hero h1 { max-width: 850px; margin: 0; font: 500 61px/1.06 Georgia, "Microsoft YaHei", serif; }
.docs-hero h1 span { color: var(--lime); }
.hero-copy { max-width: 760px; margin: 30px 0 0; color: #b6c0b9; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.primary-link, .secondary-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 2px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease; }
.primary-link { background: var(--lime); color: var(--lime-ink); }
.secondary-link { border-color: var(--line-strong); background: rgba(9, 11, 10, .7); color: var(--ink); }
.primary-link:hover, .secondary-link:hover { transform: translateY(-2px); }
.secondary-link:hover { border-color: var(--cyan); color: var(--cyan); }
.protocol-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 58px 0 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(9, 11, 10, .76); }
.protocol-strip div { min-width: 0; padding: 19px 20px; border-right: 1px solid var(--line); }
.protocol-strip div:last-child { border-right: 0; }
.protocol-strip dt { color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.protocol-strip dd { margin: 7px 0 0; overflow: hidden; color: var(--ink); font: 13px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.ability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.ability-grid article { padding-top: 18px; border-top: 2px solid var(--line-strong); }
.ability-grid article:nth-child(2) { border-top-color: var(--cyan); }
.ability-grid .boundary-article { border-top-color: var(--red); }
.ability-grid article > span { color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.ability-grid h2 { margin: 13px 0 10px; font: 500 21px/1.25 Georgia, "Microsoft YaHei", serif; }
.ability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.ability-grid code { color: var(--cyan); }

.section-heading { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr); gap: 10px 70px; align-items: end; margin-bottom: 38px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; font: 500 39px/1.12 Georgia, "Microsoft YaHei", serif; }
.section-heading > p:last-child, .split-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.split-heading { grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); }
.split-heading > div .eyebrow { margin-bottom: 11px; }

.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 130px; gap: 22px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.workflow-list li > span { color: var(--lime); font: 11px Consolas, monospace; }
.workflow-list strong { font: 500 18px Georgia, "Microsoft YaHei", serif; }
.workflow-list p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workflow-list small { justify-self: end; color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.workflow-list code { color: var(--cyan); }

.callout { display: grid; grid-template-columns: 170px 1fr; gap: 28px; margin-top: 28px; padding: 19px 22px; border-left: 3px solid var(--cyan); background: var(--cyan-dark); }
.callout strong { color: var(--cyan); font: 500 17px Georgia, "Microsoft YaHei", serif; }
.callout p { margin: 0; color: #b8cbc7; font-size: 13px; line-height: 1.75; }
.callout code { color: var(--lime); }

.code-frame { min-width: 0; margin-top: 22px; border: 1px solid var(--line-strong); border-radius: 3px; background: #0b0e0c; overflow: hidden; }
.code-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 43px; padding: 0 10px 0 15px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.code-meta span { color: var(--muted); font: 10px Consolas, monospace; text-transform: uppercase; }
.copy-button { min-width: 50px; min-height: 29px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.copy-button:hover, .copy-button.copied { border-color: var(--lime); color: var(--lime); }
pre { margin: 0; overflow-x: auto; padding: 20px; color: #d5dfd8; font-size: 12px; line-height: 1.65; tab-size: 2; }
pre code { display: block; min-width: max-content; overflow-wrap: normal; }
.compact-code { max-width: 760px; }

.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.security-grid > div { display: grid; grid-template-columns: 36px 1fr; gap: 8px 14px; padding: 23px 22px 23px 0; border-bottom: 1px solid var(--line); }
.security-grid > div:nth-child(odd) { padding-right: 30px; border-right: 1px solid var(--line); }
.security-grid > div:nth-child(even) { padding-left: 30px; }
.security-grid span { grid-row: 1 / 3; color: var(--cyan); font: 10px Consolas, monospace; }
.security-grid strong { font-size: 14px; }
.security-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.endpoint-index { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; border-top: 1px solid var(--line); }
.endpoint-index a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 7px 10px; min-width: 0; padding: 17px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.endpoint-index a:nth-child(3n) { border-right: 0; }
.endpoint-index a:hover { background: var(--surface-2); }
.endpoint-index code { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.endpoint-index small { grid-column: 2; color: var(--quiet); font-size: 10px; }
.method { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-height: 20px; border: 1px solid currentColor; border-radius: 2px; font: 700 9px Consolas, monospace; }
.method.get { color: var(--cyan); }
.method.post { color: var(--lime); }

.endpoint { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.endpoint:last-child { border-bottom: 1px solid var(--line); }
.endpoint header { display: grid; grid-template-columns: 46px minmax(210px, auto) 1fr; gap: 12px; align-items: center; }
.endpoint header code { color: var(--ink); font-size: 13px; }
.endpoint header strong { justify-self: end; color: var(--muted); font-size: 12px; font-weight: 500; }
.endpoint > p { max-width: 850px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.featured-endpoint { border-bottom: 1px solid var(--line); }
.field-lines { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(300px, 1.25fr); margin-top: 20px; border-top: 1px solid var(--line); }
.field-lines code, .field-lines span { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 11px; }
.field-lines code { color: var(--cyan); }
.field-lines span { color: var(--muted); }

.response-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line); }
.response-grid > div { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.response-grid > div:nth-child(3n) { border-right: 0; }
.response-grid code { color: var(--lime); font-size: 11px; }
.response-grid p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.job-state { display: grid; grid-template-columns: auto 30px auto 30px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 31px; padding: 21px; border: 1px solid var(--line-strong); background: var(--surface); }
.job-state > span { padding: 9px 12px; border: 1px solid var(--line-strong); color: var(--amber); font: 11px Consolas, monospace; text-align: center; }
.job-state i { color: var(--quiet); font-style: normal; text-align: center; }
.job-state div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.job-state strong { padding: 9px 5px; border: 1px solid var(--line); color: var(--muted); font: 10px Consolas, monospace; text-align: center; }
.job-state strong:first-child { color: var(--lime); border-color: #66793d; }
.job-state strong:nth-child(2) { color: var(--cyan); border-color: #37635f; }
.job-state strong:nth-child(3), .job-state strong:nth-child(4) { color: var(--red); border-color: #713e35; }
.job-index { grid-template-columns: repeat(2, 1fr); }
.job-index a:nth-child(3n) { border-right: 1px solid var(--line); }
.job-index a:nth-child(2n) { border-right: 0; }

.schema-table-wrap { width: 100%; margin-top: 28px; overflow-x: auto; border-top: 1px solid var(--line-strong); }
.schema-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; }
.schema-table th, .schema-table td { padding: 15px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.schema-table th { color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.schema-table td:first-child { width: 100px; color: var(--ink); }
.schema-table td:nth-child(2) { color: var(--cyan); }
.schema-table td:last-child { color: var(--muted); line-height: 1.55; }
.result-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 35px; }
.result-notes > div { padding-top: 17px; border-top: 2px solid var(--line-strong); }
.result-notes > div:nth-child(2) { border-top-color: var(--cyan); }
.result-notes > div:nth-child(3) { border-top-color: var(--amber); }
.result-notes strong { font: 500 17px Georgia, "Microsoft YaHei", serif; }
.result-notes p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.billing-table td:first-child { width: auto; }
.billing-table td:last-child { width: 170px; }
.quota { display: inline-block; min-width: 86px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 2px; font: 10px Consolas, monospace; text-align: center; }
.quota.reserved { color: var(--amber); border-color: #80673e; }
.quota.charged { color: var(--lime); border-color: #66793d; }
.quota.released { color: var(--cyan); border-color: #37635f; }
.quota.neutral { color: var(--muted); }
.retention-callout { border-left-color: var(--amber); background: #282116; }
.retention-callout strong { color: var(--amber); }
.retention-callout p { color: #c9bb9f; }

.error-table td:first-child { width: 220px; color: var(--red); }
.retry-note { margin: 22px 0 0; padding-left: 15px; border-left: 2px solid var(--red); color: #c9a49d; font-size: 12px; line-height: 1.7; }

.example-tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.example-tab { min-height: 40px; padding: 8px 15px; border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.example-tab:last-child { border-right: 0; }
.example-tab:hover, .example-tab.active { background: var(--lime); color: var(--lime-ink); }
.example-panel { margin-top: 16px; }
.example-panel .code-frame { margin-top: 0; }

.docs-end { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 70px clamp(30px, 5vw, 74px); border-bottom: 1px solid var(--line); }
.docs-end h2 { max-width: 680px; margin: 11px 0 0; font: 500 30px/1.25 Georgia, "Microsoft YaHei", serif; }
.docs-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 25px; padding: 25px clamp(30px, 5vw, 74px); color: var(--quiet); font: 10px Consolas, monospace; text-transform: uppercase; }
.docs-footer a { text-decoration: none; }
.docs-footer a:hover { color: var(--lime); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 1050px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-nav { padding-left: 18px; padding-right: 18px; }
  .docs-hero h1 { font-size: 51px; }
  .section-heading { gap: 16px 38px; }
  .job-state div { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .docs-header { height: 62px; padding: 0 18px; }
  .brand span { display: none; }
  .header-links { gap: 15px; }
  .nav-toggle { display: block; }
  .docs-shell { display: block; padding-top: 62px; }
  .docs-nav { position: fixed; z-index: 35; top: 62px; left: 0; right: 0; height: auto; max-height: calc(100vh - 62px); display: none; border-right: 0; border-bottom: 1px solid var(--line-strong); box-shadow: 0 18px 30px rgba(0, 0, 0, .36); }
  .docs-nav.open { display: block; }
  .docs-nav nav { grid-template-columns: repeat(2, 1fr); }
  .nav-boundary { display: none; }
  .docs-main { width: 100%; }
  .doc-section { scroll-margin-top: 62px; padding: 72px 25px; }
  .docs-hero { min-height: 720px; padding-top: 80px; }
  .docs-hero h1 { font-size: 45px; }
  .ability-grid, .result-notes { grid-template-columns: 1fr; gap: 28px; }
  .section-heading, .split-heading { grid-template-columns: 1fr; align-items: start; }
  .section-heading .eyebrow { grid-column: auto; }
  .endpoint-index, .response-grid { grid-template-columns: repeat(2, 1fr); }
  .endpoint-index a:nth-child(3n) { border-right: 1px solid var(--line); }
  .endpoint-index a:nth-child(2n) { border-right: 0; }
  .job-index a:nth-child(3n) { border-right: 1px solid var(--line); }
  .job-state { grid-template-columns: 1fr 25px 1fr; }
  .job-state > i:nth-of-type(2) { display: none; }
  .job-state div { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .docs-end { align-items: flex-start; flex-direction: column; padding: 60px 25px; }
  .docs-footer { grid-template-columns: 1fr; padding: 24px 25px; }
}

@media (max-width: 560px) {
  .header-links a:first-child { display: none; }
  .doc-section { padding-left: 18px; padding-right: 18px; }
  .docs-hero { min-height: 700px; }
  .docs-hero::before { display: none; }
  .docs-hero h1 { font-size: 37px; }
  .hero-copy { font-size: 14px; line-height: 1.75; }
  .protocol-strip { grid-template-columns: 1fr; }
  .protocol-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .protocol-strip div:last-child { border-bottom: 0; }
  .workflow-list li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .workflow-list small { grid-column: 2; justify-self: start; }
  .callout { grid-template-columns: 1fr; gap: 10px; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid > div, .security-grid > div:nth-child(odd), .security-grid > div:nth-child(even) { padding: 20px 0; border-right: 0; }
  .endpoint-index, .response-grid { grid-template-columns: 1fr; }
  .endpoint-index a, .endpoint-index a:nth-child(2n), .endpoint-index a:nth-child(3n) { border-right: 0; }
  .endpoint header { grid-template-columns: 46px minmax(0, 1fr); }
  .endpoint header strong { grid-column: 2; justify-self: start; }
  .field-lines { grid-template-columns: 1fr; }
  .field-lines code { padding-bottom: 4px; border-bottom: 0; }
  .field-lines span { padding-top: 4px; }
  .job-state { padding: 15px; }
  .job-state div { grid-template-columns: repeat(2, 1fr); }
  .example-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .example-tab { min-width: 0; padding-left: 6px; padding-right: 6px; }
  .docs-end { padding-left: 18px; padding-right: 18px; }
  .docs-footer { padding-left: 18px; padding-right: 18px; }
}

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