.template-library{border-top:4px solid var(--teal)}
.template-safety{display:flex;gap:12px;align-items:center;padding:12px 14px;margin-bottom:16px;border:1px solid #9fdad7;border-radius:10px;background:var(--teal-light);color:var(--teal-dark)}
.template-safety span{font-size:12px;line-height:1.45}
.template-toolbar input,.template-toolbar select{min-width:145px;max-width:220px}
.template-library-table code,.template-preview pre{font:11px Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.template-library-table td:nth-child(3){max-width:270px}
.template-form select[multiple]{min-height:120px}
.template-preview pre,.template-json{padding:12px;border:1px solid var(--line);border-radius:9px;background:#f3f7f9;white-space:pre-wrap;overflow:auto}
.template-validation-summary{display:flex;gap:12px;align-items:center;padding:12px;border-radius:10px;background:#f6f9fb;margin-bottom:14px}
.template-validation-check{display:grid;grid-template-columns:80px 180px 1fr;gap:10px;padding:9px;border-bottom:1px solid var(--line);font-size:12px}
.template-dependency-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.template-dependency-grid section{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafcfd}
@media(max-width:800px){.template-dependency-grid{grid-template-columns:1fr}.template-toolbar input,.template-toolbar select{max-width:none;width:100%}.template-validation-check{grid-template-columns:1fr}}
