/* Стили страницы /for-agents/ — полная поддержка светлой и тёмной темы (html.dark) */

.agent-page {
    background-color: #ffffff;
    color: #1f2937;
}
html.dark .agent-page {
    background-color: #0b1120;
    color: #e2e8f0;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
a.agent-badge:hover {
    background-color: #e5e7eb;
}
html.dark .agent-badge {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
html.dark a.agent-badge:hover {
    background-color: #334155;
}

.agent-badge--accent {
    background-color: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}
html.dark .agent-badge--accent {
    background-color: rgba(49, 46, 129, 0.45);
    color: #a5b4fc;
    border-color: #4338ca;
}

.agent-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
}
html.dark .agent-card {
    background-color: #111827;
    border-color: #1f2937;
}

.agent-card--sm {
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.agent-card--accent {
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    padding: 1.5rem;
}
html.dark .agent-card--accent {
    background-color: rgba(30, 27, 75, 0.55);
    border-color: #3730a3;
}

.agent-list {
    list-style-type: disc;
    padding-left: 1.25rem;
}
.agent-list > li + li {
    margin-top: 0.5rem;
}

.agent-method-tag {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    background-color: #e5e7eb;
    color: #1f2937;
    white-space: nowrap;
}
html.dark .agent-method-tag {
    background-color: #1f2937;
    color: #e2e8f0;
    border: 1px solid #374151;
}

.agent-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    word-break: break-word;
}
html.dark .agent-code {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

.agent-pre {
    padding: 1rem 1.125rem;
    border-radius: 0.75rem;
    background-color: #0f172a;
    color: #f1f5f9;
    border: 1px solid #1e293b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.agent-pre.hidden {
    display: none;
}
html.dark .agent-pre {
    background-color: #020617;
    color: #f8fafc;
    border-color: #334155;
}

.agent-break-all {
    word-break: break-all;
}

.agent-table-wrap {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}
html.dark .agent-table-wrap {
    border-color: #1f2937;
    background-color: #0f172a;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}
.agent-table thead {
    background-color: #f9fafb;
    color: #111827;
}
html.dark .agent-table thead {
    background-color: #111827;
    color: #f8fafc;
}
.agent-table th,
.agent-table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}
.agent-table tbody tr:last-child td {
    border-bottom: none;
}
html.dark .agent-table th,
html.dark .agent-table td {
    border-bottom-color: #1f2937;
}
.agent-table tbody td {
    color: #374151;
}
html.dark .agent-table tbody td {
    color: #cbd5e1;
}

.agent-link {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.agent-link:hover {
    color: #3730a3;
}
html.dark .agent-link {
    color: #818cf8;
}
html.dark .agent-link:hover {
    color: #a5b4fc;
}

.agent-field {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #111827;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.agent-field:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 1px;
    border-color: #4f46e5;
}
html.dark .agent-field {
    border-color: #475569;
    background-color: #0f172a;
    color: #f8fafc;
}

.agent-btn {
    width: 100%;
    padding: 0.5625rem 1rem;
    border-radius: 0.5rem;
    background-color: #4f46e5;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.agent-btn:hover {
    background-color: #4338ca;
}
html.dark .agent-btn {
    background-color: #6366f1;
    color: #ffffff;
}
html.dark .agent-btn:hover {
    background-color: #4f46e5;
}

.agent-details {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}
html.dark .agent-details {
    background-color: #111827;
    border-color: #1f2937;
}
.agent-details > summary {
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}
html.dark .agent-details > summary {
    color: #f8fafc;
}
