.preset-group{grid-column:1/-1;margin:16px 0 4px;font-size:12px;font-weight:700;letter-spacing:.04em;color:#eed9b4}.template-card img{width:100%;height:132px;object-fit:contain;border-radius:10px;background:#faf5e9}.template-card span{font-size:11px;line-height:1.35;min-height:30px;padding:7px 2px}.template-card{padding:6px;border-radius:12px;overflow:hidden}.preset-notice{font-size:12px;line-height:1.5;color:#cab693;margin:8px 0}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.preset-gallery-open{width:100%;margin:8px 0;padding:10px;border:1px solid #a18456;border-radius:8px;background:#372b19;color:#f7dfb6}#presetGallery{width:min(1050px,90vw);max-height:85vh;overflow:auto;background:#19160f;color:#f7dfb6;border:1px solid #a18456;border-radius:18px;padding:24px}#presetGallery::backdrop{background:#000a}.preset-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.preset-gallery-header h2{font-size:24px}.preset-gallery-header button{padding:10px 16px}.preset-gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.preset-gallery-grid .template-card img{height:180px}.preset-gallery-grid .template-card span{font-size:13px}.preset-gallery-grid .preset-group{font-size:15px}@media(max-width:800px){.preset-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:500px){.preset-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}