body[data-editor="mix"]{--tool-accent:var(--editor-merge-accent,#c4a7ff);--tool-on-accent:#13121a}body[data-editor="cut"]{--tool-accent:var(--editor-cut-accent,#6ee7b7);--tool-on-accent:#092218}
body[data-editor]{--coral:var(--tool-accent)}.editor-shell{padding:24px}.editor-shell .drop-zone{min-height:160px;padding:24px}.editor-shell>.audio-actions{padding:18px 0}.editor-hint{color:var(--muted);font-size:13px;line-height:1.8}.track-card{padding:20px 0;border-top:1px solid var(--line)}.track-card h3,#source-name{font-size:16px;overflow-wrap:anywhere;margin:0 0 18px}.track-settings,.cut-settings,.export-settings{display:flex;flex-wrap:wrap;gap:20px;align-items:end}.track-settings label,.cut-settings label,.export-settings label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted);min-width:0;flex:1 1 140px}.track-settings label:has([type=checkbox]){flex:0 0 auto;align-self:center}.editor-shell input[type=number],.editor-shell select{width:100%;min-width:0;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:5px;background:var(--bg);color:var(--text);box-shadow:none;font:inherit}.editor-shell input[type=range]{accent-color:var(--tool-accent)}.editor-shell :is(input,select):focus-visible{outline:1px solid var(--tool-accent);outline-offset:2px}.editor-shell fieldset{border:0;padding:14px 0;margin:0;min-width:0}.editor-shell legend{font-size:14px;font-weight:600;color:var(--text);padding:0}.editor-check{display:flex;gap:10px;align-items:center;margin:20px 0 4px;font-size:14px}.editor-check input{accent-color:var(--tool-accent);width:18px;height:18px}.editor-player{margin:18px 0}.editor-player .waveform-track{height:100px}.editor-wave{height:100%;width:100%;color:var(--tool-accent)}.editor-result{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.editor-result>h3{font-size:18px}.editor-result .audio-actions{padding-inline:0}.editor-shell #status{font-size:14px;line-height:1.8}.editor-shell #error{padding:12px;color:#ffaaa4;border:1px solid #8b4444;border-radius:6px;font-size:14px;overflow-wrap:anywhere}.editor-shell [hidden]{display:none!important}.editor-shell .icon-button{white-space:normal}.selection-region{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--tool-accent) 15%,transparent);pointer-events:none;border-block:1px solid var(--tool-accent)}.cut-handle{position:absolute;z-index:3;top:0;bottom:0;width:24px;transform:translateX(-50%);border:0;border-inline:2px solid var(--tool-accent);background:color-mix(in srgb,var(--tool-accent) 30%,var(--bg));color:var(--text);cursor:ew-resize;touch-action:none;font-size:14px;padding:0}.cut-handle:focus-visible{outline:2px solid var(--text);outline-offset:2px}#cut-panel .waveform-track{overflow:visible;margin-inline:12px}.editor-shell button:disabled{opacity:.5;cursor:not-allowed}.editor-shell #status.is-processing{position:sticky;bottom:12px;z-index:6;background:var(--surface);border:1px solid var(--tool-accent);border-radius:8px;padding:12px;color:var(--tool-accent);font-weight:600}.editor-shell #status.is-processing:before{content:'';display:inline-block;width:13px;height:13px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;margin-right:10px;vertical-align:-2px;animation:editor-spin .8s linear infinite}@keyframes editor-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.editor-shell #status.is-processing:before{animation:none}}@media(max-width:600px){.editor-shell{padding:18px}.track-settings{gap:12px}.track-settings label{flex-basis:calc(50% - 12px)}.track-settings .track-remove{align-self:center}.cut-settings label:first-of-type{flex-basis:100%}.editor-shell>.audio-actions{gap:10px}.cut-handle{width:28px}.editor-player .waveform-track{height:90px}}

.editor-player .audio-progress[type=range]{position:static;display:block;width:100%;height:24px;margin:10px 0 0;padding:0;opacity:1;cursor:pointer;touch-action:none}.editor-player .waveform-track{cursor:default}.editor-player .waveform-track canvas{height:100%;pointer-events:none}.editor-player .audio-progress:disabled{cursor:not-allowed}.editor-player:has(.audio-progress:disabled) .waveform-track{opacity:.5}

body[data-editor] .editor-shell #status.is-processing{position:sticky;inset:auto;bottom:12px;max-width:none;margin:14px 0;padding:12px;color:var(--tool-accent);font-size:14px;line-height:1.8;min-height:0;box-shadow:none;pointer-events:none}body[data-editor] .editor-shell #status.is-processing:before{position:static;left:auto;top:auto;display:inline-block;width:13px;height:13px;margin-right:10px;vertical-align:-2px;border:2px solid currentColor;border-top-color:transparent}

.editor-shell .icon-button{display:inline-flex;width:auto;height:auto;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--text);font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;text-decoration:none}.editor-shell .icon-button:hover{border-color:var(--tool-accent);color:var(--tool-accent)}.track-settings .track-remove{flex:0 0 auto;white-space:nowrap}

.track-card .waveform-track{overflow:visible;margin-inline:12px}.track-range-labels{display:flex;justify-content:space-between;gap:12px;margin:8px 12px 0;font-size:12px;line-height:1.5;color:var(--tool-accent);font-variant-numeric:tabular-nums}.track-range-labels span{min-width:0;overflow-wrap:anywhere}.track-range-labels span:last-child{text-align:right}.track-boundary{font-size:20px;font-weight:600}.track-settings .track-start,.track-settings .track-end{font-variant-numeric:tabular-nums}

.cut-settings .cut-selection-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;margin-bottom:8px}.cut-selection-heading .icon-button{flex:0 0 auto;margin:0}
