.template-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.template-card{padding:0;overflow:hidden}.template-card video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#151318}.template-copy{padding:18px}.template-copy h2{font-size:1.15rem;margin:10px 0}.template-copy small{color:var(--muted,#9c97a5)}.template-copy p{font-size:.88rem;line-height:1.65}.template-workspace{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px;margin-bottom:24px;align-items:start}.template-preview{width:100%;border-radius:12px;background:#151318;max-height:480px}.template-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;padding-top:16px}.template-reference{min-width:0}.template-reference img{display:block;width:100%;height:140px;object-fit:contain;background:#151318;border-radius:10px;margin-bottom:8px}.template-reference select{width:100%;min-width:0}#template-prompt{min-height:260px}.template-reference span{font-weight:600}@media(max-width:1100px){.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.template-workspace{grid-template-columns:1fr}}@media(max-width:600px){.template-gallery{grid-template-columns:1fr}.template-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-copy{padding:16px}}
.template-reference-empty{height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#151318;border:1px dashed #746184;border-radius:10px;margin-bottom:8px;color:var(--muted,#9c97a5)}.template-reference-empty>span{font-size:30px;color:#d1b4f6}.template-era-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.template-era-list>span{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid #44394d;border-radius:10px}.template-era-list small{color:var(--muted,#9c97a5)}@media(max-width:420px){.template-era-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.template-edit-fields{border:0;padding:0;margin:0;min-width:0}.template-script-scene{padding:16px 0;border-top:1px solid var(--line,#41394a)}.template-script h3{margin:0}.template-script-scene textarea{width:100%}
