.mt-dialog{width:min(960px,calc(100vw - 28px));max-width:100vw;max-height:90dvh;padding:0;border:1px solid #cad7ce;border-radius:18px;overflow:auto;background:#fff;color:#233a2d;box-shadow:0 22px 90px #163c2633}
.mt-dialog::backdrop{background:#13291f66}
.mt-dialog .mt-header,.mt-dialog .mt-footer,.mt-dialog .mt-tabs{display:flex;align-items:center;gap:8px;padding:12px 16px;position:static}
.mt-dialog .mt-header{border-bottom:1px solid #e0e6e0}
.mt-header h2{font-size:19px;margin:0;margin-right:auto;color:#253a2e}
.mt-dialog .mt-tabs{overflow:auto;border-bottom:1px solid #e0e6e0}
.mt-dialog button,.mt-dialog input,.mt-dialog select{font:inherit}
.mt-dialog button{background:#fff;color:#254333;border:1px solid #cad8ce;border-radius:7px;padding:6px 10px;cursor:pointer;font-size:14px;white-space:nowrap}
.mt-dialog button:disabled{opacity:.4;cursor:default}
.mt-dialog button[aria-pressed=true],.mt-dialog .mt-current{background:#e2ede5;color:#234b36;border-color:#94b19e}
.mt-dialog button.mt-primary{background:#2e5a43;color:#fff;border-color:#2e5a43}
.mt-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,235px);min-height:280px}
.mt-stage{display:grid;align-items:center;justify-items:center;background:#eef2ee;padding:14px;min-width:0;min-height:200px}
.mt-stage>canvas,.mt-video-stage canvas,.mt-video-stage video{display:block;max-width:100%;max-height:47dvh;width:auto;height:auto;touch-action:none}
.mt-video-stage,.mt-active-player{width:100%;min-width:0}
.mt-video-stage audio{max-width:100%}
.mt-dialog [hidden]{display:none!important}
.mt-controls{padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:9px;max-height:52dvh;overflow:auto}
.mt-controls h3{font-size:15px;margin:0 0 2px;color:#233c2d}
.mt-field{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:500}
.mt-field input,.mt-field select{min-width:0;max-width:60%;height:29px;border:1px solid #c8d5cc;border-radius:5px;background:#fff;padding:2px 5px;color:inherit}
.mt-field input[type=number]{width:70px}.mt-field input[type=checkbox]{height:auto}
.mt-actions,.mt-timings{display:flex;flex-wrap:wrap;gap:5px}
.mt-actions button{flex:1}.mt-timings>.mt-field{flex:1 0 100%}
.mt-order{margin:0;padding:0;list-style:none}.mt-order li{display:flex;align-items:center;gap:3px;margin:4px 0}
.mt-order li>span,.mt-order li>button:first-child{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.mt-order button{padding:4px;font-size:12px}
.mt-dialog .mt-footer{justify-content:flex-end;border-top:1px solid #dce5dc;flex-wrap:wrap}.mt-footer output{margin-right:auto;font-size:13px}
.mt-error{margin:0;color:#923921;padding:6px 16px}
@media(max-width:620px){.mt-dialog{width:calc(100vw - 10px);max-height:96dvh}.mt-workspace{grid-template-columns:1fr}.mt-controls{max-height:32dvh}.mt-stage>canvas,.mt-video-stage video,.mt-video-stage canvas{max-height:30dvh}.mt-stage{min-height:130px}}
.mt-stage>video{display:block;max-width:100%;max-height:47dvh}.mt-shots>div{display:flex;align-items:center;gap:6px;margin:4px 0}.mt-shots small{font-variant-numeric:tabular-nums}
