    /* Page-specific code syntax tokens */
    :root {
      --code-bg: #0A0820;
      --code-text: #E2E0ED;
      --code-comment: #7D7A92;
      --code-string: #D9AE83;
      --code-keyword: #A78BFA;
      --code-property: #C4B5FD;
      --code-number: #E8C49E;
    }

    /* ============ LAYOUT ============ */
    .page-layout {
      display: grid;
      grid-template-columns: 240px 1fr;
      min-height: 100vh;
    }

    @media (max-width: 900px) {
      .page-layout { grid-template-columns: 1fr; }
      .sidebar { display: none; }
      .mobile-menu-toggle { display: flex !important; }
    }

    /* ============ HEADER OVERRIDES ============ */
    header {
      padding: 0.85rem 0;
      background: rgba(8, 6, 26, 0.85);
      grid-column: 1 / -1;
    }

    .header-inner {
      max-width: 1280px;
    }

    .header-right { display: flex; gap: 1.5rem; align-items: center; }
    .header-right a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.25s;
    }
    .header-right a:hover { color: var(--brand-primary); }

    .badge-version {
      font-size: 0.65rem;
      font-weight: 600;
      color: var(--brand-primary);
      background: var(--brand-glow);
      padding: 0.25rem 0.6rem;
      border-radius: 100px;
      letter-spacing: 0.08em;
      border: 1px solid rgba(167, 139, 250, 0.2);
    }

    .mobile-menu-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border: 1px solid var(--border-subtle);
      border-radius: 8px;
      background: transparent;
      cursor: pointer;
      color: var(--text-secondary);
    }

    /* ============ SIDEBAR ============ */
    .sidebar {
      position: sticky;
      top: 56px;
      height: calc(100vh - 56px);
      overflow-y: auto;
      padding: 1.5rem 0 2rem 1.5rem;
      border-right: 1px solid var(--border-subtle);
      background: rgba(15, 13, 36, 0.5);
    }

    .sidebar::-webkit-scrollbar { width: 3px; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }

    .sidebar-section { margin-bottom: 1.5rem; }
    .sidebar-section h4 {
      font-size: 0.65rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      padding-left: 0.75rem;
    }

    .sidebar-section a {
      display: block;
      padding: 0.3rem 0.75rem;
      font-size: 0.82rem;
      color: var(--text-secondary);
      text-decoration: none;
      border-radius: 6px;
      transition: all 0.2s;
      line-height: 1.5;
    }
    .sidebar-section a:hover {
      color: var(--brand-primary);
      background: var(--brand-glow);
    }
    .sidebar-section a.active {
      color: var(--brand-primary);
      background: var(--brand-glow);
      font-weight: 500;
    }

    /* ============ CONTENT ============ */
    .content {
      max-width: 800px;
      padding: 2.5rem 3rem 4rem;
    }

    .content h1 {
      font-family: 'Sora', sans-serif;
      font-size: 2.5rem;
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 0.75rem;
    }

    .content h2 {
      font-family: 'Sora', sans-serif;
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 3rem 0 1rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border-subtle);
    }

    .content h2:first-of-type { border-top: none; padding-top: 0; }

    .content h3 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 2rem 0 0.75rem;
      color: var(--text-primary);
    }

    .content p {
      margin-bottom: 1rem;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    .content .lead {
      font-size: 1.1rem;
      font-weight: 300;
      color: var(--text-secondary);
      margin-bottom: 2rem;
      line-height: 1.8;
    }

    /* ============ CODE BLOCKS ============ */
    pre {
      background: var(--code-bg);
      border-radius: 10px;
      padding: 1.25rem 1.5rem;
      margin: 1rem 0 1.5rem;
      overflow-x: auto;
      position: relative;
      border: 1px solid rgba(167, 139, 250, 0.1);
      box-shadow: var(--shadow-sm);
    }

    pre code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.82rem;
      line-height: 1.7;
      color: var(--code-text);
    }

    .code-label {
      position: absolute;
      top: 0;
      right: 0;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.6rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--code-comment);
      background: rgba(255,255,255,0.05);
      padding: 0.3rem 0.8rem;
      border-radius: 0 10px 0 8px;
    }

    code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.85em;
      background: rgba(167, 139, 250, 0.1);
      color: var(--brand-primary);
      padding: 0.15em 0.4em;
      border-radius: 4px;
    }

    pre code { background: none; padding: 0; color: var(--code-text); }

    .cm { color: var(--code-comment); }
    .cs { color: var(--code-string); }
    .ck { color: var(--code-keyword); }
    .cp { color: var(--code-property); }
    .cn { color: var(--code-number); }

    /* ============ TABLES ============ */
    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0 1.5rem;
      font-size: 0.88rem;
    }

    th {
      text-align: left;
      font-weight: 600;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      padding: 0.6rem 1rem;
      border-bottom: 2px solid var(--border-medium);
    }

    td {
      padding: 0.65rem 1rem;
      border-bottom: 1px solid var(--border-subtle);
      color: var(--text-secondary);
    }

    tr:last-child td { border-bottom: none; }

    /* ============ ENDPOINT CARDS ============ */
    .endpoint {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
      margin: 1rem 0;
      transition: box-shadow 0.25s;
    }
    .endpoint:hover { box-shadow: var(--shadow-md); }

    .endpoint-method {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      font-weight: 600;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      margin-right: 0.5rem;
    }
    .method-post { background: rgba(167, 139, 250, 0.15); color: var(--brand-primary); }
    .method-get { background: rgba(74, 222, 128, 0.12); color: #4ade80; }

    .endpoint-path {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .endpoint-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 0.35rem;
    }

    .endpoint-badge {
      display: inline-block;
      font-size: 0.6rem;
      font-weight: 600;
      padding: 0.15rem 0.45rem;
      border-radius: 3px;
      margin-left: 0.5rem;
      vertical-align: middle;
    }
    .badge-demo { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
    .badge-paid { background: rgba(167, 139, 250, 0.12); color: var(--brand-primary); }

    /* ============ CALLOUTS ============ */
    .callout {
      padding: 1rem 1.25rem;
      border-radius: 10px;
      margin: 1.5rem 0;
      font-size: 0.88rem;
    }
    .callout-info {
      background: rgba(157, 181, 201, 0.12);
      border-left: 3px solid var(--code-property);
    }
    .callout-warn {
      background: rgba(167, 139, 250, 0.08);
      border-left: 3px solid var(--brand-primary);
    }
    .callout strong { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; }

    /* ============ TOOL CHAIN DIAGRAM ============ */
    .chain-diagram {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      align-items: center;
      margin: 1rem 0 1.5rem;
      padding: 1.25rem;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: 12px;
    }

    .chain-step {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      font-weight: 500;
      padding: 0.35rem 0.7rem;
      border-radius: 6px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
    }
    .chain-step.paid { border-color: var(--brand-secondary); color: var(--brand-primary); }

    .chain-arrow {
      color: var(--text-muted);
      font-size: 0.8rem;
    }
    .chain-parallel {
      display: flex;
      gap: 0.3rem;
      padding: 0.3rem;
      background: rgba(167, 139, 250, 0.05);
      border-radius: 8px;
      border: 1px dashed var(--border-medium);
    }

    /* ============ RESPONSE EXAMPLE ============ */
    .response-keys {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin: 0.75rem 0;
    }
    .response-key {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      padding: 0.2rem 0.55rem;
      border-radius: 4px;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      color: var(--text-secondary);
    }

    /* ============ COPY BUTTON ============ */
    .copy-btn {
      position: absolute;
      top: 0.6rem;
      right: 0.6rem;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px;
      padding: 0.3rem 0.5rem;
      cursor: pointer;
      color: var(--code-comment);
      font-size: 0.7rem;
      font-family: 'JetBrains Mono', monospace;
      transition: all 0.2s;
    }
    .copy-btn:hover { background: rgba(255,255,255,0.15); color: var(--code-text); }

    /* ============ TRY IT ============ */
    .try-it {
      background: var(--code-bg);
      border-radius: 12px;
      padding: 1.5rem;
      margin: 1.5rem 0;
      border: 1px solid rgba(167, 139, 250, 0.1);
    }
    .try-it h4 {
      color: var(--code-text);
      font-size: 0.85rem;
      margin-bottom: 1rem;
      font-weight: 500;
    }
    .try-it textarea {
      width: 100%;
      min-height: 120px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      padding: 0.75rem;
      color: var(--code-text);
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
      line-height: 1.6;
      resize: vertical;
    }
    .try-it textarea:focus { outline: none; border-color: var(--brand-primary); }
    .try-it-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; align-items: center; }
    .try-btn {
      font-family: 'Instrument Sans', sans-serif;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.5rem 1.25rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      transition: all 0.2s;
      background: #D9AE83;
      color: #08061A;
    }
    .try-btn:hover { background: #E8C49E; }
    .try-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    .download-spec-btn {
      display: inline-block;
      font-family: 'Instrument Sans', sans-serif;
      font-size: 0.82rem;
      font-weight: 600;
      padding: 0.5rem 1.25rem;
      border-radius: 8px;
      background: #D9AE83;
      color: #08061A;
      text-decoration: none;
      transition: all 0.2s;
      margin-bottom: 1rem;
    }
    .download-spec-btn:hover { background: #E8C49E; }
    .try-status { font-size: 0.75rem; color: var(--code-comment); font-family: 'JetBrains Mono', monospace; }
    .try-output {
      margin-top: 1rem;
      max-height: 300px;
      overflow-y: auto;
      background: rgba(0,0,0,0.2);
      border-radius: 8px;
      padding: 0.75rem;
      display: none;
    }
    .try-output pre { background: none; border: none; box-shadow: none; padding: 0; margin: 0; }

/* ---- Inline style replacements ---- */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-active {
    color: var(--brand-primary);
}

/* Nav restructure support */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary, #9B97B8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--brand-primary);
}
