Pick an activity to crop the segment from.
{#if loadingActivities}Loading activities…
{:else if filteredActivities.length === 0}No GPS activities found{searchQuery ? ' matching your search' : ''}.
{:else}Showing first 100 results — refine your search to narrow down.
{/if} {#if pendingShards.length > 0} {/if} {/if} {:else}{selectedActivity.title ?? 'Untitled'}
{formatDate(selectedActivity.started_at)}
Drag the handles to set the segment start and end
Selected: {formatDistance(selectedDistance)} ({selectedPolyline.length} points) {#if selectedDistance < 500} — minimum 500 m {/if}
✓ "{lastSavedName}" saved. Add another segment from this activity?
{saveError}
{/if} {/if} {/if} {/if}