/* 团队知识库（2026-10-09），类名 tk- 前缀 */
.tk-mask{position:fixed;inset:0;z-index:70;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:24px}
.tk-mask[hidden]{display:none}
.tk-sheet{width:min(640px,100%);max-height:min(86vh,900px);background:#fff;border-radius:16px;display:flex;flex-direction:column;box-shadow:0 24px 60px #0000002e;overflow:hidden}
.tk-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line,#e5e7eb);font-size:16px}
.tk-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-x{flex:none;width:36px;height:36px;border:0;border-radius:8px;background:transparent;font-size:22px;line-height:1;color:var(--ink-3,#8a9099);cursor:pointer}
.tk-x:hover{background:var(--hover,#f3f4f6)}
.tk-body{overflow-y:auto;padding:16px 18px 20px;display:flex;flex-direction:column;gap:16px;font-size:14px;color:var(--ink,#1f2329)}
.tk-intro{margin:0;font-size:13px;line-height:1.7;color:var(--ink-2,#4b5563);background:#f6f7f9;border-radius:10px;padding:10px 12px}
.tk-sec{display:flex;flex-direction:column;gap:10px}
.tk-sec h3{margin:0;font-size:15px}
.tk-sec h4{margin:6px 0 0;font-size:14px}
.tk-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tk-end{justify-content:space-between}
.tk-input{flex:1;min-width:160px;height:38px;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:0 10px;font:inherit}
.tk-area{width:100%;box-sizing:border-box;border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:10px;font:inherit;line-height:1.6;resize:vertical}
.tk-btn{height:36px;padding:0 14px;border:1px solid var(--line,#e5e7eb);border-radius:8px;background:#fff;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.tk-btn:disabled{opacity:.5;cursor:not-allowed}
.tk-primary{background:var(--red,#d93a2b);border-color:var(--red,#d93a2b);color:#fff}
.tk-link{border:0;background:none;padding:0 4px;font:inherit;font-size:13px;color:var(--ink-3,#8a9099);text-decoration:underline;text-underline-offset:3px;cursor:pointer;white-space:nowrap}
.tk-hint{margin:0;font-size:12px;line-height:1.6;color:var(--ink-3,#8a9099)}
.tk-meta{font-size:12px;color:var(--ink-3,#8a9099)}
.tk-card{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.tk-title{font-size:15px;font-weight:600;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.tk-rules{width:100%}
.tk-rules summary{cursor:pointer;font-size:13px;color:var(--ink-2,#4b5563)}
.tk-pre{white-space:pre-wrap;line-height:1.7;font-size:13px;margin-top:6px}
.tk-files{width:100%;display:flex;flex-direction:column}
.tk-file{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line,#eef0f3)}
.tk-blocked .tk-fname{text-decoration:line-through;color:var(--ink-3,#8a9099)}
.tk-finfo{flex:1;min-width:0}
.tk-fname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-tog{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ink-2,#4b5563);white-space:nowrap;cursor:pointer}
.tk-tog input{accent-color:var(--red,#d93a2b)}
.tk-del{width:30px;height:30px;font-size:18px}
.tk-files-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tk-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fffaf9;border:1px solid #f0c9c3;border-radius:12px;padding:10px 12px}
.tk-code>div:first-child{flex:1;min-width:160px}
.tk-codev{font-size:24px;font-weight:700;letter-spacing:4px;font-variant-numeric:tabular-nums;color:var(--red,#d93a2b)}
.tk-members{display:flex;flex-direction:column;gap:6px}
.tk-mrow{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line,#eef0f3)}
.tk-mrow>span:first-child{flex:1;min-width:0}
.tk-viewer{z-index:80}
@media(max-width:700px){
  .tk-mask{padding:0;align-items:stretch}
  .tk-sheet{width:100%;max-height:none;height:100%;border-radius:0}
  .tk-body{padding:14px 14px calc(18px + env(safe-area-inset-bottom))}
  .tk-btn{height:40px}
  .tk-input{font-size:16px;height:42px}
  .tk-area{font-size:16px}
}
.tk-folder{border-bottom:1px solid var(--line,#eef0f3)}
.tk-folder>.tk-file{padding-left:14px}
.tk-fhead{display:flex;align-items:center;gap:8px;padding:9px 0;cursor:pointer;list-style:none}
.tk-fhead::-webkit-details-marker{display:none}
.tk-fhead::before{content:'▸';color:var(--ink-3,#8a9099);font-size:12px;transition:transform .15s}
.tk-folder[open]>.tk-fhead::before{transform:rotate(90deg)}
.tk-fpath{font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-select{height:36px;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:0 8px;font:inherit;font-size:13px;max-width:220px;background:#fff}
@media(prefers-reduced-motion:reduce){.tk-fhead::before{transition:none}}
.tk-ima{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:12px;background:#fafbfc}
.tk-ima h4{margin:0}
.tk-src{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line,#eef0f3)}
.tk-src .tk-finfo{min-width:220px}
.tk-skip{width:100%}
.tk-skip summary{cursor:pointer;font-size:12px;color:var(--ink-3,#8a9099)}
.tk-skip .tk-meta{white-space:pre-wrap;margin-top:4px}
.tk-ima-form{display:flex;flex-direction:column;gap:8px;padding-top:6px}
