/* Two-level workspace sidebar (navigation.js). */
.sidebar .nav-scroll { overflow-y: auto; scrollbar-width: thin; }
.nav-section + .nav-section .nav-heading { margin-top: 16px; }
.nav-row { display: flex; align-items: stretch; }
.nav-row > .nav-item { flex: 1; min-width: 0; }
.nav-row > .nav-item span:not(.nav-count) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-expand {
  display: inline-grid; place-items: center; width: 32px; flex-shrink: 0;
  background: none; border: 0; color: var(--muted); cursor: pointer;
}
.nav-expand .icon { width: 14px; height: 14px; transition: transform .15s; transform: rotate(-90deg); }
[dir="rtl"] .nav-expand .icon { transform: rotate(90deg); }
.nav-group.open > .nav-row .nav-expand .icon { transform: none; }
.nav-expand:hover { color: var(--text); background: var(--surface2); }
.nav-expand:focus-visible, .nav-subitem:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* While its pages are listed, the group is a heading for them; the page itself carries the marker. */
.nav-group.open.contains-active > .nav-row > .nav-item.active { border-inline-start-color: transparent; background: none; }
.nav-sub { margin: 0 0 6px; margin-inline-start: 29px; border-inline-start: 1px solid var(--line); }
.nav-sub[hidden] { display: none; }
.nav-subitem {
  display: flex; align-items: center; width: 100%; min-height: 32px; padding: 6px 12px;
  margin-inline-start: -1px; border: 0; border-inline-start: 2px solid transparent;
  background: none; color: var(--sub); font: inherit; font-size: 13px; text-align: start; cursor: pointer;
}
.nav-subitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-subitem:hover { color: var(--text); background: var(--surface2); }
.nav-subitem.active { color: var(--text); font-weight: 600; border-inline-start-color: var(--accent); background: var(--accent-bg); }
@media (max-width: 980px) {
  .nav-subitem { font-size: 12px; padding: 6px 10px; }
  .nav-sub { margin-inline-start: 24px; }
}
