.template-kicker{display:flex;align-items:center;gap:.35rem;color:#bfdbfe;font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.template-library-toolbar{display:flex;align-items:center;gap:.8rem;padding:.8rem 1rem;border-bottom:1px solid #e2e8f0;background:#f8fafc}.template-search{position:relative;flex:0 0 280px}.template-search i{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);color:#94a3b8}.template-search input{padding-left:2rem}.template-category-list{display:flex;gap:.35rem;overflow:auto}.template-category-list button{border:1px solid transparent;border-radius:999px;padding:.35rem .65rem;background:transparent;color:#64748b;font-size:.68rem;font-weight:700;white-space:nowrap}.template-category-list button.active{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.template-card{display:flex;min-width:0;flex-direction:column;padding:.9rem;border:1px solid #e2e8f0;border-top:3px solid var(--template-accent);border-radius:.9rem;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.04)}.template-card-top{display:flex;align-items:center;gap:.5rem}.template-card-icon{display:grid;width:2.2rem;height:2.2rem;place-items:center;border-radius:.65rem;background:color-mix(in srgb,var(--template-accent) 12%,white);color:var(--template-accent)}.template-category-badge{margin-right:auto;padding:.2rem .45rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.61rem;font-weight:800}.template-version-badge{margin-right:0;border:1px solid rgba(5,150,105,.28);letter-spacing:.02em;font-variant-numeric:tabular-nums}.template-menu{border:0;background:transparent;color:#64748b}.template-card h3{margin:.7rem 0 .25rem;font-size:.95rem}.template-card>p{min-height:2.1rem;margin:0;color:#64748b;font-size:.7rem}.template-meta{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem;color:#64748b;font-size:.63rem}.template-meta span{display:flex;align-items:center;gap:.2rem}.template-meta .active-code{color:#b45309}.template-tags{display:flex;min-height:1.35rem;flex-wrap:wrap;gap:.3rem;margin-top:.55rem}.template-tags span{padding:.15rem .35rem;border-radius:.35rem;background:#f8fafc;color:#64748b;font-size:.58rem}.template-card footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:.7rem;border-top:1px solid #f1f5f9}.template-card footer>span{color:#94a3b8;font-size:.62rem}.template-empty{display:none;padding:3rem;text-align:center;color:#64748b}.template-empty.show{display:block}.template-empty>i{font-size:2rem;color:#a5b4fc}.template-security-note{display:flex;gap:.7rem;padding:.75rem;border:1px solid #bbf7d0;border-radius:.8rem;background:#f0fdf4;color:#166534}.template-security-note>i{font-size:1.25rem}.template-security-note>div{display:flex;flex-direction:column}.template-security-note span{font-size:.7rem;color:#4b7b5d}@media(max-width:991.98px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767.98px){.template-library-toolbar{align-items:stretch;flex-direction:column}.template-search{flex-basis:auto}.template-grid{grid-template-columns:1fr}}
