.template-categories{display:flex;gap:12px;padding:24px 0;flex-wrap:wrap;justify-content:center}.template-categories .category-btn{padding:10px 20px;border:1px solid var(--line);border-radius:999px;background:hsla(0,0%,100%,.06);color:var(--muted);cursor:pointer;transition:.18s ease;font-size:15px}.template-categories .category-btn:hover{background:hsla(0,0%,100%,.1);color:var(--text);transform:translateY(-1px)}.template-categories .category-btn.active{border-color:rgba(110,231,183,.7);background:rgba(110,231,183,.15);color:var(--brand);font-weight:600}.empty-message{grid-column:1/-1;text-align:center;padding:64px 20px;color:var(--muted);font-size:16px}.template-list-fab-root{position:fixed;right:max(14px,env(safe-area-inset-right,0px));bottom:max(20px,env(safe-area-inset-bottom,0px));z-index:120;display:none;flex-direction:column-reverse;align-items:flex-end;gap:10px;pointer-events:none}.template-list-fab-root>*{pointer-events:auto}.template-list-fab-root.has-category-fab.is-mobile-fab,.template-list-fab-root.is-top-visible{display:flex}.template-list-fab{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:rgba(11,23,39,.94);color:#f1f5f9;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.35);backdrop-filter:blur(10px);transition:transform .18s ease,border-color .18s ease,background .18s ease}.template-list-fab:hover{transform:translateY(-2px);border-color:rgba(110,231,183,.55)}.template-list-fab--category{display:none}.template-list-fab--category.is-active{border-color:rgba(110,231,183,.7);background:rgba(110,231,183,.16);color:#bbf7d0}.template-list-fab--top.is-collapsed{display:none!important}.template-list-fab-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:hsla(0,0%,100%,.1);font-size:13px;line-height:1}.template-list-fab-text{max-width:7.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-list-fab-backdrop{display:none;position:fixed;inset:0;z-index:119;border:0;margin:0;padding:0;background:rgba(2,8,20,.45);cursor:pointer;pointer-events:auto}.template-list-fab-category-panel{display:none;position:relative;z-index:121;flex-direction:column;gap:8px;width:min(280px,calc(100vw - 28px));max-height:min(52vh,420px);overflow-y:auto;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(11,23,39,.98);box-shadow:0 16px 40px rgba(0,0,0,.4);-webkit-overflow-scrolling:touch;pointer-events:auto}.template-list-fab-category-panel.is-open{display:flex}.template-list-fab-category-title{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.04em;color:#94a3b8}.template-list-fab-category-item{width:100%;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:hsla(0,0%,100%,.05);color:#e2e8f0;font-size:15px;font-weight:600;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}.template-list-fab-category-item:hover{background:hsla(0,0%,100%,.1);color:#fff}.template-list-fab-category-item.active{border-color:rgba(110,231,183,.65);background:rgba(110,231,183,.14);color:#bbf7d0}.template-list-fab-root.is-top-only:not(.is-top-visible){display:none}@media (min-width:981px){.template-list-fab-root.is-top-only{bottom:max(28px,env(safe-area-inset-bottom,0px))}.template-list-fab--top .template-list-fab-text{max-width:none}.template-list-fab-root.has-category-fab:not(.is-top-visible){display:none}}@media (max-width:980px){.template-list-page .template-categories.template-categories--inline{display:none!important}.template-list-fab-root{bottom:max(16px,env(safe-area-inset-bottom,0px))}.template-list-fab-root.has-category-fab.is-mobile-fab,body.is-template-library-page .template-list-fab-root.has-category-fab{display:flex!important}.template-list-fab-root.has-category-fab .template-list-fab--category,body.is-template-library-page .template-list-fab-root.has-category-fab .template-list-fab--category{display:inline-flex!important}.template-list-fab-root.has-category-fab .template-list-fab-category-panel.is-open,body.is-template-library-page .template-list-fab-root.has-category-fab .template-list-fab-category-panel.is-open{display:flex!important}.template-list-fab-root.has-category-fab.is-category-open .template-list-fab-backdrop,body.is-template-library-page .template-list-fab-root.has-category-fab.is-category-open .template-list-fab-backdrop{display:block!important}}