.template-library{display:flex;min-height:calc(100vh - 80px);background:#fff;color:#27232d}.template-library h1,.template-library h2,.template-library p{margin:0}.template-library a{text-decoration:none}.template-library .generate-sidebar-recent>p{margin:8px 0}.template-library .template-content{position:relative;min-width:0;flex:1 1;margin-block-start:20px;padding:10px 30px 70px;display:flex;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain}.template-library .template-content>section{display:flex;flex-direction:column;min-height:0;min-width:0;flex:0 0 auto}.template-library .template-filters,.template-library .template-keyword{flex:0 0 auto}.template-library .template-results{flex:0 0 auto;min-height:0}.template-library .template-heading{flex-shrink:0;display:flex;align-items:center;gap:11px;min-height:28px}.template-library .template-heading-icon{display:block;flex:0 0 28px;width:28px;height:24px}.template-library .template-heading h1{min-width:0;font-size:14px;line-height:20px;color:#333;overflow-wrap:anywhere}.template-library .template-filters{padding:29px;border:1px solid #efedf2;background:#fff;border-radius:4px;margin:28px 0 20px;color:#716a79;font-size:14px;line-height:1.7;overflow-wrap:anywhere;box-shadow:0 2px 8px rgb(39 35 45/3%)}.template-library .template-filters a{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;color:#7443c7}.template-library [data-view=catalog] .template-filters{padding:0}.template-library .template-filter-fields{min-height:162px;padding:21px 29px 10px;border-bottom:1px solid #efedf2}.template-library .template-filter-slots{height:86px}.template-library .template-filter-slots.is-single{height:43px}.template-library .template-category-row,.template-library .template-facet-row,.template-library .template-sort-row{display:flex;align-items:flex-start;gap:20px}.template-library .template-category-row>span,.template-library .template-facet-row>span,.template-library .template-sort-row>span{flex:0 0 40px;min-width:0;display:flex;align-items:center;min-height:44px;color:#999;white-space:nowrap}.template-library:lang(en) .template-category-row>span,.template-library:lang(en) .template-facet-row>span,.template-library:lang(en) .template-sort-row>span{min-width:64px}.template-library .template-category-options,.template-library .template-facet-options,.template-library .template-sort-options{display:flex;flex:1 1;flex-wrap:wrap;gap:8px;min-width:0}.template-library .template-category-options a,.template-library .template-facet-options a,.template-library .template-sort-options a{justify-content:center;margin-top:0;padding:4px 10px;border-block:8px solid transparent;min-width:44px;max-width:100%;border-radius:4px;color:#333;line-height:20px;overflow-wrap:anywhere}.template-library .template-category-options a[aria-current=true],.template-library .template-facet-options a[aria-current=true],.template-library .template-sort-options a[aria-current=true]{background:linear-gradient(90deg,#fdf1ff,#f4f0fe) padding-box;color:#8555f0}@media (hover:hover){.template-library :is(.template-category-options,.template-facet-options,.template-sort-options) a:hover{background:linear-gradient(90deg,#fdf1ff,#f4f0fe) padding-box;color:#8555f0}}.template-library .template-sort-row{min-height:66px;padding:12px 29px 10px}.template-library .template-count{font-size:14px;color:#716a79;margin:28px 0 20px}.template-library .template-keyword{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px;font-size:14px;color:#716a79}.template-library .template-keyword strong{font-weight:400;color:#333;overflow-wrap:anywhere}.template-library .template-keyword a{display:inline-flex;align-items:center;min-height:44px;color:#7443c7}.template-library .template-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.template-library .template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 30px}.template-library .template-card-skeleton{display:block}.template-library .template-skeleton-cover{width:100%;aspect-ratio:16/9}.template-library .template-skeleton-cover,.template-library .template-skeleton-title{display:block;border-radius:4px;background:#f2f0f5;animation:template-skeleton-pulse 1.2s ease-in-out infinite}.template-library .template-skeleton-title{height:21px;margin-top:8px}@keyframes template-skeleton-pulse{0%,to{opacity:1}50%{opacity:.55}}@media (prefers-reduced-motion:reduce){.template-library .template-skeleton-cover,.template-library .template-skeleton-title{animation:none}}.template-library .template-card{min-width:0}.template-library .template-card>a:not(.template-card-edit){display:block;position:relative}.template-library .template-card>a:not(.template-card-edit):after{content:"";position:absolute;top:0;left:0;width:100%;aspect-ratio:16/9;border-radius:4px;background:rgb(0 0 0/50%);opacity:0;pointer-events:none;z-index:1}.template-library .template-card:is(:hover,:has(:focus-visible))>a:not(.template-card-edit):after{opacity:1}.template-library .template-card-edit,.template-library .template-card-star{z-index:2}.template-library .template-card{position:relative}.template-library .template-card-star{position:absolute;top:15px;right:16px;width:25px;height:24px;padding:0;border:0;background:none;color:#fff;cursor:pointer;opacity:0;pointer-events:none}.template-library .template-card-star:is(.is-favored,[aria-busy=true],:disabled),.template-library .template-card:is(:hover,:has(:focus-visible)) .template-card-star{opacity:1;pointer-events:auto}.template-library .template-card-star:disabled{cursor:default}.template-library .template-card-star:after{content:"";position:absolute;inset:-10px}.template-library .template-card-edit:after{content:"";position:absolute;inset:-5px 0}.template-library .template-card-star svg{display:block}.template-library .template-card-star path{fill:none;stroke:currentColor;stroke-width:70}.template-library .template-card-star.is-favored{color:#ff780b}.template-library .template-card-star.is-favored path{fill:currentColor;stroke:none}.template-library .template-card-edit{position:absolute;left:50%;bottom:50px;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;width:94px;height:34px;border-radius:4px;color:#fff;font-size:13px;background:linear-gradient(90deg,#d450c4,#6938e0);opacity:0;pointer-events:none}.template-library .template-card:has(:focus-visible) .template-card-edit,.template-library .template-card:hover .template-card-edit{opacity:1;pointer-events:auto}@media (hover:none){.template-library .template-card-edit,.template-library .template-card-star{opacity:1;pointer-events:auto}}.template-library .template-card img,.template-library .template-cover-empty{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;display:block;border-radius:4px;border:1px solid #ededed;background:#fff}.template-library .template-cover-empty{display:block;background:#f7f7f7}.template-library .template-card-caption{display:flex;align-items:start;margin-top:8px}.template-library .template-card h2{flex:1 1;min-width:0;font-size:14px;line-height:1.5;font-weight:400;color:#333;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.template-library .template-status{text-align:center;padding:70px 20px;overflow-wrap:anywhere}.template-library .template-status h2{font-size:22px;margin-bottom:16px}.template-library .template-status p{margin:16px 0;line-height:1.7}.template-library .template-status a{display:inline-flex;align-items:center;min-height:44px;margin-top:16px;color:#7443c7}.template-library .template-status button{min-height:44px;margin-top:16px;padding:10px 24px;border:1px solid #dcd5e7;border-radius:24px;background:#fff;cursor:pointer}.template-library .template-scroll-sentinel{height:1px}.template-library .template-detail{padding:24px;background:#fff;border:1px solid #efedf2;border-radius:10px}.template-library .template-detail-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:24px}.template-library .template-detail-heading>div{min-width:0}.template-library .template-detail h2{font-size:24px;overflow-wrap:anywhere}.template-library .template-detail p{margin-top:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.template-library .template-use{display:inline-flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0;padding:13px 24px;border:1px solid #a5c6be;border-radius:40px;color:#fff;background:radial-gradient(ellipse at 12% 0,#456d47 0,transparent 48%),radial-gradient(ellipse at 90% 100%,#285b62 0,transparent 46%),#101515}.template-library .template-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.template-library .template-detail-cover,.template-library .template-preview-grid img{display:block;width:100%;height:auto;border:1px solid #e9e6ed;border-radius:8px}.template-library a:focus-visible,.template-library button:focus-visible{outline:3px solid #8555f0;outline-offset:4px}@media (min-width:901px){.template-library{height:calc(100dvh - 70px);min-height:0}.template-library .template-content{scrollbar-width:thin;scrollbar-color:#c6c4cc transparent}@supports selector(::-webkit-scrollbar){.template-library .template-content{scrollbar-width:auto;scrollbar-color:auto}.template-library .template-content::-webkit-scrollbar{width:6px;height:6px}.template-library .template-content::-webkit-scrollbar-track{background:transparent}.template-library .template-content::-webkit-scrollbar-thumb{min-height:40px;border-radius:6px;background:#c6c4cc}.template-library .template-content::-webkit-scrollbar-thumb:hover{background:#9e99a8}.template-library .template-content::-webkit-scrollbar-button{display:none;width:0;height:0}}.template-library .template-content>section[data-view=catalog][aria-busy=false]:has(>.template-results>.template-status>h2):not(:has(>.template-results>.template-status[aria-label])){flex:1 0 auto}.template-library [data-view=catalog][aria-busy=false]>.template-results:has(>.template-status>h2):not(:has(>.template-status[aria-label])){flex:1 0 auto;display:flex;flex-direction:column}.template-library [data-view=catalog][aria-busy=false]>.template-results:not(:has(>.template-status[aria-label]))>.template-status:has(>h2){flex:1 1;display:flex;flex-direction:column;justify-content:center;padding:20px}.template-library [data-view=catalog] .template-filters{min-height:230px}.template-library [data-view=catalog] .template-filter-fields{border-bottom-color:transparent;background:linear-gradient(#f0f0f0,#f0f0f0) bottom /calc(100% - 58px) 1px no-repeat border-box}}@media (min-width:901px) and (pointer:fine){.template-library .template-filter-fields{padding:calc(65px / 3) 29px calc(37px / 3)}.template-library .template-category-row>span,.template-library .template-facet-row>span,.template-library .template-sort-row>span{min-height:calc(128px / 3)}.template-library .template-category-options a,.template-library .template-facet-options a,.template-library .template-sort-options a{min-height:calc(128px / 3);min-width:54px;padding-inline:calc(35px / 3);border-block-width:calc(22px / 3)}.template-library .template-sort-row{min-height:65px;padding-top:calc(35px / 3)}}@media (max-width:1200px){.template-library .template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.template-library .template-card-skeleton.is-row:last-child{display:none}}@media (max-width:900px){html:has(.template-library){scrollbar-width:thin;scrollbar-color:#c6c4cc transparent}@supports selector(::-webkit-scrollbar){html:has(.template-library){scrollbar-width:auto;scrollbar-color:auto}html:has(.template-library)::-webkit-scrollbar{display:block;width:6px;height:6px}html:has(.template-library)::-webkit-scrollbar-track{background:transparent}html:has(.template-library)::-webkit-scrollbar-thumb{min-height:40px;border-radius:6px;background:#c6c4cc}html:has(.template-library)::-webkit-scrollbar-thumb:hover{background:#9e99a8}html:has(.template-library)::-webkit-scrollbar-button{display:none;width:0;height:0}}.template-library .template-filter-fields{min-height:0;padding:16px}.template-library .template-filter-slots{display:none}.template-library .template-sort-row{min-height:0;padding:12px 16px}.template-library .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-library .template-card-skeleton.is-row:nth-last-child(-n+2){display:none}}@media (max-width:600px){.template-library .template-content{padding:24px 18px 50px}.template-library .template-category-row,.template-library .template-facet-row,.template-library .template-sort-row{flex-direction:column;gap:4px}.template-library .template-category-row>span,.template-library .template-facet-row>span,.template-library .template-sort-row>span{flex-basis:auto}.template-library .template-category-options,.template-library .template-facet-options,.template-library .template-sort-options{width:100%}.template-library .template-filters{padding:16px}.template-library .template-grid{gap:24px 14px}.template-library .template-card-skeleton.is-row:nth-last-child(-n+2){display:none}.template-library .template-card-edit{position:relative;left:auto;bottom:auto;transform:none;display:flex;margin:10px auto 5px}.template-library .template-card h2{font-size:13px;line-height:21px}.template-library .template-detail{padding:16px}.template-library .template-detail-heading{flex-direction:column}.template-library .template-use{max-width:100%;overflow-wrap:anywhere}.template-library .template-preview-grid{grid-template-columns:1fr}}.template-library .template-preview-dialog{width:min(960px,calc(100vw - 32px));height:min(860px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;border:0;border-radius:8px;overflow:hidden}.template-library .template-preview-dialog:modal{overscroll-behavior:contain}.template-library .template-preview-dialog::backdrop{background:rgb(0 0 0/45%);overflow:hidden;overscroll-behavior:contain}.template-library .template-preview-panel{display:flex;flex-direction:column;height:100%;min-height:0}.template-library .template-preview-head{display:flex;flex:0 0 56px;align-items:center;justify-content:space-between;gap:16px;padding:0 18px 0 24px;border-bottom:1px solid #efedf2}.template-library .template-preview-head h2{min-width:0;overflow:hidden;font-size:18px;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.template-library .template-preview-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;cursor:pointer;font-size:20px;color:#716a79}.template-library .template-preview-stage{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px clamp(20px,8vw,120px);background:#eef0f3;scrollbar-width:none}.template-library .template-preview-stage .template-preview-grid{width:min(720px,100%);margin:0 auto;grid-template-columns:minmax(0,1fr);gap:22px}.template-library .template-preview-stage .template-preview-grid>:is(img,svg){overflow:hidden;border:1px solid #dfe2e7;border-radius:6px;background:#fff;box-shadow:0 2px 10px rgb(15 23 42/10%)}.template-library .template-preview-stage::-webkit-scrollbar{width:0;height:0}.template-library .template-preview-empty{color:#716a79}.template-library .template-preview-actions{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:12px 20px;border-top:1px solid #efedf2}.template-library .template-preview-actions button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border-radius:24px;border:1px solid #dcd5e7;background:#fff;cursor:pointer}.template-library .template-preview-download{color:#333}.template-library .template-preview-actions .template-preview-edit{color:#fff;background:linear-gradient(90deg,#d450c4,#6938e0);border-color:transparent;border-radius:4px;white-space:nowrap}.template-library .template-preview-actions button:disabled{opacity:.6;cursor:not-allowed}.template-library .template-member-badge{padding:0 6px;border-radius:8px;background:#fdf1ff;color:#8555f0;font-size:11px;line-height:18px}.template-library .template-download-note{align-self:center;color:#999;font-size:12px;line-height:18px}@media (max-width:600px){.template-library .template-preview-dialog{width:100vw;height:100dvh;border-radius:0}.template-library .template-preview-head{flex-basis:52px;padding:0 10px 0 16px}.template-library .template-preview-stage{padding:12px}.template-library .template-preview-actions{flex-direction:column;align-items:stretch;flex-shrink:0}.template-library .template-preview-actions button{justify-content:center;flex-wrap:wrap;padding:8px 12px}.template-library .template-download-note{align-self:stretch;overflow-wrap:anywhere;text-align:center}}.template-library .template-mobile-search{display:none}@media (max-width:1100px){.template-library .template-mobile-search{display:block;flex:0 0 auto;margin-block:16px 0}.template-library .template-mobile-search form{display:flex;width:100%}.template-library .template-mobile-search input[type=search]{flex:1 1;min-width:0;width:0;min-height:48px;padding:0 10px;border:1px solid #e1e1e1;border-right:0;border-radius:6px 0 0 6px;background:#fff;color:#333;font:inherit;font-size:16px}.template-library .template-mobile-search button{flex:0 0 66px;min-height:48px;padding:0 8px;border:0;border-radius:0 6px 6px 0;background:#e875fd;color:#fff;font:inherit;font-size:13px}.template-library .template-mobile-search :is(input,button):focus-visible{outline:2px solid #6e36a6;outline-offset:2px}}