.mt-page .wrap{max-width:1440px}.mt-page .tw-main{width:100%}.mt-filebar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e4e8ef;border-radius:12px;padding:18px;margin:20px 0 10px}.mt-file{display:flex;gap:12px;align-items:center;min-width:0}.mt-file strong{display:block;overflow-wrap:anywhere;font-size:14px}.mt-file small{display:block;color:#778197;margin-top:6px;font-size:11px;line-height:1.6}.mt-status{font-size:12px;line-height:1.7;min-height:24px;margin-bottom:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#68748c}.mt-status progress{height:7px;max-width:220px;accent-color:#5964dc}.mt-error{color:#ad3d48}.mt-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start}.mt-settings,.mt-results{padding:20px;min-width:0}.mt-page .mt-settings h2,.mt-page .mt-results h2{margin-bottom:16px}.mt-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.mt-note{font-size:11px;line-height:1.7;color:#7a8497;margin:12px 0}.mt-warning{padding:10px 12px;border:1px solid #efdfba;background:#fff9ed;color:#946b2f;border-radius:8px}.mt-track{border:1px solid #e5e9ef;border-radius:9px;padding:12px;margin:10px 0}.mt-track.active{border-color:#b3bbed;background:#f6f7ff}.mt-track label{display:flex;align-items:start;gap:8px;font-size:13px;line-height:1.5}.mt-track small{display:block;font-size:10px;color:#7a8497;margin:7px 0 12px;overflow-wrap:anywhere}.mt-badge{padding:3px 7px;border-radius:5px;font-size:10px;background:#edf0f6;color:#748096}.mt-badge.done{background:#e5f4ec;color:#31835a}.mt-badge.failed{background:#fcebee;color:#b64d5d}.mt-badge.working{background:#edf0ff;color:#5b69cc}.mt-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.mt-head h2{margin:0!important}.mt-meta{font-size:12px;color:#7b8599}.mt-empty{min-height:320px;display:grid;place-items:center;padding:30px;font-size:13px;color:#8790a1;text-align:center}.mt-cue{border-top:1px solid #e8ecf2;padding:14px 0}.mt-cue time{font-size:11px;font-variant-numeric:tabular-nums;color:#748198;display:block;direction:ltr}.mt-cue p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:10px 0}.mt-cue .mt-original{color:#8992a2;font-size:12px;padding:9px;background:#f7f8fb;border-radius:7px}.mt-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#7b8598;margin:16px 0}.mt-export{border-top:1px solid #e6eaf1;display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:18px}.mt-field{display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.5;color:#6f7a90;min-width:0}.mt-field input,.mt-field textarea{width:100%;font:inherit;color:#26354e;background:#fff;padding:9px;border:1px solid #dce2eb;border-radius:7px;box-sizing:border-box;min-width:0}.mt-field textarea{font-size:13px;line-height:1.7;resize:vertical}.mt-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.mt-page pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.7;background:#f5f7fa;padding:15px;border-radius:9px;max-height:520px;overflow:auto}.mt-dialog{width:min(660px,calc(100vw - 32px));max-height:85vh;overflow:auto}.mt-dialog form,.mt-dialog>.mt-dialog-body{padding:18px}.mt-dialog .mt-actions{margin-top:14px}.mt-page .tw-footer button{border:0;color:#7a8396}.mt-video{border:1px solid #e4e9f0;border-radius:11px;background:#fff;padding:16px;margin-bottom:16px;overflow:hidden}.mt-video .stage{max-width:100%;margin:0 auto;background:#151b27}.mt-video .stage video{max-height:390px;display:block;width:100%}.mt-video .sliders{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.mt-video .sliders .sl{min-width:0;width:100%;gap:7px;display:flex;align-items:center;font-size:11px}.mt-video .sliders input{width:100%;min-width:0}.mt-video .sliders b{font-size:10px;min-width:34px}.mt-ocrsub .mt-grid{grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr)}.mt-ocrsub .mt-settings{padding:0;border:0;background:transparent;overflow:visible}.mt-ocrsub .mt-results{min-height:560px}.mt-controls{border:1px solid #e4e9f0;border-radius:11px;background:#fff;padding:18px}.mt-controls .card{padding:0;margin:18px 0 0;border:0;box-shadow:none}.mt-controls .card h2 .n{display:none}.mt-controls .hint{font-size:11px;line-height:1.7}.mt-controls .row{gap:8px}.mt-controls #setCard .sl{min-width:0!important}.mt-controls .prv{display:none}.mt-controls .test{flex-wrap:wrap}.mt-controls .test canvas{max-width:100%}.mt-result-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.mt-result-filters select{max-width:180px}.mt-frame-controls{margin-top:10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#6e7b92}.mt-page .mt-selected{background:#f6f7ff;border-radius:8px;padding:12px;margin:6px -4px}.mt-run-status{margin:12px 0;font-size:12px;color:#6e7b92}.mt-video .mask{pointer-events:none}.mt-ocrsub .mt-filebar .mt-file{flex:1}.mt-video.hidden,.mt-controls.hidden{display:none!important}
@media(max-width:760px){.mt-page .wrap{padding:0 14px}.mt-page .tw-main{padding:0}.mt-filebar{display:block;padding:15px}.mt-filebar>.mt-actions{margin-top:14px}.mt-grid,.mt-ocrsub .mt-grid{grid-template-columns:minmax(0,1fr)}.mt-settings,.mt-results{padding:15px}.mt-tracks{max-height:400px;overflow:auto}.mt-track{margin:8px 0}.mt-page .hero h1{font-size:23px}.mt-export{align-items:stretch}.mt-export>.mt-actions{width:100%}.mt-export .tw-primary{flex:1}.mt-cue time{font-size:10px;white-space:normal}.mt-video{padding:12px}.mt-video .sliders{grid-template-columns:1fr}.mt-video .stage video{max-height:270px}.mt-controls{padding:15px}.mt-controls .row{align-items:stretch}.mt-controls .row>.lb{min-width:0}.mt-dialog .mt-fields{grid-template-columns:1fr}.mt-page .tw-footer{font-size:10px}.mt-page .tw-footer span{min-width:0;white-space:normal}}

.mt-controls #setCard .row>.sl{flex:1 1 200px}.mt-controls #setCard .sl input{min-width:0;flex:1;width:100%}.mt-controls #setCard .sl b{flex-shrink:0;min-width:30px}.mt-controls #setCard #btnTest{flex-shrink:0}
@media(max-width:760px){.mt-controls #setCard .row:has(#btnTest){flex-wrap:wrap}.mt-controls #setCard .row:has(#btnTest)>.sl{width:100%;flex-basis:100%}.mt-controls #setCard #btnTest{width:100%}}

.mt-playback{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.mt-playback input{flex:1;min-width:70px;accent-color:#18775f}.mt-playback time{font-size:10px;direction:ltr;font-variant-numeric:tabular-nums;color:#748198}.mt-playback button{flex-shrink:0}@media(max-width:760px){.mt-playback time{width:100%;text-align:right}}
