/* THE EDITS LANE (js/edit-lanes.js, js/edit-lanes-ui.js -- the Edit room, stage 2, Simon 4 Nov 2026).
   A row of the track's twirl, under Position / Scale / Rotation / Opacity and above the masks: each crop, edit
   or tool result made from the clip is a block over the part of the clip it changes, its fades drawn as ramps
   at its ends. The lane box is FX_ROW_H (18px) like every other row. */
html.desktop.nle-on .nle-edrow { gap: 4px; }
html.desktop.nle-on .nle-edlab {
  flex: 1; min-width: 0; padding-left: 15px; font-size: 9.5px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.desktop.nle-on .nle-edcnt { flex: none; font-size: 9px; color: var(--text-faint); font-variant-numeric: tabular-nums; padding-right: 3px; }
html.desktop.nle-on .nle-edb {
  flex: none; height: 13px; padding: 0 5px; line-height: 13px; border: 0; border-radius: 3px;
  background: var(--surface-sunk); color: var(--accent); font: inherit; font-size: 9px; cursor: pointer;
}
html.desktop.nle-on .nle-edb.off { color: var(--text-faint); }
html.desktop.nle-on .nle-edb:hover { color: #fff; background: var(--accent); }
html.desktop.nle-on .nle-edx {
  flex: none; width: 13px; height: 13px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 3px;
  color: var(--text-faint); font-size: 11px; cursor: pointer;
}
html.desktop.nle-on .nle-edx:hover { color: #fff; background: var(--danger, #b4413c); }

html.desktop.nle-on .nle-edlane { background: rgba(255, 255, 255, .015); }
html.desktop.nle-on .nle-edblk {
  --ed-hue: var(--accent);
  position: absolute; top: 2px; bottom: 2px; min-width: 4px; box-sizing: border-box;
  border-radius: 3px; overflow: hidden; cursor: grab; pointer-events: auto;
  background: color-mix(in srgb, var(--ed-hue) 34%, transparent);
  border: 1px solid color-mix(in srgb, var(--ed-hue) 80%, transparent);
  color: #fff; user-select: none;
}
html.desktop.nle-on .nle-edblk.k-crop { --ed-hue: #2dd4bf; }
html.desktop.nle-on .nle-edblk.k-tool { --ed-hue: #a78bfa; }
html.desktop.nle-on .nle-edblk:active { cursor: grabbing; }
html.desktop.nle-on .nle-edblk.sel { box-shadow: 0 0 0 1px #fff inset; border-color: #fff; }
/* Switched off: still there, still yours, plays and renders nothing. */
html.desktop.nle-on .nle-edblk.off {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 4px, transparent 4px 8px);
  border-style: dashed; color: var(--text-faint);
}
html.desktop.nle-on .nle-edn {
  position: absolute; left: 6px; right: 6px; top: 0; bottom: 0; line-height: 12px;
  font-size: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
/* The fades: dark where the take is not yet (or no longer) showing, clear where it is. */
html.desktop.nle-on .nle-edfi, html.desktop.nle-on .nle-edfo { position: absolute; top: 0; bottom: 0; pointer-events: none; }
html.desktop.nle-on .nle-edfi { background: linear-gradient(to right top, rgba(0,0,0,.55) 50%, transparent 50.5%); }
html.desktop.nle-on .nle-edfo { background: linear-gradient(to left top, rgba(0,0,0,.55) 50%, transparent 50.5%); }
/* Trim at the ends; fade with the dots in the top corners. */
html.desktop.nle-on .nle-edh { position: absolute; top: 0; bottom: 0; width: 5px; cursor: ew-resize; }
html.desktop.nle-on .nle-edh.l { left: 0; }
html.desktop.nle-on .nle-edh.r { right: 0; }
html.desktop.nle-on .nle-edh:hover { background: color-mix(in srgb, #fff 35%, transparent); }
html.desktop.nle-on .nle-edk {
  position: absolute; top: -1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45); cursor: col-resize; opacity: 0; transition: opacity .12s;
}
html.desktop.nle-on .nle-edk.o { margin-left: 0; margin-right: -3px; }
html.desktop.nle-on .nle-edblk:hover .nle-edk, html.desktop.nle-on .nle-edblk.sel .nle-edk { opacity: 1; }

/* The Edit room panel's results: the edit is the default, a track of its own the quieter second. */
#ev-panel .ev-addedit { flex: none; padding: 4px 9px; font-size: 11px; white-space: nowrap; }
#ev-rlist .ev-r .ev-put.ev-alt { background: none; color: var(--text-dim); border-color: var(--border); }
#ev-rlist .ev-r .ev-put.ev-alt:hover:not(:disabled) { color: var(--text); }
