.mt-editor{--mt-accent:#176965;--mt-ink:#173239;border:1px solid #dce4e8;border-radius:18px;background:#fff;overflow:hidden;margin:20px 0;color:var(--mt-ink)}
.mt-empty{padding:36px 20px;text-align:center;color:#637980;background:#f5f9fa}.mt-screen{background:#10252c;position:relative}.mt-screen video{width:100%;max-height:420px;display:block;object-fit:contain}.mt-screen audio{display:none}.mt-audio-art{display:flex;align-items:center;justify-content:center;gap:7px;height:110px;background:linear-gradient(120deg,#102f36,#1a514e);color:#bce4d5}.mt-audio-art span{width:5px;height:30px;background:currentColor;border-radius:4px;transform:scaleY(.35)}.mt-audio-art span:nth-child(2n){height:55px}.mt-audio-art span:nth-child(3n){height:43px}.mt-playing .mt-audio-art span{animation:mt-equalize .9s ease-in-out infinite alternate}.mt-playing .mt-audio-art span:nth-child(2n){animation-delay:-.4s}@keyframes mt-equalize{to{transform:scaleY(1)}}
.mt-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px}.mt-toolbar button,.mt-mark button,.mt-output button{border:1px solid #cad8dc;background:#fff;color:#173239;border-radius:9px;padding:10px 13px;font:inherit;font-weight:600;cursor:pointer;min-height:44px}.mt-toolbar .mt-play,.mt-output .mt-play{border-color:#176965;background:#176965;color:#fff}.mt-time{font-variant-numeric:tabular-nums;font-size:13px;margin-right:auto}.mt-volume{display:flex;gap:7px;align-items:center;font-size:12px}.mt-volume input{max-width:85px}.mt-timeline-wrap{padding:8px 26px 18px}.mt-help{font-size:13px;line-height:1.5;margin:0 0 10px;color:#536d75}.mt-track{height:92px;position:relative;background:#edf3f5;border-radius:8px;touch-action:none;cursor:crosshair}.mt-track canvas{width:100%;height:100%;display:block;border-radius:8px}.mt-selection{position:absolute;top:0;bottom:0;border:2px solid #176965;background:#17696514;pointer-events:none}.mt-shade{position:absolute;top:0;bottom:0;background:#10252c66;pointer-events:none}.mt-handle{position:absolute;top:-5px;bottom:-5px;width:24px;transform:translateX(-50%);border:2px solid #fff;border-radius:7px;background:#176965;color:#fff;cursor:ew-resize;touch-action:none;z-index:3;padding:0;font-size:17px;box-shadow:0 1px 5px #10252c44}.mt-handle:focus-visible{outline:3px solid #b56a25;outline-offset:3px}.mt-cursor{position:absolute;top:-7px;bottom:-7px;border-left:2px solid #cb6b24;pointer-events:none;z-index:4}.mt-cursor:before{content:'';position:absolute;left:-5px;top:-2px;border:4px solid transparent;border-top-color:#cb6b24}.mt-scale{display:flex;justify-content:space-between;font:11px monospace;color:#677c83;margin-top:9px}.mt-mark{padding:0 16px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.mt-mark button{text-align:left}.mt-mark small{display:block;font-weight:400;color:#617780;margin-top:4px;font-variant-numeric:tabular-nums}.mt-bottom{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;background:#f4f8f9;border-top:1px solid #e2e9eb}.mt-bottom label{display:flex;align-items:center;gap:7px;margin:0;font-size:13px}.mt-bottom input{width:auto}.mt-selection-info{margin-left:auto;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.mt-precise{margin:14px 0}.mt-precise summary{cursor:pointer;font-size:14px}.mt-precise .fields{margin-top:10px}.mt-output{border:1px solid #dce4e8;border-radius:12px;padding:14px;margin-top:14px}.mt-output video{width:100%;max-height:400px;background:#10252c}.mt-output audio{display:none}.mt-output input[type=range]{width:100%;accent-color:#176965}.mt-output-row{display:flex;align-items:center;gap:12px;margin:10px 0}.mt-editor button:disabled{opacity:.45;cursor:default}@media(max-width:520px){.mt-volume{display:none}.mt-toolbar{gap:8px;padding:12px}.mt-toolbar button{padding:10px;font-size:13px}.mt-mark{padding:0 12px 12px;gap:8px}.mt-mark button{font-size:13px}.mt-timeline-wrap{padding-left:22px;padding-right:22px}.mt-selection-info{margin-left:0;width:100%}}@media(prefers-reduced-motion:reduce){.mt-playing .mt-audio-art span{animation:none}}

.mt-editor .mt-bottom label{display:flex;align-items:center;gap:8px;margin:0}.mt-editor .mt-bottom input[type=checkbox]{width:18px;height:18px;margin:0;flex:0 0 18px}.mt-editor .mt-volume{display:flex;align-items:center;margin:0}.mt-editor .mt-volume input{width:80px;margin:0}.mt-editor .mt-toolbar button{margin:0}.mt-editor .mt-handle{min-width:24px;margin:0}.mt-output-row .mt-time{min-width:0}@media(max-width:520px){.mt-editor .mt-volume{display:none}.mt-editor .mt-time{width:100%;margin:0}.mt-editor .mt-bottom label{font-size:13px}}

.mt-editor .mt-bottom label,.mt-editor .mt-volume{flex-direction:row}.mt-editor .mt-mark button{min-width:0}.mt-editor .mt-selection-info{overflow-wrap:anywhere}

/* Refined transport and marking buttons, scoped to the trim editor. */
 .mt-tool{--mt-icon-play:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%205%2011%207-11%207z%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-pause:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%205v14M16%205v14%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-preview:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205v14M20%205v14M10%208l6%204-6%204z%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-start:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204v16M19%2012H9m4-4-4%204%204%204%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-end:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%204v16M5%2012h10m-4-4%204%204-4%204%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-download:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5M4%2016v5h16v-5%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-clear:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%207%2010%2010M17%207%207%2017%22%2F%3E%3C%2Fsvg%3E")}
 .mt-tool{--mt-icon-cancel:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%2212%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3C%2Fsvg%3E")}

.mt-tool .mt-toolbar button,.mt-tool .mt-mark button,.mt-tool .mt-output button,.mt-tool #run,.mt-tool #mt-cancel,.mt-tool .clear-files,.mt-tool .mt-output a.button{transition:background-color .15s,border-color .15s,box-shadow .15s;min-height:48px;border-radius:12px;font-weight:650;font-size:14px;line-height:1.35;letter-spacing:0;text-transform:none;box-sizing:border-box}
.mt-tool .mt-toolbar button,.mt-tool .mt-output-row button,.mt-tool #run,.mt-tool #mt-cancel,.mt-tool .clear-files,.mt-tool .mt-output a.button{display:inline-flex;align-items:center;justify-content:center;gap:9px}
.mt-tool .mt-toolbar button:before,.mt-tool .mt-mark button:before,.mt-tool .mt-output button:before,.mt-tool #run:before,.mt-tool #mt-cancel:before,.mt-tool .clear-files:before,.mt-tool .mt-output a.button:before{content:'';display:inline-block;width:20px;height:20px;flex:0 0 20px;background:currentColor;mask:var(--mt-icon-play) center/contain no-repeat;-webkit-mask:var(--mt-icon-play) center/contain no-repeat}
.mt-tool #mt-play[aria-pressed=true]:before,.mt-tool .mt-output button[aria-pressed=true]:before{mask-image:var(--mt-icon-pause);-webkit-mask-image:var(--mt-icon-pause)}
.mt-tool #mt-preview:before{mask-image:var(--mt-icon-preview);-webkit-mask-image:var(--mt-icon-preview)}
.mt-tool .mt-toolbar .mt-play,.mt-tool .mt-output .mt-play{background:#176965;border:1px solid #176965;color:#fff;box-shadow:0 2px 3px #17323914;padding:12px 18px}
.mt-tool #mt-preview{background:#f0f7f6;color:#175b57;border:1px solid #c8ddda;padding:12px 16px}
.mt-tool .mt-toolbar button:hover:not(:disabled),.mt-tool .mt-output button:hover{box-shadow:0 3px 8px #17323920;border-color:#0d514e}
.mt-tool .mt-toolbar .mt-play:hover,.mt-tool .mt-output .mt-play:hover{background:#115753}
.mt-tool .mt-mark{gap:12px}
.mt-tool .mt-mark button{position:relative;display:grid;grid-template-columns:24px 1fr;column-gap:10px;align-items:center;background:#fff;border:1px solid #d5e1e4;padding:14px 16px;text-align:left;color:#25454d;box-shadow:0 1px 2px #17323908}
.mt-tool .mt-mark button:before{grid-column:1;grid-row:1 / span 2;align-self:center;background:#176965;width:24px;height:24px}
.mt-tool #mt-mark-start:before{mask-image:var(--mt-icon-start);-webkit-mask-image:var(--mt-icon-start)}
.mt-tool #mt-mark-end:before{mask-image:var(--mt-icon-end);-webkit-mask-image:var(--mt-icon-end)}
.mt-tool .mt-mark button small{grid-column:2;font-size:13px;line-height:1.4;margin:3px 0 0;color:#5d747b}
.mt-tool .mt-mark button:hover{border-color:#6b9f99;background:#f7fbfa}.mt-tool .mt-mark button:active{background:#e9f3f1}
.mt-tool .mt-editor .mt-handle{width:24px;min-width:24px;border-radius:8px;font-size:0;border:2px solid #fff;background:#176965;box-shadow:0 2px 5px #10252c33}
.mt-tool .mt-handle:before{content:'';position:absolute;top:calc(50% - 8px);left:7px;width:5px;height:16px;border-left:1.5px solid #fff;border-right:1.5px solid #fff;opacity:.9}
.mt-tool button:focus-visible,.mt-tool a.button:focus-visible{outline:3px solid #c77d36;outline-offset:3px}
.mt-tool #run,.mt-tool .mt-output a.button{background:#176965;color:#fff;border:1px solid #176965;min-height:52px;padding:13px 22px;text-decoration:none}
.mt-tool #run:before,.mt-tool .mt-output a.button:before{mask-image:var(--mt-icon-download);-webkit-mask-image:var(--mt-icon-download)}
.mt-tool #run:disabled{background:#e4ebed;border-color:#e4ebed;color:#6b7e84;opacity:1;cursor:default;box-shadow:none}
.mt-tool .clear-files,.mt-tool #mt-cancel{border:1px solid #d5dfe3;color:#536b73;background:#fff;padding:12px 16px;margin-top:10px}
.mt-tool .clear-files:before{mask-image:var(--mt-icon-clear);-webkit-mask-image:var(--mt-icon-clear)}
.mt-tool #mt-cancel:before{mask-image:var(--mt-icon-cancel);-webkit-mask-image:var(--mt-icon-cancel)}
.mt-tool .clear-files:hover,.mt-tool #mt-cancel:hover{background:#f3f6f7;border-color:#aebfc5}
.mt-tool #mt-cancel[hidden]{display:none}
@media(max-width:520px){.mt-tool .mt-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mt-tool .mt-toolbar button{width:100%;min-width:0;padding:12px 8px;font-size:13px}.mt-tool .mt-time{grid-column:1/-1;text-align:center;padding-top:3px}.mt-tool .mt-mark{gap:10px}.mt-tool .mt-mark button{grid-template-columns:18px 1fr;column-gap:7px;padding:12px 9px;font-size:13px}.mt-tool .mt-mark button:before{width:18px;height:20px}.mt-tool .mt-mark button small{font-size:12px}.mt-tool #run,.mt-tool .clear-files,.mt-tool #mt-cancel,.mt-tool .mt-output a.button{width:100%}}
@media(prefers-reduced-motion:reduce){.mt-tool button,.mt-tool a.button{transition:none}}
