:is(#works,#templates) .pet-template-card{display:flex;flex-direction:column}
:is(#works,#templates) .pet-template-media{flex-shrink:0}
:is(#works,#templates) .pet-template-card-body{display:flex;flex:1;flex-direction:column;gap:0;min-width:0;padding:12px}
:is(#works,#templates) .pet-template-card-body h3{min-width:0;overflow-wrap:anywhere;line-height:1.35}
:is(#works,#templates) .pet-gallery-social{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:auto;padding-top:12px;color:#64748b;font:600 12px/1.2 system-ui,sans-serif}
:is(#works,#templates) .pet-gallery-social svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:is(#works,#templates) .pet-gallery-like{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;margin:0;padding:6px 8px;border:1px solid #d8e9f4;border-radius:12px;background:#fff;color:#57748d;box-shadow:none;cursor:pointer;font:inherit}
:is(#works,#templates) .pet-gallery-like[aria-pressed=true]{background:#fff0f5;border-color:#f5b8cc;color:#d74478}
:is(#works,#templates) .pet-gallery-like[aria-pressed=true] svg{fill:currentColor}
:is(#works,#templates) .pet-gallery-like:hover{border-color:#d74478;color:#d74478}
:is(#works,#templates) .pet-gallery-like:focus-visible{outline:2px solid #008fe5;outline-offset:2px}
:is(#works,#templates) .pet-gallery-like:disabled{opacity:.65;cursor:wait}
:is(#works,#templates) .pet-gallery-views{display:inline-flex;align-items:center;gap:4px;min-width:0}
:is(#works,#templates) .pet-gallery-social span[data-like-count],:is(#works,#templates) .pet-gallery-social span[data-view-count]{overflow-wrap:anywhere}
#templates .pet-template-card-body h3{margin-bottom:10px}
#templates .pet-template-select{margin-top:auto}
#templates .pet-gallery-social{margin-top:0}
