.page-templates .template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px}
.page-templates .template-card{min-width:0;padding:0;overflow:hidden;border:1px solid var(--line,#dce2e8);border-radius:14px;background:var(--paper,#fff)}
.template-preview .project-visual{display:block;aspect-ratio:1.47;padding:16px 16px 52px;background:#edf1f5;overflow:hidden}
.template-preview .project-browser{min-width:0}.template-preview .project-browser span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.template-copy{padding:26px}.template-category{font-size:.72rem;color:var(--muted,#586879);letter-spacing:.04em}.template-copy h2{font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.2;margin:12px 0 24px;overflow-wrap:anywhere}
.template-copy .template-actions{display:flex;flex-wrap:wrap;gap:16px 24px}.template-copy .text-link{font-size:.8rem}
.template-placeholder{height:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#233c51;background:#e3eaf1;text-align:center;padding:24px}.template-placeholder span{font-size:1.5rem}.template-placeholder small{font-size:.8rem}
[data-theme=dark] .template-card{background:#101e2a;border-color:#2c3b47}[data-theme=dark] .template-preview .project-visual{background:#182b3b}
@media(max-width:760px){.page-templates .template-list{grid-template-columns:1fr;gap:28px}.template-copy{padding:22px}.template-preview.is-mobile-preview .project-visual{aspect-ratio:.85}.template-copy .template-actions{gap:18px}.template-preview .preview-controls button{font-size:.65rem}}
.page-templates .template-card:last-child{grid-column:auto}.page-templates .template-copy h2{font-size:clamp(1.35rem,2.2vw,1.9rem);margin:12px 0 24px}
