/* Size the library by available content space, not the display's resolution. */
body.lv-home #collections .all-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))!important;gap:18px!important;align-items:stretch}
body.lv-home #collections .template-card{min-width:0;height:auto}
body.lv-home #collections .template-card .card-meta{height:auto!important;min-height:42px!important;padding:9px 10px!important;box-sizing:border-box;flex:0 0 auto;align-items:center;color:var(--lv-muted,#596579)}
/* Translation spans must stay inline; flex shrinks individual words independently. */
body.lv-home #collections .template-card .card-meta>span{display:block!important;width:100%;min-width:0;white-space:normal!important;overflow:visible!important;font-size:12px!important;line-height:1.6!important}
body.lv-home #collections .template-card .card-meta span span{display:inline!important;font-size:inherit!important;line-height:inherit!important;white-space:normal!important;overflow:visible!important}
body.lv-home #collections .template-card .card-meta .card-like-count{display:inline!important;white-space:normal!important;color:inherit}
body.lv-home #collections .card-like-count svg{display:inline-block;vertical-align:-2px;width:13px;height:13px;margin-right:3px;flex-shrink:0}
body.lv-home #collections .card-meta i{display:inline;margin:0 5px}
html[data-theme=dark] body.lv-home #collections .card-meta{color:#bcc8da!important}
html[data-theme=dark] body.lv-home #collections .card-meta span{color:inherit!important}
body.lv-home .hm-grid .hm-card{min-width:0}
body.lv-home .hm-grid .hm-name{white-space:normal!important;overflow-wrap:anywhere;line-height:1.5;min-height:3em;height:auto;overflow:visible;text-overflow:clip}
body.lv-home #collections .section-heading{flex-wrap:wrap;align-items:center;row-gap:8px}
body.lv-home #collections .section-heading h2{min-width:0;line-height:1.5}
@media(max-width:560px){body.lv-home #collections .all-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important}body.lv-home #collections .template-card .card-meta{padding:8px!important;min-height:54px!important}}
@media(max-width:340px){body.lv-home #collections .all-grid{grid-template-columns:minmax(0,1fr)!important}}
