/* Scoped technical documentation styles; the Room/chat layout is unchanged. */
.bot-docs-header {display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;margin-bottom:20px}
.bot-docs-header h2 {margin:0 0 8px}
.bot-docs-header p {margin:0;max-width:66ch}
.bot-docs-kicker {font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--primary,#4f46e5);margin-bottom:8px!important}
.bot-docs-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bot-docs-actions a {text-decoration:none}
.bot-docs-crosslink {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid var(--border,#e4e4e7);border-radius:8px;background:var(--surface,#fff);font-size:13px}
.bot-docs-layout {display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start}
.bot-docs-contents {display:flex;flex-direction:column;gap:4px;position:sticky;top:20px;min-width:0}
.bot-docs-contents strong {font-size:12px;margin-bottom:8px}
.bot-docs-contents a {display:block;padding:7px 8px;border-radius:6px;text-decoration:none;color:var(--text,#18181b);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.bot-docs-contents a:hover,.bot-docs-contents a:focus-visible {background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5)}
.bot-docs-body {display:grid;gap:16px;min-width:0}
.bot-docs-section {min-width:0;scroll-margin-top:16px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.bot-docs-section h3 {font-size:18px;line-height:1.35;margin:0 0 6px}
.bot-docs-section .bot-docs-summary {margin:0 0 18px;font-size:13px}
.bot-docs-section p {margin:12px 0}
.bot-docs-section p:last-child {margin-bottom:0}
.bot-docs-section ul,.bot-docs-section ol {padding-left:22px;margin:12px 0}
.bot-docs-section li {padding-left:3px;margin:10px 0}
.bot-docs-table-wrap {max-width:100%;overflow-x:auto;margin:16px 0;border:1px solid var(--border,#e4e4e7);border-radius:8px}
.bot-docs-table {border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px;line-height:1.6}
.bot-docs-table th,.bot-docs-table td {text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--border,#e4e4e7);overflow-wrap:anywhere;white-space:normal}
.bot-docs-table th {background:var(--surface-subtle,#fafafa);font-weight:600}
.bot-docs-table tr:last-child td {border-bottom:0}
.bot-docs-example {margin:18px 0;max-width:100%;min-width:0}
.bot-docs-example figcaption {font-size:12px;font-weight:600;margin-bottom:7px}
.bot-docs-example pre {max-width:100%;overflow-x:auto;padding:16px;border:1px solid var(--border,#e4e4e7);border-radius:8px;background:#f8fafc;color:#1e293b;font-size:12px;line-height:1.65;white-space:pre;tab-size:4}
.bot-docs-example code {font:inherit;background:none;padding:0;color:inherit;white-space:pre;word-break:normal;overflow-wrap:normal}
@media (max-width: 959px) {
 .bot-docs-layout {grid-template-columns:minmax(0,1fr);gap:16px}
 .bot-docs-contents {position:static;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px}
 .bot-docs-contents strong {flex-basis:100%;margin-bottom:4px}
 .bot-docs-contents a {padding:6px 9px;border:1px solid var(--border,#e4e4e7)}
}
@media (max-width: 599px) {
 .bot-docs-header {padding:16px;gap:14px}
 .bot-docs-header h2 {font-size:21px;line-height:1.25}
 .bot-docs-actions {width:100%;gap:8px}
 .bot-docs-actions button,.bot-docs-actions a {max-width:100%;white-space:normal;text-align:center}
 .bot-docs-section {padding:16px;font-size:13px}
 .bot-docs-contents {padding:14px}
 .bot-docs-table {min-width:560px}
 .bot-docs-example pre {padding:12px;font-size:11px}
}


/* Anonymous /docs: the admin tab uses the same underlying JSON and keeps its
   existing styles/permissions. Public styles are scoped to this page only. */
.public-content-body .bot-docs-layout {grid-template-columns:210px minmax(0,1fr)}
.public-content-body .bot-docs-contents {border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:14px;top:20px;align-self:start}
.public-content-body .bot-docs-contents a {color:#333;text-decoration:none}
.public-content-body .bot-docs-body {gap:16px}
.public-content-body .bot-docs-section {border:1px solid #e5e7eb;background:#fff;border-radius:12px;padding:24px}
.public-content-body .bot-docs-section h2 {font-size:20px;line-height:1.35;margin:0 0 8px}
.public-content-body .bot-docs-section p,.public-content-body .bot-docs-section li {color:#404040}
.public-content-body .bot-docs-summary {color:#71717a!important}
.public-content-body .bot-docs-example pre {background:#f8fafc}
.public-content-body .public-docs-start {font-size:14px;line-height:1.7;color:#525252;margin:14px 0 0}
.public-content-body .public-docs-start a {font-weight:600;color:#4338ca}
@media (max-width:959px) {
 .public-content-body .bot-docs-layout {grid-template-columns:minmax(0,1fr)}
 .public-content-body .bot-docs-contents {position:static;display:flex;flex-wrap:wrap;flex-direction:row;gap:6px}
 .public-content-body .bot-docs-contents strong {width:100%;flex-basis:100%}
 .public-content-body .bot-docs-contents a {border:1px solid #e5e7eb}
}
@media (max-width:599px) {
 .public-content-body .bot-docs-section {padding:16px}
 .public-content-body .bot-docs-contents {padding:12px}
}
