/* Media feedback #3096. Existing Nuhet tokens and native controls. */
.nh-mediafolders { align-self: start; }
.nh-mediafolders .nh-mediatree {
    max-height: min(40vh, 28rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.nh .nh-mediafolders .nh-mediatree.jstree-default .jstree-anchor { white-space: normal; height: auto; min-height: var(--nh-space-touch); overflow-wrap: anywhere; }
.nh-mediafilter { align-items: end; gap: var(--nh-space-sm); }
.nh-mediafilter .nh-field { min-width: 0; flex: 1; }
.nh-mediafilter input { width: 100%; }
.nh-mediaorganization { display: flex; flex-wrap: wrap; align-items: end; gap: var(--nh-space-lg); padding: var(--nh-space-lg) 0; }
.nh-mediaorganization .nh-field { flex: 1 1 12rem; min-width: 0; }
.nh-mediaorganization .nh-input { width: 100%; }
.nh-mediaorganization[hidden] { display: none; }
[data-nh-media-organize] { margin-block: var(--nh-space-lg); }
.nh-mediaitem:has(input:checked) { outline: 2px solid var(--nh-primary); outline-offset: 2px; }
.nh-mediaitem:has(input:focus-visible) { outline: 3px solid var(--nh-focus); outline-offset: 2px; }
@media (min-width: 1024px) {
    .nh-mediafolders .nh-mediatree { max-height: min(55vh, 36rem); }
}