/* audio tools (joiner / cutter) — reuses resizer-* chrome, adds waveform pieces */
.aj-wave { width: 100%; height: 44px; display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.aj-wave-wrap { position: relative; }
.aj-keep-mask { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--canvas) 55%, transparent); pointer-events: none; }
.aj-clip { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.aj-clip.is-drag { opacity: .45; border-style: dashed; }
.aj-clip.is-drop-target { border-color: var(--site-accent); }
.aj-clip-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aj-grip { flex: none; display: grid; place-items: center; width: 26px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); cursor: grab; touch-action: none; }
.aj-grip:active { cursor: grabbing; }
.aj-idx { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--brand-soft); color: var(--site-accent); font: 700 12px var(--mono); }
.aj-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.aj-meta { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.aj-clip-err { font-size: 11px; color: var(--error); }
.aj-trim-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aj-trim-row label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.aj-trim-row input[type="number"] { width: 76px; height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font: 12px var(--mono); background: var(--surface); color: var(--ink); }
.aj-keep { margin-left: auto; font: 11px var(--mono); color: var(--ink); }
.aj-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.aj-actions .resizer-ghost-btn { min-height: 30px; padding: 3px 10px; font-size: 11px; }
.aj-actions .resizer-ghost-btn svg { width: 12px; height: 12px; }
.aj-move { display: grid; gap: 4px; }
.aj-move .resizer-ghost-btn { min-height: 30px; padding: 3px 8px; }
.aj-move .resizer-ghost-btn svg { width: 12px; height: 12px; }
.aj-strip { display: flex; align-items: stretch; gap: 2px; height: 34px; margin: 4px 0 2px; }
.aj-seg { position: relative; border-radius: 5px; background: color-mix(in srgb, var(--site-accent) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--site-accent) 45%, var(--line)); min-width: 26px; overflow: hidden; }
.aj-seg span { position: absolute; inset: 0; display: grid; place-items: center; font: 10px var(--mono); color: var(--site-accent); white-space: nowrap; }
.aj-seg.is-fade::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--site-accent) 45%, transparent) 0 4px, transparent 4px 8px); }
.aj-total { font: 12px var(--mono); color: var(--ink); }
.aj-total b { color: var(--site-accent); font-size: 15px; }
.aj-note { font-size: 11px; color: var(--muted); }
.aj-empty { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px; padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: 8px; background: var(--canvas); text-align: center; color: var(--muted); font-size: 13px; }
.aj-empty svg { width: 30px; height: 30px; }
.ac-stage { display: grid; gap: 10px; }
.ac-wave { width: 100%; height: 120px; display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); cursor: crosshair; touch-action: none; }
.ac-wave-wrap { position: relative; }
.ac-sel { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--site-accent); border-right: 2px solid var(--site-accent); background: color-mix(in srgb, var(--site-accent) 10%, transparent); pointer-events: none; }
.ac-handle { position: absolute; top: 0; bottom: 0; width: 14px; margin-left: -7px; cursor: ew-resize; touch-action: none; z-index: 2; }
.ac-handle::after { content: ""; position: absolute; left: 4px; right: 4px; top: 30%; bottom: 30%; border-radius: 3px; background: var(--site-accent); }
.ac-readout { display: flex; gap: 14px; flex-wrap: wrap; font: 12px var(--mono); color: var(--muted); }
.ac-readout b { color: var(--ink); font-weight: 650; }
.ac-fade-row { margin-bottom: 6px; }
.ac-fade-row input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--site-accent); }
.ac-fade-row input[type="number"] { width: 62px; }
.ac-fade-unit { font-size: 11px; color: var(--muted); }
.ac-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--site-accent); pointer-events: none; z-index: 3; }
.resizer-ghost-btn.is-on { border-color: var(--site-accent); background: color-mix(in srgb, var(--site-accent) 12%, var(--surface)); color: var(--site-accent); font-weight: 650; }
@media (max-width: 767px) {
  .aj-clip-head { flex-wrap: wrap; }
  .aj-meta { white-space: normal; }
  .aj-trim-row input[type="number"] { width: 68px; }
  .aj-keep { margin-left: 0; width: 100%; }
}
