.t1c-agent-docs {
    max-width: 1120px;
    line-height: 1.55;
}

.t1c-agent-docs .t1c-agent-hero {
    padding: clamp(24px, 4vw, 40px);
}

.t1c-agent-docs .t1c-agent-hero > p {
    max-width: 700px;
}

.t1c-agent-docs .t1c-agent-nav {
    position: static;
    gap: 4px;
    box-shadow: none;
}

.t1c-agent-docs .t1c-agent-nav a:focus-visible,
.t1c-agent-docs a:focus-visible,
.t1c-agent-docs button:focus-visible,
.t1c-agent-docs summary:focus-visible {
    outline: 3px solid #74a9ff;
    outline-offset: 2px;
}

.t1c-agent-endpoint-box {
    max-width: 720px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #cbdcf4;
    border-radius: 13px;
    background: #fff;
}

.t1c-agent-endpoint-box > span,
.t1c-agent-choice-label {
    display: block;
    color: var(--t1c-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.t1c-agent-endpoint-box .t1c-code {
    margin: 8px 0 0;
}

.t1c-agent-docs .t1c-code pre {
    padding-top: 48px;
    padding-right: 16px;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
}

.t1c-agent-docs .t1c-code--inline pre {
    padding-top: 17px;
    padding-right: 116px;
    padding-bottom: 17px;
}

.t1c-agent-docs .t1c-code--example pre {
    padding: 16px;
}

.t1c-agent-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.t1c-agent-choice {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    background: #f9fbff;
}

.t1c-agent-choice h3 {
    margin: 8px 0;
    font-size: 20px;
}

.t1c-agent-choice p,
.t1c-agent-section-heading p {
    margin: 0;
    color: #52637b;
}

.t1c-agent-choice .t1c-code {
    margin-bottom: 0;
}

.t1c-agent-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    counter-reset: t1c-flow;
    list-style: none;
}

.t1c-agent-flow li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #fbfdff;
}

.t1c-agent-flow li::before {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #e8f1ff;
    color: #1769e0;
    content: counter(t1c-flow);
    counter-increment: t1c-flow;
    font-size: 13px;
    font-weight: 800;
}

.t1c-agent-flow strong {
    line-height: 1.3;
}

.t1c-agent-flow span,
.t1c-agent-hint {
    color: #52637b;
    font-size: 14px;
}

.t1c-agent-hint {
    margin: 16px 0 0;
}

.t1c-agent-docs .t1c-agent-note {
    margin-top: 18px;
}

.t1c-agent-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.t1c-agent-section-heading h2 {
    margin-bottom: 6px;
}

.t1c-agent-count {
    flex: none;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf3ff;
    color: #1769e0;
    font-size: 12px;
    font-weight: 800;
}

.t1c-agent-tool-groups,
.t1c-agent-faq {
    display: grid;
    gap: 10px;
}

.t1c-agent-tool-group,
.t1c-agent-faq details {
    min-width: 0;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #fff;
}

.t1c-agent-tool-group summary,
.t1c-agent-faq summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 17px;
    cursor: pointer;
    font-weight: 750;
    list-style: none;
}

.t1c-agent-tool-group summary::-webkit-details-marker,
.t1c-agent-faq summary::-webkit-details-marker {
    display: none;
}

.t1c-agent-tool-group summary::after,
.t1c-agent-faq summary::after {
    margin-left: auto;
    color: #607089;
    content: '⌄';
    font-size: 20px;
    line-height: 1;
}

.t1c-agent-tool-group[open] summary::after,
.t1c-agent-faq details[open] summary::after {
    transform: rotate(180deg);
}

.t1c-agent-tool-group summary small {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1769e0;
    font-size: 12px;
}

.t1c-agent-tool-group .t1c-tool-grid,
.t1c-agent-tool-group .t1c-scope-grid {
    padding: 0 15px 15px;
}

.t1c-agent-faq p {
    margin: 0;
    padding: 0 17px 17px;
    color: #52637b;
}

.t1c-agent-section--compact {
    padding-top: 24px;
    padding-bottom: 24px;
}

.t1c-agent-section--compact p:last-child {
    margin-bottom: 0;
}

.t1c-agent-group-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

.t1c-agent-group-links a {
    padding: 7px 10px;
    border: 1px solid #d6e3f3;
    border-radius: 999px;
    background: #f8fbff;
    color: #254869;
    font-size: 13px;
    text-decoration: none;
}

.t1c-agent-api-group {
    margin-top: 24px;
    scroll-margin-top: 16px;
}

.t1c-agent-api-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 19px;
}

.t1c-agent-api-group h3 small {
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf4fe;
    color: #1769e0;
    font-size: 12px;
}

.t1c-agent-docs .t1c-endpoint summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
}

.t1c-agent-docs .t1c-endpoint summary::after {
    flex: none;
    margin-left: auto;
    color: #607089;
    content: '⌄';
    font-size: 20px;
    line-height: 1;
}

.t1c-agent-docs .t1c-endpoint[open] summary::after {
    transform: rotate(180deg);
}

.t1c-endpoint-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.t1c-endpoint-label code {
    overflow-wrap: anywhere;
    color: #153c71;
    font-weight: 800;
}

.t1c-endpoint-label small {
    color: #617088;
    font-size: 13px;
    line-height: 1.4;
}

.t1c-agent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t1c-agent-meta span {
    padding: 5px 9px;
    border-radius: 7px;
    background: #f1f5fa;
    color: #506079;
    font-size: 12px;
}

.t1c-agent-error-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.t1c-agent-error-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dce4ef;
    border-radius: 10px;
}

.t1c-agent-error-grid strong {
    color: #a34f10;
}

.t1c-agent-error-grid span {
    color: #52637b;
    font-size: 14px;
}

@media (max-width: 760px) {
    .t1c-agent-docs .t1c-agent-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .t1c-agent-docs .t1c-agent-nav a {
        flex: none;
        white-space: nowrap;
    }

    .t1c-agent-choice-grid,
    .t1c-agent-error-grid {
        grid-template-columns: 1fr;
    }

    .t1c-agent-flow {
        grid-template-columns: 1fr;
    }

    .t1c-agent-section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .t1c-agent-docs .t1c-code--inline pre {
        padding-top: 48px;
        padding-right: 16px;
    }

    .t1c-agent-tool-group .t1c-tool-grid,
    .t1c-agent-tool-group .t1c-scope-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .t1c-agent-docs .t1c-endpoint summary {
        gap: 8px;
        padding: 12px 10px;
    }

    .t1c-agent-docs .t1c-method {
        min-width: 52px;
    }
}
