/* Library navigation and metadata: share the poster editor's sliding selection surface. */
html body .materials-workbench #posterTabs.pw-segmented,
html body .materials-workbench #posterCollections.pw-segmented {
 --pw-seg-count:3;--pw-seg-index:0;
 position:relative;isolation:isolate;display:inline-grid!important;
 grid-template-columns:repeat(var(--pw-seg-count),minmax(0,1fr));
 align-items:stretch;height:auto!important;min-height:0!important;gap:0!important;width:max-content!important;max-width:calc(100% - 44px)!important;
 padding:4px!important;margin:12px 22px!important;box-sizing:border-box;
 border:0!important;border-radius:4px!important;background:#e4eaf3!important;box-shadow:none!important;
}
html body .materials-workbench #posterCollections.pw-segmented {margin-top:0!important;background:#e9edf3!important;}
html body .materials-workbench .pw-segmented::before {
 content:'';position:absolute;z-index:-1;left:4px;top:4px;bottom:4px;width:calc((100% - 8px)/var(--pw-seg-count));
 background:#fff;border-radius:4px;box-shadow:0 1px 4px #08233824;
 transform:translateX(calc(var(--pw-seg-index)*100%));transition:transform 220ms cubic-bezier(.2,.8,.2,1);pointer-events:none;
}
html body .materials-workbench #posterTabs.pw-segmented .ai-tab,
html body .materials-workbench #posterCollections.pw-segmented button {
 position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-width:126px;min-height:40px!important;height:auto!important;margin:0!important;padding:8px 14px!important;
 border:0!important;border-radius:4px!important;box-shadow:none!important;background:transparent!important;
 color:#536779!important;font:inherit;font-size:14px!important;font-weight:500!important;line-height:22px;white-space:nowrap;cursor:pointer;
 transition:color 150ms ease;
}
html body .materials-workbench #posterCollections.pw-segmented button {min-width:118px;min-height:34px!important;padding:6px 12px!important;font-size:13px!important;gap:6px;}
html body .materials-workbench #posterCollections.pw-segmented small {display:inline;font-size:11px;margin:0;font-weight:400;color:#7b8a99;}
html body .materials-workbench #posterTabs.pw-segmented .ai-tab.active,
html body .materials-workbench #posterCollections.pw-segmented button[aria-pressed=true] {color:#006bff!important;}
html body .materials-workbench #posterTabs.pw-segmented .ai-tab:hover,
html body .materials-workbench #posterCollections.pw-segmented button:hover {color:#006bff!important;background:transparent!important;}
html body .materials-workbench .pw-segmented button::after{display:none!important;}
html body .materials-workbench #posterTabs.pw-segmented .materials-tab-icon {width:24px!important;height:24px!important;flex-basis:24px;}
html body .materials-workbench #posterTabs.pw-segmented .ai-icon-inline {width:17px!important;height:17px!important;flex-basis:17px;filter:none!important;}
html body .materials-workbench .pw-segmented button:focus-visible {outline:2px solid #006bff!important;outline-offset:-2px!important;}

/* All six filter groups stay on one row; smaller screens scroll within the row. */
html body #pane-posters.tab-pane #posterFilterBar.paw-filter-bar {
 display:grid!important;grid-template-columns:minmax(160px,1fr) repeat(4,minmax(90px,130px)) max-content!important;
 gap:8px!important;align-items:center;max-width:100%;min-width:0;overflow-x:auto;padding-bottom:3px;box-sizing:border-box;
}
html body #pane-posters.tab-pane #posterFilterBar>:is(input,select) {width:100%!important;min-width:0!important;margin:0!important;grid-column:auto!important;font-size:12px!important;}
html body #pane-posters.tab-pane #posterFilterBar .paw-filter-actions {display:flex;flex-wrap:nowrap;gap:6px;width:max-content;}
html body #pane-posters.tab-pane #posterFilterBar .paw-filter-actions .btn {width:auto;min-width:0;padding:6px 9px;white-space:nowrap;font-size:12px;}

/* Category precedes the title. Secondary metadata gets its own stable single line. */
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-body {padding:10px 12px 11px!important;min-width:0;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-title {display:block!important;margin:0!important;min-width:0;line-height:1.75!important;font-size:13px!important;font-weight:600;color:#082338;overflow-wrap:anywhere;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-cat {display:inline-block;vertical-align:1px;white-space:nowrap;word-break:keep-all;margin:0 5px 0 0;padding:2px 5px;border:1px solid #d6e2f3;border-radius:4px!important;background:#f0f5fd;color:#536779!important;font-size:10px!important;font-weight:400!important;line-height:1.4;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-meta {display:flex;align-items:center;flex-wrap:nowrap!important;gap:10px!important;width:100%;min-width:0;margin:8px 0 0;font-size:11px;color:#718091;font-variant-numeric:tabular-nums;}
html body .materials-workbench #posterLibrary #pgrid .pcard :is(.pc-fav-btn,.pc-dls) {display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;white-space:nowrap;font-size:11px!important;font-weight:400;line-height:20px;color:#718091;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-fav-btn {min-width:0!important;min-height:24px!important;padding:2px 0!important;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-fav-btn.faved {color:#e05271;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-fav-btn:hover {color:#e05271;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-meta svg {width:13px;height:13px;flex:none;}
html body .materials-workbench #posterLibrary #pgrid .pcard .pc-time {display:block;flex:0 0 auto;white-space:nowrap;margin-left:auto;font-size:10.5px!important;line-height:20px;color:#718091;}
@media(max-width:700px){
 html body .materials-workbench #posterTabs.pw-segmented,
 html body .materials-workbench #posterCollections.pw-segmented {max-width:calc(100% - 28px)!important;margin-left:14px!important;margin-right:14px!important;}
 html body .materials-workbench #posterTabs.pw-segmented .ai-tab {min-width:0;gap:4px;padding:7px 8px!important;font-size:12px!important;min-height:38px!important;}
 html body .materials-workbench #posterTabs.pw-segmented .materials-tab-icon {width:21px!important;height:21px!important;flex-basis:21px;}
 html body .materials-workbench #posterTabs.pw-segmented .ai-icon-inline {width:14px!important;height:14px!important;flex-basis:14px;}
 html body .materials-workbench #posterCollections.pw-segmented button {min-width:0;padding:5px 8px!important;font-size:12px!important;gap:4px;}
 html body .materials-workbench #posterCollections.pw-segmented small {font-size:10px;}
 html body .materials-workbench #posterLibrary #pgrid .pcard .pc-body {padding:8px!important;}
 html body .materials-workbench #posterLibrary #pgrid .pcard .pc-meta {gap:8px!important;margin-top:6px;}
 html body .materials-workbench #posterLibrary #pgrid .pcard :is(.pc-fav-btn,.pc-dls) {gap:3px;font-size:10px!important;}
 html body .materials-workbench #posterLibrary #pgrid .pcard .pc-time {font-size:10px!important;}
}
@media(prefers-reduced-motion:reduce){html body .materials-workbench .pw-segmented::before,html body .materials-workbench .pw-segmented button{transition:none!important;}}
/* Preserve full dates and readable counts on the narrowest phones. */
@media(max-width:360px){html body .materials-workbench #posterLibrary #pgrid{grid-template-columns:minmax(0,1fr)!important;}}
