/* Template gallery controls and thumbnail loading space. */
body[data-page="templates"] .gallery-toolbar{justify-content:flex-start;flex-wrap:wrap;gap:12px 18px}
body[data-page="templates"] .gallery-toolbar #template-count{margin-left:auto}
body[data-page="templates"] .style-picker{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:600}
body[data-page="templates"] .style-picker select{min-height:38px;padding:7px 29px 7px 11px;border:1px solid #dccfd4;border-radius:7px;background:#fff;color:var(--ink);font-size:12px;cursor:pointer}
body[data-page="templates"] .style-picker select:focus-visible{outline:3px solid #c88e49;outline-offset:3px}
body[data-page="templates"] .template-shot .sheet-viewport{aspect-ratio:794 / 1123}
body[data-page="templates"] .template-shot .sheet-viewport:empty{background:#fff;border:1px solid #e9dfd8}
body[data-page="templates"] .template-shot .sheet-viewport:not(:empty){aspect-ratio:auto}
body[data-page="templates"] .template-card{content-visibility:auto;contain-intrinsic-size:auto 440px}
@media(max-width:700px){body[data-page="templates"] .gallery-toolbar{align-items:stretch;gap:10px}body[data-page="templates"] .filter-group{width:100%;justify-content:space-between}body[data-page="templates"] .style-picker{flex:1}body[data-page="templates"] .style-picker select{flex:1;max-width:190px}body[data-page="templates"] .gallery-toolbar #template-count{align-self:center}}
