/* One search row: collection -> search -> sort. Auxiliary actions wrap as one group. */
html body .materials-workbench #posterLibrary {container:poster-library / inline-size;}
html body .materials-workbench #posterLibrary>.toolbar.pl-search-toolbar {
 display:grid!important;grid-template-columns:max-content minmax(170px,1fr) 142px max-content max-content;
 align-items:center;gap:10px 14px!important;padding:12px 22px 10px!important;margin:0!important;min-width:0;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar>.toolbar-left,
html body .materials-workbench #posterLibrary .pl-toolbar-actions {display:contents!important;}
html body .materials-workbench #posterLibrary .pl-search-toolbar #posterCollections.pw-segmented {
 grid-column:1;grid-row:1;max-width:100%!important;margin:0!important;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-search-field {
 grid-column:2;grid-row:1;width:100%!important;max-width:100%;min-width:0;flex:none;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-search-field #posterSearch {
 height:36px;min-height:36px;padding-left:34px!important;padding-right:34px!important;width:100%!important;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar .pl-search-icon {
 display:block;position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#7b8a99;pointer-events:none;z-index:1;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-sort-control {
 grid-column:3;grid-row:1;display:flex;align-items:center;gap:6px;height:36px;box-sizing:border-box;
 padding:0 8px!important;border:1px solid #dce3e7;border-radius:4px;background:#fff;min-width:0;white-space:nowrap;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-sort-control>span {display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#718091;flex:none;}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-sort-control svg {width:14px;height:14px;flex:none;}
html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-sort-control select {
 flex:1;width:0;min-width:0!important;height:32px;min-height:32px;border:0!important;box-shadow:none!important;background:transparent;padding:0 16px 0 0!important;margin:0;color:#082338;font-size:12px!important;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar #posterCollectionScope {
 grid-column:4;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;font-size:12px;min-width:0;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar #posterCollectionScope label {white-space:nowrap;}
html body .materials-workbench #posterLibrary .pl-search-toolbar .toolbar-btns {
 grid-column:5;grid-row:1;display:flex;align-items:center;gap:10px!important;flex-wrap:wrap!important;margin:0!important;min-width:0;
}
html body .materials-workbench #posterLibrary .pl-search-toolbar #catBar {
 grid-column:1/-1;grid-row:2;padding:7px 0 0!important;margin:0!important;gap:2px 18px!important;
}
/* Keep search result announcements available without repeating the visible count. */
html body .materials-workbench #posterLibrary #totalBar {
 position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;
}
@container poster-library (max-width:1400px){
 html body .materials-workbench #posterLibrary>.toolbar.pl-search-toolbar {grid-template-columns:max-content minmax(160px,1fr) 142px;}
 html body .materials-workbench #posterLibrary .pl-toolbar-actions {display:flex!important;grid-column:1/-1;grid-row:2;align-items:center;flex-wrap:wrap;gap:10px 18px;min-width:0;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar #catBar {grid-row:3;}
}
@container poster-library (max-width:760px){
 html body .materials-workbench #posterLibrary>.toolbar.pl-search-toolbar {grid-template-columns:minmax(0,1fr) 132px;gap:8px 10px!important;padding:10px 14px 8px!important;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar #posterCollections.pw-segmented {grid-column:1/-1;grid-row:1;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-search-field {grid-column:1;grid-row:2;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar .poster-sort-control {grid-column:2;grid-row:2;}
 html body .materials-workbench #posterLibrary .pl-toolbar-actions {grid-row:3;gap:8px 12px;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar #posterCollectionScope {flex-basis:100%;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar #catBar {grid-row:4;}
 html body .materials-workbench #posterLibrary .pl-search-toolbar .toolbar-btns {width:auto!important;gap:8px!important;}
}
