/* Styles für Erweiterung „toolbox“ – Werkzeugkasten (Skills, MCP-Server, Code-Karte) */
.tb-intro { margin-bottom: var(--sp-3); max-width: 80ch; }
.tb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); overflow-x: auto; }
.tb-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 14px; font: inherit; color: var(--text-2); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tb-tab:hover { color: var(--text); }
.tb-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tb-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-xs); }
.tb-count { font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; color: var(--text-2); font-weight: 500; }
.badge-muted { background: var(--surface-3); color: var(--text-2); }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--sp-3); }
.tb-card { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tb-card.is-off { opacity: .65; }
.tb-card p { margin: 0; }
.tb-card details .md-preview { margin-top: 6px; max-height: 260px; overflow: auto; background: var(--surface-2); border-radius: var(--radius-xs); padding: 8px 10px; }
.tb-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tb-name { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; margin-right: auto; }
.tb-scope-planner { background: var(--accent-soft); color: var(--accent); }
.tb-scope-workers { background: var(--info-soft); color: var(--info); }
.tb-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tb-actions .icon-btn { margin-left: auto; }
.tb-cmd { display: block; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 4px 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.tb-tools { margin: 6px 0 0; padding-left: 18px; max-height: 240px; overflow: auto; }
.tb-tools li { margin: 2px 0; overflow-wrap: anywhere; }
.tb-tools code { font-size: 11.5px; }
.tb-toolnames { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.tb-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.tb-template { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed var(--border-strong, var(--border)); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.tb-template:hover, .tb-template:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.tb-template code { overflow-wrap: anywhere; }
.tb-repo { list-style: none; margin: 0; padding: 0; }
.tb-repo li { padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.tb-repo li:last-child { border-bottom: 0; }
.tb-mode { border: 0; padding: 0; margin: 0 0 var(--sp-3); display: flex; flex-direction: column; gap: 4px; }
.tb-mode legend { margin-bottom: 4px; color: var(--text-2); }
.tb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: 6px; }
.tb-stats > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); display: flex; flex-direction: column; }
.tb-stats b { font-size: 1.5rem; line-height: 1.2; }
.tb-stats span { font-size: var(--fs-sm); color: var(--text-2); }
.tb-top { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tb-top li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.tb-top code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-bar { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--w), var(--surface-3) var(--w)); }
.tb-search { margin: var(--sp-3) 0; max-width: 520px; }
.tb-search .row { gap: 8px; flex-wrap: nowrap; align-items: stretch; }
.tb-search input { flex: 1 1 auto; min-width: 0; width: auto; }
.tb-sym-result h4 { margin: var(--sp-2) 0 4px; font-size: var(--fs-sm); }
.tb-sym-result ul { margin: 0; padding-left: 18px; }
.tb-sym-result li { margin: 2px 0; overflow-wrap: anywhere; }
.tb-sig { font-size: 11.5px; }
.tb-outline { max-height: 480px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre; margin-top: 8px; }
.ag-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.ag-skill { background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11px; }
.ag-toolbox-line { margin: 4px 0 8px; }
.ag-research { max-height: 320px; overflow: auto; }
@media (max-width: 560px) {
  .tb-stats { grid-template-columns: 1fr; }
  .tb-top li { grid-template-columns: minmax(0, 1fr) auto; }
  .tb-top .tb-bar { display: none; }
}
