.form-template-editor .fm-table { width:100%; border-collapse:collapse; }
.form-template-editor .fm-table th,.form-template-editor .fm-table td { padding:8px 10px; border-bottom:1px solid var(--line,#d7dce2); text-align:left; }
.form-template-editor .fm-table tbody tr:nth-child(even) { background:var(--soft,#f6f7f9); }
.form-template-editor .fm-fltrow,.form-template-editor .fm-bldq-bar,.form-template-editor .fm-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.form-template-editor .fm-template-control { display:flex; flex-direction:column; gap:4px; flex:1; min-width:150px; font-size:13px; }
.form-template-editor input,.form-template-editor select,.form-template-editor textarea { max-width:100%; min-width:0; box-sizing:border-box; font:inherit; padding:7px 9px; border:1px solid var(--line,#cbd2da); border-radius:5px; background:var(--card,#fff); color:inherit; }
.form-template-editor input[type=checkbox] { align-self:flex-start; }
.form-template-editor textarea { min-height:42px; resize:vertical; }
.form-template-editor .fm-bldq { margin:10px 0; padding:12px; border:1px solid var(--line,#d7dce2); border-radius:7px; }
.form-template-editor .fm-bldq.hdr { border-left:4px solid var(--red,#ba2e2e); }
.form-template-editor .fm-bldq-kids { margin:10px 0 0 14px; padding-left:12px; border-left:2px solid var(--line,#d7dce2); }
.form-template-editor .fm-template-list { margin:8px 0; padding:8px; border:1px solid var(--line,#d7dce2); min-width:0; }
.form-template-editor .fm-template-entry { display:flex; gap:8px; align-items:center; margin:5px 0; }
.form-template-editor .fm-template-palette { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.form-template-editor .fm-template-palette>label,.form-template-editor .fm-template-palette>.footnote { flex-basis:100%; }
.form-template-editor .fm-actions { padding:12px 0; }
.form-template-editor .fm-status:empty { display:none; }
.form-template-editor [id$="-previews"] { margin-top:12px; }
@media(max-width:600px) {
  .form-template-editor { min-width:0; overflow-wrap:anywhere; }
  .form-template-editor .fm-table { display:block; overflow-x:auto; }
  .form-template-editor .fm-template-control { min-width:140px; }
  .form-template-editor .fm-bldq-kids { margin-left:4px; padding-left:7px; }
  .form-template-editor .fm-template-entry { align-items:stretch; flex-wrap:wrap; }
}
