Edit mode used to live on the window, so switching tabs carried the mode
across documents, and the viewport stayed at whatever pixel the previous
document had scrolled to.
- DocumentTab now owns editing and scroll_ratio.
- The page reports edit-mode and scroll changes by tab id; Rust restores
them when the tab is activated. Reports carry the id so a late report
cannot land on the tab that just became active.
- Detaching a tab keeps its edit mode instead of forcing preview.
- Model Home as a tab without a file path (Option<PathBuf>)
- + creates a Home tab; opening a file from Home reuses that tab
- Add a New File button to the Home page (replaces + for file creation)
- Closing the last file tab falls back to a Home tab
- Hide the tab strip while the only tab is Home
- Keep Home tabs out of detach, reveal, watcher, and duplicate checks