.discovery-filters,.library-folder-tools,.followed-creators{background:#fff;border:1px solid #e3dfed;border-radius:16px;padding:20px;margin:20px 0}
.discovery-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}.discovery-controls label{display:grid;gap:8px;min-width:0}.discovery-controls select{width:100%}
.active-filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.filter-chip{border:1px solid #dbd4ee;border-radius:20px;background:#f5f1ff;color:#51418b;padding:8px 12px;cursor:pointer}
.discovery-filters [hidden]{display:none!important}
.discovery-filters .discovery-toolbar{margin:20px 0 0;padding:18px 0 0;border:0;border-top:1px solid #ebe6f3;border-radius:0;background:transparent;box-shadow:none;gap:16px;flex-wrap:wrap}
.discovery-toolbar input[type=checkbox]{accent-color:#6254cf;width:17px;height:17px;vertical-align:middle}
.discovery-toolbar #sort{min-height:44px;border:1px solid #ded8ec;border-radius:10px;background:#faf9fe;color:#302a43;padding:9px 12px;font:inherit}
.library-folder-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.library-folder-tools label{min-width:180px}.library-folder-tools select{max-width:100%}.library-folder-assignment{display:grid;gap:6px;margin-top:16px}
.followed-creators ul{padding-left:20px}.followed-creators li{margin:12px 0}.publication-check{padding:18px;background:#fff9e8;border:1px solid #e8d7a8;border-radius:14px;margin:18px 0}
.offer-preview-dialog{width:1200px;max-width:96vw;max-height:94vh;border:0;border-radius:20px;padding:20px;background:#f5f1ff}.offer-preview-dialog::backdrop{background:#181329bb}
.offer-preview-dialog>button{display:block;margin-left:auto}.offer-preview-dialog #product-detail{margin-top:16px}
@media(max-width:600px){.discovery-controls{grid-template-columns:1fr}.library-folder-tools>*{max-width:100%}}

/* Shared visual language for discovery, library and category controls. */
.discovery-filters,.library-folder-tools,.followed-creators,.category-page-filters{background:#fff;border:1px solid #e4e0ef;border-radius:22px;padding:24px;box-shadow:0 8px 24px #2823470b}
.discovery-filters::before{content:'Dopasuj materiały do swoich potrzeb';display:block;font-size:17px;font-weight:700;color:#302a43;margin-bottom:20px}
.discovery-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.discovery-controls label,.library-folder-tools label,.library-folder-assignment,.category-page-filters label{font-size:13px;font-weight:600;color:#514760;min-width:0;line-height:1.5}
.discovery-controls select,.library-folder-tools select,.library-folder-assignment select,.category-page-filters select,.library-tools select,.library-tools input{appearance:none;box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:48px;margin:7px 0 0;padding:12px 40px 12px 14px;border:1px solid #ded8ec;border-radius:12px;background-color:#faf9fe;color:#302a43;font:inherit;font-size:14px;font-weight:400;transition:border-color .15s,box-shadow .15s,background-color .15s}
.discovery-controls select,.library-folder-tools select,.library-folder-assignment select,.category-page-filters select,.library-tools select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236457a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;cursor:pointer}
.discovery-controls select:hover,.library-folder-tools select:hover,.library-folder-assignment select:hover,.category-page-filters select:hover{border-color:#b8addb;background-color:#f6f3fd}
.discovery-controls select:focus-visible,.library-folder-tools select:focus-visible,.library-folder-assignment select:focus-visible,.category-page-filters select:focus-visible,.library-tools select:focus-visible,.library-tools input:focus-visible{outline:2px solid #6555cd;outline-offset:2px;border-color:#8070d5;box-shadow:0 0 0 4px #6555cd12;background-color:#fff}
.discovery-controls select{margin:0}.discovery-controls label{gap:8px}
.active-filter-chips{gap:9px;margin:20px 0 0}.active-filter-chips:empty{display:none}
.filter-chip{font:inherit;font-size:13px;font-weight:600;background:#f0ebff;color:#5745a0;border:1px solid #e1d8fb;padding:9px 13px;min-height:40px;transition:background .15s}
.filter-chip:hover{background:#e5dcfc}.discovery-filters>[data-clear]{margin-top:16px}
.discovery-filters .text-button,.library-folder-tools .text-button,.followed-creators .text-button{border:0;border-radius:10px;min-height:42px;padding:10px 14px;background:#f4f1ff;color:#5a49a1;text-decoration:none;font-size:13px;font-weight:600}
.library-folder-tools{align-items:end;gap:12px}.library-folder-tools label{flex:1 1 260px}.library-folder-tools button{flex:0 0 auto;min-height:48px;border-radius:12px}.library-folder-tools [data-delete]{color:#9b4258;background:#fff1f4}
.library-folder-assignment{border-top:1px solid #eee9f5;padding-top:16px;margin-top:20px}.library-folder-assignment select{margin-top:0}
.followed-creators h2{font-size:23px;margin-bottom:18px}.followed-creators ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.followed-creators li{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:16px;background:#faf9fe;border:1px solid #ece6f7;border-radius:14px}.followed-creators li a{font-weight:600;color:#44385f;overflow-wrap:anywhere}.followed-creators li button{flex-shrink:0}
.category-page-filters{gap:18px}.category-page-filters label{flex:1 1 180px}
.publication-check{background:#faf8ff;border:1px solid #ded6f0;border-radius:18px;padding:22px;color:#4c3e64}.publication-check strong{font-size:16px}.publication-check ul{padding-left:20px;margin:14px 0 20px}.publication-check li{padding:3px 0}.publication-check>.button{margin-top:14px;border-radius:12px}
@media(max-width:900px){.discovery-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.followed-creators ul{grid-template-columns:1fr}}
@media(max-width:600px){.discovery-filters,.library-folder-tools,.followed-creators,.category-page-filters{padding:18px;border-radius:18px}.discovery-controls{grid-template-columns:1fr;gap:14px}.library-folder-tools button{flex:1 1 auto}.followed-creators li{align-items:flex-start;flex-direction:column}.discovery-filters::before{font-size:16px}}
@media(prefers-reduced-motion:reduce){.discovery-filters *,.library-folder-tools *{transition:none!important}}
