.prompt-template-dialog{flex-direction:column;width:min(900px,100vw - 32px);max-width:900px;max-height:min(800px,100dvh - 32px);display:flex;overflow:hidden}.prompt-template-dialog>:first-child{flex-shrink:0}.prompt-template-dialog>:last-child{flex-direction:column;min-height:0;display:flex;position:relative;overflow:hidden}.prompt-template-browser{gap:var(--space-4);flex-direction:column;min-height:0;display:flex;overflow:hidden}.prompt-template-browser[inert]{visibility:hidden}.prompt-template-browser>:not(.prompt-template-scroll){flex-shrink:0}.prompt-template-categories{flex-wrap:wrap;gap:8px;display:flex}.prompt-template-selects{gap:var(--space-2);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.prompt-template-scroll{min-height:0;padding:2px;overflow-y:auto}.prompt-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.prompt-template-grid>li:nth-child(n+25){content-visibility:auto;contain-intrinsic-block-size:auto 160px}.prompt-template-more{justify-items:center;gap:var(--space-2);padding-block:var(--space-4);display:grid}.prompt-template-card{border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);min-width:0;height:100%;color:var(--foreground);overflow-wrap:anywhere;flex-direction:column;display:flex;overflow:hidden}.prompt-template-cover{aspect-ratio:3/2;object-fit:cover;object-position:center;background:var(--surface-muted);flex-shrink:0;width:100%;display:block}.prompt-template-card-content{flex-direction:column;flex:1;gap:8px;padding:16px;display:flex}.prompt-template-card-details{color:var(--text-secondary);font-size:var(--text-xs);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.prompt-template-card h3{font-size:var(--text-base);margin:0;font-weight:500}.prompt-template-card p{color:var(--text-secondary);font-size:var(--text-sm);margin:0;line-height:1.5}.prompt-template-preview-heading{min-height:var(--control-height-sm);color:var(--text-muted);font-size:var(--text-xs);flex-wrap:wrap;justify-content:space-between;align-items:center;display:flex}.prompt-template-card .prompt-template-excerpt{-webkit-line-clamp:3;white-space:pre-line;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.prompt-template-card .prompt-template-use{align-self:flex-end;margin-top:auto}.prompt-template-reader{inset:var(--space-6);gap:var(--space-3);flex-direction:column;min-width:0;display:flex;position:absolute}.prompt-template-reader-heading,.prompt-template-reader-footer{align-items:center;gap:var(--space-2);flex-shrink:0;display:flex}.prompt-template-reader-heading h3{min-width:0;font-size:var(--text-base);overflow-wrap:anywhere;margin:0}.prompt-template-reader-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.prompt-template-full-prompt{color:var(--foreground);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.65}.prompt-template-reader-footer{padding-top:var(--space-3);border-top:1px solid var(--border);flex-wrap:wrap;justify-content:flex-end}.creative-template-toolbar{justify-content:flex-end;align-items:center;margin-bottom:12px;display:flex}.native-file[draggable=true]{cursor:grab}.native-file[draggable=true]:active{cursor:grabbing}.native-file.drag-over{outline:2px solid var(--accent);outline-offset:2px}.native-drag-hint{color:var(--text-muted);font-size:var(--text-xs);line-height:1.5}@media (width<=560px){.prompt-template-grid{grid-template-columns:minmax(0,1fr)}}
