.collection-tools{display:grid;gap:10px;border:1px solid #394154;border-radius:16px;padding:12px;background:rgba(8,18,38,.78);color:#e5e7eb;margin:10px 0}
.collection-tools-count{margin:5px 0 0;color:#aeb8ca;font-size:.75rem;line-height:1.35}
.collection-tools-count strong{color:#e5e7eb}
.collection-tools-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.collection-tool-panel{position:relative;z-index:1;min-width:0;border:1px solid #394154;border-radius:12px;background:rgba(15,23,42,.42)}
.collection-tool-panel[open]{z-index:100}
.collection-tool-panel>summary{display:flex;min-height:48px;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;list-style:none;cursor:pointer;color:#e2b65c;font-size:.95rem;font-weight:800}
.collection-tool-panel>summary::-webkit-details-marker{display:none}
.collection-tool-panel>summary::before{content:'▸';flex:none;transition:transform .16s ease}
.collection-tool-panel[open]>summary::before{transform:rotate(90deg)}
.collection-tool-panel>summary:hover{color:#f4cf80}
.collection-tool-toggle{margin-left:auto;color:#9ca3af;font-size:.75rem;font-weight:600}
.collection-tool-close{display:none}
.collection-tool-panel[open] .collection-tool-open{display:none}
.collection-tool-panel[open] .collection-tool-close{display:inline}
.collection-tool-content{position:absolute;top:calc(100% + 8px);left:0;z-index:100;width:min(620px,calc(100vw - 32px));max-height:min(72vh,720px);overflow:auto;overscroll-behavior:contain;border:1px solid #394154;border-radius:16px;padding:12px;background:#0b1530;color:#e5e7eb;box-shadow:0 24px 55px rgba(0,0,0,.55)}
.collection-tool-panel[data-bulk-panel] .collection-tool-content{right:0;left:auto;width:min(460px,calc(100vw - 32px))}
.collection-tool-content>p:first-child{margin:0 0 10px;color:#aeb8ca;font-size:.86rem}
.collection-tool-content form{display:grid;gap:10px;padding:0}
.collection-tool-content label{display:block;min-width:0}
.collection-tool-content>label{display:grid;gap:5px;color:#cbd5e1;font-size:.86rem;font-weight:650}
.collection-tool-content>label select,.collection-tool-content>label input:not([type=checkbox]){width:100%}
.collection-tool-content fieldset{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));gap:8px;border:1px solid #394154;border-radius:8px;padding:8px;min-width:0}
.collection-tool-content legend{padding:0 4px;color:#cbd5e1;font-size:.82rem;font-weight:700}
.collection-tool-content input:not([type=checkbox]),.collection-tool-content select{min-width:0;max-width:100%;background:#111c32;border:1px solid #455168;border-radius:8px;color:#fff;padding:8px}
.collection-tool-content input[type=checkbox]{accent-color:#d4a853}
.collection-tool-content button{cursor:pointer;border:1px solid #74603a;background:#172136;border-radius:8px;color:#f4cf80;padding:8px 12px;font-weight:700}
.collection-tool-content button:hover{background:#202d45;border-color:#a9894e}
.collection-tool-content [role=alert]{color:#ffb4aa}
.collection-tool-content [hidden]{display:none!important}
.collection-tool-content a{color:#f4cf80;text-decoration:underline;text-underline-offset:2px}
.collection-tool-content [data-bulk-samples],.collection-tool-content [data-bulk-blocked]{display:grid;gap:4px;padding-left:20px;color:#cbd5e1;font-size:.86rem}
.collection-tools-toolbar{display:contents}
.collection-tools-toolbar .collection-tools-panels{display:contents}
.collection-tools-toolbar .collection-tool-panel{border:0;border-radius:0;background:transparent}
.collection-tools-toolbar .collection-tool-panel>summary{min-width:158px;min-height:48px;border:1px solid #394154;border-radius:12px;background:rgba(15,23,42,.42);padding:11px 14px}
.collection-tools-toolbar [data-collection-filter-panel]>summary{min-width:218px}
.collection-tools-toolbar [data-bulk-panel]>summary{min-width:150px}
.collection-tools-toolbar .collection-tool-content{right:0;left:auto}
.collection-tools-toolbar .collection-tool-panel[data-bulk-panel] .collection-tool-content{width:min(460px,calc(100vw - 32px))}
.collections-toolbar{position:relative;z-index:80;isolation:isolate}
.sets-toolbar-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.sets-list-toolbar .card-list-browse{min-width:0}
.sets-list-toolbar .card-list-browse[open]{z-index:90}
.set-sort-options{display:grid;gap:8px;color:#cbd5e1;font-size:.875rem}
.set-sort-options label{font-weight:700;color:#d4a853}
.set-sort-options select{width:100%;min-width:0;padding:12px;border:1px solid #374151;border-radius:12px;background:#111c32;color:#f3f4f6}
.set-sort-options p{color:#9ca3af;font-size:.75rem;line-height:1.5}
.ce-mobile-filter-panel .set-sort-options{margin-top:14px}
.collections-toolbar #collections-filters[open]{z-index:90}
.card-list-toolbar{position:relative;z-index:80;isolation:isolate}
.card-list-toolbar .card-list-browse[open]{z-index:90}
.card-list-toolbar .ce-set-toolbar-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.ce-set-toolbar-heading{display:grid;gap:4px;min-width:0}
.ce-set-toolbar-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ce-set-toolbar-title-row .ce-list-view-toggle{display:inline-flex;width:max-content;max-width:100%;flex:0 0 auto}
.card-list-toolbar .card-list-browse{width:100%;min-width:0}
.ce-set-browse-panel{top:calc(100% + 8px);margin-top:0;width:100%;max-height:70vh;overflow:auto}
.ce-set-toolbar-tools{margin-top:12px;display:grid;gap:10px}
.ce-set-toolbar-tools .collection-tools-toolbar{display:contents}
.ce-set-toolbar-tools .collection-tools-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ce-set-toolbar-tools .collection-tool-panel>summary{min-width:0;min-height:46px;height:100%;padding:12px 16px;border-color:#374151;background:rgba(17,24,39,.4);font-size:.875rem;line-height:1.25rem;font-weight:700;color:#d4a853}
.ce-set-toolbar-tools .collection-tool-panel>summary::before{display:none}
.ce-set-toolbar-tools .collection-tool-panel>summary:hover{background:rgba(17,24,39,.7)}
@media(min-width:901px){.card-list-toolbar .collection-tools-toolbar .collection-tool-panel .collection-tool-content{left:0;right:auto;width:100%}}
@media(min-width:900px){.collection-tools{padding:14px}.collection-tools-panels{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-tool-content form{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-tool-content form>div,.collection-tool-content form>[role=alert]{grid-column:1/-1}}
@media(max-width:900px){.collection-tools-toolbar .collection-tool-content{position:fixed;top:50%;right:12px;left:12px;transform:translateY(-50%);width:auto;max-height:70vh}.collection-tools-toolbar [data-bulk-panel] .collection-tool-content{right:12px;left:12px;width:auto}}
@media(max-width:900px){.card-list-toolbar .ce-set-toolbar-content{display:none}}
@media(max-width:480px){.collection-tool-content{width:calc(100vw - 24px);max-height:70vh;padding:10px}.collection-tool-panel[data-bulk-panel] .collection-tool-content{width:calc(100vw - 24px)}.collection-tool-content fieldset{grid-template-columns:minmax(0,1fr) repeat(2,minmax(0,.8fr));gap:5px;padding:7px}.collection-tool-content input:not([type=checkbox]),.collection-tool-content select{padding:7px;font-size:.9rem}.collection-tools-toolbar .collection-tool-panel>summary{min-width:0}}

@media(max-width:900px){#inventory-top > .rounded-2xl.card-list-toolbar,#wishlist-top > .rounded-2xl.card-list-toolbar{display:block!important}}


@media(max-width:600px){.ce-set-toolbar-tools .collection-tools-panels{grid-template-columns:minmax(0,1fr)}}

@media(max-width:900px){.card-list-toolbar .ce-set-toolbar-tools{margin-top:0}}
