.ml-preview { position: relative; width: 100%; height: 100%; min-height: 260px; background: #fff; }
.ml-preview > svg { display: block; width: 100%; height: 100%; min-height: 260px; touch-action: none; }
.ml-editor-overlay { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #edf2f44a; }
.ml-editor { width: min(100%, 530px); max-height: 100%; overflow-y: auto; margin: 0; border: 1px solid #c1d1e4; border-radius: 8px; background: #fff; color: #17416b; box-shadow: 0 7px 22px #20394b29; font: 12px/1.4 "Segoe UI", sans-serif; }
.ml-editor > header { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 5px 12px; background: #087e0c; color: #fff; }
.ml-editor > header strong { font-size: 12px; font-weight: 650; }
.ml-editor button, .ml-editor select, .ml-editor input { font: inherit; }
.ml-editor button { cursor: pointer; }
.ml-editor .ml-close { border: 0; padding: 1px 4px; background: transparent; color: #fff; font-size: 21px; line-height: 1; }
.ml-editor-body { padding: 14px 16px 16px; }
.ml-source-label { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 11px; }
.ml-source-label select { width: 175px; min-height: 29px; padding: 4px 8px; border: 1px solid #cfdded; border-radius: 7px; background: #f6f9fc; color: #17416b; cursor: help; }
.ml-sequence-label { display: block; text-align: center; font-weight: 650; }
.ml-sequence-label input { display: block; width: 100%; min-height: 43px; margin-top: 5px; padding: 8px; border: 2px solid #333; border-radius: 8px; background: #fff; color: #17416b; text-align: center; font-size: 18px; font-weight: 400; }
.ml-editor-help { margin: 5px 0 14px; text-align: center; color: #74869d; font-size: 11px; }
.ml-palette { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; min-height: 57px; margin: 0; padding: 9px; border: 1px solid #cfdded; border-radius: 7px; background: #f6f9fc; }
.ml-palette legend { padding: 0 5px; color: #74869d; font-size: 11px; }
.ml-palette button, .ml-editor footer button { min-height: 33px; padding: 6px 12px; border: 1px solid #cfdded; border-radius: 7px; background: #fff; color: #17416b; }
.ml-palette button:hover, .ml-cancel:hover { background: #eaf2fc; }
.ml-draft { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 68px; padding-top: 12px; overflow-x: auto; }
.ml-draft img { flex: 0 0 25px; width: 25px; height: 34px; object-fit: contain; transform: rotate(90deg); }
.ml-draft span { flex: 0 0 auto; font-size: 12px; }
.ml-problem { min-height: 1.4em; margin: 7px 0; color: #a02f37; font-size: 11px; }
.ml-editor footer { display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid #cfdded; padding-top: 12px; }
.ml-editor footer .ml-create { background: #285b9f; border-color: #285b9f; color: #fff; font-weight: 650; }
.ml-editor footer .ml-create:disabled { background: #e1e7ee; border-color: #d8e0e9; color: #8694a7; cursor: default; }
@media (max-width: 600px) {
 .ml-editor-overlay { padding: .6rem; align-items: flex-start; }
 .ml-editor-body { padding: 10px 12px 12px; }
 .ml-source-label { margin-bottom: 10px; }
 .ml-draft { gap: 6px; }
}
