/* Shared interaction sizing; retain the existing palette, typography and surfaces. */
:root{--team-row-height:44px;--team-detail-width:420px}
.team-ui button:focus-visible,.team-ui a:focus-visible,.team-ui [tabindex]:focus-visible{outline:2px solid #7c3aed;outline-offset:3px}
.team-ui .team-view-switch{display:flex;gap:4px;align-items:center}
.team-ui .team-view-switch button,.team-ui .team-disclosure>summary{border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:8px 12px;color:#475569;font:inherit;font-size:13px;cursor:pointer}
.team-ui .team-view-switch button[aria-pressed=true]{color:#6d28d9;background:#f3efff;border-color:#c4b5fd}
.team-ui .team-disclosure{position:relative}.team-ui .team-disclosure>summary{list-style:none;white-space:nowrap}.team-ui .team-disclosure>summary::-webkit-details-marker{display:none}
.team-ui .team-disclosure-content{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:min(340px,85vw);padding:14px;display:grid;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 16px 45px #0f172a18}
.team-ui .team-disclosure-content input,.team-ui .team-disclosure-content select{width:100%;min-height:38px}
.team-ui .kb-hero{padding:16px 20px!important}.team-ui .kb-subtitle{max-width:650px}.team-ui .kb-stat-strip{display:none}
.team-ui .kb-tree-row{min-height:var(--team-row-height);font-size:14px!important}.team-ui .kb-tree-label{font-size:14px!important}.team-ui .kb-tree-row[title]{cursor:pointer}
.team-ui .kb-library-toolbar{align-items:center;gap:12px;flex-wrap:wrap}.team-ui .kb-toolbar-actions{flex-wrap:wrap;gap:8px}.team-ui .kb-filter-input{min-width:180px}
.team-ui .kb-subfolder-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.team-ui .kb-subfolder-card{min-height:82px!important;padding:14px 16px!important;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:10px;align-content:center;cursor:pointer}
.team-ui .kb-subfolder-icon{grid-row:1/3;width:30px;height:30px;margin:0!important}.team-ui .kb-subfolder-name{font-size:15px;overflow-wrap:anywhere}.team-ui .kb-subfolder-meta{font-size:12px;margin-top:4px}
.team-ui .team-section-label{font-size:13px;color:#64748b;margin:18px 0 10px;font-weight:700}
.team-ui[data-library-view=list] .kb-doc-grid{display:flex!important;flex-direction:column;gap:6px}
.team-ui[data-library-view=list] .kb-doc-item{min-height:76px!important;padding:13px 52px 13px 54px!important;display:grid!important;grid-template-columns:minmax(160px,1fr) auto;gap:6px 18px;align-content:center}
.team-ui[data-library-view=list] .kb-doc-card-icon{position:absolute;left:15px;top:23px;width:26px;height:26px;margin:0!important}
.team-ui[data-library-view=list] .kb-doc-item-title{font-size:15px;margin:0;grid-column:1}.team-ui[data-library-view=list] .kb-doc-item-meta{margin:0;grid-column:2;grid-row:1;font-size:12px}
.team-ui[data-library-view=list] .kb-doc-item-purpose{grid-column:1/-1;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.team-ui[data-library-view=list] .kb-doc-card-links{display:none}.team-ui[data-library-view=list] .kb-doc-fav-btn{top:20px;right:12px}
.team-ui .kb-doc-item-title{overflow-wrap:anywhere}.team-ui .kb-heading-toolbar{gap:4px;padding:8px!important}.team-ui .kb-command-group{gap:2px}
.team-ui .kb-heading-toolbar .team-disclosure-content{display:flex;flex-wrap:wrap;width:320px}.team-ui .kb-heading-toolbar .team-disclosure-content button{min-width:36px;min-height:36px}
.team-ui .kb-editor-save-floating{position:sticky;top:8px;z-index:8}
.team-ui .workspace-head{padding-bottom:16px}.team-ui .workspace-head p{max-width:760px}
.team-ui .workspace-board{grid-template-columns:260px minmax(350px,1fr)!important}.team-ui .workspace-board.has-detail{grid-template-columns:240px minmax(300px,1fr) minmax(340px,var(--team-detail-width))!important}
.team-ui .topic-detail[hidden]{display:none!important}.team-ui .topic-detail{min-width:0}.team-ui .topic-card{cursor:pointer}.team-ui .topic-toolbar{gap:12px;flex-wrap:wrap}.team-ui .node-content-tabs{overflow:auto;white-space:nowrap}.team-ui .node-content-tabs button{min-height:40px}
.team-ui .node-item-card{min-height:70px;align-items:center;text-decoration:none;cursor:pointer}.team-ui .node-item-card:hover{border-color:#c4b5fd;background:#faf8ff}.team-ui .node-item-card small{display:block;color:#64748b;margin-top:5px}
.team-ui .team-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0 18px}.team-ui .team-summary-grid>div{padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.team-ui .team-summary-grid strong{display:block;font-size:22px}.team-ui .team-summary-grid small{color:#64748b}
.team-ui .team-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px}.team-ui .team-section-head h3{font-size:15px;margin:0}.team-ui .team-empty{padding:22px 12px;color:#64748b;line-height:1.7}
.team-ui .team-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.team-ui .team-form-grid .wide{grid-column:1/-1}.team-ui .team-form-grid label{display:grid;gap:6px;font-size:13px}.team-ui .team-form-grid input,.team-ui .team-form-grid select,.team-ui .team-form-grid textarea{width:100%;padding:10px;border:1px solid #dbe2ea;border-radius:10px;font:inherit}
.team-ui .team-inline-error{color:#b91c1c;min-height:20px;font-size:13px}.team-ui .team-quick-detail{padding:20px;line-height:1.7}.team-ui .team-quick-detail header{display:flex;gap:12px;align-items:center;justify-content:space-between}.team-ui .team-quick-detail h2{font-size:20px;overflow-wrap:anywhere}.team-ui .team-quick-detail p{white-space:pre-wrap;overflow-wrap:anywhere}.team-ui .team-quick-detail dl{display:grid;grid-template-columns:80px 1fr;gap:8px;font-size:13px}.team-ui .team-quick-detail dt{color:#64748b}.team-ui .team-quick-detail dd{margin:0}.team-ui .team-quick-detail footer{display:flex;gap:8px;margin-top:20px;flex-wrap:wrap}
.team-ui .team-filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0}.team-ui .team-filter-bar select{padding:8px 10px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;max-width:230px}
.team-ui .team-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.team-ui .team-direction-card{padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.team-ui .team-direction-card h3{margin:0 0 6px;font-size:16px}.team-ui .team-direction-card p{font-size:13px;color:#64748b;line-height:1.6}.team-ui .team-direction-card a{color:#6d28d9}.team-ui .team-direction-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:#64748b}
@media(max-width:1200px){.team-ui .workspace-board.has-detail{grid-template-columns:220px minmax(0,1fr)!important}.team-ui .workspace-board.has-detail .topic-detail{position:fixed;right:12px;top:60px;bottom:12px;width:min(480px,calc(100vw - 24px));z-index:65;background:#fff;box-shadow:0 16px 60px #0f172a30;overflow:auto}.team-ui .kb-doc-item-meta{max-width:240px}}
@media(max-width:760px){.team-ui .workspace-board,.team-ui .workspace-board.has-detail{display:flex!important;flex-direction:column}.team-ui .work-tree-panel{max-height:260px;overflow:auto}.team-ui[data-library-view=list] .kb-doc-item{grid-template-columns:minmax(0,1fr);padding-right:45px!important}.team-ui[data-library-view=list] .kb-doc-item-meta{grid-column:1;grid-row:auto;max-width:none}.team-ui .team-form-grid{grid-template-columns:1fr}.team-ui .team-form-grid .wide{grid-column:auto}.team-ui .kb-subfolder-grid{grid-template-columns:1fr}.team-ui .kb-hero-actions{flex-wrap:wrap}}
.team-ui .team-peek-dialog{position:fixed;inset:14px 14px 14px auto;margin:0;width:min(520px,calc(100vw - 28px));max-height:calc(100vh - 28px);height:calc(100vh - 28px);padding:0;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 20px 70px #0f172a30;overflow:auto}.team-ui .team-peek-dialog::backdrop{background:#0f172a25}.team-ui .team-create-dialog{max-width:min(680px,calc(100vw - 24px));width:680px;max-height:90vh;overflow:auto;border:1px solid #e2e8f0;border-radius:16px;padding:22px}.team-ui .team-create-dialog header,.team-ui .team-create-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px}.team-ui .team-create-dialog footer{justify-content:flex-end;margin:18px 0 0}
.team-ui .ws-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;min-height:36px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;font:inherit;font-size:13px;text-decoration:none;cursor:pointer}.team-ui .ws-btn.primary{background:#7c3aed;color:#fff;border-color:#7c3aed}.team-ui .ws-btn:disabled{opacity:.55;cursor:wait}.team-ui .team-view-switch{flex-wrap:wrap}.team-ui .node-item-card{display:flex;gap:12px;margin-bottom:7px;padding:12px;border:1px solid #e2e8f0;border-radius:12px}.team-ui .node-item-card>div{min-width:0;flex:1}.team-ui .node-item-card strong{overflow-wrap:anywhere}
.team-ui [hidden]{display:none!important}
.team-ui:not(.kb-doc-open) .kb-notion-layout{grid-template-columns:var(--kb-library-width,280px) minmax(0,1fr) 0!important}
.team-ui:not(.kb-doc-open).kb-library-collapsed .kb-notion-layout{grid-template-columns:0 minmax(0,1fr) 0!important}
.team-ui:not(.kb-doc-open) .kb-property-panel,.team-ui:not(.kb-doc-open) #kbTogglePropertyPanel,.team-ui:not(.kb-doc-open) #kbPropertyResizer{display:none!important}
.team-ui .kb-library-toolbar .kb-toolbar-actions{flex:1;justify-content:flex-end}.team-ui .kb-library-toolbar .kb-filter-input{flex:1;min-width:140px;max-width:360px}.team-ui .kb-cur-folder{min-width:90px}
.team-ui .node-content-list.is-overview{display:block}.team-ui .node-content-list.is-overview>p{margin:8px 0;line-height:1.65}.team-ui .node-content-list.is-overview .team-empty{padding:12px 0}.team-ui .node-content-list.is-overview .team-section-head{margin:18px 0 10px}
.team-ui .kb-doc-card-icon.doc::before,.team-ui .kb-doc-card-icon.doc::after,.team-ui .kb-doc-card-icon.sop::before,.team-ui .kb-doc-card-icon.sop::after,.team-ui .kb-doc-card-icon.flow::before,.team-ui .kb-doc-card-icon.flow::after{display:none!important}
.team-ui .kb-doc-card-icon.doc,.team-ui .kb-doc-card-icon.sop,.team-ui .kb-doc-card-icon.flow{display:grid;place-items:center;background:#f2edff;border-radius:7px;color:#7c3aed}.team-ui .kb-doc-card-icon svg{width:22px;height:22px}
@media(max-width:760px){.team-ui:not(.kb-doc-open) .kb-notion-layout{display:block!important}.team-ui .kb-toolbar-actions .team-view-switch{margin-left:auto}}
.team-ui .kb-notion-wrap{width:100%;min-width:0;margin:0}
.team-ui [popover]:not(:popover-open){display:none!important}
.team-ui .kb-new-menu:popover-open,.team-ui .team-disclosure-content:popover-open{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:12px;box-shadow:0 18px 55px #0f172a25}
.team-ui .team-create-dialog [data-flows]{max-height:45vh;overflow:auto;margin:14px 0}
/* Wide process tables retain readable columns and scroll inside the editor. */
.team-ui #kbDocContent .tc-wrap:has(.tc-cell:nth-child(6)){max-width:100%;overflow-x:auto}
.team-ui #kbDocContent .tc-wrap:has(.tc-cell:nth-child(6)) .tc-table{min-width:960px}
.team-ui #kbDocContent .tableWrapper{max-width:100%;overflow-x:auto}
.team-ui #kbDocContent table:has(tr:first-child th:nth-child(6)){min-width:960px}
/* Folder navigation is the primary surface; documents use a compact secondary measure. */
.team-ui #kbFolderView .kb-subfolder-grid{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;gap:16px;margin-bottom:24px}
.team-ui #kbFolderView .kb-subfolder-card{flex:0 1 360px;width:360px;max-width:100%;min-width:0;box-sizing:border-box;min-height:176px!important;padding:24px!important;grid-template-columns:56px minmax(0,1fr);column-gap:18px;row-gap:6px;align-content:center;border-radius:20px}
.team-ui #kbFolderView .kb-subfolder-card::before{height:60px}
.team-ui #kbFolderView .kb-subfolder-icon{width:52px;height:44px;align-self:center;border-radius:12px 12px 14px 14px}
.team-ui #kbFolderView .kb-subfolder-icon::before{width:25px;height:10px;top:-7px;left:6px}
.team-ui #kbFolderView .kb-subfolder-name{font-size:18px;line-height:1.5;font-weight:850;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.team-ui #kbFolderView .kb-subfolder-meta{font-size:12px;line-height:1.6;margin-top:0}
.team-ui #kbFolderView .team-section-label:has(+.kb-subfolder-grid){font-size:15px;color:#334155;margin-top:20px}
.team-ui #kbFolderView .kb-doc-item{min-height:112px!important;padding:12px 42px 12px 50px!important;display:grid!important;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;border-radius:14px;box-shadow:0 4px 14px #0f172a05}
.team-ui #kbFolderView .kb-doc-item::before{height:32px;opacity:.35}
.team-ui #kbFolderView .kb-doc-item:hover{transform:none}
.team-ui #kbFolderView .kb-doc-card-icon{position:absolute;left:14px;top:14px;width:26px;height:26px;margin:0!important}
.team-ui #kbFolderView .kb-doc-card-icon svg{width:19px;height:19px}
.team-ui #kbFolderView .kb-doc-item-title{font-size:14px;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.team-ui #kbFolderView .kb-doc-item-meta{font-size:11px;line-height:1.5;margin:0;min-width:0}
.team-ui #kbFolderView .kb-doc-item-purpose{font-size:12px;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.team-ui #kbFolderView .kb-doc-card-links{margin:2px 0 0}
.team-ui #kbFolderView .kb-doc-fav-btn{top:12px;right:10px}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-item{min-height:56px!important;padding:8px 44px 8px 48px!important;grid-template-columns:minmax(0,1fr) minmax(160px,38%);align-content:center;gap:3px 16px}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-card-icon{top:50%;transform:translateY(-50%)}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-item-title{display:block;white-space:nowrap;text-overflow:ellipsis}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-item-meta{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-item-purpose{display:block;white-space:nowrap;text-overflow:ellipsis}
.team-ui[data-library-view=list] #kbFolderView .kb-doc-fav-btn{top:50%;transform:translateY(-50%)}
@media(max-width:760px){.team-ui #kbFolderView .kb-subfolder-grid{grid-template-columns:1fr;gap:12px}.team-ui #kbFolderView .kb-subfolder-card{min-height:148px!important;padding:20px!important}.team-ui #kbFolderView .kb-subfolder-name{font-size:17px}.team-ui[data-library-view=list] #kbFolderView .kb-doc-item{grid-template-columns:minmax(0,1fr)}.team-ui[data-library-view=list] #kbFolderView .kb-doc-item-meta{grid-column:1;grid-row:auto;text-align:left}.team-ui[data-library-view=list] #kbFolderView .kb-doc-item-purpose{grid-column:1}}
