
.aside-tree .ctx-list { list-style: none; margin: 0; padding: 0; }
.aside-tree details { border-radius: 6px; transition: background-color .2s ease; }
.aside-tree summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.aside-tree summary::-webkit-details-marker { display: none; }
.aside-tree .caret { display: inline-block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid currentColor; margin-right: .5rem; transform: rotate(0deg); transition: transform .2s ease; }
.aside-tree details[open] .caret { transform: rotate(90deg); }
.aside-tree .label { line-height: 1.3; }
.aside-tree li.active > details > summary .label { font-weight: 600; }
.aside-tree .children { margin-left: 1.25rem; padding-left: .25rem; /* border-left removed per DigiRelik branding */ }
.aside-tree .children .ctx-list { margin-top: .25rem; }
.aside-tree a { color: inherit; text-decoration: none; padding: .2rem 0; display: inline-flex; align-items: center; }
.aside-tree a:hover { text-decoration: underline; }
.aside-tree .htmx-indicator { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .aside-tree details[open] .children { animation: slideDown .15s ease; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
/* Dark mode friendly */
@media (prefers-color-scheme: dark) {
  .aside-tree .children { border-left-color: rgba(255,255,255,.2); }
}
