/* v1.6.4.7 — Editable Garden Template Library + Fit to Garden */
.avtpl-open{background:#eef6ea;color:#2c5e34;border:1px solid #c9dfc9;white-space:nowrap}
.avtpl-open:hover{background:#dfeeda}
.avtpl-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(26,39,28,.5);backdrop-filter:blur(2px)}
.avtpl-modal.open{display:flex}
.avtpl-dialog{width:min(1060px,96vw);max-height:min(88vh,860px);overflow:auto;background:#fff;border:1px solid #d4e0d4;border-radius:18px;box-shadow:0 20px 65px rgba(25,42,28,.3);padding:22px}
.avtpl-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e1ece1;padding-bottom:14px;margin-bottom:18px}
.avtpl-head h2{margin:0;color:#2c5e34;font-size:1.3rem}.avtpl-head p{margin:5px 0 0;color:#607160;font-size:.92rem;max-width:720px}.avtpl-close{flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:#f2f5f2;color:#435443;font-size:1.35rem;padding:0}
.avtpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px}
.avtpl-card{border:1px solid #d5e1d4;border-radius:14px;padding:12px;background:linear-gradient(180deg,#fff,#fbfdf9);display:flex;flex-direction:column;min-height:305px;transition:transform .14s ease,box-shadow .14s ease}
.avtpl-card:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(48,85,52,.12)}
.avtpl-preview{width:100%;height:138px;border-radius:10px;background:#edf5e8;border:1px solid #d4dfcd;overflow:hidden;margin-bottom:10px}.avtpl-preview svg{display:block;width:100%;height:100%}
.avtpl-category{font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:#638465;font-weight:800}.avtpl-card h3{margin:4px 0 5px;font-size:1.03rem;color:#2c5e34}.avtpl-card p{font-size:.82rem;line-height:1.35;color:#596659;margin:0 0 9px;min-height:44px}.avtpl-meta{font-size:.77rem;color:#657565;margin-top:auto;padding-top:7px;border-top:1px dashed #dce7db}.avtpl-use{margin-top:9px;width:100%;background:#3a7d44;color:#fff}.avtpl-use:hover{background:#2c5e34}
.avtpl-confirm{display:none;margin-top:16px;border-radius:12px;border:1px solid #efcfa6;background:#fff8e9;padding:14px}.avtpl-confirm.open{display:block}.avtpl-confirm b{display:block;color:#86561f;margin-bottom:5px}.avtpl-confirm p{margin:0 0 10px;font-size:.88rem;color:#6f5b3d}.avtpl-confirm-actions{display:flex;gap:8px;flex-wrap:wrap}.avtpl-confirm-actions .danger{background:#a74235;color:#fff}.avtpl-toast{position:fixed;z-index:10070;right:22px;bottom:22px;max-width:min(440px,90vw);padding:11px 15px;background:#2c5e34;color:#fff;border-radius:10px;box-shadow:0 10px 26px rgba(20,48,27,.25);font-weight:650;opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.avtpl-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:640px){.avtpl-dialog{padding:16px}.avtpl-grid{grid-template-columns:1fr}.avtpl-card{min-height:0}.avtpl-preview{height:155px}}
