/* Scope to the notebook entry nav, including its collapsed rail. */
[data-notebook-sidebar-collapsed] nav:is([aria-label="笔记入口"], [aria-label="Note entries"]) > button:first-child,
button[data-mobile-notebook-id="__all__"] {
  display: none !important;
}

[data-team-portal] {
  text-decoration: none;
  flex-shrink: 0;
}

[data-team-portal] svg {
  flex-shrink: 0;
}

[data-team-portal="sidebar"] {
  margin: 8px 12px 4px;
}

[data-notebook-sidebar-collapsed="true"] [data-team-portal="sidebar"] {
  width: 36px;
  padding: 0;
  margin: 0 0 8px;
  justify-content: center;
}

[data-notebook-sidebar-collapsed="true"] [data-team-portal="sidebar"] span {
  display: none;
}


[data-team-plugin-warning] { position:relative; z-index:60; display:flex; align-items:center; gap:12px; padding:8px 16px; border-bottom:1px solid #d97706; background:#fef3c7; color:#78350f; font-size:13px; }
body:has([data-team-plugin-warning]) .edgeever-workspace-grid { height:calc(100dvh - var(--team-warning-height, 40px)); }
[data-team-plugin-warning] span { flex:1; }
[data-team-plugin-warning] button { flex-shrink:0; padding:2px 8px; border:1px solid currentColor; border-radius:4px; }
@media (min-width:1024px) {
 html[data-team-list="hidden"] .edgeever-workspace-grid--editor { grid-template-columns:var(--notebook-sidebar-width) minmax(0,1fr) !important; }
 html[data-team-list="hidden"] .edgeever-workspace-memo-list { display:none !important; }
}
[data-team-tree-tools] { display:flex; flex-direction:column; gap:2px; margin:0 12px 4px; }
[data-team-tree-tools] button { min-height:30px; text-align:left; padding:4px 8px; border-radius:5px; color:var(--workspace-text-secondary,#475569);font-size:12px; }
[data-team-tree-tools] button:hover { background:var(--workspace-hover,#f8fafc); }
[data-notebook-sidebar-collapsed="true"] [data-team-tree-tools] { margin:0; }
[data-notebook-sidebar-collapsed="true"] [data-team-tree-tools] button { width:36px; overflow:hidden; white-space:nowrap; }
[data-early-leaf] > span:first-of-type { display:none; }
[data-early-leaf-toggle] {display:flex;width:20px;height:24px;flex-shrink:0;align-items:center;justify-content:center;border-radius:4px;}
[data-early-leaf-toggle][aria-expanded="false"] svg { transform:rotate(-90deg); }
.team-early-note {display:flex;align-items:center;gap:8px;width:100%;height:32px;min-width:0;padding:0 8px 0 var(--team-note-indent);border-radius:6px;font-size:12px;text-align:left;color:var(--workspace-text-secondary,#475569);}
.team-early-note svg {flex-shrink:0;}
.team-early-note span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.team-early-note:hover {background:var(--workspace-hover,#f8fafc);}
.team-early-note[aria-current="page"] {background:var(--workspace-selection,#e2e8f0);font-weight:600;color:var(--workspace-text,#0f172a);}
.team-early-note:focus-visible,[data-team-tree-tools] button:focus-visible,[data-early-leaf-toggle]:focus-visible {outline:2px solid #94a3b8;outline-offset:-2px;}
@media(max-width:1023px) {[data-early-note-list],[data-early-leaf-toggle],[data-team-tree-tools] {display:none;}}

.team-heading-target { background:rgba(0,125,140,.13);outline:2px solid rgba(0,125,140,.4);outline-offset:4px;scroll-margin-top:90px;transition:background .2s; }
