/* The editor is bounded by the existing modal; only its form body scrolls. */
.knowledge-details-editor{display:grid;gap:20px;min-width:0}.knowledge-editor-body{display:grid;gap:13px;min-width:0}.knowledge-editor-optional-body{min-width:0}.knowledge-editor-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.knowledge-editor-section-title>.meta{font-size:12.5px}.knowledge-editor-section-title>.admin-checkbox{display:flex;gap:7px;align-items:center;white-space:nowrap}.knowledge-editor-section-title input[type=checkbox]{accent-color:var(--blue)}
.knowledge-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;min-width:0}.knowledge-editor-region{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.knowledge-editor-source{display:grid;gap:12px;min-width:0}.knowledge-editor-source .input{background:#fff}.knowledge-source-key{display:flex;align-items:center;gap:6px;font:12px/1.4 var(--f-mono);color:var(--t-3);overflow-wrap:anywhere}.knowledge-source-key>.i{width:12px;height:12px}
.knowledge-source-state{margin-left:auto;flex:none;padding:2px 6px;border-radius:var(--r1);background:#FAEED5;color:#8C702E;font:12px var(--f-ui)}.knowledge-source-state.approved{background:var(--ok-pale);color:var(--ok)}.knowledge-source-state.rejected{background:var(--signal-pale);color:var(--signal)}
.knowledge-editor-group{border:1px solid #DCE5F0;border-radius:var(--r2);background:#fff;min-width:0}.knowledge-editor-group>summary{display:flex;align-items:center;gap:9px;padding:12px 13px;cursor:pointer;list-style:none;font-size:13.5px;color:var(--t-1);min-height:43px}.knowledge-editor-group>summary::-webkit-details-marker{display:none}.knowledge-editor-group>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid #7590AE;border-bottom:1.5px solid #7590AE;transform:rotate(-45deg);margin-right:3px;transition:transform var(--d1)}.knowledge-editor-group[open]>summary::before{transform:rotate(45deg)}.knowledge-editor-count{margin-left:auto;font:12.5px var(--f-ui);padding:2px 7px;border-radius:var(--r1);background:#EAF0F7;color:#6682A0}.knowledge-editor-group[open]>summary{border-bottom:1px solid var(--line-2);background:#F8FAFD}.knowledge-editor-group>.btn{margin:10px 12px 12px;height:28px;gap:5px;font-size:13px;padding:0 8px;color:var(--blue)}.knowledge-editor-group>.btn>.i{width:12px;height:12px}.knowledge-add-icon{transform:rotate(45deg)}
.knowledge-editor-rows{display:grid;gap:0;min-width:0}.knowledge-editor-row{padding:14px;display:grid;gap:13px;min-width:0;border-bottom:1px solid var(--line-2)}.knowledge-editor-row:last-child{border-bottom:0}.knowledge-editor-row:nth-child(even){background:#FAFBFD}.knowledge-editor-row-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.knowledge-editor-row-head>span{font-size:12.5px;color:var(--t-3)}.knowledge-editor-row-head>.btn{height:23px;padding:0 5px;gap:4px;font-size:12.5px;color:#8A7480}.knowledge-editor-row-head>.btn>.i{width:11px;height:11px}.knowledge-editor-row>div:last-child{display:grid;gap:12px;min-width:0}.knowledge-editor-row .field{min-width:0}.knowledge-editor-row .input{min-width:0;max-width:100%}.knowledge-editor-row textarea.input{height:60px;min-height:52px;line-height:1.8}.knowledge-editor-row .knowledge-editor-group{background:#F9FBFE}.knowledge-editor-row .knowledge-editor-group>summary{font-size:13px;padding:9px 11px;min-height:35px}.knowledge-editor-row .knowledge-editor-row{padding:10px 11px;background:transparent}.knowledge-editor-empty{font-size:13px;color:var(--t-3);padding:13px 14px 0;line-height:1.7}
.knowledge-editor-hint{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.9;color:#7D8D9F}.knowledge-editor-hint>.i{width:13px;height:13px;margin-top:3px;flex:none}.knowledge-real-person-note{padding:11px 12px;background:#F0F5FB;border-left:2px solid #9BB7D6;color:#5F7B99}.knowledge-editor-assets{border-top:1px solid var(--line);padding-top:9px}.knowledge-editor-assets>summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#6983A0;font-size:13.5px;list-style:none;padding:5px 0}.knowledge-editor-assets>summary>.i{width:14px;height:14px}.knowledge-editor-assets>.knowledge-editor-section{margin-top:13px;padding-bottom:7px}.knowledge-editor-assets .knowledge-editor-body{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px}.knowledge-editor-assets .knowledge-editor-body>.knowledge-editor-grid,.knowledge-editor-assets .knowledge-editor-body>.knowledge-editor-hint{grid-column:1/-1}.knowledge-details-editor .field>.meta{font-size:12.5px;line-height:1.8;letter-spacing:0}.knowledge-details-editor .input{font-family:var(--f-ui)}
@media(max-width:650px){.knowledge-editor-grid,.knowledge-editor-region,.knowledge-editor-assets .knowledge-editor-body{grid-template-columns:1fr}.knowledge-editor-section-title{align-items:flex-start}.knowledge-editor-section-title>.meta{font-size:12px}.knowledge-editor-row{padding:11px}.knowledge-editor-section-title>.admin-checkbox{font-size:12.5px}.knowledge-editor-group>summary{font-size:13px;padding:10px}.knowledge-source-key{font-size:11px}}
