.p-template-library{--tl-ink:#171c38;--tl-muted:#697492;--tl-purple:#5c50f2;--tl-border:#e1e5f2;--tl-lilac:#f0edff;background:linear-gradient(180deg,#f5f6ff 0%,#f8f9ff 46%,#fff 100%);color:var(--tl-ink);padding-bottom:30px}
.p-template-library-wrap{width:calc(100% - 144px);max-width:1296px;margin-inline:auto}
.p-template-library-hero{padding:56px 0 30px;text-align:center;background:radial-gradient(ellipse at 50% 0%,#e9e8ff 0%,#f4f5ff 54%,transparent 80%)}
.p-template-library-hero .p-eyebrow{font-size:12px;letter-spacing:.12em}
.p-template-library-hero h1{font-size:clamp(34px,3.4vw,48px);line-height:1.32;letter-spacing:-.045em;margin:13px 0 10px}
.p-template-library-hero>div>p{color:var(--tl-muted);font-size:16px;line-height:1.8;margin:0}
.p-template-search-form{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;width:min(780px,100%);margin:26px auto 20px;padding:8px 9px 8px 20px;border:1px solid #e4e6f3;border-radius:16px;background:#fff;box-shadow:0 12px 34px #4643b10c;text-align:left}
.p-template-search-icon{font-size:28px;line-height:1;color:var(--tl-purple);transform:rotate(-20deg)}
.p-template-search-form input{min-width:0;width:100%;height:48px;border:0;outline:0;background:transparent;color:var(--tl-ink);font:inherit;font-size:15px}
.p-template-search-form input::placeholder{color:#9299b0}
.p-template-search-form .btn{min-height:46px;padding:10px 25px;border:0;border-radius:12px;background:linear-gradient(110deg,#6556fa,#5748ec);color:#fff;font-size:15px;font-weight:600;cursor:pointer}
.p-template-search-form .btn:hover,.p-template-featured-actions .p-template-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.p-template-filter-groups{display:grid;gap:10px;width:min(100%,920px);margin:0 auto;text-align:left}
.p-template-filter-group{display:flex;align-items:flex-start;gap:18px}
.p-template-filter-group>strong{flex:0 0 68px;padding-top:12px;color:var(--tl-muted);font-size:13px;font-weight:650}
.p-template-industry-filters{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:9px;flex-wrap:wrap}
.p-template-industry-filters a{display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:9px 22px;border:1px solid #e0e3ef;border-radius:999px;background:#fff8;color:#353b59;font-size:14px;transition:background .18s,border-color .18s,color .18s,transform .18s}
.p-template-industry-filters a:hover{border-color:#b9b2ff;color:var(--tl-purple);transform:translateY(-1px)}
.p-template-industry-filters a.is-active{border-color:var(--tl-purple);background:var(--tl-purple);color:#fff;box-shadow:0 7px 18px #5c50f226}
.p-template-library-main{padding-top:24px}
.p-template-featured{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:42px;align-items:center;padding:28px;border:1px solid var(--tl-border);border-radius:24px;background:#fff;box-shadow:0 18px 54px #343b720c}
.p-template-featured-visual{min-width:0;overflow:hidden;border-radius:17px;background:#f0f3ff}
.p-template-featured-visual>img{display:block;width:100%;height:100%;min-height:340px;max-height:470px;object-fit:cover;object-position:top center}
.p-template-library .p-scene{width:100%;min-width:0}
.p-template-library .p-scene-canvas{pointer-events:none}
.p-template-featured-copy{padding:12px 22px 12px 0}
.p-template-featured-copy h2{font-size:clamp(27px,2.7vw,36px);line-height:1.4;letter-spacing:-.03em;margin:12px 0 10px}
.p-template-featured-copy>p{font-size:16px;line-height:1.9;color:var(--tl-muted);margin:0}
.p-template-featured-pills,.p-template-card-tags{display:flex;gap:8px;flex-wrap:wrap}
.p-template-featured-pills{margin-top:18px}
.p-template-featured-pills span,.p-template-card-tags span{display:inline-flex;align-items:center;min-height:29px;padding:5px 11px;border:1px solid #e3e3ff;border-radius:999px;background:#f7f6ff;color:#5e59a2;font-size:12px}
.p-template-featured-copy .p-template-featured-note{margin-top:20px;padding-top:17px;border-top:1px solid var(--tl-border);font-size:14px}
.p-template-featured-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px}
.p-template-featured-actions .p-template-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:11px 20px;border:0;border-radius:12px;background:linear-gradient(110deg,#6556fa,#5748ec);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:filter .18s,transform .18s}
.p-template-featured-actions>a,.p-template-card-actions>a,.p-template-card-actions>button{color:var(--tl-purple);font-size:14px;font-weight:600}
.p-template-featured-actions>a:hover,.p-template-card-actions>a:hover,.p-template-card-actions>button:hover{color:#382ad6}
.p-template-results{padding:64px 0 20px}
.p-template-results-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.p-template-results-head h2{font-size:30px;line-height:1.35;letter-spacing:-.025em;margin:8px 0 0}
.p-template-results-head>p{color:var(--tl-muted);font-size:14px;margin:0 0 4px}
.p-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.p-template-card{min-width:0;overflow:hidden;border:1px solid var(--tl-border);border-radius:19px;background:#fff;transition:transform .2s,box-shadow .2s,border-color .2s}
.p-template-card:hover{transform:translateY(-4px);border-color:#c9c5ff;box-shadow:0 18px 40px #37357813}
.p-template-card-browser{overflow:hidden;border-bottom:1px solid var(--tl-border);background:#fff}
.p-template-card-browser-toolbar{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 13px;border-bottom:1px solid #e9ebf4;background:#fff;color:#616b88;font-size:11px}
.p-template-card-browser-toolbar strong{font-size:12px;font-weight:600;color:#56607c}
.p-template-card-browser-dots{display:flex;gap:5px}
.p-template-card-browser-dots i{width:8px;height:8px;border-radius:50%;background:#ff746c}
.p-template-card-browser-dots i:nth-child(2){background:#f4bd4f}
.p-template-card-browser-dots i:nth-child(3){background:#5bc68b}
.p-template-card-browser-hint{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:#828ba4;white-space:nowrap}
.p-template-card-browser-hint i{width:6px;height:6px;border-radius:50%;background:#6556fa;box-shadow:0 0 0 3px #efedff}
.p-template-card-demo{position:relative;overflow:hidden;aspect-ratio:1.45;background:#151a22}
.p-template-card-demo iframe{position:absolute;inset:0 auto auto 0;display:block;width:1440px;height:990px;border:0;transform-origin:top left;background:#fff}
.p-template-card-demo>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.p-template-card-demo .p-scene{width:100%;height:100%;overflow:hidden}
.p-template-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:0 16px;border-top:0;background:#fff}
.p-template-card-actions>a{color:var(--tl-purple);font-size:13px;font-weight:650;white-space:nowrap}
.p-template-card-actions>a:hover{color:#382ad6}
.p-template-card-actions .p-template-card-title{display:block;flex:1 1 auto;min-width:0;overflow:hidden;color:var(--tl-purple);font-size:13px;font-weight:650;white-space:nowrap;text-overflow:ellipsis}
.p-template-card-experience-unavailable{flex:none;color:#9299ad;font-size:12px;white-space:nowrap}
.p-template-pagination{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:34px;padding-top:20px;border-top:1px solid var(--tl-border);color:var(--tl-muted);font-size:13px}
.p-template-pagination p{margin:0}
.p-template-pagination>div{display:flex;gap:7px}
.p-template-pagination a{display:grid;place-items:center;min-width:39px;height:39px;padding-inline:10px;border:1px solid var(--tl-border);border-radius:12px;background:#fff;color:var(--tl-ink);transition:all .18s}
.p-template-pagination a:hover,.p-template-pagination a[aria-current=page]{border-color:#a9a1ff;background:#f0edff;color:var(--tl-purple)}
.p-template-empty-state{padding:60px 22px;border:1px dashed #d6d7ec;border-radius:19px;background:#fafaff;text-align:center}
.p-template-empty-state>span{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 16px;border-radius:17px;background:#f0edff;color:var(--tl-purple);font-size:32px}
.p-template-empty-state h3{font-size:21px;margin:0}
.p-template-empty-state p{margin:9px 0 14px;color:var(--tl-muted);font-size:14px}
.p-template-empty-state .text-link{color:var(--tl-purple)}
.p-template-library-caption{margin:28px 0 0;color:#9299ad;font-size:12px;line-height:1.8;text-align:center}
.p-template-library-detail{padding-top:34px;padding-bottom:64px}
.p-template-library-detail .p-template-detail-preview{padding:16px;background:#f2f4ff}
.p-template-demo-shell{overflow:hidden;border:1px solid #dfe4f1;border-radius:15px;background:#fff;box-shadow:0 18px 48px #1b21400e}
.p-template-demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:0 14px;border-bottom:1px solid #e8eaf1;background:#fff;color:#66708a;font-size:11px}
.p-template-demo-toolbar>span{display:flex;align-items:center;gap:5px}
.p-template-demo-toolbar i{width:7px;height:7px;border-radius:50%;background:#b6bdd0}
.p-template-demo-toolbar i:first-child{background:#f27870}.p-template-demo-toolbar i:nth-child(2){background:#eebc57}.p-template-demo-toolbar i:nth-child(3){background:#68c989}
.p-template-demo-toolbar strong{margin-left:6px;color:#4b5570;font-size:12px;font-weight:600}
.p-template-demo-toolbar small{color:#929bb0}
.p-template-demo-shell iframe{display:block;width:100%;height:min(69vh,700px);min-height:580px;border:0;background:#14181d}
.p-template-modal-visual>img{display:block;width:100%;max-height:min(72vh,850px);object-fit:contain;object-position:top center;border-radius:12px;background:#eceef4}
.p-template-library-detail .p-template-detail-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:54px}
.p-template-library-detail .p-template-detail-grid>div:last-child{padding-top:0}
.p-template-library-detail .p-template-detail-grid>div>p{line-height:1.9}
.p-template-detail-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:18px}
.p-template-detail-actions .text-link{margin:0}
.p-template-not-found{padding-block:36px 64px}
.p-template-not-found .p-empty{margin-top:24px}
.p-template-not-found .p-empty h1{font-size:28px}
.p-template-not-found .p-empty .btn{display:inline-flex;margin-top:10px;padding:12px 20px;border-radius:10px;background:var(--tl-purple);color:#fff}
@media(max-width:1100px){.p-template-library-wrap{width:calc(100% - 64px)}.p-template-featured{gap:25px;padding:20px}.p-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.p-template-featured-copy{padding-right:8px}.p-template-featured-copy h2{font-size:29px}}
.p-template-filter-group .p-template-industry-filters{justify-content:flex-start}
@media(max-width:760px){.p-template-library-wrap{width:calc(100% - 36px)}.p-template-library-hero{padding:37px 0 22px}.p-template-library-hero h1{font-size:32px;line-height:1.42}.p-template-library-hero>div>p{font-size:14px}.p-template-search-form{grid-template-columns:26px minmax(0,1fr) auto;gap:7px;margin:20px auto 17px;padding:6px 7px 6px 13px;border-radius:13px}.p-template-search-form input{height:43px;font-size:13px}.p-template-search-form .btn{min-height:41px;padding:9px 15px;font-size:13px}.p-template-filter-groups{gap:12px}.p-template-filter-group{display:block}.p-template-filter-group>strong{display:block;padding:0 0 7px;font-size:12px}.p-template-industry-filters{gap:7px}.p-template-industry-filters a{min-height:36px;padding:7px 14px;font-size:12px}.p-template-library-main{padding-top:16px}.p-template-featured{grid-template-columns:1fr;gap:16px;padding:13px;border-radius:18px}.p-template-featured-visual{max-height:360px}.p-template-featured-visual>img{min-height:0;height:clamp(220px,57vw,360px)}.p-template-featured-copy{padding:2px 6px 8px}.p-template-featured-copy h2{font-size:25px}.p-template-featured-copy>p{font-size:14px}.p-template-featured-copy .p-template-featured-note{margin-top:14px;padding-top:13px;font-size:13px}.p-template-featured-actions{gap:16px;margin-top:17px}.p-template-results{padding-top:40px}.p-template-results-head h2{font-size:24px}.p-template-results-head>p{font-size:12px}.p-template-grid{grid-template-columns:1fr;gap:16px}.p-template-card-copy{padding:16px}.p-template-card-copy h3{font-size:19px}.p-template-card-copy>p{min-height:0}.p-template-pagination{margin-top:24px}.p-template-pagination>div{gap:5px}.p-template-pagination a{min-width:35px;height:35px;border-radius:10px}.p-template-library-detail{padding-top:24px}.p-template-library-detail .p-template-detail-grid{grid-template-columns:1fr;gap:23px;margin-top:16px}.p-template-library-detail .p-template-detail-grid>div:last-child{grid-row:1}.p-template-library-detail .p-template-detail-grid>div:last-child{padding:0}.p-template-library-detail .p-template-detail-grid h1{font-size:28px}.p-template-library-detail .p-features{grid-template-columns:1fr}.p-template-library-detail .p-features li{display:flex}.p-template-library-detail .p-features li>span{margin:0}.p-template-library-detail .p-template-detail-preview{padding:10px}.p-template-demo-shell iframe{height:66vh;min-height:500px}.p-template-demo-toolbar{padding-inline:10px}.p-template-detail-actions{gap:13px}.p-template-detail-actions .btn{font-size:13px}.p-template-library-caption{font-size:11px}.p-template-empty-state{padding:45px 18px}}
@media(max-width:380px){.p-template-library-wrap{width:calc(100% - 26px)}.p-template-library-hero h1{font-size:28px}.p-template-search-form{grid-template-columns:20px minmax(0,1fr) auto;padding-left:10px}.p-template-search-form .btn{padding-inline:11px}}

/* Featured template: live site preview with a focused information rail. */
.p-template-featured{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:clamp(24px,3.4vw,52px);align-items:stretch;padding:clamp(18px,2.2vw,30px);border-radius:22px;background:linear-gradient(112deg,#fff 0%,#fff 58%,#f3f2ff 58%,#f7f6ff 100%);box-shadow:0 22px 58px #2426500c}
.p-template-featured-visual{min-width:0;max-height:none;overflow:visible;border-radius:0;background:transparent}
.p-template-featured-browser{height:100%;overflow:hidden;border:1px solid #dfe3f2;border-radius:16px;background:#fff;box-shadow:0 16px 42px #171c3818}
.p-template-featured-browser-toolbar{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 15px;border-bottom:1px solid #e9ebf4;background:#fff;color:#616b88;font-size:11px}
.p-template-featured-browser-toolbar strong{font-size:12px;font-weight:650;color:#56607c}
.p-template-featured-live{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:#65708b;font-size:11px;white-space:nowrap}
.p-template-featured-live i{width:7px;height:7px;border-radius:50%;background:#49b989;box-shadow:0 0 0 3px #e8f7f1}
.p-template-featured-demo{position:relative;height:clamp(380px,38vw,510px);overflow:hidden;overscroll-behavior:contain;background:#f4f3ef}
.p-template-featured-demo iframe{position:absolute;inset:0 auto auto 0;display:block;width:1440px;height:990px;border:0;transform-origin:top left;background:#fff}
.p-template-featured-demo>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center}
.p-template-featured-demo>.p-scene{width:100%;height:100%;overflow:hidden}
.p-template-featured-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:28px clamp(16px,2.4vw,38px) 28px 0}
.p-template-featured-kicker{display:flex;align-items:center;gap:10px;color:var(--tl-purple);font-size:13px;font-weight:700}
.p-template-featured-kicker i{width:4px;height:4px;border-radius:50%;background:#aaa6ce}
.p-template-featured-copy h2{max-width:620px;margin:18px 0 13px;font-size:clamp(29px,2.35vw,36px);line-height:1.25;letter-spacing:-.04em}
.p-template-featured-copy>p{max-width:560px;font-size:16px;line-height:1.85;color:var(--tl-muted)}
.p-template-featured-pills{gap:7px;margin-top:21px}
.p-template-featured-pills span{min-height:31px;padding:6px 12px;border-color:#dedbff;background:#fff;color:#5e59a2;font-size:12px}
.p-template-featured-copy .p-template-featured-note{display:flex;align-items:center;gap:10px;margin-top:25px;padding:0;border:0;color:#6e7893;font-size:13px;line-height:1.65}
.p-template-featured-note-mark{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border:1px solid #dfdcff;border-radius:50%;background:#fff;color:var(--tl-purple);font-size:15px}
.p-template-featured-actions{margin-top:23px}
.p-template-featured-actions .p-template-featured-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:51px;padding:12px 21px;border:1px solid var(--tl-purple);border-radius:11px;background:var(--tl-purple);color:#fff;font-size:14px;font-weight:650;transition:background .18s,transform .18s,box-shadow .18s}
.p-template-featured-actions .p-template-featured-primary:hover{transform:translateY(-2px);background:#4c40df;box-shadow:0 9px 22px #5c50f233;color:#fff}
.p-template-featured-unavailable{color:#8c93a9;font-size:14px}
@media(max-width:760px){.p-template-featured{grid-template-columns:1fr;gap:0;padding:12px;border-radius:17px;background:#fff}.p-template-featured-browser{border-radius:12px}.p-template-featured-browser-toolbar{min-height:39px;padding-inline:11px}.p-template-featured-demo{height:clamp(270px,72vw,390px)}.p-template-featured-copy{padding:25px 11px 17px}.p-template-featured-kicker{font-size:12px}.p-template-featured-copy h2{margin:13px 0 9px;font-size:27px}.p-template-featured-copy>p{font-size:14px;line-height:1.75}.p-template-featured-pills{margin-top:15px}.p-template-featured-copy .p-template-featured-note{margin-top:18px;font-size:12px}.p-template-featured-actions{margin-top:18px}.p-template-featured-actions .p-template-featured-primary{min-height:47px;padding-inline:17px}}
