.library-view{max-width:1400px}
.library-categories{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 12px}
.library-categories a{border:1px solid var(--line);background:#f3f6ee;padding:10px 14px;border-radius:999px;font-size:12px;color:#42634e}
.library-categories a:hover{background:#e5eddf}
.library-groups{display:grid;gap:32px}
.library-section{min-width:0;scroll-margin-top:20px;border-top:1px solid var(--line);padding-top:22px}
.library-section-heading h2{font-size:21px;letter-spacing:-.3px;font-weight:550;margin:0}
.library-section .media-grid{margin:16px 0;align-items:start}
.library-card{min-width:0}
.library-card,.canvas-gallery-card{position:relative}
.result-delete{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:9px;border:1px solid #deded6;border-radius:10px;background:#fff;color:#805c56;cursor:pointer;box-shadow:0 2px 6px #2138280a}
.result-delete svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.result-delete:hover:enabled{background:#fff0ec;border-color:#d9aca1;color:#a33827}
.result-delete:focus-visible{outline:3px solid #a94b38;outline-offset:3px}
.result-delete:disabled{opacity:.45;cursor:default}
.library-card>.result-delete,.canvas-gallery-card>.result-delete{position:absolute;top:10px;right:10px;z-index:1}
.library-card>.card-body{padding-right:60px}
.library-card:has(.library-preview>audio)>.library-preview{padding-right:48px}
.canvas-run-head .result-delete{margin-left:auto}
.canvas-run-head h3{flex:1}
@media(pointer:coarse){.result-delete{width:44px;height:44px;min-width:44px;flex-basis:44px}}
.library-preview>img,.library-preview>video{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;background:#edf1e7}
.library-preview>audio{display:block;width:calc(100% - 24px);margin:12px;height:42px}
.library-card .card-body h3{font-size:13px;font-weight:550;line-height:1.6;margin:0;overflow-wrap:anywhere}
.library-takes{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}
.library-takes select{padding:5px 8px;font-size:11px;min-width:85px}
.library-text summary{font-size:12px;color:#507d47;cursor:pointer}
.library-text pre{font:inherit;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.library-empty{grid-column:1/-1;margin:0;background:#f7f8f3;border-radius:12px;padding:18px;color:var(--muted);font-size:12px}
.library-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px;font-size:11px;color:var(--muted)}
.library-pagination button{padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px;white-space:nowrap}
.library-pagination button:disabled{cursor:default}
.library-pagination span{text-align:center}
@media(max-width:700px){.library-categories{gap:6px}.library-categories a{font-size:11px;padding:8px 11px}.library-groups{gap:24px}.library-section-heading h2{font-size:19px}.library-pagination{gap:6px;font-size:10px}.library-pagination button{padding:8px;font-size:11px}}
