/* Compact navigation: keep the hierarchy flexible and independently scrollable. */
.sidebar{height:100vh;height:100dvh;padding:8px 10px 0}
.sidebar .workspace-label{height:28px;min-height:28px;padding:0 5px;flex-shrink:0}
.sidebar .workspace-label>a{color:inherit;letter-spacing:1.3px;font-size:9px}
.sidebar .workspace-label .icon-button{font-size:19px;padding:3px 5px;min-height:24px;min-width:24px}
.sidebar-filters{display:flex;flex-shrink:0;gap:0;border:1px solid var(--line);border-radius:7px;margin:3px 0 8px;min-height:32px;background:var(--surface)}
.sidebar .sidebar-filters .playing-switch{flex:1;min-width:0;min-height:30px;margin:0;padding:5px 7px;gap:5px;border:0;border-radius:6px;background:transparent}
.sidebar-filters .playing-switch+.playing-switch{border-left:1px solid var(--line);border-top-left-radius:0;border-bottom-left-radius:0}
.sidebar-filters .playing-switch>span:first-child{font-size:11px;line-height:18px;white-space:nowrap}
.sidebar-filters .live-dot{margin-right:5px;width:5px;height:5px}
.sidebar-filters .switch-track{flex:0 0 24px;width:24px;height:14px;padding:2px}
.sidebar-filters .switch-track:before{width:10px;height:10px}
.sidebar-filters .playing-switch input:checked+.switch-track:before{transform:translateX(10px)}
.sidebar-filters .playing-switch input{inset:0;width:100%;height:100%;min-height:0;margin:0}
.sidebar .tree-search{margin:0 0 8px;flex-shrink:0}
.sidebar .tree-search input{height:32px;min-height:32px;font-size:11px;padding:6px 8px 6px 30px}
.sidebar .tree-search .search-icon{left:9px;width:14px;height:14px}
.sidebar .hierarchy{flex:1 1 0;min-height:0;margin:0 -4px;padding:0 4px 8px;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin}
.sidebar .tree-group>summary{min-height:27px;padding:0 2px;gap:3px}
.sidebar .tree-toggle{width:20px;height:27px;min-height:27px;padding:3px}
.sidebar .tree-branch-name{height:27px;min-height:27px;padding:3px;gap:6px;font-size:11px}
.sidebar .tree-node{min-height:27px;padding:4px 6px;gap:6px;font-size:11px;line-height:19px}
.sidebar .node-icon{width:18px;height:18px;font-size:9px;border-radius:4px}
.sidebar .node-label{font-size:9px;line-height:12px}
.sidebar .tree-children{margin-left:9px;padding-left:6px}
.sidebar .tree-count{padding-right:3px}
.sidebar .tree-empty{padding:12px 6px}
.sidebar .sidebar-bottom{flex-shrink:0;margin-top:0}
.sidebar .bottom-nav{padding:6px 0;gap:0}
.sidebar .bottom-nav button{min-height:28px;padding:4px 8px;gap:9px;font-size:11px;line-height:20px;border-radius:5px}
.sidebar .bottom-nav button>span{width:16px;font-size:15px;line-height:18px}
.sidebar .account{min-height:46px;padding:7px 3px;gap:4px}
.sidebar .account-info{min-height:30px;gap:8px}
.sidebar .avatar{width:28px;height:28px;border-radius:7px;font-size:10px}
.sidebar .account-info strong{font-size:11px;line-height:16px;max-width:150px}
.sidebar .account-info small{font-size:9px;line-height:13px}
.sidebar #user-id{display:none}
.sidebar .account .icon-button{font-size:18px;padding:4px;min-width:28px;min-height:28px}
@media(max-width:760px){
 .sidebar{padding:8px 10px 0}
 .sidebar .sidebar-filters .playing-switch{min-height:38px}
 .sidebar .tree-toggle,.sidebar .tree-branch-name,.sidebar .tree-group>summary{height:36px;min-height:36px}
 .sidebar .tree-toggle{width:30px}
 .sidebar .tree-node{min-height:36px}
 .sidebar .bottom-nav button{min-height:34px}
 .sidebar .tree-search input{height:36px;min-height:36px}
}
@media(max-height:560px){
 .sidebar .bottom-nav{grid-template-columns:1fr 1fr;padding:4px 0;column-gap:2px}
 .sidebar .bottom-nav button{font-size:10px;gap:5px;padding-inline:5px;min-height:28px}
 .sidebar .account{min-height:40px;padding-block:4px}
}
