.thread-library-dialog,.thread-image-viewer{border:0;border-radius:24px;padding:24px;max-height:90vh;width:min(1100px,94vw);color:#193e34;background:#f8faf7}.thread-library-dialog::backdrop,.thread-image-viewer::backdrop{background:#102c27aa}.thread-library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.thread-library-filters{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr 1fr;gap:12px}.thread-library-filters label{display:grid;gap:8px}.thread-library-filters input,.thread-library-filters select{width:100%;min-width:0}.thread-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px}.thread-library-card{padding:16px;background:white;border:1px solid #dce4dd;border-radius:18px;display:flex;flex-direction:column;gap:8px}.thread-library-card h3,.thread-library-card p{margin:0;overflow-wrap:anywhere}.thread-library-card>button:last-child{margin-top:auto}.thread-image-button{border:0;background:transparent;cursor:zoom-in;padding:0}.thread-library-card img{width:100%;height:180px;object-fit:contain}.thread-image-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:10px 0}.thread-image-summary img{width:84px;height:84px;object-fit:contain}.thread-image-selection{margin-bottom:14px}.thread-library-dialog footer{position:sticky;bottom:-24px;background:#f8faf7;display:flex;gap:12px;flex-wrap:wrap;padding:16px 0}.thread-image-viewer img{display:block;width:100%;height:70vh;object-fit:contain}.thread-image-viewer>button{float:right}.thread-zoomable{cursor:zoom-in}.thread-zoomable:focus-visible{outline:3px solid #258476;outline-offset:4px}.thread-no-preview{height:180px;display:grid;place-items:center;background:#edf1ed}[hidden]{display:none!important}@media(max-width:700px){.thread-library-filters{grid-template-columns:1fr 1fr}.thread-library-filters label:first-child{grid-column:1/-1}.thread-library-dialog{padding:16px}.thread-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thread-library-card{padding:10px}.thread-library-card img{height:130px}.thread-library-dialog footer{bottom:-16px}}
