.img-tool .template-layout{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,1.5fr);gap:28px;align-items:start}.img-tool .template-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.img-tool .template-library button{padding:8px;font-size:14px;color:#17324d}.img-tool .template-library canvas{display:block;width:100%;height:auto;border-radius:6px;margin-bottom:8px}.img-tool .template-library button[aria-pressed=true]{outline:2px solid #2563eb}.img-tool .template-workspace,.img-tool .template-layout aside{min-width:0}.img-tool .template-frame{width:100%;max-width:540px;margin:0 auto;aspect-ratio:4/5;background:#eef0f5;border-radius:12px;overflow:hidden}.img-tool .template-frame canvas{display:block;width:100%;height:auto;touch-action:none}.img-tool .template-fields{display:grid;gap:18px}.img-tool .template-fields textarea{font:inherit;resize:vertical;max-width:100%;width:100%;min-height:44px;border:1px solid #b7c4d7;border-radius:8px;padding:10px;background:#fff;color:#17324d}.img-tool .template-toggle{display:flex;align-items:center;gap:12px;min-height:44px}.img-tool .template-toggle input{width:22px;height:22px;min-height:22px}.img-tool .template-swatches{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:8px;margin-top:10px}.img-tool .template-swatches button{border:1px solid #94a3b8;min-height:44px}.img-tool .template-photo-controls{display:grid;gap:12px;margin-top:12px}.img-tool .template-quick-wishes{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.img-tool .template-quick-wishes button{font-size:12px;padding:7px 9px;text-align:left}.img-tool .template-export{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-top:20px;align-items:end}.img-tool .template-export>button{grid-column:1/-1}@media(max-width:700px){.img-tool .template-layout{grid-template-columns:minmax(0,1fr);gap:20px}.img-tool .template-library{grid-template-columns:repeat(3,minmax(0,1fr))}.img-tool .template-library button{font-size:12px;padding:5px}.img-tool .template-fields .drop-zone{padding:16px}.img-tool .template-export{grid-template-columns:minmax(0,1fr)}}
