.editor-template-gallery{margin:24px 0;border:1px solid #d4ded9;border-radius:12px;background:#f7f6f2;overflow:hidden;color:#173c3b}
.editor-template-gallery summary{min-height:44px;padding:18px;cursor:pointer;font-weight:600}
.editor-template-body{padding:0 16px 16px}.editor-template-body>p{font-size:.8rem;line-height:1.6}
.editor-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.editor-template-card{min-width:0;border:1px solid #d4ded9;border-radius:10px;background:white;padding:10px}
.editor-template-card h3{font-size:.85rem;margin:0 0 10px;font-weight:600;line-height:1.4}
.editor-template-spread{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#eeefea;padding:6px;border-radius:6px}
.editor-template-page{min-width:0;aspect-ratio:708/1000;background:#fbfaf6;overflow:hidden;box-shadow:0 2px 5px #243d3415}
.editor-template-page img{display:block;width:100%;height:100%;object-fit:contain}
.editor-template-type{display:flex;flex-direction:column;justify-content:space-between;padding:10%;font-family:Georgia,serif;font-size:9px}
.editor-template-type small{font-family:Arial,sans-serif;font-size:.55em}.editor-template-type strong{font-size:1.1em;font-weight:400;line-height:1.1}
.editor-template-card p{font-size:.7rem;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}
.editor-template-gallery button{width:100%;white-space:normal;line-height:1.4;min-height:44px;height:auto;margin:4px 0 0;padding:10px;font-size:.75rem;border:1px solid #c2d0c8;border-radius:7px;background:white;color:#173c3b}
.editor-template-gallery button[aria-pressed=true]{border-color:#173c3b;background:#e5ecdd;font-weight:600}
.editor-template-gallery :focus-visible{outline:3px solid #507d70;outline-offset:3px}
@media(max-width:380px){.editor-template-grid{grid-template-columns:1fr}.editor-template-type{font-size:12px}}
