.ai-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem 1rem;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 .75rem;margin-bottom:1rem}
.ai-sections{display:flex;gap:.5rem;flex-wrap:wrap;margin:0}
.ai-toolbar .ai-health{margin:0 0 0 auto;justify-content:flex-end}
.ai-sections button[aria-selected=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
#llm-services,#prompts{scroll-margin-top:1rem}#llm-heading{margin-top:0}
.ai-services-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.ai-benchmarks,.ai-chat{min-width:0}.ai-benchmarks h3{margin-top:.7rem}.ai-benchmarks p,.ai-chat p{margin:.4rem 0 .7rem}
.ai-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:.25rem}
.ai-table{border-collapse:collapse;width:100%;font-size:.875rem;line-height:1.35;font-variant-numeric:tabular-nums;background:var(--surface)}
.ai-table caption{text-align:left;padding:.45rem .6rem;color:var(--muted);font-size:.8rem}
.ai-table th,.ai-table td{padding:.45rem .6rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.ai-table thead th{font-weight:650}.ai-table tbody tr:last-child>*{border-bottom:0}.ai-table .number{text-align:right;white-space:nowrap}
.ai-table th small{display:block;color:var(--muted);font-weight:400;font-size:.75rem}
.ai-chat{padding:.85rem;border:1px solid var(--line);border-radius:.3rem;background:var(--surface)}
.ai-chat select{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:.3rem;background:var(--surface);color:var(--ink);padding:.4rem}
.ai-chat select{width:100%}.ai-chat-actions{gap:.5rem;margin-top:.5rem}.ai-chat-actions button{padding:.45rem .7rem}
.ai-transcript{max-height:24rem;overflow-y:auto;overflow-wrap:anywhere;scrollbar-gutter:stable;margin:.75rem 0}
.ai-message{border-top:1px solid var(--line);padding:.6rem 0}.ai-message p{white-space:pre-wrap;margin:.2rem 0}
.ai-message strong{font-size:.8rem;color:var(--muted)}.ai-chat-status{min-height:1.4em;font-variant-numeric:tabular-nums}
.ai-live-details{font-size:.85rem}.ai-live-details dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.25rem .75rem;margin:.5rem 0}
.ai-live-details dt{color:var(--muted)}.ai-live-details dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ai-table-scroll:focus-visible,select:focus-visible{outline:3px solid #aa8d2b;outline-offset:3px}
.ai-health{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.5rem 0 .75rem;font-size:.8rem}
.ai-health-label{display:inline-flex;align-items:center;gap:.4rem;font-weight:600}
.ai-health-label:before{content:"";width:.55rem;height:.55rem;flex:none;border-radius:50%;background:var(--muted)}
.ai-health[data-state=online] .ai-health-label:before{background:#287b4e}
.ai-health[data-state=offline] .ai-health-label:before{background:#b12434}
.ai-health[data-state=checking] .ai-health-label:before,.ai-health[data-state=warning] .ai-health-label:before{background:#9a6d00}
.ai-health button{font-size:inherit;padding:.25rem .5rem}.ai-health .muted{font-size:inherit}
@media(prefers-color-scheme:dark){.ai-health[data-state=online] .ai-health-label:before{background:#8bd2af}.ai-health[data-state=offline] .ai-health-label:before{background:#ffa8ad}.ai-health[data-state=warning] .ai-health-label:before,.ai-health[data-state=checking] .ai-health-label:before{background:#edc765}}
@media(max-width:850px){.ai-services-grid{grid-template-columns:minmax(0,1fr)}.ai-chat{margin-top:.25rem}}
