:root{font-family:Inter,"Microsoft YaHei",Arial,sans-serif;color:#171717;background:#fff}*{box-sizing:border-box}body{margin:0}header{height:56px;background:#000;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 40px}.brand{display:flex;align-items:center;height:36px}.brand img{display:block;width:auto;height:32px;max-width:250px;object-fit:contain}nav{display:flex;gap:10px}button{font:inherit;cursor:pointer}header button{background:transparent;border:1px solid #555;color:#fff;border-radius:20px;padding:6px 18px}main{height:calc(100vh - 56px);display:grid;grid-template-columns:250px 1fr}aside{background:#f5f6f8;border-right:1px solid #eceef0;overflow:auto}aside section{padding:16px 10px 8px}h1{font-size:18px;margin:0 0 6px}aside p{font-size:11px;color:#8c8c8c;margin:0 0 14px}input{width:100%;border:0;background:#fff;padding:9px 12px;outline:1px solid #eee}.toc{font-size:12px;color:#667085;padding:10px 16px}.node{display:block;width:calc(100% - 14px);margin:2px 7px;border:0;background:transparent;text-align:left;padding:8px 10px;font-size:14px;color:#242424}.node:hover,.node.active{background:#dce8ff;color:#2563eb}.child{padding-left:34px}.viewer{min-width:0;display:flex;flex-direction:column}.toolbar{height:48px;background:#f6f7f9;border-bottom:1px solid #eceef0;display:flex;justify-content:center;align-items:center;gap:12px}.toolbar button{background:#fff;border:1px solid #ddd;padding:5px 10px}article{overflow:auto;flex:1;padding:55px 9%;background:#fff}.empty{max-width:700px;margin:auto;color:#666}.empty h2{color:#202020}.doc{max-width:760px;margin:auto}.doc h1{font-size:30px}.doc p{line-height:1.75}.sdk{height:420px;border:1px dashed #aeb4bb;background:#fafafa;display:flex;align-items:center;justify-content:center;color:#68717b;margin-top:28px}dialog{border:0;padding:28px;width:min(400px,90vw);box-shadow:0 15px 50px #0004}dialog::backdrop{background:#0008}dialog h2{margin-top:0}.close{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:24px}dialog input{margin:18px 0}dialog #login{width:100%;background:#000;color:#fff;border:0;padding:12px}#error{display:block;color:#d33;height:20px}.mobile{display:none}@media(max-width:700px){header{padding:0 16px}.brand{height:30px}.brand img{height:26px;max-width:200px}.mobile{display:grid;place-items:center;width:30px;height:30px;border:0!important;border-radius:0;padding:0;background:transparent}.mobile img{display:block;width:22px;height:22px;object-fit:contain}main{display:block}.viewer{height:calc(100vh - 56px)}aside{position:fixed;z-index:2;top:56px;bottom:0;width:min(330px,86vw);transform:translateX(-100%);transition:.2s}aside.open{transform:translateX(0)}article{padding:35px 20px}.toolbar{justify-content:flex-end;padding-right:15px}}
/* Admin configuration page */
.admin-body{background:#fafafa;color:#191919;min-width:320px}.admin-body .admin-header{height:62px;padding:0 28px;border-bottom:1px solid #242424}.admin-body .brand{font-size:19px;letter-spacing:1px;display:flex;align-items:center;gap:10px}.admin-body .brand small{font-size:16px;font-weight:500;letter-spacing:0}.brand-mark{font-size:28px;font-weight:400;line-height:1}.logout{background:#000;border:1px solid #555;color:#fff;padding:7px 14px;font-size:14px}.admin-body .admin-main{display:block;height:auto;width:min(1150px,calc(100% - 48px));margin:0 auto;padding:40px 0 80px}.page-title{font-size:26px!important;line-height:1.25;margin:0 0 26px;font-weight:700}.admin-body .panel{background:#fff;border:1px solid #e6e6e6;margin:0 0 34px;box-shadow:none}.panel-heading{padding:20px 26px}.panel-heading h2{font-size:21px;line-height:1.25;margin:0 0 7px}.panel-heading p,.setting-row p{color:#8a8f98;font-size:14px;line-height:1.5;margin:0}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:24px}.setting-row{min-height:112px;padding:19px 26px;border-top:1px solid #ececec;display:flex;align-items:center;justify-content:space-between;gap:24px}.setting-row b{font-size:17px;font-weight:650;line-height:1.7}.setting-row b small,.node-name small{font-size:13px;font-weight:400;color:#88909a}.admin-body .secondary,.admin-body .primary,.admin-body .save,.admin-body .tag{border-radius:0;padding:8px 13px;font-size:14px;white-space:nowrap}.admin-body .secondary{background:#fff;border:1px solid #e2e4e7;color:#32363c}.admin-body .primary{border:1px solid #000;background:#000;color:#fff;padding:11px 17px}.row-actions{display:flex;align-items:center;gap:10px}.admin-body .tag{border:0;background:#dce9fc;color:#3472c6}.admin-body .danger{border:0;background:transparent;color:#e44f4f;font-size:14px;padding:8px}.panel-actions{display:flex;align-items:center;gap:10px}.panel-actions select{height:40px;width:136px;padding:0 11px;border:1px solid #e2e4e7;background:#fff;color:#373b40;font:inherit}.admin-body .save{border:0;background:#8c8c8c;color:#fff;padding:11px 16px}.permission-panel .panel-heading{padding-bottom:20px}.perm-head,.perm{display:grid;grid-template-columns:minmax(0,1fr) 74px 74px 74px;align-items:center}.perm-head{min-height:37px;padding:0 26px;background:#fcfcfc;border-top:1px solid #ededed;border-bottom:1px solid #e9e9e9;color:#9298a1;font-size:13px}.perm-head span:not(:first-child){text-align:center}.perm{min-height:41px;margin:0 26px;border-bottom:1px solid #eee;font-size:14px}.perm label{justify-self:center;white-space:nowrap;font-size:13px;color:#38404a}.perm input{width:16px;height:16px;padding:0;outline:0;vertical-align:-3px;margin:0 4px 0 0;accent-color:#1677ff}.perm input:disabled{accent-color:#bfc2c7}.node-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#252a31}.depth-1{padding-left:28px}.depth-2{padding-left:54px}.depth-3{padding-left:80px}.admin-body button{transition:background .15s ease,border-color .15s ease}.admin-body .secondary:hover{border-color:#9aa1aa}.admin-body .primary:hover{background:#222}.admin-body .panel:last-child{margin-bottom:0}@media(max-width:760px){.admin-body .admin-header{padding:0 16px}.admin-body .admin-main{width:calc(100% - 28px);padding:26px 0 48px}.page-title{font-size:23px!important;margin-bottom:18px}.panel-heading{padding:18px}.panel-title{align-items:flex-start;flex-direction:column}.panel-actions{width:100%;flex-wrap:wrap}.setting-row{padding:17px 18px;min-height:102px}.row-actions{gap:3px}.perm-head,.perm{grid-template-columns:minmax(0,1fr) 48px 48px 48px}.perm-head{padding:0 12px}.perm{margin:0 12px}.perm label{font-size:0}.perm label input{margin:0}.depth-1{padding-left:14px}.depth-2{padding-left:28px}.depth-3{padding-left:42px}.node-name{font-size:13px}}
/* Sync feedback */
.sync-status{margin:0;padding:0 26px 14px;font-size:14px;color:#707780}.sync-status.success{color:#24834b}.sync-status.error{color:#cc3d3d}.empty-tree{padding:30px 26px;color:#89909a;font-size:14px}
/* Knowledge-base configuration modal */
.space-dialog{border:0;width:min(440px,calc(100vw - 32px));padding:0;box-shadow:0 18px 60px rgba(0,0,0,.28)}.space-dialog::backdrop{background:rgba(0,0,0,.5)}.space-dialog form{position:relative;padding:30px}.space-dialog h2{margin:0 0 10px;font-size:22px}.space-dialog p{margin:0 0 24px;color:#818892;font-size:14px;line-height:1.6}.space-dialog label{display:block;margin-bottom:8px;font-size:14px}.space-dialog input{width:100%;padding:11px 12px;border:1px solid #dfe2e6;outline:0}.space-dialog input:focus{border-color:#555}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:26px;color:#444}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-actions .primary{padding:10px 16px}
.space-dialog .confirm-label{margin-top:16px}.form-error{min-height:18px!important;margin:8px 0 0!important;color:#d23c3c!important}
.no-action{color:#9298a1;font-size:14px}
.tree-empty{padding:10px 16px;color:#8a9099;font-size:13px;line-height:1.6}.synced-node.depth-1{padding-left:34px}.synced-node.depth-2{padding-left:54px}.synced-node.depth-3{padding-left:74px}.synced-node.depth-4{padding-left:94px}
.synced-node{width:calc(100% - 14px)!important;min-height:38px!important;display:flex!important;align-items:center;gap:7px;overflow:hidden;white-space:nowrap;line-height:1.2}.synced-node .node-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-arrow{width:15px;flex:0 0 15px;font-size:19px;line-height:1;color:#2d3339;text-align:center;transform:translateY(-2px)}.tree-arrow.blank{visibility:hidden}.tree-icon{position:relative;flex:0 0 18px;width:18px;height:18px;color:#90979e}.synced-node.folder .tree-icon:before{content:'';position:absolute;left:1px;top:4px;width:15px;height:11px;border:2px solid #979da2;border-radius:2px}.synced-node.folder .tree-icon:after{content:'';position:absolute;left:2px;top:2px;width:7px;height:4px;border:2px solid #979da2;border-bottom:0;border-radius:2px 2px 0 0}.synced-node.document .tree-icon:before{content:'';position:absolute;left:3px;top:1px;width:11px;height:15px;border:2px solid #979da2;border-radius:2px}.synced-node.document .tree-icon:after{content:'≡';position:absolute;left:6px;top:3px;color:#979da2;font-size:11px;font-weight:700}.synced-node.depth-0{padding-left:4px}.synced-node.depth-1{padding-left:28px}.synced-node.depth-2{padding-left:52px}.synced-node.depth-3{padding-left:76px}.synced-node.depth-4{padding-left:100px}.synced-node.active{background:#d9e7ff!important;color:#1e62bd}
/* Compact, single-line knowledge tree */
#app>main{grid-template-columns:320px minmax(0,1fr)}#app aside section{padding:16px 14px 8px}.synced-node{width:calc(100% - 12px)!important;min-height:31px!important;margin:0 6px!important;padding-top:4px!important;padding-bottom:4px!important;display:flex!important;align-items:center;gap:5px;overflow:hidden;white-space:nowrap;line-height:1.1;font-size:14px!important}.synced-node .node-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-arrow{position:relative;width:10px;height:12px;flex:0 0 10px}.tree-arrow.has-child:after{content:'';position:absolute;left:1px;top:3px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #30363d}.tree-arrow.blank{visibility:hidden}.tree-icon{position:relative;flex:0 0 15px;width:15px;height:15px;color:#90979e}.synced-node.document .tree-icon:before{content:'';position:absolute;left:2px;top:1px;width:9px;height:12px;border:1.5px solid #92999f;border-radius:2px}.synced-node.document .tree-icon:after{content:'≡';position:absolute;left:4px;top:2px;color:#92999f;font-size:9px;font-weight:700}.synced-node.depth-0{padding-left:3px!important}.synced-node.depth-1{padding-left:21px!important}.synced-node.depth-2{padding-left:39px!important}.synced-node.depth-3{padding-left:57px!important}.synced-node.depth-4{padding-left:75px!important}.synced-node.active{background:#d9e7ff!important;color:#1e62bd}
.doc-component-view{height:100%;min-height:0;display:flex;flex-direction:column;background:#fff}.doc-component-meta{height:48px;padding:0 28px;display:flex;align-items:center;gap:16px;border-bottom:1px solid #eceef0;color:#667085;font-size:13px}.doc-component-meta span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#343940}.component-status{margin:16px 28px;color:#6a737d;font-size:14px}.component-status:empty{display:none}.component-status.error{color:#c93939;white-space:pre-wrap;word-break:break-word}.doc-component-mount{--feishu-chrome-height:104px;--feishu-footer-crop:112px;position:relative;flex:1;min-height:680px;width:100%;overflow:hidden}.doc-component-mount iframe{display:block!important;width:100%!important;height:calc(100% + var(--feishu-chrome-height) + var(--feishu-footer-crop))!important;transform:translateY(calc(-1 * var(--feishu-chrome-height)));border:0!important}
.pdf-view{height:100%;min-height:0;display:flex;flex-direction:column;background:#f4f5f7}.pdf-mount{flex:1;overflow:auto;padding:12px 20px 36px}.pdf-page{width:max-content;max-width:100%;margin:0 auto 14px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.16)}.pdf-page canvas{display:block;max-width:100%;height:auto}.pdf-fallback{display:block;width:100%;height:760px;border:0;background:#fff}
.copy-toast{position:fixed;z-index:20;left:50%;bottom:42px;transform:translateX(-50%);padding:10px 16px;border-radius:4px;background:rgba(25,25,25,.82);color:#fff;font-size:14px;box-shadow:0 4px 18px rgba(0,0,0,.16);pointer-events:none}.copy-toast[hidden]{display:none}
.language-dialog{width:min(410px,calc(100vw - 32px));padding:0;border:0;border-radius:0;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.24)}.language-dialog form{padding:26px 24px 18px}.language-dialog h2{margin:0 0 18px;font-size:21px;font-weight:600}.language-options{display:grid;gap:2px}.language-option{width:100%;height:49px;padding:0;border:0;background:transparent;display:flex;align-items:center;gap:16px;color:#252525;font-size:17px;text-align:left}.language-option:hover{background:#f6f8fc}.language-radio{position:relative;display:block;flex:0 0 24px;width:24px;height:24px;border:2px solid #858585;border-radius:50%}.language-option.selected{color:#1677ff}.language-option.selected .language-radio{border-color:#1677ff}.language-option.selected .language-radio:after{content:'';position:absolute;inset:4px;border-radius:50%;background:#1677ff}.language-cancel{display:block;margin:18px 0 0 auto;padding:7px 0;border:0;background:transparent;color:#1677ff;font-size:15px}.language-cancel:hover{text-decoration:underline}@media(max-width:700px){.language-dialog{width:min(360px,calc(100vw - 28px))}.language-dialog form{padding:23px 20px 16px}.language-dialog h2{font-size:20px}.language-option{height:47px;font-size:16px}.language-radio{flex-basis:23px;width:23px;height:23px}}
.copy-panel .panel-heading select{height:40px;min-width:136px;padding:0 11px;border:1px solid #e2e4e7;background:#fff;font:inherit}.copy-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;padding:22px 26px 26px;border-top:1px solid #ececec}.copy-form label{display:grid;gap:8px;color:#3c424a;font-size:14px}.copy-form label:nth-child(2),.copy-form label:nth-child(4),.copy-form label:nth-child(5){grid-column:1 / -1}.copy-form input,.copy-form textarea{width:100%;border:1px solid #dfe2e6;outline:0;padding:10px 11px;background:#fff;font:inherit;resize:vertical}.copy-form textarea{line-height:1.55}.copy-form input:focus,.copy-form textarea:focus{border-color:#777}.copy-form-actions{grid-column:1 / -1;display:flex;align-items:center;justify-content:flex-end;gap:16px}.copy-form-actions span{color:#24834b;font-size:14px}@media(max-width:760px){.copy-form{grid-template-columns:1fr;padding:18px}.copy-form label,.copy-form label:nth-child(2),.copy-form label:nth-child(4),.copy-form label:nth-child(5){grid-column:auto}.copy-form-actions{grid-column:auto}}
#password-description{white-space:pre-line}
