.ins-templates{--tp-accent:var(--md-500,#22c26b);--tp-accent-soft:color-mix(in oklab,var(--tp-accent) 12%,transparent);--tp-accent-ring:color-mix(in oklab,var(--tp-accent) 28%,transparent);--tp-radius:var(--radius-lg,16px);--tp-radius-sm:12px;--tp-surface:var(--bg-elevated,#fff);--tp-border:var(--border,hsla(0,0%,7%,.1));--tp-fg:var(--fg,#0b0e13);--tp-fg-muted:color-mix(in oklab,var(--tp-fg) 60%,transparent);color:var(--tp-fg);padding:var(--sp-16,64px) var(--sp-6,24px)}.ins-templates__inner{display:flex;flex-direction:column;gap:var(--sp-8,32px);margin:0 auto;max-width:1240px}.ins-templates__header{display:flex;flex-direction:column;gap:var(--sp-3,12px);max-width:760px}.ins-templates__eyebrow{align-items:center;color:var(--tp-fg-muted);display:inline-flex;font-size:var(--fs-caption,13px);font-weight:600;gap:8px;letter-spacing:var(--tr-caps,.08em);margin:0;text-transform:uppercase}.ins-templates__eyebrow-dot{background:var(--brand-500,var(--md-500,#22c26b));border-radius:50%;height:8px;width:8px}.ins-templates__eyebrow--md .ins-templates__eyebrow-dot{background:var(--md-500,#22c26b)}.ins-templates__eyebrow--bp .ins-templates__eyebrow-dot{background:var(--bp-500,#3b82f6)}.ins-templates__eyebrow--fl .ins-templates__eyebrow-dot{background:var(--fl-500,#14b8a6)}.ins-templates__eyebrow--pr .ins-templates__eyebrow-dot{background:var(--pr-500,#f97316)}.ins-templates__eyebrow--cd .ins-templates__eyebrow-dot{background:var(--cd-500,#a855f7)}.ins-templates__heading{font-size:var(--fs-display-l,56px);font-weight:680;letter-spacing:var(--tr-display-l,-.02em);line-height:var(--lh-display,1.05);margin:0}.ins-templates__body{color:var(--tp-fg-muted);font-size:var(--fs-body-l,18px);line-height:1.55}.ins-templates__body p{margin:0}.ins-templates__tabs{border-bottom:1px solid var(--tp-border);display:flex;flex-wrap:wrap;gap:8px;margin-bottom:calc(var(--sp-2, 8px)*-1);padding-bottom:0}.ins-templates__tab{align-items:center;background:transparent;border:none;border-radius:10px 10px 0 0;color:var(--tp-fg-muted);cursor:pointer;display:inline-flex;font:inherit;font-size:var(--fs-body-m,15px);font-weight:600;gap:10px;padding:14px 20px;position:relative;transition:color .16s var(--ease-out,ease-out),background .16s var(--ease-out,ease-out)}.ins-templates__tab:after{background:transparent;border-radius:2px;bottom:-1px;content:"";height:2px;left:12px;position:absolute;right:12px;transition:background .16s var(--ease-out,ease-out)}.ins-templates__tab:hover{background:color-mix(in oklab,var(--tp-fg) 4%,transparent);color:var(--tp-fg)}.ins-templates__tab.is-active{color:var(--tp-fg)}.ins-templates__tab--md.is-active:after{background:var(--md-500,#22c26b)}.ins-templates__tab--bp.is-active:after{background:var(--bp-500,#3b82f6)}.ins-templates__tab--fl.is-active:after{background:var(--fl-500,#14b8a6)}.ins-templates__tab--pr.is-active:after{background:var(--pr-500,#f97316)}.ins-templates__tab--cd.is-active:after{background:var(--cd-500,#a855f7)}.ins-templates__tab--brand.is-active:after{background:var(--brand-500,#22c26b)}.ins-templates__tab-logo{flex:0 0 auto;height:22px;object-fit:contain;opacity:.55;transition:opacity .16s var(--ease-out,ease-out);width:22px}.ins-templates__tab.is-active .ins-templates__tab-logo,.ins-templates__tab:hover .ins-templates__tab-logo{opacity:1}.ins-templates__tab-label{display:inline-block}.ins-templates__tab-count{align-items:center;background:color-mix(in oklab,var(--tp-fg) 8%,transparent);border-radius:999px;color:var(--tp-fg-muted);display:inline-flex;font-size:12px;font-weight:600;height:22px;justify-content:center;min-width:22px;padding:0 8px}.ins-templates__tab.is-active .ins-templates__tab-count{background:var(--tp-accent-soft);color:var(--tp-accent)}.ins-templates__tab:focus-visible{outline:2px solid var(--tp-accent-ring);outline-offset:2px}.ins-templates__panel{display:flex;flex-direction:column;gap:var(--sp-6,24px)}.ins-templates__panel.is-hidden{display:none}.ins-templates__panel--md{--tp-accent:var(--md-500,#22c26b)}.ins-templates__panel--bp{--tp-accent:var(--bp-500,#3b82f6)}.ins-templates__panel--fl{--tp-accent:var(--fl-500,#14b8a6)}.ins-templates__panel--pr{--tp-accent:var(--pr-500,#f97316)}.ins-templates__panel--cd{--tp-accent:var(--cd-500,#a855f7)}.ins-templates__panel--brand{--tp-accent:var(--brand-500,#22c26b)}.ins-templates__panel{--tp-accent-soft:color-mix(in oklab,var(--tp-accent) 12%,transparent);--tp-accent-ring:color-mix(in oklab,var(--tp-accent) 28%,transparent)}.ins-templates__toolbar{align-items:center;display:flex;flex-wrap:wrap;gap:var(--sp-4,16px);justify-content:space-between}.ins-templates__filters{display:flex;flex-wrap:wrap;gap:8px}.ins-templates__filter{align-items:center;background:transparent;border:1px solid var(--tp-border);border-radius:999px;color:var(--tp-fg-muted);cursor:pointer;display:inline-flex;font:inherit;font-size:13px;font-weight:600;height:34px;padding:0 14px;transition:all .16s var(--ease-out,ease-out)}.ins-templates__filter:hover{border-color:color-mix(in oklab,var(--tp-fg) 20%,transparent);color:var(--tp-fg)}.ins-templates__filter.is-active{background:var(--tp-accent-soft);border-color:var(--tp-accent-ring);color:var(--tp-accent)}.ins-templates__controls{align-items:center;display:flex;gap:var(--sp-4,16px)}.ins-templates__toggle{align-items:center;color:var(--tp-fg);cursor:pointer;display:inline-flex;font-size:14px;font-weight:600;gap:10px;user-select:none}.ins-templates__toggle-input{opacity:0;pointer-events:none;position:absolute}.ins-templates__toggle-box{align-items:center;background:var(--tp-surface);border:1.5px solid var(--tp-border);border-radius:6px;color:transparent;display:inline-flex;height:20px;justify-content:center;transition:all .14s var(--ease-out,ease-out);width:20px}.ins-templates__toggle-input:checked+.ins-templates__toggle-box{background:var(--tp-accent);border-color:var(--tp-accent);color:#fff}.ins-templates__toggle-input:focus-visible+.ins-templates__toggle-box{outline:2px solid var(--tp-accent-ring);outline-offset:2px}.ins-templates__summary{color:var(--tp-fg-muted);font-size:14px;font-weight:500;margin:0}.ins-templates__main{display:block}.ins-templates__grid{display:grid;gap:var(--sp-4,16px);grid-auto-rows:1fr;grid-template-columns:repeat(3,minmax(0,1fr))}@media (max-width:980px){.ins-templates__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:560px){.ins-templates__grid{grid-template-columns:1fr}}.ins-templates__card{background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius);cursor:pointer;display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;transition:border-color .2s var(--ease-out,ease-out),box-shadow .2s var(--ease-out,ease-out),transform .2s var(--ease-out,ease-out)}.ins-templates__card:hover{border-color:var(--tp-accent-ring);box-shadow:0 14px 28px -18px color-mix(in oklab,var(--tp-accent) 50%,transparent);transform:translateY(-2px)}.ins-templates__card.is-hidden{display:none}.ins-templates__card-checkbox{opacity:0;pointer-events:none;position:absolute}.ins-templates__card-thumb{aspect-ratio:16/10;background:color-mix(in oklab,var(--tp-fg) 5%,transparent);display:block;overflow:hidden;position:relative;width:100%}.ins-templates__card-img{display:block;height:100%;object-fit:contain;padding:8px;transition:transform .4s var(--ease-out,ease-out);width:100%}.ins-templates__card:hover .ins-templates__card-img{transform:scale(1.02)}.ins-templates__card-img-placeholder{align-items:center;color:color-mix(in oklab,var(--tp-fg) 22%,transparent);display:flex;inset:0;justify-content:center;position:absolute}.ins-templates__card-check{align-items:center;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);background:hsla(0,0%,100%,.85);border:1.5px solid hsla(0,0%,100%,.9);border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,.15);color:transparent;display:inline-flex;height:26px;justify-content:center;position:absolute;right:12px;top:12px;transition:all .16s var(--ease-out,ease-out);width:26px;z-index:2}.ins-templates__card-checkbox:checked~.ins-templates__card-thumb .ins-templates__card-check{background:var(--tp-accent);border-color:var(--tp-accent);color:#fff;transform:scale(1.05)}.ins-templates__card-checkbox:focus-visible~.ins-templates__card-thumb .ins-templates__card-check{outline:2px solid var(--tp-accent-ring);outline-offset:2px}.ins-templates__card-checkbox:checked~.ins-templates__card-thumb:after{box-shadow:inset 0 0 0 2px var(--tp-accent);content:"";inset:0;pointer-events:none;position:absolute}.ins-templates__card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:10px;min-width:0;padding:var(--sp-4,16px)}.ins-templates__card-tags{display:inline-flex;flex-wrap:wrap;gap:6px;min-height:22px}.ins-templates__card-tag{align-items:center;background:var(--tp-chip-bg,color-mix(in oklab,var(--tp-accent) 12%,transparent));border:1px solid var(--tp-chip-border,var(--tp-accent-ring));border-radius:999px;color:var(--tp-chip-text,var(--tp-accent));display:inline-flex;font-size:11px;font-weight:600;height:22px;letter-spacing:.02em;padding:0 10px}.ins-templates__card-title{color:var(--tp-fg);font-size:var(--fs-h3,18px);font-weight:640;-webkit-line-clamp:2;line-height:1.25;min-height:2.5em}.ins-templates__card-desc,.ins-templates__card-title{display:-webkit-box;margin:0;-webkit-box-orient:vertical;overflow:hidden}.ins-templates__card-desc{color:var(--tp-fg-muted);font-size:13px;-webkit-line-clamp:3;line-height:1.5;min-height:4.5em}.ins-templates__card-meta{align-items:center;color:var(--tp-fg-muted);display:inline-flex;font-size:11px;font-weight:600;gap:6px;letter-spacing:.06em;margin-top:auto;padding-top:4px;text-transform:uppercase}.ins-templates__actions{display:flex;justify-content:flex-start;margin-top:var(--sp-5,20px)}.ins-templates__cta{align-items:center;background:var(--tp-accent);border:none;border-radius:999px;box-shadow:0 10px 24px -14px color-mix(in oklab,var(--tp-accent) 80%,transparent);color:#fff;cursor:pointer;display:inline-flex;font:inherit;font-size:15px;font-weight:600;gap:10px;padding:12px 22px;transition:transform .14s var(--ease-out,ease-out),box-shadow .14s var(--ease-out,ease-out),filter .14s var(--ease-out,ease-out)}.ins-templates__cta:hover:not(:disabled){filter:brightness(1.03);transform:translateY(-1px)}.ins-templates__cta:disabled{background:color-mix(in oklab,var(--tp-fg) 18%,transparent);box-shadow:none;color:var(--tp-fg);cursor:not-allowed;opacity:.45}.ins-templates__cta:focus-visible{outline:2px solid var(--tp-accent-ring);outline-offset:2px}.ins-templates__empty{align-items:center;background:color-mix(in oklab,var(--tp-accent) 3%,transparent);border:1px dashed var(--tp-border);border-radius:var(--tp-radius);color:var(--tp-accent);display:flex;flex-direction:column;gap:var(--sp-4,16px);padding:var(--sp-10,48px) var(--sp-6,24px);text-align:center}.ins-templates__empty-visual{max-width:60%;width:180px}.ins-templates__empty-svg{color:var(--tp-accent);display:block;height:auto;width:100%}.ins-templates__empty-message{color:var(--tp-fg);font-size:var(--fs-body-l,17px);font-weight:600;margin:0}.ins-templates__empty-card--1{animation:tpeFloat 5s ease-in-out infinite;transform-origin:center}.ins-templates__empty-card--2{animation:tpeFloat 5s ease-in-out .6s infinite;opacity:.85;transform-origin:center}.ins-templates__empty-card--3{animation:tpeFloat 5s ease-in-out 1.2s infinite;opacity:.6;transform-origin:center}.ins-templates__empty-sparkle--a{animation:tpeSparkle 2.4s ease-in-out infinite;transform-origin:162px 50px}.ins-templates__empty-sparkle--b{animation:tpeSparkle 2.8s ease-in-out .4s infinite;transform-origin:28px 128px}.ins-templates__empty-sparkle--c{animation:tpeSparkle 3.2s ease-in-out .8s infinite;transform-origin:170px 110px}@keyframes tpeFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes tpeSparkle{0%,to{opacity:.3;transform:scale(.85)}50%{opacity:1;transform:scale(1.2)}}@media (prefers-reduced-motion:reduce){.ins-templates__empty-card--1,.ins-templates__empty-card--2,.ins-templates__empty-card--3,.ins-templates__empty-sparkle--a,.ins-templates__empty-sparkle--b,.ins-templates__empty-sparkle--c{animation:none}}.ins-templates__instructions{background:color-mix(in oklab,var(--tp-accent) 5%,transparent);border:1px solid var(--tp-accent-ring);border-radius:var(--tp-radius);color:var(--tp-fg);margin-top:var(--sp-4,16px);padding:var(--sp-6,24px)}.ins-templates__instructions-head{align-items:center;color:var(--tp-accent);display:flex;gap:10px;margin-bottom:var(--sp-3,12px)}.ins-templates__instructions-title{color:var(--tp-fg);font-size:var(--fs-h3,18px);font-weight:640;margin:0}.ins-templates__steps{counter-reset:tpe-step;display:grid;gap:var(--sp-3,12px);grid-template-columns:repeat(auto-fill,minmax(240px,1fr));list-style:none;margin:0;padding:0}.ins-templates__step{align-items:flex-start;background:var(--tp-surface);border:1px solid var(--tp-border);border-radius:var(--tp-radius-sm);display:flex;gap:12px;padding:12px 14px}.ins-templates__step-num{align-items:center;background:var(--tp-accent);border-radius:50%;color:#fff;display:inline-flex;flex:0 0 auto;font-size:13px;font-weight:700;height:28px;justify-content:center;line-height:1;width:28px}.ins-templates__step-text{color:var(--tp-fg);font-size:14px;line-height:1.45}.ins-templates__form-wrap{align-items:center;animation:tpeFadeIn .18s var(--ease-out,ease-out);background:color-mix(in oklab,#000 45%,transparent);display:flex;inset:0;justify-content:center;padding:var(--sp-6,24px);position:fixed;z-index:100}.ins-templates__form-wrap.is-hidden{display:none}.ins-templates__form-inner{background:var(--tp-surface);border-radius:var(--tp-radius);box-shadow:0 30px 80px -20px rgba(0,0,0,.25);max-height:90vh;max-width:520px;overflow-y:auto;padding:var(--sp-8,32px);position:relative;width:100%}.ins-templates__form-close{align-items:center;background:transparent;border:none;border-radius:50%;color:var(--tp-fg-muted);cursor:pointer;display:inline-flex;height:36px;justify-content:center;position:absolute;right:12px;top:12px;transition:background .14s var(--ease-out,ease-out);width:36px}.ins-templates__form-close:hover{background:color-mix(in oklab,var(--tp-fg) 6%,transparent);color:var(--tp-fg)}.ins-templates__form-head{margin-bottom:var(--sp-4,16px)}.ins-templates__form-eyebrow{color:var(--tp-accent);font-size:11px;font-weight:700;letter-spacing:.08em;margin:0 0 6px;text-transform:uppercase}.ins-templates__form-title{font-size:var(--fs-h2,22px);font-weight:640;line-height:1.3;margin:0}@keyframes tpeFadeIn{0%{opacity:0}to{opacity:1}}.ins-templates__download-wrap.is-hidden{display:none}.ins-templates__download-wrap{background:var(--tp-accent-soft);border:1px solid var(--tp-accent-ring);border-radius:var(--tp-radius);margin-top:var(--sp-4,16px);padding:var(--sp-4,16px) var(--sp-5,20px)}.ins-templates__download-title{color:var(--tp-fg);font-size:14px;font-weight:600;margin:0 0 8px}.ins-templates__download-list{display:flex;flex-direction:column;gap:4px;list-style:none;margin:0;padding:0}.ins-templates__download-list a{color:var(--tp-accent);font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}[data-theme=dark] .ins-templates{--tp-surface:var(--bg-elevated,#121518);--tp-border:color-mix(in oklab,#fff 12%,transparent)}