/* Batch 5 follows the 402 × 874 Figma detail frames. */
.knowledge-detail-screen,.knowledge-edit-screen{min-height:100%;background:#fff;color:#111827;font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,sans-serif}
.knowledge-detail-header,.knowledge-edit-header{height:50px;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:#fff}
.knowledge-detail-header button,.knowledge-edit-header button{border:0;background:#f5f6f7;color:#344054;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;padding:0}
.knowledge-detail-header button svg,.knowledge-edit-header button svg{width:20px;height:20px;stroke-width:2.2}
.knowledge-detail-header>div,.knowledge-edit-header>div{display:flex;align-items:center;gap:10px}
.knowledge-detail-header.searching{gap:8px}.knowledge-detail-header.searching label{height:38px;flex:1;display:flex;align-items:center;gap:8px;border-radius:13px;background:#f5f6f7;padding:0 12px;color:#8e96a2}.knowledge-detail-header.searching label svg{width:18px}.knowledge-detail-header.searching input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:15px/22px inherit}.knowledge-detail-header.searching>button:last-child{width:auto;border-radius:0;background:transparent;font-size:14px}
.knowledge-detail-title{padding:7px 19px 0}.knowledge-detail-title h1{font-size:20px;line-height:29px;letter-spacing:-.35px;margin:0;font-weight:700;color:#111827}.knowledge-detail-title p{font-size:13px;line-height:20px;color:#adb4c1;margin:3px 0 0}
.knowledge-detail-meta,.knowledge-edit-tags{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding:9px 19px 7px}.knowledge-detail-meta>span,.knowledge-detail-meta>button:not(.knowledge-category-add),.knowledge-edit-tags>span,.knowledge-edit-tags>button:not(:first-child){flex:0 0 auto;height:29px;border:0;border-radius:99px;background:#f5f6f7;padding:4px 12px;color:#4d596b;font-size:13px;line-height:21px;white-space:nowrap}.knowledge-detail-meta .knowledge-category-add,.knowledge-edit-tags>button:first-child{flex:0 0 auto;width:28px;height:28px;border:1px solid #d8dde5;border-radius:50%;background:#fff;color:#667085;display:grid;place-items:center;padding:0}.knowledge-category-add svg,.knowledge-edit-tags>button:first-child svg{width:16px;height:16px}.knowledge-more-tags{font-weight:500}
.knowledge-detail-tabs,.knowledge-edit-tabs{height:47px;display:flex;align-items:flex-end;gap:29px;padding:0 28px;border-bottom:1px solid #f2f3f5}.knowledge-detail-tabs button,.knowledge-edit-tabs span{height:47px;position:relative;border:0;background:transparent;padding:13px 0 10px;color:#a3aab6;font-size:15px;line-height:24px;font-weight:500}.knowledge-detail-tabs button[aria-selected="true"],.knowledge-edit-tabs span:first-child{color:#202632}.knowledge-detail-tabs button[aria-selected="true"]:after,.knowledge-edit-tabs span:first-child:after{content:"";position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);width:27px;height:3px;border-radius:3px;background:#111}
.knowledge-detail-panel{padding:17px 20px 60px}.knowledge-detail-copy{font-size:14px;line-height:24px;letter-spacing:0;color:#273244}.knowledge-detail-copy p{margin:0 0 20px}.knowledge-detail-copy .knowledge-detail-lead{font-size:19px;line-height:28px;font-weight:700;color:#111827;margin-bottom:18px}.knowledge-detail-copy ul{list-style:none;margin:0;padding:0}.knowledge-detail-copy li{position:relative;padding-left:15px;margin:0 0 20px}.knowledge-detail-copy li:before{content:"•";position:absolute;left:0;top:0;color:#111827}.knowledge-detail-copy mark,.knowledge-detail-title mark{background:#fff1a8;color:inherit;border-radius:3px}.knowledge-search-result{margin:-12px 0 16px;border-radius:10px;background:#f5f6f7;padding:8px 10px;color:#7a8492;font-size:12px}.knowledge-detail-assets{border-top:1px solid #edf0f3;padding-top:18px}.knowledge-detail-assets h2{font-size:16px;margin:0 0 10px}
.knowledge-reference-list{display:flex;flex-direction:column;gap:12px}.knowledge-reference-card{min-height:63px;width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #eceff3;border-radius:16px;background:#fafbfc;padding:10px 12px}.knowledge-reference-card .reference-avatar{width:38px;height:38px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:#fff0d9;font-size:20px}.knowledge-reference-card strong{min-width:0;flex:1;color:#475467;font-size:14px;line-height:21px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-reference-card>svg{width:18px;color:#98a2b3}.knowledge-reference-card.unavailable{color:#98a2b3}.knowledge-reference-card.unavailable>div{min-width:0;flex:1;display:flex;flex-direction:column}.knowledge-reference-card.unavailable strong{color:#667085}.knowledge-reference-card.unavailable small{font-size:12px}.knowledge-reference-card.unavailable>button{width:32px;height:32px}.knowledge-reference-empty{text-align:center;padding:55px 20px;color:#8c95a3}.knowledge-reference-empty p{font-size:16px;color:#344054;margin:0 0 7px}.knowledge-reference-empty span{display:block;font-size:13px;margin-bottom:17px}.knowledge-reference-empty button{border-radius:12px;background:#23262a;color:#fff;padding:9px 14px}.reference-manager-list{max-height:46vh;overflow:auto}.reference-manager-list .menu-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-row.danger{color:#b5473b}

.knowledge-edit-screen{min-height:100%}.knowledge-edit-screen form{min-height:100%;display:flex;flex-direction:column}.knowledge-edit-header{height:50px}.knowledge-edit-header>div{gap:9px}.knowledge-edit-header .knowledge-edit-save{width:auto;border-radius:0;background:transparent;color:#111827;padding:0 2px;font-size:16px;font-weight:700}.knowledge-edit-header button:disabled{color:#c6c9ce;background:#f6f6f7;opacity:1}
#knowledge-edit-title{width:calc(100% - 32px);height:auto;margin:7px 16px 0;padding:0;border:0;border-radius:0;background:transparent;color:#111827;font:700 20px/29px "PingFang SC",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.35px;outline:0}.knowledge-edit-created{margin:3px 16px 0;color:#adb4c1;font-size:13px;line-height:20px}.knowledge-edit-tags{padding:9px 16px 7px}.knowledge-edit-tabs{padding:0 25px;gap:29px}.knowledge-edit-tabs span{font-size:15px}
#knowledge-edit-text{display:block;width:calc(100% - 32px);height:360px;min-height:220px;margin:20px 16px 0;padding:0;border:0;border-radius:0;background:transparent;resize:none;outline:0;color:#273244;font:13.5px/23px "PingFang SC",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:0}.knowledge-edit-toolbar{position:sticky;bottom:0;margin-top:auto;min-height:55px;padding:8px 16px 10px;border-top:1px solid #edf0f3;background:#fff;display:flex;align-items:center;justify-content:space-between}.knowledge-edit-toolbar>div{display:flex;gap:10px}.knowledge-edit-toolbar button{width:34px;height:34px;display:grid;place-items:center;padding:0;color:#8c949f}.knowledge-edit-toolbar button svg{width:20px;height:20px}.knowledge-edit-toolbar button strong{font-size:21px;font-weight:500}.knowledge-edit-toolbar output{color:#9aa1ac;font-size:13px}.knowledge-edit-screen .sheet-error{margin:0;padding:0 16px 8px;color:#a03f32;font-size:12px}

@media(max-width:760px){
 body[data-page="knowledge-detail"],body[data-page="knowledge-edit"]{background:#fff}
 body[data-page="knowledge-detail"] .content,body[data-page="knowledge-edit"] .content{padding:0;margin:0;max-width:none}
 body[data-page="knowledge-detail"] .preview-status,body[data-page="knowledge-edit"] .preview-status{background:#fff}
 body[data-page="knowledge-detail"] .scroll-area,body[data-page="knowledge-edit"] .scroll-area{background:#fff}
 .knowledge-detail-screen,.knowledge-edit-screen{min-height:calc(100dvh - 62px)}
 body.keyboard-open .knowledge-edit-toolbar{position:sticky;bottom:0}
 body.keyboard-open #knowledge-edit-text{height:210px}
}
@media(min-width:761px){
 body[data-page="knowledge-detail"] .content,body[data-page="knowledge-edit"] .content{padding:20px 32px}
 .knowledge-detail-screen,.knowledge-edit-screen{max-width:720px;margin:auto;border-radius:22px;overflow:hidden;min-height:760px;box-shadow:0 1px 0 #e9e7e2}
 #knowledge-edit-text{height:430px}
}
