.api-reference-shell {--background: 36 33% 97%;
--foreground: 20 25% 8%;
--card: 0 0% 100%;
--card-foreground: 20 25% 8%;
--popover: 0 0% 100%;
--popover-foreground: 20 25% 8%;
--primary: 12 85% 48%;
--primary-foreground: 0 0% 100%;
--secondary: 36 24% 90%;
--secondary-foreground: 20 25% 15%;
--muted: 36 14% 93%;
--muted-foreground: 20 12% 40%;
--accent: 38 95% 48%;
--accent-foreground: 20 25% 8%;
--destructive: 0 72% 51%;
--destructive-foreground: 0 0% 100%;
--border: 30 18% 85%;
--input: 30 18% 85%;
--ring: 12 85% 48%;
--radius: 0.875rem;
--sidebar-background: 0 0% 100%;
--sidebar-foreground: 20 25% 25%;
--sidebar-primary: 12 85% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 36 24% 92%;
--sidebar-accent-foreground: 20 25% 15%;
--sidebar-border: 30 18% 85%;
--sidebar-ring: 12 85% 48%;
--gradient-primary: linear-gradient(135deg, hsl(12 85% 48%), hsl(38 95% 48%));
--gradient-warm: linear-gradient(135deg, hsl(12 85% 48%), hsl(350 72% 48%));
--gradient-glow: linear-gradient(135deg, hsl(12 85% 48% / 0.1), hsl(38 95% 48% / 0.1));
--shadow-glow: 0 0 80px hsl(12 85% 48% / 0.12);
--ink: 240 8% 4%;
--paper: 36 33% 97%;
--hairline-dark: 240 5% 16%;
--stone: 40 19% 94%;
--peach: 24 100% 97%;
--copper: 12 85% 38%;
--action-orange: 12 85% 45%;
--paper-line: 32 17% 86%;
--shadow-console: 0 16px 44px -22px hsl(25 24% 40% / 0.18), 0 2px 6px hsl(25 24% 40% / 0.04);
--background: 0 0% 100%;
--foreground: 230 9% 14%;
--card-foreground: 230 9% 14%;
--secondary: 40 19% 94%;
--muted: 40 19% 94%;
--muted-foreground: 225 5% 38%;
--border: 32 17% 86%;
--paper: 40 38% 97%;
--bc-ink: #101111;
--bc-bone: #f6f4e9;
--bc-lime: #d7ff16;
--bc-coral: #ff7055;
  --background: 0 0% 100%;
  --foreground: 230 9% 14%;
  --card-foreground: 230 9% 14%;
  --secondary: 40 19% 94%;
  --muted: 40 19% 94%;
  --muted-foreground: 225 5% 38%;
  --border: 32 17% 86%;
  --paper: 40 38% 97%;
  color: hsl(var(--foreground));
}
.api-reference-shell { color: hsl(var(--foreground)); background: hsl(var(--background)); font-family: 'Inter', Arial, sans-serif; line-height: 1.65; letter-spacing: 0; }
.api-reference-shell * { box-sizing: border-box; }
.reference-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 40px; }
.reference-sidebar { position: sticky; top: 120px; align-self: start; max-height: calc(100dvh - 140px); overflow-y: auto; padding-right: 12px; }
.reference-sidebar a, .reference-sidebar button { display: flex; align-items: center; width: 100%; white-space: normal; text-align: left; justify-content: flex-start; padding: 9px 12px; font-size: 13px; text-decoration: none; color: hsl(var(--muted-foreground)); border-radius: 6px; background: transparent; border: 0; }
.reference-sidebar a:hover, .reference-sidebar button:hover, .reference-sidebar [aria-current=page] { color: hsl(var(--copper)); background: hsl(var(--peach)); }
.reference-sidebar-label { margin: 18px 12px 8px; color: hsl(var(--muted-foreground)); font-size: 11px; text-transform: uppercase; }
.reference-main { min-width: 0; max-width: 1040px; }
.reference-main h1, .reference-main h2, .reference-main h3, .reference-main h4 { font-family: 'Space Grotesk', Arial, sans-serif; letter-spacing: 0; color: hsl(var(--foreground)); overflow-wrap: anywhere; }
.reference-main h1, .reference-main h2 { font-size: 32px; line-height: 1.2; margin: 12px 0 20px; }
.reference-markdown h3 { margin: 52px 0 20px; padding-top: 22px; border-top: 1px solid hsl(var(--border)); font-size: 21px; line-height: 1.5; scroll-margin-top: 120px; }
.reference-markdown h3 a { color: inherit; text-decoration: none; }
.reference-markdown h3 a:hover { color: hsl(var(--copper)); }
.reference-markdown p { margin: 16px 0; font-size: 14px; overflow-wrap: anywhere; }
.reference-markdown ul, .reference-markdown ol { padding-left: 22px; margin: 18px 0; list-style: revert; }
.reference-markdown li { margin: 8px 0; font-size: 14px; }
.reference-markdown a { color: hsl(var(--copper)); text-underline-offset: 3px; }
.reference-markdown code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.reference-markdown :not(pre) > code { background: hsl(var(--muted)); padding: 2px 4px; border-radius: 3px; }
.reference-code { margin: 16px 0 26px; border: 1px solid hsl(var(--border)); border-radius: 8px; overflow: hidden; box-shadow: none; }
.reference-code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 14px; background: hsl(var(--peach)); border-bottom: 1px solid hsl(var(--border)); font: 11px 'JetBrains Mono', ui-monospace, monospace; color: hsl(var(--muted-foreground)); }
.reference-copy { width: 32px; height: 32px; cursor: pointer; border: none; background: transparent; color: hsl(var(--copper)); display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.reference-code pre { margin: 0; padding: 18px; overflow-x: auto; background: hsl(var(--paper)); color: hsl(var(--foreground)); font: 12px/1.75 'JetBrains Mono', ui-monospace, monospace; }
.reference-code pre code { overflow-wrap: normal; white-space: pre; }
.reference-table { width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid hsl(var(--border)); border-radius: 6px; }
.reference-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.reference-table th { text-align: left; background: hsl(var(--muted)); }
.reference-table td, .reference-table th { padding: 12px; vertical-align: top; min-width: 120px; border-bottom: 1px solid hsl(var(--border)); }
.reference-notice { border-left: 3px solid hsl(var(--primary)); background: hsl(var(--peach)); padding: 14px 18px; font-size: 13px; margin: 18px 0 24px; }
.reference-operations { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 30px; }
.reference-operations a { color: hsl(var(--copper)); font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.reference-static-header { border-bottom: 1px solid hsl(var(--border)); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.reference-static-header a { color: hsl(var(--copper)); text-decoration: none; }
.reference-brand { font: 700 24px 'Space Grotesk', Arial, sans-serif; }
.reference-static-container { max-width: 1440px; padding: 40px 28px 80px; margin: 0 auto; }
.reference-actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0; }
.reference-actions a { color: hsl(var(--copper)); font-size: 13px; }
.reference-static-footer { border-top: 1px solid hsl(var(--border)); padding: 26px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.api-reference-shell :is(a,button,input,[tabindex]):focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; }
@media (max-width: 767px) {
  .reference-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .reference-sidebar { position: static; max-height: 280px; border-bottom: 1px solid hsl(var(--border)); padding-bottom: 16px; }
  .reference-main h1, .reference-main h2 { font-size: 28px; }
  .reference-static-container { padding: 24px 16px 64px; }
  .reference-markdown h3 { font-size: 18px; }
}