#view-content > .panel { padding:0; border:0; background:transparent; }
.knowledge-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.knowledge-toolbar p { font-size:13px; color:#666; }
.knowledge-toolbar > div { display:flex; flex-shrink:0; gap:8px; }
.knowledge-toolbar button { padding:7px 11px; min-height:34px; border:1px solid #e5e5e5; border-radius:6px; color:#525252; background:#fff; font:inherit; font-size:12px; cursor:pointer; }
.knowledge-toolbar button:hover { background:#f5f5f5; border-color:#a3a3a3; }
#content-form > .knowledge-sections { display:flex; flex-direction:column; gap:12px; }
.knowledge-section { border:1px solid #e5e5e5; border-radius:10px; background:#fff; overflow:hidden; }
.knowledge-section > summary { display:flex; align-items:center; gap:16px; padding:21px 24px; cursor:pointer; list-style:none; }
.knowledge-section > summary::-webkit-details-marker { display:none; }
.knowledge-section > summary::after { content:''; flex:none; width:8px; height:8px; margin-left:auto; border-right:1.5px solid #737373; border-bottom:1.5px solid #737373; transform:rotate(45deg); transition:transform .15s; }
.knowledge-section[open] > summary::after { transform:rotate(225deg); }
.knowledge-section > summary:hover { background:#fafafa; }
.knowledge-section > summary:focus-visible { outline:2px solid #0070f3; outline-offset:-3px; border-radius:9px; }
.knowledge-number { display:grid; place-items:center; flex:none; width:36px; height:36px; border:1px solid #e5e5e5; border-radius:8px; font-family:'Geist Mono',monospace; font-size:12px; color:#737373; background:#fafafa; }
.knowledge-section[open] .knowledge-number { color:#171717; background:#f0f0f0; }
.knowledge-title { display:flex; flex-direction:column; gap:3px; min-width:0; }
.knowledge-title strong { color:#171717; font-size:15px; font-weight:600; letter-spacing:-.02em; }
.knowledge-title > span { color:#737373; font-size:13px; font-weight:400; line-height:1.5; }
.knowledge-body { padding:24px; border-top:1px solid #ededed; gap:20px; }
.knowledge-body .field.full { grid-column:1/-1; }
.knowledge-body textarea { min-height:110px; }
.knowledge-body #agent-behavior-rules,.knowledge-body #agent-general-instructions { min-height:150px; }
.knowledge-body .editor-list:empty { margin-bottom:4px; }
.knowledge-body .add-row { margin:12px 0 0; border-style:dashed; color:#404040; font-weight:500; }
#content-form > .knowledge-save { padding:18px 0; margin-top:10px; gap:12px; }
.knowledge-save-note { color:#737373; font-size:12px; margin-right:auto; }
.knowledge-save .save-message { flex-basis:100%; text-align:right; }
.knowledge-save .save-message:empty { display:none; }
@media(max-width:650px) {
 .knowledge-toolbar { align-items:flex-start; flex-direction:column; gap:10px; }
 .knowledge-section > summary { padding:18px 16px; gap:12px; }
 .knowledge-title strong { font-size:14px; }
 .knowledge-title > span { font-size:12px; }
 .knowledge-body { padding:18px 16px; grid-template-columns:1fr; }
 .knowledge-save-note { flex-basis:100%; }
 .knowledge-save .primary { width:100%; }
 .knowledge-save .save-message { text-align:left; }
}
@media(prefers-reduced-motion:reduce) { .knowledge-section > summary::after { transition:none; } }
.category-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:24px 0 16px; }
.category-heading p { color:#737373; font-size:13px; margin-top:5px; }
.category-heading .primary { flex-shrink:0; }
.category-list { display:grid; gap:12px; }
.category-rename { margin-left:auto; flex-shrink:0; padding:8px 12px; border:1px solid #d4d4d4; background:#fff; color:#171717; border-radius:6px; font:inherit; font-size:12px; cursor:pointer; }
.category-rename:hover { background:#f5f5f5; border-color:#737373; }
.category-list summary::after { margin-left:4px; }
.category-list summary > .category-danger { flex-shrink:0; font-size:12px; }
@media(max-width:650px) { .category-list summary { flex-wrap:wrap; }.category-list summary .knowledge-title { flex-basis:100%; }.category-list summary .category-rename { margin-left:0; } }
.category-settings input:focus { border-color:#0070f3; box-shadow:0 0 0 3px #0070f318; }
.category-body { padding:24px; border-top:1px solid #e5e5e5; }
.category-settings { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:center; margin-bottom:24px; }
.category-toggle { display:flex; align-items:center; gap:10px; font-size:13px; line-height:1.5; }
.category-toggle input { width:18px; height:18px; min-height:0; flex:none; accent-color:#171717; }
.category-entries { display:grid; gap:16px; }
.category-entry { display:grid; gap:14px; padding:20px; border:1px solid #e5e5e5; background:#fafafa; border-radius:8px; }
.category-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:20px; }
.category-secondary,.category-danger { padding:9px 12px; border:1px solid #d4d4d4; background:#fff; border-radius:6px; font:inherit; font-size:13px; cursor:pointer; }
.category-danger { color:#b42318; border-color:#f1d0cc; justify-self:end; }
.category-empty { padding:24px; border:1px dashed #d4d4d4; color:#666; border-radius:8px; }
.category-body > .knowledge-body { padding:0; border:0; margin-top:20px; }
#content-form > [hidden] { display:none; }
@media(max-width:650px) { .category-heading { align-items:stretch; flex-direction:column; }.category-settings { grid-template-columns:1fr; gap:16px; }.category-body { padding:16px; }.category-entry { padding:14px; } }
