
.api-reference-block { margin-top: 28px; }
.api-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.api-block { min-width: 0; margin: 28px 0; }
.api-examples .api-block { margin: 0; }
.api-block h3 { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.api-codebox { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.api-codebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface-2); font: 11px/1.6 ui-monospace, Consolas, monospace; color: var(--muted); }
.api-codebar button, .request-card .task-reference button { flex-shrink: 0; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; }
.api-codebar button:hover { background: var(--surface-3); }
.api-codebox pre { margin: 0; padding: 18px; font: 12px/1.85 ui-monospace, Consolas, monospace; color: var(--ink-soft); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.api-examples .api-codebar { min-height: 52px; }
.api-examples .api-codebox pre { height: 320px; min-height: 320px; max-height: 320px; }
.api-example-note { margin: 12px 0 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.api-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.api-parameter-table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 12px; }
.api-parameter-table th, .api-parameter-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); line-height: 1.75; vertical-align: top; }
.api-parameter-table th { color: var(--muted); background: var(--surface-2); font-weight: 500; white-space: nowrap; }
.api-parameter-table td:first-child { width: 27%; }
.api-parameter-table td:nth-child(2) { width: 14%; white-space: nowrap; }
.api-parameter-table td:last-child { color: var(--muted); }
.api-parameter-table code { font: 12px/1.75 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.api-parameter-table tr:last-child td { border-bottom: 0; }
.api-reference-block .required { color: var(--warning); }
.api-reference-block .optional { color: var(--muted); }
@media (max-width: 1150px) { .layout .api-examples { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .api-examples { grid-template-columns: 1fr; } .api-codebox pre { padding: 14px; } }
