/* Public connection guide of the external AI-agent API (/api/agent/docs). */
:root {
    --ad-text: #1f2937;
    --ad-muted: #5b6577;
    --ad-border: #e3e8f0;
    --ad-accent: #2f55d4;
    --ad-soft: #eef3ff;
    --ad-code: #f6f8fb;
    --ad-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ad-text: #e6e9ef;
        --ad-muted: #a5adbb;
        --ad-border: #2b3240;
        --ad-accent: #8fa8ff;
        --ad-soft: #1e2636;
        --ad-code: #161b26;
        --ad-bg: #0f131a;
    }
}
html, body {
    margin: 0;
    background: var(--ad-bg);
    color: var(--ad-text);
    font: 15px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.agent-docs {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}
.agent-docs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--ad-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}
.agent-docs-brand {
    margin: 0;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ad-muted);
}
.agent-docs h1 {
    margin: 4px 0 8px;
    font-size: 26px;
}
.agent-docs h2 {
    font-size: 20px;
    margin: 32px 0 10px;
}
.agent-docs h3 {
    font-size: 16px;
    margin: 22px 0 6px;
}
.agent-docs-lead {
    margin: 0;
    color: var(--ad-muted);
}
.agent-docs-langs a {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    color: var(--ad-muted);
    border: 1px solid var(--ad-border);
}
.agent-docs-langs a.active {
    background: var(--ad-soft);
    color: var(--ad-accent);
    border-color: transparent;
}
.agent-docs a {
    color: var(--ad-accent);
}
.agent-docs code {
    font-family: Consolas, Menlo, monospace;
    font-size: 13px;
    background: var(--ad-code);
    padding: 1px 5px;
    border-radius: 4px;
}
.agent-docs pre {
    background: var(--ad-code);
    border: 1px solid var(--ad-border);
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
}
.agent-docs pre code {
    background: none;
    padding: 0;
}
.agent-docs-note {
    background: var(--ad-soft);
    border-radius: 8px;
    padding: 10px 14px;
}
.agent-docs-scopes {
    columns: 2;
    column-gap: 24px;
    padding-left: 18px;
}
.agent-docs-endpoints {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 8px;
}
.agent-docs-endpoints dt {
    color: var(--ad-muted);
}
.agent-docs-endpoints dd {
    margin: 0;
    word-break: break-all;
}
/* The error table never widens the page on a phone: the long codes may wrap
   (anywhere also lowers the min-content width), and the wrapper scrolls on its
   own as a last resort. The HTTP column keeps its digits together. */
.agent-docs-table-wrap {
    overflow-x: auto;
}
.agent-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.agent-docs-table th,
.agent-docs-table td {
    text-align: left;
    vertical-align: top;
    padding: 6px 8px;
    border-bottom: 1px solid var(--ad-border);
}
.agent-docs-table td + td {
    overflow-wrap: anywhere;
}
.agent-docs-footer {
    margin-top: 40px;
    padding-top: 12px;
    border-top: 1px solid var(--ad-border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ad-muted);
}
@media (max-width: 640px) {
    .agent-docs-header {
        flex-direction: column;
    }
    .agent-docs-scopes {
        columns: 1;
    }
}
