webapp: mode system with looping pattern mode
Introduce control modes as tabs (Direct | Pattern). Each mode installs a base provider with the vibration manager, so every mode drives output through the single existing codepath and holds, throttling, safety events, and device add/remove behave identically everywhere. Switching modes stops the previous mode's driver first. Pattern mode: play/restart/pause/stop transport, customizable loop length (0.5-60 s, position preserved across changes), and a vertical stack of SVG waveforms, one per vibrator, all starting flat at 0%. Waveforms are edited by pointer drag (mouse or touch) and edits apply immediately even while playing. While playing, a playhead bar scans across all waveforms in sync. Each waveform gets small unlabeled hold-to-max (glyph) and hold-to-stop (glyph) buttons stacked vertically, using the same colors as the direct-control hold buttons; they temporarily override the pattern via the existing hold codepath. Devices added mid-playback join with a flat 0 waveform at the current phase; removed devices are dropped. Patterns persist in localStorage. Emergency stop stops playback via the mode hook and remains fixed at the bottom of the screen.