.material-library .rl-grid{--rl-gap:12px;border-radius:0}
.material-library .rl-grid>.library-create{width:calc((100% - (var(--rl-columns) - 1)*var(--rl-gap))/var(--rl-columns))}
.material-library .rl-card{background:#fff;overflow:hidden;border-radius:12px}
.material-library .library-cover{display:block;width:100%;padding:0;border:0;background:transparent;min-height:80px;text-align:left}
.material-library .library-cover img{display:block;width:100%;height:auto;object-fit:contain;border-radius:0}
.material-library .library-info{padding:12px}
.material-library .library-info h3{margin:0 0 6px;overflow-wrap:anywhere}
.material-library .library-info p{margin:4px 0;color:#62695f}
.material-library .library-create{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;width:100%;aspect-ratio:3/4;border:0;border-radius:12px;background:#f1f2ee;color:#62695f}
.material-library button:focus-visible{outline:2px solid #62695f;outline-offset:-3px}
.material-library .library-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.material-library .library-actions button{min-height:36px;padding:6px 10px;border:0;background:#e8e9e5;color:#62695f;border-radius:8px}
.video-draft-library{min-width:0}.video-draft-library>h1{margin:0 0 24px}
/* Only the standalone page adopts the resource library's fixed scroll frame. */
.video-draft-page>.video-draft-header{flex:none;margin-bottom:24px}
.video-draft-header h1{margin:0}
.video-draft-page.material-library .rl-grid{--rl-gap:2px}
.video-draft-page.material-library .rl-card,.video-draft-page.material-library .library-create{border-radius:0}
.video-draft-page .rl-results>button{margin-block:16px}
.video-draft-page .rl-grid button:focus-visible{outline-offset:-3px}
.video-draft-page a.library-create:focus-visible{box-shadow:inset 0 0 0 2px #62695f}
.video-draft-compact-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;padding:12px 16px}
.video-draft-compact-grid>*{flex:0 0 115px;width:115px;min-width:0}
.video-draft-compact-grid .library-create{display:grid;place-items:center;place-content:center;box-sizing:border-box;width:115px;height:144px;min-height:0;padding:0;aspect-ratio:auto;border-radius:var(--material-upload-radius,8px)}
.video-draft-create-caption{display:block;margin-top:8px;text-align:center;color:#62695f;line-height:1.5}
.video-library-dialog{width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;border:1px solid #dfe1db;border-radius:24px;background:#fff;color:#1d231d;overflow:auto}
.video-library-dialog::backdrop{background:#1d231d66}
.video-library-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.video-library-dialog>header h2{margin:0}.video-library-dialog>header button{width:40px;height:40px;border:0;background:transparent;border-radius:10px}
.video-library-dialog.is-editor{width:calc(100vw - 32px);height:calc(100dvh - 32px);padding:12px;display:flex;flex-direction:column;overflow:hidden}
.video-library-dialog.is-editor>.video-reference-page{flex:1;min-height:0;width:100%;overflow:auto}
.video-library-dialog.is-editor>header{margin-bottom:4px;flex:none}
@media(max-width:600px){.video-library-dialog{padding:16px}.material-library .rl-grid{--rl-gap:8px}}
