.sidebar .sidebar-projects-row { display:flex; align-items:center; }
.sidebar .sidebar-projects-row > a { flex:1; min-width:0; }
.sidebar-favorites-toggle { width:32px; height:32px; flex:0 0 32px; padding:0; border:0; border-radius:7px; background:transparent; color:#94a3b8; cursor:pointer; font:inherit; font-size:18px; }
.sidebar-favorites-toggle:hover { background:#0f1a30; color:white; }
.sidebar-favorites-toggle[aria-expanded="false"] span { display:inline-block; transform:rotate(-90deg); }
.sidebar .sidebar-favorites { margin:2px 0 8px 20px; padding:0 0 0 10px; border-left:1px solid #263348; max-height:288px; overflow-y:auto; overflow-x:hidden; }
.sidebar .sidebar-favorites[hidden] { display:none; }
.sidebar .sidebar-favorites .sidebar-favorite-link { display:flex; align-items:center; gap:8px; min-height:36px; padding:6px 8px; font-size:13px; background:transparent; color:var(--text); }
.sidebar .sidebar-favorites .sidebar-favorite-link:hover { background:#0f1a30; color:white; }
.sidebar .sidebar-favorites .sidebar-favorite-link[aria-current="page"] { background:#0f2539; color:var(--accent); }
.sidebar-project-icon { width:18px; height:18px; flex:0 0 18px; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; }
.sidebar-project-icon img { width:18px; height:18px; object-fit:contain; border-radius:4px; }
.sidebar-project-icon img[hidden] { display:none; }
.sidebar-project-icon [data-sidebar-project-fallback] { filter:brightness(0) invert(1); border-radius:0; opacity:.9; }
.sidebar-project-text-icon { font-size:16px; line-height:18px; white-space:nowrap; }
.sidebar-project-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar .sidebar-favorite-link:focus-visible, .sidebar-favorites-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.sidebar-favorite-tooltip { position:fixed; z-index:3500; box-sizing:border-box; max-width:min(280px,calc(100vw - 16px)); max-height:calc(100dvh - 16px); overflow:auto; padding:6px 9px; border:1px solid #334155; border-radius:6px; background:#111827; color:#e5e7eb; font:13px/1.4 system-ui,sans-serif; overflow-wrap:anywhere; box-shadow:0 6px 18px #0005; }
@media (min-width:901px) {
  .app.sidebar-collapsed .sidebar-favorites-toggle { display:none; }
  .app.sidebar-collapsed .sidebar .sidebar-favorites { margin:2px 0 8px; padding:0; border:0; }
  .app.sidebar-collapsed .sidebar .sidebar-favorite-link { justify-content:center; gap:0; padding:6px 8px; }
  .app.sidebar-collapsed .sidebar-project-name { display:none; }
  .app.sidebar-collapsed .sidebar-project-icon { width:16px; height:16px; flex-basis:16px; }
  .app.sidebar-collapsed .sidebar-project-icon img { width:16px; height:16px; }
  .app.sidebar-collapsed .sidebar-project-text-icon { font-size:14px; line-height:16px; }
  .app.sidebar-collapsed .sidebar .nav-item a.sidebar-favorite-link::after { content:none; }
}
@media (max-width:900px) {
  .sidebar .sidebar-favorites { max-height:352px; }
  .sidebar .sidebar-favorites .sidebar-favorite-link { min-height:44px; }
  .app.sidebar-collapsed .sidebar .sidebar-favorites .sidebar-favorite-link { justify-content:flex-start; gap:8px; }
  .sidebar-favorites-toggle { width:44px; height:44px; flex-basis:44px; }
}
