/* The gallery owns card geometry; shared panel/detail previews keep their own sizes. */
.workflow-templates .workflow-templates-grid{align-items:stretch;gap:16px}
@media(min-width:1400px){.workflow-templates .workflow-templates-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.workflow-templates .workflow-templates-grid>.workflow-templates-card{display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;padding:8px;border-radius:13px;overflow:hidden}
.workflow-templates .workflow-templates-grid>.workflow-templates-card>:is(.wl-cover,.wl-saved-cover,.wl-dance-cover){box-sizing:border-box;flex:none;width:100%;height:auto;aspect-ratio:16/9;border-radius:8px;overflow:hidden}
.workflow-templates .workflow-templates-grid .workflow-templates-card>:is(.workflow-templates-card-body,.wl-material-card-body){box-sizing:border-box;display:flex;flex-direction:column;flex:none;width:100%;height:148px;min-width:0;padding:10px 6px 4px}
.workflow-templates .workflow-templates-grid :is(.workflow-templates-card-title,.wl-material-card-title){box-sizing:border-box;flex:none;height:40px;margin:0;font-size:14px;line-height:20px}
.workflow-templates .workflow-templates-grid :is(.workflow-templates-card-title strong,.wl-material-card-title){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:600}
.workflow-templates .workflow-templates-grid .workflow-templates-card-title strong{min-width:0}
.workflow-templates .workflow-templates-grid :is(.workflow-templates-card-description,.wl-material-card-count){margin-top:4px;min-height:0;font-size:11px;line-height:18px}
.workflow-templates .workflow-templates-grid .workflow-templates-card-description{height:36px;flex:none}
.workflow-templates .workflow-templates-grid :is(.workflow-templates-card-footer,.wl-material-card-footer){box-sizing:border-box;flex:none;flex-wrap:nowrap;min-height:32px;margin-top:auto;padding-top:8px;gap:6px;font-size:10px}
.workflow-templates .workflow-templates-grid .workflow-templates-card-footer>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workflow-templates .workflow-templates-grid .wl-dance-cover{grid-template-columns:1fr 22px 1.62fr;align-items:stretch;gap:6px;padding:8px}
.workflow-templates .workflow-templates-grid :is(.wl-dance-input,.wl-dance-output){display:flex;flex-direction:column;min-height:0;padding-top:0}
.workflow-templates .workflow-templates-grid .wl-dance-label{flex:none;font-size:9px;line-height:14px;margin-bottom:4px}
.workflow-templates .workflow-templates-grid :is(.wl-dance-photo,.wl-dance-stage){flex:1;min-height:0;aspect-ratio:auto}
.workflow-templates .workflow-templates-grid .wl-dance-arrow{align-self:center;width:22px}
.workflow-templates .workflow-templates-grid .wl-dance-description{margin-top:4px;font-size:11px;line-height:18px}
.workflow-templates .workflow-templates-grid .wl-dance-description+.wl-material-card-count{margin-top:0}
.workflow-templates .workflow-templates-grid .wl-dance-unavailable{min-height:0}
.workflow-templates .workflow-templates-grid .wl-dance-play{width:28px;height:28px;bottom:3px;right:3px}
