Each task ends green on npm test and npm run lint. Commit subjects carry
[rb-ui-overhaul].
src/waveform/range.ts: MIN_PX_PER_S, detailSpanS(width), span as
a parameter to nextDetailRange, LONG_CLIP_S and DETAIL_SPAN_S gone.
Update test/range.test.ts, including the width === 0 case.src/ui/tick.ts: tickPositionsInRange(timesS, offsetS, range, width)
and its tests. tickX unchanged.src/ui/useElementSize.ts: the ResizeObserver hook.src/ui/WaveformCanvas.tsx: take width and height as props, drop
the observer, draw the marks between the dim and the handles.src/ui/WaveformBlock.tsx: measure both wrappers, derive the span,
hold the snap, release it on pointerdown, accept marks.src/ui/ResultView.tsx is the number, the unit, the count and the
octave note. Delete src/ui/ResultWaveform.tsx.src/ui/theme.ts + test/theme.test.ts: the three values, the
storage key, the data-theme and color-scheme writes, dark when absent.src/ui/palette.ts: watch data-theme with a MutationObserver
beside the existing colour-scheme listener.en.ts and all sixteen bundles; dir on the root
element; bidi isolation of interpolated values for right-to-left languages.src/ui/Settings.tsx and the trigger button; LanguagePicker.tsx
reduced to its <select>.src/index.css: dark-first tokens, the grid and its areas, the
breakpoint, --col, --dim, the 8 px inset, logical properties throughout.src/ui/InputScreen.tsx: grid areas, marks passed down, the settings
button in the source row.review.md for the phase.Scope check before calling the phase done: git log main..feat/8-ui-overhaul.