



.sidebar li.collapsible > .cat-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  user-select: none;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background .15s ease, box-shadow .2s ease;
}

.sidebar li.collapsible > .cat-head:hover {
  background: rgba(52,232,255,.06);
  box-shadow: inset 0 0 8px rgba(52,232,255,.10);
}


.sidebar li.collapsible > .cat-head .caret {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .15s ease, text-shadow .15s ease;
  text-shadow: 0 0 6px rgba(52,232,255,.35);
}


.sidebar li.collapsible.collapsed > .cat-head .caret {
  transform: rotate(-90deg);
}


.sidebar li.collapsible.collapsed > ul {
  display: none;
}


.sidebar .cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(52,232,255,.10);
}


.sidebar li.collapsible > ul {
  margin-left: 8px;
}



.sidebar .cat-item.collapsible > .cat-head {
  display:flex; align-items:center; gap:.45rem; cursor:pointer; user-select:none;
  padding:6px 10px; border-radius:12px; transition:background .15s ease, box-shadow .2s ease;
}
.sidebar .cat-item.collapsible > .cat-head:hover {
  background: rgba(52,232,255,.06); box-shadow: inset 0 0 8px rgba(52,232,255,.10);
}
.sidebar .cat-item.collapsible > .cat-head .caret {
  display:inline-block; font-size:12px; line-height:1; transform:rotate(0deg);
  transition:transform .15s ease, text-shadow .15s ease; text-shadow:0 0 6px rgba(52,232,255,.35);
  margin-right:4px;
}
.sidebar .cat-item.collapsible.collapsed > .cat-head .caret { transform:rotate(-90deg); }
.sidebar .cat-item.collapsible.collapsed > .cat-children { display:none; }



.sidebar .cat-item.collapsible > .cat-head {
  display:flex; align-items:center; gap:.6rem; cursor:pointer; user-select:none;
  padding:8px 12px; border-radius:14px;
  transition:background .15s ease, box-shadow .2s ease, transform .05s ease;
}

.sidebar .cat-item.collapsible > .cat-head:hover {
  background: rgba(52,232,255,.07);
  box-shadow: inset 0 0 10px rgba(52,232,255,.12);
}

.sidebar .cat-item.collapsible > .cat-head .caret-btn {
  width: 26px; height: 26px; min-width:26px; min-height:26px;
  border: none; border-radius: 999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(52,232,255,.14);
  box-shadow: 0 0 10px rgba(52,232,255,.35);
  color: #e9faff; font-size: 14px; line-height: 1;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.sidebar .cat-item.collapsible > .cat-head .caret-btn:hover {
  transform: scale(1.06);
  background: rgba(52,232,255,.22);
  box-shadow: 0 0 14px rgba(52,232,255,.45);
}
.sidebar .cat-item.collapsible > .cat-head .caret { display:inline-block; }

.sidebar .cat-item.collapsible.collapsed > .cat-head .caret { transform: none; }


.sidebar .cat-item.collapsible.collapsed > .cat-children { display:none; }


.sidebar .cat-item { margin-bottom: 6px; }
.sidebar .cat-item + .cat-item { border-top: 1px solid rgba(255,255,255,.06); padding-top: 6px; }


.sidebar .sidebar-controls {
  display:flex; align-items:center; justify-content:flex-end; gap:.5rem;
  margin: 6px 6px 8px; padding: 6px; border-radius: 10px;
  background: rgba(52,232,255,.05);
}
.sidebar .sidebar-toggle-all {
  border:none; border-radius:10px; padding:6px 10px;
  background: rgba(52,232,255,.16); color:#e9faff;
  box-shadow: 0 0 10px rgba(52,232,255,.3);
  cursor:pointer; transition: background .15s ease, box-shadow .2s ease, transform .05s ease;
}
.sidebar .sidebar-toggle-all:hover {
  background: rgba(52,232,255,.25);
  box-shadow: 0 0 14px rgba(52,232,255,.45);
}



.sidebar .cat-item {
  margin-bottom: 3px;
}
.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  min-height: 34px; 
  padding: 5px 7px;
  font-size: 13.5px;
  line-height: 1.25;
  border-radius: 9px;
}
.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  max-height: 24px;
  max-width: 24px;
}
.sidebar .cat-item .label {
  font-size: 13.5px;
}




.sidebar .cat-item { margin-bottom: 4px; }
.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;            
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1.25;
  background: rgba(255,255,255,.04);
  transition: background .15s ease, box-shadow .2s ease;
}
.sidebar .cat-item > .cat-head:hover,
.sidebar .cat-item > button:hover {
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 8px rgba(52,232,255,.12);
}


.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  width: 28px; height: 28px; object-fit: cover; border-radius: 6px;
  box-shadow: 0 0 6px rgba(52,232,255,.08);
}


.sidebar .cat-item .label,
.sidebar .cat-item > button {   
  font-size: 13.5px;
  color: #e7f6ff;
  word-break: break-word;
}
.sidebar .cat-item .label {
  display: -webkit-box;
  -webkit-line-clamp: 3;        
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.sidebar .cat-item .caret-btn {
  width: 18px; height: 18px; min-width:18px; min-height:18px;
  margin-left: 4px;
  border: none; border-radius: 999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(52,232,255,.14);
  box-shadow: 0 0 6px rgba(52,232,255,.25);
  color: #e9faff; font-size: 12px; line-height: 1;
  transition: transform .12s ease, background .15s ease, box-shadow .2s ease;
}
.sidebar .cat-item .caret-btn:hover {
  transform: scale(1.05);
  background: rgba(52,232,255,.2);
  box-shadow: 0 0 8px rgba(52,232,255,.35);
}
.sidebar .cat-item.collapsible.collapsed > .cat-children { display:none; }


.sidebar .cat-item + .cat-item { border-top: 1px solid rgba(255,255,255,.05); padding-top: 4px; }


.sidebar .sidebar-controls {
  display:flex; justify-content:flex-end; margin: 6px; padding: 6px;
  border-radius: 10px; background: rgba(52,232,255,.05);
}
.sidebar .sidebar-toggle-all {
  border:none; border-radius:10px; padding:5px 10px;
  background: rgba(52,232,255,.16); color:#e9faff;
  box-shadow: 0 0 8px rgba(52,232,255,.3);
  cursor:pointer; transition: background .15s ease, box-shadow .2s ease;
}
.sidebar .sidebar-toggle-all:hover {
  background: rgba(52,232,255,.25);
  box-shadow: 0 0 10px rgba(52,232,255,.45);
}



.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  
  grid-template-columns: 36px 1fr auto;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
}
.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  width: 36px; height: 36px; object-fit: cover; border-radius: 8px;
}
.sidebar .cat-item .label,
.sidebar .cat-item > button {
  font-size: 14px;
  -webkit-line-clamp: 2; 
}


.cat-preview {
  position: fixed;
  width: 360px; height: 360px;  
  z-index: 9999;
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 22px rgba(52,232,255,.35);
  opacity: 0; transform: scale(.96);
  transition: opacity .15s ease, transform .15s ease;
  background: rgba(16,24,32,.85);
  backdrop-filter: blur(4px);
}
.cat-preview.show { opacity: 1; transform: scale(1); }
.cat-preview img {
  width: 100%; height: 100%; object-fit: contain;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), rgba(0,0,0,.0));
}



.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  grid-template-columns: 32px 1fr auto;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 12px;
}
.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  width: 32px; height: 32px; object-fit: cover; border-radius: 8px;
}
.sidebar .cat-item .label,
.sidebar .cat-item > button {
  font-size: 14px;
  -webkit-line-clamp: 2;
}


.sidebar .cat-item .caret-btn {
  width: 18px; height: 18px; min-width:18px; min-height:18px;
  margin-left: 6px;
  border: none; border-radius: 999px;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(52,232,255,.16);
  box-shadow: 0 0 8px rgba(52,232,255,.35);
  color: #e9faff; font-size: 12px; line-height: 1;
  transition: transform .15s ease, background .15s ease, box-shadow .25s ease;
}
.sidebar .cat-item .caret-btn:hover {
  transform: scale(1.08);
  background: rgba(52,232,255,.22);
  box-shadow: 0 0 12px rgba(52,232,255,.5);
}
.sidebar .cat-item.collapsible > .cat-head .caret {
  display:inline-block; transition: transform .15s ease;
}
.sidebar .cat-item.collapsible.collapsed > .cat-head .caret {
  transform: rotate(-90deg);
}



.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  grid-template-columns: 28px 1fr auto;
  min-height: 40px;
  padding: 6px 9px;
  border-radius: 12px;
}
.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  width: 28px; height: 28px; object-fit: cover; border-radius: 8px;
}
.sidebar .cat-item .label,
.sidebar .cat-item > button {
  font-size: 13.5px;
  -webkit-line-clamp: 2;
}



.sidebar .cat-item > .cat-head,
.sidebar .cat-item > button {
  display: grid !important;
  grid-template-columns: 28px 1fr auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 6px 9px !important;
  border-radius: 12px !important;
}
.sidebar .cat-item > .cat-head img,
.sidebar .cat-item > button img {
  width: 28px !important;
  height: 28px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}
.sidebar .cat-item .label,
.sidebar .cat-item > button {
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}




.sidebar .cat-item .cat-head .cat-btn{
  all: unset;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 28px !important; height: 28px !important;
  border-radius:8px;
}
.sidebar .cat-item .cat-head .cat-btn *{
  max-width: 28px !important; max-height: 28px !important;
}

.sidebar .cat-item .cat-head .cat-btn,
.sidebar .cat-item .cat-head .cat-btn img,
.sidebar .cat-item .cat-head picture,
.sidebar .cat-item .cat-head .thumb{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important; margin: 0 !important;
}


.sidebar .cat-item > .cat-head > :first-child{
  max-width: 28px !important;
  max-height: 28px !important;
  overflow: hidden;
  border-radius: 8px;
}
